xref: /vim-8.2.3635/src/auto/configure (revision 68e6560b)
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
632HANGULIN_OBJ
633HANGULIN_SRC
634GUI_X_LIBS
635GUITYPE
636GUI_LIB_LOC
637GUI_INC_LOC
638NARROW_PROTO
639MOTIF_LIBNAME
640GRESOURCE_OBJ
641GRESOURCE_SRC
642UPDATE_DESKTOP_DATABASE
643GTK_UPDATE_ICON_CACHE
644GLIB_COMPILE_RESOURCES
645GNOME_INCLUDEDIR
646GNOME_LIBDIR
647GNOME_LIBS
648GTK_LIBNAME
649GTK_LIBS
650GTK_CFLAGS
651PKG_CONFIG
652X_LIB
653X_EXTRA_LIBS
654X_LIBS
655X_PRE_LIBS
656X_CFLAGS
657XMKMF
658xmkmfpath
659TERM_OBJ
660TERM_SRC
661CHANNEL_OBJ
662CHANNEL_SRC
663NETBEANS_OBJ
664NETBEANS_SRC
665RUBY_LIBS
666RUBY_CFLAGS
667RUBY_PRO
668RUBY_OBJ
669RUBY_SRC
670vi_cv_path_ruby
671TCL_LIBS
672TCL_CFLAGS
673TCL_PRO
674TCL_OBJ
675TCL_SRC
676vi_cv_path_tcl
677PYTHON3_OBJ
678PYTHON3_SRC
679PYTHON3_CFLAGS
680PYTHON3_LIBS
681vi_cv_path_python3
682PYTHON_OBJ
683PYTHON_SRC
684PYTHON_CFLAGS
685PYTHON_LIBS
686vi_cv_path_python
687PERL_LIBS
688PERL_CFLAGS
689PERL_PRO
690PERL_OBJ
691PERL_SRC
692shrpenv
693vi_cv_perl_xsubpp
694vi_cv_perllib
695vi_cv_path_perl
696MZSCHEME_MZC
697MZSCHEME_EXTRA
698MZSCHEME_CFLAGS
699MZSCHEME_LIBS
700MZSCHEME_PRO
701MZSCHEME_OBJ
702MZSCHEME_SRC
703vi_cv_path_mzscheme
704LUA_CFLAGS
705LUA_LIBS
706LUA_PRO
707LUA_OBJ
708LUA_SRC
709vi_cv_path_plain_lua
710vi_cv_path_luajit
711vi_cv_path_lua
712compiledby
713dogvimdiff
714dovimdiff
715QUOTESED
716line_break
717VIEWNAME
718EXNAME
719VIMNAME
720OS_EXTRA_OBJ
721OS_EXTRA_SRC
722XCODE_SELECT
723CPP_MM
724CROSS_COMPILING
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_hangulinput
823enable_xim
824enable_fontset
825with_x
826enable_gui
827enable_gtk2_check
828enable_gnome_check
829enable_gtk3_check
830enable_motif_check
831enable_athena_check
832enable_nextaw_check
833enable_carbon_check
834enable_gtktest
835with_gnome_includes
836with_gnome_libs
837with_gnome
838enable_icon_cache_update
839enable_desktop_database_update
840with_motif_lib
841with_tlib
842enable_largefile
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-hangulinput    Include Hangul input support.
1504  --enable-xim            Include XIM input support.
1505  --enable-fontset        Include X fontset output support.
1506  --enable-gui=OPTS       X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon
1507  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1508  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1509  --enable-gtk3-check     If auto-select GUI, check for GTK+ 3 default=yes
1510  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1511  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1512  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1513  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1514  --disable-gtktest       Do not try to compile and run a test GTK program
1515  --disable-icon-cache-update        update disabled
1516  --disable-desktop-database-update  update disabled
1517  --disable-largefile     omit support for large files
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
4459
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4461$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4462# Check whether --enable-fail_if_missing was given.
4463if test "${enable_fail_if_missing+set}" = set; then :
4464  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4465else
4466  fail_if_missing="no"
4467fi
4468
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4470$as_echo "$fail_if_missing" >&6; }
4471
4472with_x_arg="$with_x"
4473
4474if test -z "$CFLAGS"; then
4475  CFLAGS="-O"
4476  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4477fi
4478if test "$GCC" = yes; then
4479    gccversion=`$CC -dumpversion`
4480  if test "x$gccversion" = "x"; then
4481        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4482  fi
4483    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4484    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4485    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4486  else
4487    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4488      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4489      CFLAGS="$CFLAGS -fno-strength-reduce"
4490    fi
4491  fi
4492fi
4493
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5
4495$as_echo_n "checking for clang version... " >&6; }
4496CLANG_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'`
4497if test x"$CLANG_VERSION_STRING" != x"" ; then
4498  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4499  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4500  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4501  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4503$as_echo "$CLANG_VERSION" >&6; }
4504          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
4505$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
4506  if test "$CLANG_VERSION" -ge 500002075 ; then
4507    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508$as_echo "no" >&6; }
4509    CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
4510  else
4511    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4512$as_echo "yes" >&6; }
4513  fi
4514else
4515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5
4516$as_echo "N/A" >&6; }
4517fi
4518
4519CROSS_COMPILING=
4520if test "$cross_compiling" = yes; then
4521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4522$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4523  CROSS_COMPILING=1
4524fi
4525
4526
4527test "$GCC" = yes && CPP_MM=M;
4528
4529if test -f ./toolcheck; then
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4531$as_echo "$as_me: checking for buggy tools..." >&6;}
4532  sh ./toolcheck 1>&6
4533fi
4534
4535OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4536
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
4538$as_echo_n "checking for BeOS... " >&6; }
4539case `uname` in
4540    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
4541		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542$as_echo "yes" >&6; };;
4543    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544$as_echo "no" >&6; };;
4545esac
4546
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4548$as_echo_n "checking for QNX... " >&6; }
4549case `uname` in
4550    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4551		test -z "$with_x" && with_x=no
4552		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553$as_echo "yes" >&6; };;
4554    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555$as_echo "no" >&6; };;
4556esac
4557
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4559$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4560if test "`(uname) 2>/dev/null`" = Darwin; then
4561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562$as_echo "yes" >&6; }
4563  MACOS_X=yes
4564  CPPFLAGS="$CPPFLAGS -DMACOS_X"
4565
4566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4567$as_echo_n "checking --disable-darwin argument... " >&6; }
4568  # Check whether --enable-darwin was given.
4569if test "${enable_darwin+set}" = set; then :
4570  enableval=$enable_darwin;
4571else
4572  enable_darwin="yes"
4573fi
4574
4575  if test "$enable_darwin" = "yes"; then
4576    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4579$as_echo_n "checking if Darwin files are there... " >&6; }
4580    if test -f os_macosx.m; then
4581      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4582$as_echo "yes" >&6; }
4583    else
4584      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4585$as_echo "no, Darwin support disabled" >&6; }
4586      enable_darwin=no
4587    fi
4588  else
4589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4590$as_echo "yes, Darwin support excluded" >&6; }
4591  fi
4592
4593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4594$as_echo_n "checking --with-mac-arch argument... " >&6; }
4595
4596# Check whether --with-mac-arch was given.
4597if test "${with_mac_arch+set}" = set; then :
4598  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4599$as_echo "$MACARCH" >&6; }
4600else
4601  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4602$as_echo "defaulting to $MACARCH" >&6; }
4603fi
4604
4605
4606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4607$as_echo_n "checking --with-developer-dir argument... " >&6; }
4608
4609# Check whether --with-developer-dir was given.
4610if test "${with_developer_dir+set}" = set; then :
4611  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4612$as_echo "$DEVELOPER_DIR" >&6; }
4613else
4614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4615$as_echo "not present" >&6; }
4616fi
4617
4618
4619  if test "x$DEVELOPER_DIR" = "x"; then
4620    # Extract the first word of "xcode-select", so it can be a program name with args.
4621set dummy xcode-select; ac_word=$2
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623$as_echo_n "checking for $ac_word... " >&6; }
4624if ${ac_cv_path_XCODE_SELECT+:} false; then :
4625  $as_echo_n "(cached) " >&6
4626else
4627  case $XCODE_SELECT in
4628  [\\/]* | ?:[\\/]*)
4629  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4630  ;;
4631  *)
4632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635  IFS=$as_save_IFS
4636  test -z "$as_dir" && as_dir=.
4637    for ac_exec_ext in '' $ac_executable_extensions; do
4638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641    break 2
4642  fi
4643done
4644  done
4645IFS=$as_save_IFS
4646
4647  ;;
4648esac
4649fi
4650XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4651if test -n "$XCODE_SELECT"; then
4652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4653$as_echo "$XCODE_SELECT" >&6; }
4654else
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656$as_echo "no" >&6; }
4657fi
4658
4659
4660    if test "x$XCODE_SELECT" != "x"; then
4661      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4662$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4663      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4664      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4665$as_echo "$DEVELOPER_DIR" >&6; }
4666    else
4667      DEVELOPER_DIR=/Developer
4668    fi
4669  fi
4670
4671  if test "x$MACARCH" = "xboth"; then
4672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4673$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4674                            save_cppflags="$CPPFLAGS"
4675    save_cflags="$CFLAGS"
4676    save_ldflags="$LDFLAGS"
4677    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4678    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679/* end confdefs.h.  */
4680
4681int
4682main ()
4683{
4684
4685  ;
4686  return 0;
4687}
4688_ACEOF
4689if ac_fn_c_try_link "$LINENO"; then :
4690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4691$as_echo "found" >&6; }
4692else
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4694$as_echo "not found" >&6; }
4695	CFLAGS="$save_cflags"
4696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4697$as_echo_n "checking if Intel architecture is supported... " >&6; }
4698	CPPFLAGS="$CPPFLAGS -arch i386"
4699	LDFLAGS="$save_ldflags -arch i386"
4700	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701/* end confdefs.h.  */
4702
4703int
4704main ()
4705{
4706
4707  ;
4708  return 0;
4709}
4710_ACEOF
4711if ac_fn_c_try_link "$LINENO"; then :
4712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713$as_echo "yes" >&6; }; MACARCH="intel"
4714else
4715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716$as_echo "no" >&6; }
4717		MACARCH="ppc"
4718		CPPFLAGS="$save_cppflags -arch ppc"
4719		LDFLAGS="$save_ldflags -arch ppc"
4720fi
4721rm -f core conftest.err conftest.$ac_objext \
4722    conftest$ac_exeext conftest.$ac_ext
4723fi
4724rm -f core conftest.err conftest.$ac_objext \
4725    conftest$ac_exeext conftest.$ac_ext
4726  elif test "x$MACARCH" = "xintel"; then
4727    CPPFLAGS="$CPPFLAGS -arch intel"
4728    LDFLAGS="$LDFLAGS -arch intel"
4729  elif test "x$MACARCH" = "xppc"; then
4730    CPPFLAGS="$CPPFLAGS -arch ppc"
4731    LDFLAGS="$LDFLAGS -arch ppc"
4732  fi
4733
4734  if test "$enable_darwin" = "yes"; then
4735    MACOS_X_DARWIN=yes
4736    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4737    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4738            CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN"
4739
4740                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4741for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4742		  inttypes.h stdint.h unistd.h
4743do :
4744  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4745ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4746"
4747if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4748  cat >>confdefs.h <<_ACEOF
4749#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4750_ACEOF
4751
4752fi
4753
4754done
4755
4756
4757ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4758if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4759  CARBON=yes
4760fi
4761
4762
4763    if test "x$CARBON" = "xyes"; then
4764      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
4765	with_x=no
4766      fi
4767    fi
4768  fi
4769
4770        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4771    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4772  fi
4773
4774else
4775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776$as_echo "no" >&6; }
4777fi
4778
4779for ac_header in AvailabilityMacros.h
4780do :
4781  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4782if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4783  cat >>confdefs.h <<_ACEOF
4784#define HAVE_AVAILABILITYMACROS_H 1
4785_ACEOF
4786
4787fi
4788
4789done
4790
4791
4792
4793
4794
4795if test "$cross_compiling" = no; then
4796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4797$as_echo_n "checking --with-local-dir argument... " >&6; }
4798  have_local_include=''
4799  have_local_lib=''
4800
4801# Check whether --with-local-dir was given.
4802if test "${with_local_dir+set}" = set; then :
4803  withval=$with_local_dir;
4804    local_dir="$withval"
4805    case "$withval" in
4806    */*) ;;
4807    no)
4808      # avoid adding local dir to LDFLAGS and CPPFLAGS
4809      have_local_include=yes
4810      have_local_lib=yes
4811      ;;
4812    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4813    esac
4814	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4815$as_echo "$local_dir" >&6; }
4816
4817else
4818
4819    local_dir=/usr/local
4820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4821$as_echo "Defaulting to $local_dir" >&6; }
4822
4823fi
4824
4825  if test "$GCC" = yes -a "$local_dir" != no; then
4826    echo 'void f(){}' > conftest.c
4827        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4828    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4829    rm -f conftest.c conftest.o
4830  fi
4831  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4832    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4833    if test "$tt" = "$LDFLAGS"; then
4834      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4835    fi
4836  fi
4837  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4838    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4839    if test "$tt" = "$CPPFLAGS"; then
4840      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4841    fi
4842  fi
4843fi
4844
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4846$as_echo_n "checking --with-vim-name argument... " >&6; }
4847
4848# Check whether --with-vim-name was given.
4849if test "${with_vim_name+set}" = set; then :
4850  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4851$as_echo "$VIMNAME" >&6; }
4852else
4853  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4854$as_echo "Defaulting to $VIMNAME" >&6; }
4855fi
4856
4857
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4859$as_echo_n "checking --with-ex-name argument... " >&6; }
4860
4861# Check whether --with-ex-name was given.
4862if test "${with_ex_name+set}" = set; then :
4863  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4864$as_echo "$EXNAME" >&6; }
4865else
4866  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4867$as_echo "Defaulting to ex" >&6; }
4868fi
4869
4870
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4872$as_echo_n "checking --with-view-name argument... " >&6; }
4873
4874# Check whether --with-view-name was given.
4875if test "${with_view_name+set}" = set; then :
4876  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4877$as_echo "$VIEWNAME" >&6; }
4878else
4879  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4880$as_echo "Defaulting to view" >&6; }
4881fi
4882
4883
4884
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4886$as_echo_n "checking --with-global-runtime argument... " >&6; }
4887
4888# Check whether --with-global-runtime was given.
4889if test "${with_global_runtime+set}" = set; then :
4890  withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4891$as_echo "$withval" >&6; }
4892else
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
4895fi
4896
4897
4898if test "X$RUNTIME_GLOBAL" != "X"; then
4899  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" }')
4900  cat >>confdefs.h <<_ACEOF
4901#define RUNTIME_GLOBAL "$RUNTIME_GLOBAL"
4902_ACEOF
4903
4904  cat >>confdefs.h <<_ACEOF
4905#define RUNTIME_GLOBAL_AFTER "$RUNTIME_GLOBAL_AFTER"
4906_ACEOF
4907
4908fi
4909
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4911$as_echo_n "checking --with-modified-by argument... " >&6; }
4912
4913# Check whether --with-modified-by was given.
4914if test "${with_modified_by+set}" = set; then :
4915  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4916$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4917#define MODIFIED_BY "$withval"
4918_ACEOF
4919
4920else
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
4923fi
4924
4925
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4927$as_echo_n "checking if character set is EBCDIC... " >&6; }
4928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h.  */
4930
4931int
4932main ()
4933{
4934 /* TryCompile function for CharSet.
4935   Treat any failure as ASCII for compatibility with existing art.
4936   Use compile-time rather than run-time tests for cross-compiler
4937   tolerance.  */
4938#if '0'!=240
4939make an error "Character set is not EBCDIC"
4940#endif
4941  ;
4942  return 0;
4943}
4944_ACEOF
4945if ac_fn_c_try_compile "$LINENO"; then :
4946   # TryCompile action if true
4947cf_cv_ebcdic=yes
4948else
4949   # TryCompile action if false
4950cf_cv_ebcdic=no
4951fi
4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953# end of TryCompile ])
4954# end of CacheVal CvEbcdic
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4956$as_echo "$cf_cv_ebcdic" >&6; }
4957case "$cf_cv_ebcdic" in  #(vi
4958    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4959
4960		line_break='"\\n"'
4961		;;
4962    *)		line_break='"\\012"';;
4963esac
4964
4965
4966if test "$cf_cv_ebcdic" = "yes"; then
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4968$as_echo_n "checking for z/OS Unix... " >&6; }
4969case `uname` in
4970    OS/390)	zOSUnix="yes";
4971										if test "$CC" = "cc"; then
4972		  ccm="$_CC_CCMODE"
4973		  ccn="CC"
4974		else
4975		  if test "$CC" = "c89"; then
4976		    ccm="$_CC_C89MODE"
4977		    ccn="C89"
4978		  else
4979		    ccm=1
4980		  fi
4981		fi
4982		if test "$ccm" != "1"; then
4983		  echo ""
4984		  echo "------------------------------------------"
4985		  echo " On z/OS Unix, the environment variable"
4986		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4987		  echo " Do:"
4988		  echo "    export _CC_${ccn}MODE=1"
4989		  echo " and then call configure again."
4990		  echo "------------------------------------------"
4991		  exit 1
4992		fi
4993		# Set CFLAGS for configure process.
4994		# This will be reset later for config.mk.
4995		# Use haltonmsg to force error for missing H files.
4996		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
4997		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4999$as_echo "yes" >&6; }
5000		;;
5001    *)		zOSUnix="no";
5002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003$as_echo "no" >&6; }
5004		;;
5005esac
5006fi
5007
5008if test "$zOSUnix" = "yes"; then
5009    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
5010else
5011    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
5012fi
5013
5014
5015
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
5017$as_echo_n "checking --disable-smack argument... " >&6; }
5018# Check whether --enable-smack was given.
5019if test "${enable_smack+set}" = set; then :
5020  enableval=$enable_smack;
5021else
5022  enable_smack="yes"
5023fi
5024
5025if test "$enable_smack" = "yes"; then
5026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027$as_echo "no" >&6; }
5028  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
5029if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
5030  true
5031else
5032  enable_smack="no"
5033fi
5034
5035
5036else
5037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5038$as_echo "yes" >&6; }
5039fi
5040if test "$enable_smack" = "yes"; then
5041  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
5042if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
5043  true
5044else
5045  enable_smack="no"
5046fi
5047
5048
5049fi
5050if test "$enable_smack" = "yes"; then
5051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
5052$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
5053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054/* end confdefs.h.  */
5055#include <linux/xattr.h>
5056_ACEOF
5057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5058  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5060$as_echo "yes" >&6; }
5061else
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }; enable_smack="no"
5064fi
5065rm -f conftest*
5066
5067fi
5068if test "$enable_smack" = "yes"; then
5069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
5070$as_echo_n "checking for setxattr in -lattr... " >&6; }
5071if ${ac_cv_lib_attr_setxattr+:} false; then :
5072  $as_echo_n "(cached) " >&6
5073else
5074  ac_check_lib_save_LIBS=$LIBS
5075LIBS="-lattr  $LIBS"
5076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078
5079/* Override any GCC internal prototype to avoid an error.
5080   Use char because int might match the return type of a GCC
5081   builtin and then its argument prototype would still apply.  */
5082#ifdef __cplusplus
5083extern "C"
5084#endif
5085char setxattr ();
5086int
5087main ()
5088{
5089return setxattr ();
5090  ;
5091  return 0;
5092}
5093_ACEOF
5094if ac_fn_c_try_link "$LINENO"; then :
5095  ac_cv_lib_attr_setxattr=yes
5096else
5097  ac_cv_lib_attr_setxattr=no
5098fi
5099rm -f core conftest.err conftest.$ac_objext \
5100    conftest$ac_exeext conftest.$ac_ext
5101LIBS=$ac_check_lib_save_LIBS
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
5104$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
5105if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
5106  LIBS="$LIBS -lattr"
5107	   found_smack="yes"
5108	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
5109
5110fi
5111
5112fi
5113
5114if test "x$found_smack" = "x"; then
5115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
5116$as_echo_n "checking --disable-selinux argument... " >&6; }
5117  # Check whether --enable-selinux was given.
5118if test "${enable_selinux+set}" = set; then :
5119  enableval=$enable_selinux;
5120else
5121  enable_selinux="yes"
5122fi
5123
5124  if test "$enable_selinux" = "yes"; then
5125    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126$as_echo "no" >&6; }
5127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
5128$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
5129if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
5130  $as_echo_n "(cached) " >&6
5131else
5132  ac_check_lib_save_LIBS=$LIBS
5133LIBS="-lselinux  $LIBS"
5134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135/* end confdefs.h.  */
5136
5137/* Override any GCC internal prototype to avoid an error.
5138   Use char because int might match the return type of a GCC
5139   builtin and then its argument prototype would still apply.  */
5140#ifdef __cplusplus
5141extern "C"
5142#endif
5143char is_selinux_enabled ();
5144int
5145main ()
5146{
5147return is_selinux_enabled ();
5148  ;
5149  return 0;
5150}
5151_ACEOF
5152if ac_fn_c_try_link "$LINENO"; then :
5153  ac_cv_lib_selinux_is_selinux_enabled=yes
5154else
5155  ac_cv_lib_selinux_is_selinux_enabled=no
5156fi
5157rm -f core conftest.err conftest.$ac_objext \
5158    conftest$ac_exeext conftest.$ac_ext
5159LIBS=$ac_check_lib_save_LIBS
5160fi
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
5162$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
5163if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
5164  ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
5165if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
5166  LIBS="$LIBS -lselinux"
5167	    $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5168
5169fi
5170
5171
5172fi
5173
5174  else
5175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5176$as_echo "yes" >&6; }
5177  fi
5178fi
5179
5180
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
5182$as_echo_n "checking --with-features argument... " >&6; }
5183
5184# Check whether --with-features was given.
5185if test "${with_features+set}" = set; then :
5186  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
5187$as_echo "$features" >&6; }
5188else
5189  features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5
5190$as_echo "Defaulting to huge" >&6; }
5191fi
5192
5193
5194dovimdiff=""
5195dogvimdiff=""
5196case "$features" in
5197  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
5198 ;;
5199  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
5200 ;;
5201  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
5202 dovimdiff="installvimdiff";
5203			dogvimdiff="installgvimdiff" ;;
5204  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
5205 dovimdiff="installvimdiff";
5206			dogvimdiff="installgvimdiff" ;;
5207  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
5208 dovimdiff="installvimdiff";
5209			dogvimdiff="installgvimdiff" ;;
5210  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
5211$as_echo "Sorry, $features is not supported" >&6; } ;;
5212esac
5213
5214
5215
5216
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
5218$as_echo_n "checking --with-compiledby argument... " >&6; }
5219
5220# Check whether --with-compiledby was given.
5221if test "${with_compiledby+set}" = set; then :
5222  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5223$as_echo "$withval" >&6; }
5224else
5225  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227fi
5228
5229
5230
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
5232$as_echo_n "checking --disable-xsmp argument... " >&6; }
5233# Check whether --enable-xsmp was given.
5234if test "${enable_xsmp+set}" = set; then :
5235  enableval=$enable_xsmp;
5236else
5237  enable_xsmp="yes"
5238fi
5239
5240
5241if test "$enable_xsmp" = "yes"; then
5242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
5244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
5245$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
5246  # Check whether --enable-xsmp-interact was given.
5247if test "${enable_xsmp_interact+set}" = set; then :
5248  enableval=$enable_xsmp_interact;
5249else
5250  enable_xsmp_interact="yes"
5251fi
5252
5253  if test "$enable_xsmp_interact" = "yes"; then
5254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
5256    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
5257
5258  else
5259    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5260$as_echo "yes" >&6; }
5261  fi
5262else
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5264$as_echo "yes" >&6; }
5265fi
5266
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
5268$as_echo_n "checking --enable-luainterp argument... " >&6; }
5269# Check whether --enable-luainterp was given.
5270if test "${enable_luainterp+set}" = set; then :
5271  enableval=$enable_luainterp;
5272else
5273  enable_luainterp="no"
5274fi
5275
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
5277$as_echo "$enable_luainterp" >&6; }
5278
5279if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
5280  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5281    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
5282  fi
5283
5284
5285
5286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
5287$as_echo_n "checking --with-lua-prefix argument... " >&6; }
5288
5289# Check whether --with-lua_prefix was given.
5290if test "${with_lua_prefix+set}" = set; then :
5291  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
5292$as_echo "$with_lua_prefix" >&6; }
5293else
5294  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295$as_echo "no" >&6; }
5296fi
5297
5298
5299  if test "X$with_lua_prefix" != "X"; then
5300       vi_cv_path_lua_pfx="$with_lua_prefix"
5301  else
5302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
5303$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
5304    if test "X$LUA_PREFIX" != "X"; then
5305	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
5306$as_echo "\"$LUA_PREFIX\"" >&6; }
5307	vi_cv_path_lua_pfx="$LUA_PREFIX"
5308    else
5309	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
5310$as_echo "not set, default to /usr" >&6; }
5311	vi_cv_path_lua_pfx="/usr"
5312    fi
5313  fi
5314
5315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
5316$as_echo_n "checking --with-luajit... " >&6; }
5317
5318# Check whether --with-luajit was given.
5319if test "${with_luajit+set}" = set; then :
5320  withval=$with_luajit; vi_cv_with_luajit="$withval"
5321else
5322  vi_cv_with_luajit="no"
5323fi
5324
5325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
5326$as_echo "$vi_cv_with_luajit" >&6; }
5327
5328  LUA_INC=
5329  if test "X$vi_cv_path_lua_pfx" != "X"; then
5330    if test "x$vi_cv_with_luajit" != "xno"; then
5331            # Extract the first word of "luajit", so it can be a program name with args.
5332set dummy luajit; ac_word=$2
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334$as_echo_n "checking for $ac_word... " >&6; }
5335if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
5336  $as_echo_n "(cached) " >&6
5337else
5338  case $vi_cv_path_luajit in
5339  [\\/]* | ?:[\\/]*)
5340  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
5341  ;;
5342  *)
5343  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346  IFS=$as_save_IFS
5347  test -z "$as_dir" && as_dir=.
5348    for ac_exec_ext in '' $ac_executable_extensions; do
5349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
5351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352    break 2
5353  fi
5354done
5355  done
5356IFS=$as_save_IFS
5357
5358  ;;
5359esac
5360fi
5361vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
5362if test -n "$vi_cv_path_luajit"; then
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
5364$as_echo "$vi_cv_path_luajit" >&6; }
5365else
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367$as_echo "no" >&6; }
5368fi
5369
5370
5371      if test "X$vi_cv_path_luajit" != "X"; then
5372		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
5373$as_echo_n "checking LuaJIT version... " >&6; }
5374if ${vi_cv_version_luajit+:} false; then :
5375  $as_echo_n "(cached) " >&6
5376else
5377   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
5378fi
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
5380$as_echo "$vi_cv_version_luajit" >&6; }
5381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
5382$as_echo_n "checking Lua version of LuaJIT... " >&6; }
5383if ${vi_cv_version_lua_luajit+:} false; then :
5384  $as_echo_n "(cached) " >&6
5385else
5386   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
5387fi
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
5389$as_echo "$vi_cv_version_lua_luajit" >&6; }
5390	vi_cv_path_lua="$vi_cv_path_luajit"
5391	vi_cv_version_lua="$vi_cv_version_lua_luajit"
5392      fi
5393    else
5394            # Extract the first word of "lua", so it can be a program name with args.
5395set dummy lua; ac_word=$2
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397$as_echo_n "checking for $ac_word... " >&6; }
5398if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
5399  $as_echo_n "(cached) " >&6
5400else
5401  case $vi_cv_path_plain_lua in
5402  [\\/]* | ?:[\\/]*)
5403  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
5404  ;;
5405  *)
5406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409  IFS=$as_save_IFS
5410  test -z "$as_dir" && as_dir=.
5411    for ac_exec_ext in '' $ac_executable_extensions; do
5412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
5414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415    break 2
5416  fi
5417done
5418  done
5419IFS=$as_save_IFS
5420
5421  ;;
5422esac
5423fi
5424vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
5425if test -n "$vi_cv_path_plain_lua"; then
5426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
5427$as_echo "$vi_cv_path_plain_lua" >&6; }
5428else
5429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430$as_echo "no" >&6; }
5431fi
5432
5433
5434      if test "X$vi_cv_path_plain_lua" != "X"; then
5435		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5436$as_echo_n "checking Lua version... " >&6; }
5437if ${vi_cv_version_plain_lua+:} false; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5441fi
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5443$as_echo "$vi_cv_version_plain_lua" >&6; }
5444      fi
5445      vi_cv_path_lua="$vi_cv_path_plain_lua"
5446      vi_cv_version_lua="$vi_cv_version_plain_lua"
5447    fi
5448    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5449      { $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
5450$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5451      if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then
5452	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5453$as_echo "yes" >&6; }
5454	LUA_INC=/luajit-$vi_cv_version_luajit
5455      fi
5456    fi
5457    if test "X$LUA_INC" = "X"; then
5458      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5459$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5460      if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then
5461	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462$as_echo "yes" >&6; }
5463      else
5464	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465$as_echo "no" >&6; }
5466	{ $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
5467$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5468	if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
5469	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470$as_echo "yes" >&6; }
5471	  LUA_INC=/lua$vi_cv_version_lua
5472	else
5473	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474$as_echo "no" >&6; }
5475	  vi_cv_path_lua_pfx=
5476	fi
5477      fi
5478    fi
5479  fi
5480
5481  if test "X$vi_cv_path_lua_pfx" != "X"; then
5482    if test "x$vi_cv_with_luajit" != "xno"; then
5483      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5484      if test "X$multiarch" != "X"; then
5485	lib_multiarch="lib/${multiarch}"
5486      else
5487	lib_multiarch="lib"
5488      fi
5489      if test "X$vi_cv_version_lua" = "X"; then
5490	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5491      else
5492	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5493      fi
5494    else
5495      if test "X$LUA_INC" != "X"; then
5496		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5497      else
5498	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5499      fi
5500    fi
5501    if test "$enable_luainterp" = "dynamic"; then
5502      lua_ok="yes"
5503    else
5504      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5505$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5506      libs_save=$LIBS
5507      LIBS="$LIBS $LUA_LIBS"
5508      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h.  */
5510
5511int
5512main ()
5513{
5514
5515  ;
5516  return 0;
5517}
5518_ACEOF
5519if ac_fn_c_try_link "$LINENO"; then :
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521$as_echo "yes" >&6; }; lua_ok="yes"
5522else
5523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5525fi
5526rm -f core conftest.err conftest.$ac_objext \
5527    conftest$ac_exeext conftest.$ac_ext
5528      LIBS=$libs_save
5529    fi
5530    if test "x$lua_ok" = "xyes"; then
5531      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5532      LUA_SRC="if_lua.c"
5533      LUA_OBJ="objects/if_lua.o"
5534      LUA_PRO="if_lua.pro"
5535      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5536
5537    fi
5538    if test "$enable_luainterp" = "dynamic"; then
5539      if test "x$vi_cv_with_luajit" != "xno"; then
5540	luajit="jit"
5541      fi
5542      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5543	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5544      else
5545	if test "x$MACOS_X" = "xyes"; then
5546	  ext="dylib"
5547	  indexes=""
5548	else
5549	  ext="so"
5550	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5551	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5552	  if test "X$multiarch" != "X"; then
5553	    lib_multiarch="lib/${multiarch}"
5554	  fi
5555	fi
5556			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5557$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5558	for subdir in "${lib_multiarch}" lib64 lib; do
5559	  if test -z "$subdir"; then
5560	    continue
5561	  fi
5562	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5563	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5564	    for i in $indexes ""; do
5565	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5566		sover2="$i"
5567		break 3
5568	      fi
5569	    done
5570	  done
5571	  sover=""
5572	done
5573	if test "X$sover" = "X"; then
5574	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }
5576	  lua_ok="no"
5577	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5578	else
5579	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580$as_echo "yes" >&6; }
5581	  lua_ok="yes"
5582	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5583	fi
5584      fi
5585      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5586
5587      LUA_LIBS=""
5588      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5589    fi
5590    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5591       test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5592       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5593            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5594    fi
5595  fi
5596  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5597    as_fn_error $? "could not configure lua" "$LINENO" 5
5598  fi
5599
5600
5601
5602
5603
5604fi
5605
5606
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5608$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5609# Check whether --enable-mzschemeinterp was given.
5610if test "${enable_mzschemeinterp+set}" = set; then :
5611  enableval=$enable_mzschemeinterp;
5612else
5613  enable_mzschemeinterp="no"
5614fi
5615
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5617$as_echo "$enable_mzschemeinterp" >&6; }
5618
5619if test "$enable_mzschemeinterp" = "yes"; then
5620
5621
5622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5623$as_echo_n "checking --with-plthome argument... " >&6; }
5624
5625# Check whether --with-plthome was given.
5626if test "${with_plthome+set}" = set; then :
5627  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5628$as_echo "$with_plthome" >&6; }
5629else
5630  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5631$as_echo "\"no\"" >&6; }
5632fi
5633
5634
5635  if test "X$with_plthome" != "X"; then
5636       vi_cv_path_mzscheme_pfx="$with_plthome"
5637       vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5638  else
5639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5640$as_echo_n "checking PLTHOME environment var... " >&6; }
5641    if test "X$PLTHOME" != "X"; then
5642	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5643$as_echo "\"$PLTHOME\"" >&6; }
5644	vi_cv_path_mzscheme_pfx="$PLTHOME"
5645	vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5646    else
5647	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5648$as_echo "not set" >&6; }
5649		# Extract the first word of "mzscheme", so it can be a program name with args.
5650set dummy mzscheme; ac_word=$2
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652$as_echo_n "checking for $ac_word... " >&6; }
5653if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5654  $as_echo_n "(cached) " >&6
5655else
5656  case $vi_cv_path_mzscheme in
5657  [\\/]* | ?:[\\/]*)
5658  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5659  ;;
5660  *)
5661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664  IFS=$as_save_IFS
5665  test -z "$as_dir" && as_dir=.
5666    for ac_exec_ext in '' $ac_executable_extensions; do
5667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670    break 2
5671  fi
5672done
5673  done
5674IFS=$as_save_IFS
5675
5676  ;;
5677esac
5678fi
5679vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5680if test -n "$vi_cv_path_mzscheme"; then
5681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5682$as_echo "$vi_cv_path_mzscheme" >&6; }
5683else
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685$as_echo "no" >&6; }
5686fi
5687
5688
5689
5690			if test "X$vi_cv_path_mzscheme" != "X"; then
5691	  lsout=`ls -l $vi_cv_path_mzscheme`
5692	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5693	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5694	  fi
5695	fi
5696
5697	if test "X$vi_cv_path_mzscheme" != "X"; then
5698	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5699$as_echo_n "checking MzScheme install prefix... " >&6; }
5700if ${vi_cv_path_mzscheme_pfx+:} false; then :
5701  $as_echo_n "(cached) " >&6
5702else
5703  	    	    echo "(display (simplify-path		\
5704	       (build-path (call-with-values	\
5705		(lambda () (split-path (find-system-path (quote exec-file)))) \
5706		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5707	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5708		sed -e 's+/$++'`
5709fi
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5711$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5712	    rm -f mzdirs.scm
5713	fi
5714    fi
5715  fi
5716
5717  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5
5719$as_echo_n "checking for racket include directory... " >&6; }
5720    SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'`
5721    if test "X$SCHEME_INC" != "X"; then
5722      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5
5723$as_echo "${SCHEME_INC}" >&6; }
5724    else
5725      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5726$as_echo "not found" >&6; }
5727      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5728$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5729      if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then
5730	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5731	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5732$as_echo "yes" >&6; }
5733      else
5734	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735$as_echo "no" >&6; }
5736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5737$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5738	if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then
5739	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5740$as_echo "yes" >&6; }
5741	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5742	else
5743	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
5745	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5746$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5747	  if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then
5748	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5749$as_echo "yes" >&6; }
5750	    SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5751	  else
5752	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753$as_echo "no" >&6; }
5754	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5755$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5756	    if test -f /usr/include/plt/scheme.h; then
5757	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5758$as_echo "yes" >&6; }
5759	      SCHEME_INC=/usr/include/plt
5760	    else
5761	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762$as_echo "no" >&6; }
5763	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5764$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5765	      if test -f /usr/include/racket/scheme.h; then
5766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5767$as_echo "yes" >&6; }
5768		SCHEME_INC=/usr/include/racket
5769	      else
5770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }
5772		vi_cv_path_mzscheme_pfx=
5773	      fi
5774	    fi
5775	  fi
5776	fi
5777      fi
5778    fi
5779  fi
5780
5781  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5782
5783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5
5784$as_echo_n "checking for racket lib directory... " >&6; }
5785    SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'`
5786    if test "X$SCHEME_LIB" != "X"; then
5787      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5
5788$as_echo "${SCHEME_LIB}" >&6; }
5789    else
5790      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5791$as_echo "not found" >&6; }
5792    fi
5793
5794    for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do
5795      if test "X$path" != "X"; then
5796	if test "x$MACOS_X" = "xyes"; then
5797	  MZSCHEME_LIBS="-framework Racket"
5798	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5799	elif test -f "${path}/libmzscheme3m.a"; then
5800	  MZSCHEME_LIBS="${path}/libmzscheme3m.a"
5801	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5802	elif test -f "${path}/libracket3m.a"; then
5803	  MZSCHEME_LIBS="${path}/libracket3m.a"
5804	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5805	elif test -f "${path}/libracket.a"; then
5806	  MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a"
5807	elif test -f "${path}/libmzscheme.a"; then
5808	  MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a"
5809	else
5810	  	  if test -f "${path}/libmzscheme3m.so"; then
5811	    MZSCHEME_LIBS="-L${path} -lmzscheme3m"
5812	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5813	  elif test -f "${path}/libracket3m.so"; then
5814	    MZSCHEME_LIBS="-L${path} -lracket3m"
5815	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5816	  elif test -f "${path}/libracket.so"; then
5817	    MZSCHEME_LIBS="-L${path} -lracket -lmzgc"
5818	  else
5819	    	    if test "$path" != "$SCHEME_LIB"; then
5820	      continue
5821	    fi
5822	    MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc"
5823	  fi
5824	  if test "$GCC" = yes; then
5825	    	    	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}"
5826	  elif test "`(uname) 2>/dev/null`" = SunOS &&
5827				   uname -r | grep '^5' >/dev/null; then
5828	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}"
5829	  fi
5830	fi
5831      fi
5832      if test "X$MZSCHEME_LIBS" != "X"; then
5833	break
5834      fi
5835    done
5836
5837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5
5838$as_echo_n "checking if racket requires -pthread... " >&6; }
5839    if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then
5840      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5841$as_echo "yes" >&6; }
5842      MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread"
5843      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread"
5844    else
5845      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846$as_echo "no" >&6; }
5847    fi
5848
5849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5
5850$as_echo_n "checking for racket config directory... " >&6; }
5851    SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'`
5852    if test "X$SCHEME_CONFIGDIR" != "X"; then
5853      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'"
5854      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5
5855$as_echo "${SCHEME_CONFIGDIR}" >&6; }
5856    else
5857      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5858$as_echo "not found" >&6; }
5859    fi
5860
5861    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5862$as_echo_n "checking for racket collects directory... " >&6; }
5863    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))))'`
5864    if test "X$SCHEME_COLLECTS" = "X"; then
5865      if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then
5866	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5867      else
5868	if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then
5869	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5870	else
5871	  if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then
5872	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5873	  else
5874	    if test -d "$vi_cv_path_mzscheme_pfx/collects"; then
5875	      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5876	    fi
5877	  fi
5878	fi
5879      fi
5880    fi
5881    if test "X$SCHEME_COLLECTS" != "X" ; then
5882      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5883$as_echo "${SCHEME_COLLECTS}" >&6; }
5884    else
5885      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5886$as_echo "not found" >&6; }
5887    fi
5888
5889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5890$as_echo_n "checking for mzscheme_base.c... " >&6; }
5891    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5892      MZSCHEME_EXTRA="mzscheme_base.c"
5893      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5894      MZSCHEME_MOD="++lib scheme/base"
5895    else
5896      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5897	MZSCHEME_EXTRA="mzscheme_base.c"
5898	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5899	MZSCHEME_MOD="++lib scheme/base"
5900      else
5901	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5902	  MZSCHEME_EXTRA="mzscheme_base.c"
5903	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5904	  MZSCHEME_MOD=""
5905	fi
5906      fi
5907    fi
5908    if test "X$MZSCHEME_EXTRA" != "X" ; then
5909            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5910      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5911$as_echo "needed" >&6; }
5912    else
5913      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5914$as_echo "not needed" >&6; }
5915    fi
5916
5917        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5918$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5919if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5920  $as_echo_n "(cached) " >&6
5921else
5922  ac_check_lib_save_LIBS=$LIBS
5923LIBS="-lffi  $LIBS"
5924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h.  */
5926
5927/* Override any GCC internal prototype to avoid an error.
5928   Use char because int might match the return type of a GCC
5929   builtin and then its argument prototype would still apply.  */
5930#ifdef __cplusplus
5931extern "C"
5932#endif
5933char ffi_type_void ();
5934int
5935main ()
5936{
5937return ffi_type_void ();
5938  ;
5939  return 0;
5940}
5941_ACEOF
5942if ac_fn_c_try_link "$LINENO"; then :
5943  ac_cv_lib_ffi_ffi_type_void=yes
5944else
5945  ac_cv_lib_ffi_ffi_type_void=no
5946fi
5947rm -f core conftest.err conftest.$ac_objext \
5948    conftest$ac_exeext conftest.$ac_ext
5949LIBS=$ac_check_lib_save_LIBS
5950fi
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5952$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5953if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5954  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5955fi
5956
5957
5958    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5959      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5960
5961        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5962$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5963    cflags_save=$CFLAGS
5964    libs_save=$LIBS
5965    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5966    LIBS="$LIBS $MZSCHEME_LIBS"
5967    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968/* end confdefs.h.  */
5969
5970int
5971main ()
5972{
5973
5974  ;
5975  return 0;
5976}
5977_ACEOF
5978if ac_fn_c_try_link "$LINENO"; then :
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5980$as_echo "yes" >&6; }; mzs_ok=yes
5981else
5982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
5983$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
5984fi
5985rm -f core conftest.err conftest.$ac_objext \
5986    conftest$ac_exeext conftest.$ac_ext
5987    CFLAGS=$cflags_save
5988    LIBS=$libs_save
5989    if test $mzs_ok = yes; then
5990      MZSCHEME_SRC="if_mzsch.c"
5991      MZSCHEME_OBJ="objects/if_mzsch.o"
5992      MZSCHEME_PRO="if_mzsch.pro"
5993      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
5994
5995    else
5996      MZSCHEME_CFLAGS=
5997      MZSCHEME_LIBS=
5998      MZSCHEME_EXTRA=
5999      MZSCHEME_MZC=
6000    fi
6001  fi
6002
6003
6004
6005
6006
6007
6008
6009fi
6010
6011
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
6013$as_echo_n "checking --enable-perlinterp argument... " >&6; }
6014# Check whether --enable-perlinterp was given.
6015if test "${enable_perlinterp+set}" = set; then :
6016  enableval=$enable_perlinterp;
6017else
6018  enable_perlinterp="no"
6019fi
6020
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
6022$as_echo "$enable_perlinterp" >&6; }
6023if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
6024  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6025    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
6026  fi
6027
6028  # Extract the first word of "perl", so it can be a program name with args.
6029set dummy perl; ac_word=$2
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031$as_echo_n "checking for $ac_word... " >&6; }
6032if ${ac_cv_path_vi_cv_path_perl+:} false; then :
6033  $as_echo_n "(cached) " >&6
6034else
6035  case $vi_cv_path_perl in
6036  [\\/]* | ?:[\\/]*)
6037  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
6038  ;;
6039  *)
6040  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041for as_dir in $PATH
6042do
6043  IFS=$as_save_IFS
6044  test -z "$as_dir" && as_dir=.
6045    for ac_exec_ext in '' $ac_executable_extensions; do
6046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6047    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
6048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049    break 2
6050  fi
6051done
6052  done
6053IFS=$as_save_IFS
6054
6055  ;;
6056esac
6057fi
6058vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
6059if test -n "$vi_cv_path_perl"; then
6060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
6061$as_echo "$vi_cv_path_perl" >&6; }
6062else
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067
6068  if test "X$vi_cv_path_perl" != "X"; then
6069    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
6070$as_echo_n "checking Perl version... " >&6; }
6071    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
6072     eval `$vi_cv_path_perl -V:usethreads`
6073     eval `$vi_cv_path_perl -V:libperl`
6074     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
6075       badthreads=no
6076     else
6077       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
6078	 eval `$vi_cv_path_perl -V:use5005threads`
6079	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
6080	   badthreads=no
6081	 else
6082	   badthreads=yes
6083	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
6084$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
6085	 fi
6086       else
6087	 badthreads=yes
6088	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
6089$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
6090       fi
6091     fi
6092     if test $badthreads = no; then
6093      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
6094$as_echo "OK" >&6; }
6095      eval `$vi_cv_path_perl -V:shrpenv`
6096      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
6097	shrpenv=""
6098      fi
6099      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
6100
6101      vi_cv_perl_extutils=unknown_perl_extutils_path
6102      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
6103	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
6104	if test -f "$xsubpp_path"; then
6105	  vi_cv_perl_xsubpp="$xsubpp_path"
6106	fi
6107      done
6108
6109                              perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
6110		-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
6111		-e 's/-fdebug-prefix-map[^ ]*//g' \
6112		-e 's/-pipe //' \
6113		-e 's/-W[^ ]*//g' \
6114		-e 's/-D_FORTIFY_SOURCE=.//g'`
6115            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
6116		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
6117			-e 's/-bE:perl.exp//' -e 's/-lc //'`
6118                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
6119		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
6120
6121                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
6122$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
6123      cflags_save=$CFLAGS
6124      libs_save=$LIBS
6125      ldflags_save=$LDFLAGS
6126      CFLAGS="$CFLAGS $perlcppflags"
6127      LIBS="$LIBS $perllibs"
6128      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
6129      LDFLAGS="$perlldflags $LDFLAGS"
6130      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h.  */
6132
6133int
6134main ()
6135{
6136
6137  ;
6138  return 0;
6139}
6140_ACEOF
6141if ac_fn_c_try_link "$LINENO"; then :
6142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6143$as_echo "yes" >&6; }; perl_ok=yes
6144else
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
6146$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
6147fi
6148rm -f core conftest.err conftest.$ac_objext \
6149    conftest$ac_exeext conftest.$ac_ext
6150      CFLAGS=$cflags_save
6151      LIBS=$libs_save
6152      LDFLAGS=$ldflags_save
6153      if test $perl_ok = yes; then
6154	if test "X$perlcppflags" != "X"; then
6155	  PERL_CFLAGS=$perlcppflags
6156	fi
6157	if test "X$perlldflags" != "X"; then
6158	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
6159	    LDFLAGS="$perlldflags $LDFLAGS"
6160	  fi
6161	fi
6162	PERL_LIBS=$perllibs
6163	PERL_SRC="auto/if_perl.c if_perlsfio.c"
6164	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
6165	PERL_PRO="if_perl.pro if_perlsfio.pro"
6166	$as_echo "#define FEAT_PERL 1" >>confdefs.h
6167
6168      fi
6169     fi
6170    else
6171      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
6172$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
6173    fi
6174  fi
6175
6176  if test "x$MACOS_X" = "xyes"; then
6177        dir=/System/Library/Perl
6178    darwindir=$dir/darwin
6179    if test -d $darwindir; then
6180      PERL=/usr/bin/perl
6181    else
6182            dir=/System/Library/Perl/5.8.1
6183      darwindir=$dir/darwin-thread-multi-2level
6184      if test -d $darwindir; then
6185	PERL=/usr/bin/perl
6186      fi
6187    fi
6188    if test -n "$PERL"; then
6189      PERL_DIR="$dir"
6190      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
6191      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
6192      PERL_LIBS="-L$darwindir/CORE -lperl"
6193    fi
6194                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6195    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6196  fi
6197  if test "$enable_perlinterp" = "dynamic"; then
6198    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
6199      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
6200
6201      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
6202    fi
6203  fi
6204
6205  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
6206    as_fn_error $? "could not configure perl" "$LINENO" 5
6207  fi
6208fi
6209
6210
6211
6212
6213
6214
6215
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
6217$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
6218# Check whether --enable-pythoninterp was given.
6219if test "${enable_pythoninterp+set}" = set; then :
6220  enableval=$enable_pythoninterp;
6221else
6222  enable_pythoninterp="no"
6223fi
6224
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
6226$as_echo "$enable_pythoninterp" >&6; }
6227if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
6228  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6229    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6230  fi
6231
6232    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5
6233$as_echo_n "checking --with-python-command argument... " >&6; }
6234
6235
6236# Check whether --with-python-command was given.
6237if test "${with_python_command+set}" = set; then :
6238  withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6239$as_echo "$vi_cv_path_python" >&6; }
6240else
6241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242$as_echo "no" >&6; }
6243fi
6244
6245
6246  if test "X$vi_cv_path_python" = "X"; then
6247    for ac_prog in python2 python
6248do
6249  # Extract the first word of "$ac_prog", so it can be a program name with args.
6250set dummy $ac_prog; ac_word=$2
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252$as_echo_n "checking for $ac_word... " >&6; }
6253if ${ac_cv_path_vi_cv_path_python+:} false; then :
6254  $as_echo_n "(cached) " >&6
6255else
6256  case $vi_cv_path_python in
6257  [\\/]* | ?:[\\/]*)
6258  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
6259  ;;
6260  *)
6261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262for as_dir in $PATH
6263do
6264  IFS=$as_save_IFS
6265  test -z "$as_dir" && as_dir=.
6266    for ac_exec_ext in '' $ac_executable_extensions; do
6267  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
6269    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270    break 2
6271  fi
6272done
6273  done
6274IFS=$as_save_IFS
6275
6276  ;;
6277esac
6278fi
6279vi_cv_path_python=$ac_cv_path_vi_cv_path_python
6280if test -n "$vi_cv_path_python"; then
6281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6282$as_echo "$vi_cv_path_python" >&6; }
6283else
6284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285$as_echo "no" >&6; }
6286fi
6287
6288
6289  test -n "$vi_cv_path_python" && break
6290done
6291
6292  fi
6293  if test "X$vi_cv_path_python" != "X"; then
6294
6295        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6296$as_echo_n "checking Python version... " >&6; }
6297if ${vi_cv_var_python_version+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  vi_cv_var_python_version=`
6301	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
6302
6303fi
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
6305$as_echo "$vi_cv_var_python_version" >&6; }
6306
6307        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
6308$as_echo_n "checking Python is 2.3 or better... " >&6; }
6309    if ${vi_cv_path_python} -c \
6310	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
6311    then
6312      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6313$as_echo "yep" >&6; }
6314
6315            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6316$as_echo_n "checking Python's install prefix... " >&6; }
6317if ${vi_cv_path_python_pfx+:} false; then :
6318  $as_echo_n "(cached) " >&6
6319else
6320   vi_cv_path_python_pfx=`
6321	    ${vi_cv_path_python} -c \
6322		"import sys; print sys.prefix"`
6323fi
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
6325$as_echo "$vi_cv_path_python_pfx" >&6; }
6326
6327            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6328$as_echo_n "checking Python's execution prefix... " >&6; }
6329if ${vi_cv_path_python_epfx+:} false; then :
6330  $as_echo_n "(cached) " >&6
6331else
6332   vi_cv_path_python_epfx=`
6333	    ${vi_cv_path_python} -c \
6334		"import sys; print sys.exec_prefix"`
6335fi
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
6337$as_echo "$vi_cv_path_python_epfx" >&6; }
6338
6339
6340      if ${vi_cv_path_pythonpath+:} false; then :
6341  $as_echo_n "(cached) " >&6
6342else
6343   vi_cv_path_pythonpath=`
6344	    unset PYTHONPATH;
6345	    ${vi_cv_path_python} -c \
6346		"import sys, string; print string.join(sys.path,':')"`
6347fi
6348
6349
6350
6351
6352# Check whether --with-python-config-dir was given.
6353if test "${with_python_config_dir+set}" = set; then :
6354  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"; have_python_config_dir=1
6355fi
6356
6357
6358      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6359$as_echo_n "checking Python's configuration directory... " >&6; }
6360if ${vi_cv_path_python_conf+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363
6364	vi_cv_path_python_conf=
6365	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
6366	if test -d "$d" && test -f "$d/config.c"; then
6367	  vi_cv_path_python_conf="$d"
6368	else
6369	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
6370	    for subdir in lib64 lib share; do
6371	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
6372	      if test -d "$d" && test -f "$d/config.c"; then
6373		vi_cv_path_python_conf="$d"
6374	      fi
6375	    done
6376	  done
6377	fi
6378
6379fi
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
6381$as_echo "$vi_cv_path_python_conf" >&6; }
6382
6383      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
6384
6385      if test "X$PYTHON_CONFDIR" = "X"; then
6386	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6387$as_echo "can't find it!" >&6; }
6388      else
6389
6390			if ${vi_cv_path_python_plibs+:} false; then :
6391  $as_echo_n "(cached) " >&6
6392else
6393
6394	    pwd=`pwd`
6395	    tmp_mkf="$pwd/config-PyMake$$"
6396	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6397__:
6398	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
6399	@echo "python_LIBS='$(LIBS)'"
6400	@echo "python_SYSLIBS='$(SYSLIBS)'"
6401	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
6402	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
6403	@echo "python_INSTSONAME='$(INSTSONAME)'"
6404	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
6405	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
6406	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
6407eof
6408	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6409	    rm -f -- "${tmp_mkf}"
6410	    if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
6411		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
6412	      vi_cv_path_python_plibs="-framework Python"
6413	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6414		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
6415	      fi
6416	    else
6417	      vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
6418	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6419	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
6420		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
6421	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6422	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
6423		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6424		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
6425	            	            		  fi
6426	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
6427	        fi
6428	      fi
6429	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
6430	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
6431	    fi
6432
6433fi
6434
6435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
6436$as_echo_n "checking Python's dll name... " >&6; }
6437if ${vi_cv_dll_name_python+:} false; then :
6438  $as_echo_n "(cached) " >&6
6439else
6440
6441	  if test "X$python_DLLLIBRARY" != "X"; then
6442	    vi_cv_dll_name_python="$python_DLLLIBRARY"
6443	  else
6444	    vi_cv_dll_name_python="$python_INSTSONAME"
6445	  fi
6446
6447fi
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
6449$as_echo "$vi_cv_dll_name_python" >&6; }
6450
6451	PYTHON_LIBS="${vi_cv_path_python_plibs}"
6452	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
6453	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
6454	else
6455	  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}"
6456	fi
6457	if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then
6458	  	  PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6459
6460	fi
6461	PYTHON_SRC="if_python.c"
6462	PYTHON_OBJ="objects/if_python.o"
6463
6464								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6465$as_echo_n "checking if -pthread should be used... " >&6; }
6466	threadsafe_flag=
6467	thread_lib=
6468	        if test "`(uname) 2>/dev/null`" != Darwin; then
6469	  test "$GCC" = yes && threadsafe_flag="-pthread"
6470	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
6471	    threadsafe_flag="-D_THREAD_SAFE"
6472	    thread_lib="-pthread"
6473	  fi
6474	  if test "`(uname) 2>/dev/null`" = SunOS; then
6475	    threadsafe_flag="-pthreads"
6476	  fi
6477	fi
6478	libs_save_old=$LIBS
6479	if test -n "$threadsafe_flag"; then
6480	  cflags_save=$CFLAGS
6481	  CFLAGS="$CFLAGS $threadsafe_flag"
6482	  LIBS="$LIBS $thread_lib"
6483	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h.  */
6485
6486int
6487main ()
6488{
6489
6490  ;
6491  return 0;
6492}
6493_ACEOF
6494if ac_fn_c_try_link "$LINENO"; then :
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6496$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
6497else
6498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499$as_echo "no" >&6; }; LIBS=$libs_save_old
6500
6501fi
6502rm -f core conftest.err conftest.$ac_objext \
6503    conftest$ac_exeext conftest.$ac_ext
6504	  CFLAGS=$cflags_save
6505	else
6506	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507$as_echo "no" >&6; }
6508	fi
6509
6510			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6511$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6512	cflags_save=$CFLAGS
6513	libs_save=$LIBS
6514	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6515	LIBS="$LIBS $PYTHON_LIBS"
6516	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517/* end confdefs.h.  */
6518
6519int
6520main ()
6521{
6522
6523  ;
6524  return 0;
6525}
6526_ACEOF
6527if ac_fn_c_try_link "$LINENO"; then :
6528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6529$as_echo "yes" >&6; }; python_ok=yes
6530else
6531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6532$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6533fi
6534rm -f core conftest.err conftest.$ac_objext \
6535    conftest$ac_exeext conftest.$ac_ext
6536	CFLAGS=$cflags_save
6537	LIBS=$libs_save
6538	if test $python_ok = yes; then
6539	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6540
6541	else
6542	  LIBS=$libs_save_old
6543	  PYTHON_SRC=
6544	  PYTHON_OBJ=
6545	  PYTHON_LIBS=
6546	  PYTHON_CFLAGS=
6547	fi
6548      fi
6549    else
6550      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6551$as_echo "too old" >&6; }
6552    fi
6553  fi
6554
6555  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6556    as_fn_error $? "could not configure python" "$LINENO" 5
6557  fi
6558fi
6559
6560
6561
6562
6563
6564
6565
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6567$as_echo_n "checking --enable-python3interp argument... " >&6; }
6568# Check whether --enable-python3interp was given.
6569if test "${enable_python3interp+set}" = set; then :
6570  enableval=$enable_python3interp;
6571else
6572  enable_python3interp="no"
6573fi
6574
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6576$as_echo "$enable_python3interp" >&6; }
6577if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6578  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6579    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6580  fi
6581
6582    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5
6583$as_echo_n "checking --with-python3-command argument... " >&6; }
6584
6585
6586# Check whether --with-python3-command was given.
6587if test "${with_python3_command+set}" = set; then :
6588  withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6589$as_echo "$vi_cv_path_python3" >&6; }
6590else
6591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592$as_echo "no" >&6; }
6593fi
6594
6595
6596  if test "X$vi_cv_path_python3" = "X"; then
6597    for ac_prog in python3 python
6598do
6599  # Extract the first word of "$ac_prog", so it can be a program name with args.
6600set dummy $ac_prog; ac_word=$2
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602$as_echo_n "checking for $ac_word... " >&6; }
6603if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6604  $as_echo_n "(cached) " >&6
6605else
6606  case $vi_cv_path_python3 in
6607  [\\/]* | ?:[\\/]*)
6608  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6609  ;;
6610  *)
6611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614  IFS=$as_save_IFS
6615  test -z "$as_dir" && as_dir=.
6616    for ac_exec_ext in '' $ac_executable_extensions; do
6617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620    break 2
6621  fi
6622done
6623  done
6624IFS=$as_save_IFS
6625
6626  ;;
6627esac
6628fi
6629vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6630if test -n "$vi_cv_path_python3"; then
6631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6632$as_echo "$vi_cv_path_python3" >&6; }
6633else
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635$as_echo "no" >&6; }
6636fi
6637
6638
6639  test -n "$vi_cv_path_python3" && break
6640done
6641
6642  fi
6643  if test "X$vi_cv_path_python3" != "X"; then
6644
6645        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6646$as_echo_n "checking Python version... " >&6; }
6647if ${vi_cv_var_python3_version+:} false; then :
6648  $as_echo_n "(cached) " >&6
6649else
6650  vi_cv_var_python3_version=`
6651          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6652
6653fi
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6655$as_echo "$vi_cv_var_python3_version" >&6; }
6656
6657        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6658$as_echo_n "checking Python is 3.0 or better... " >&6; }
6659    if ${vi_cv_path_python3} -c \
6660      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6661    then
6662      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6663$as_echo "yep" >&6; }
6664
6665            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6666$as_echo_n "checking Python's abiflags... " >&6; }
6667if ${vi_cv_var_python3_abiflags+:} false; then :
6668  $as_echo_n "(cached) " >&6
6669else
6670
6671       vi_cv_var_python3_abiflags=
6672       if ${vi_cv_path_python3} -c \
6673           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6674       then
6675         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6676           "import sys; print(sys.abiflags)"`
6677       fi
6678fi
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6680$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6681
6682            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6683$as_echo_n "checking Python's install prefix... " >&6; }
6684if ${vi_cv_path_python3_pfx+:} false; then :
6685  $as_echo_n "(cached) " >&6
6686else
6687   vi_cv_path_python3_pfx=`
6688       ${vi_cv_path_python3} -c \
6689       "import sys; print(sys.prefix)"`
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6692$as_echo "$vi_cv_path_python3_pfx" >&6; }
6693
6694            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6695$as_echo_n "checking Python's execution prefix... " >&6; }
6696if ${vi_cv_path_python3_epfx+:} false; then :
6697  $as_echo_n "(cached) " >&6
6698else
6699   vi_cv_path_python3_epfx=`
6700       ${vi_cv_path_python3} -c \
6701       "import sys; print(sys.exec_prefix)"`
6702fi
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6704$as_echo "$vi_cv_path_python3_epfx" >&6; }
6705
6706
6707      if ${vi_cv_path_python3path+:} false; then :
6708  $as_echo_n "(cached) " >&6
6709else
6710   vi_cv_path_python3path=`
6711       unset PYTHONPATH;
6712       ${vi_cv_path_python3} -c \
6713       "import sys, string; print(':'.join(sys.path))"`
6714fi
6715
6716
6717
6718
6719# Check whether --with-python3-config-dir was given.
6720if test "${with_python3_config_dir+set}" = set; then :
6721  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1
6722fi
6723
6724
6725      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6726$as_echo_n "checking Python's configuration directory... " >&6; }
6727if ${vi_cv_path_python3_conf+:} false; then :
6728  $as_echo_n "(cached) " >&6
6729else
6730
6731       vi_cv_path_python3_conf=
6732       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6733       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6734       if test -d "$d" && test -f "$d/config.c"; then
6735         vi_cv_path_python3_conf="$d"
6736       else
6737         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6738	   for subdir in lib64 lib share; do
6739	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6740	     if test -d "$d" && test -f "$d/config.c"; then
6741	       vi_cv_path_python3_conf="$d"
6742	     fi
6743	   done
6744         done
6745       fi
6746
6747fi
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6749$as_echo "$vi_cv_path_python3_conf" >&6; }
6750
6751      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6752
6753      if test "X$PYTHON3_CONFDIR" = "X"; then
6754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6755$as_echo "can't find it!" >&6; }
6756      else
6757
6758                        if ${vi_cv_path_python3_plibs+:} false; then :
6759  $as_echo_n "(cached) " >&6
6760else
6761
6762            pwd=`pwd`
6763            tmp_mkf="$pwd/config-PyMake$$"
6764            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6765__:
6766	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6767	@echo "python3_LIBS='$(LIBS)'"
6768	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6769	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6770	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6771eof
6772	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6773	    rm -f -- "${tmp_mkf}"
6774	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6775	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6776	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6777	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6778
6779fi
6780
6781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
6782$as_echo_n "checking Python3's dll name... " >&6; }
6783if ${vi_cv_dll_name_python3+:} false; then :
6784  $as_echo_n "(cached) " >&6
6785else
6786
6787	  if test "X$python3_DLLLIBRARY" != "X"; then
6788	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6789	  else
6790	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6791	  fi
6792
6793fi
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
6795$as_echo "$vi_cv_dll_name_python3" >&6; }
6796
6797        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6798        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6799          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6800        else
6801          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}"
6802        fi
6803	if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then
6804	  	  PYTHON3_CFLAGS="${PYTHON3_CFLAGS}  -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6805	fi
6806        PYTHON3_SRC="if_python3.c"
6807        PYTHON3_OBJ="objects/if_python3.o"
6808
6809                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6810$as_echo_n "checking if -pthread should be used... " >&6; }
6811        threadsafe_flag=
6812        thread_lib=
6813                if test "`(uname) 2>/dev/null`" != Darwin; then
6814          test "$GCC" = yes && threadsafe_flag="-pthread"
6815          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6816            threadsafe_flag="-D_THREAD_SAFE"
6817            thread_lib="-pthread"
6818          fi
6819          if test "`(uname) 2>/dev/null`" = SunOS; then
6820            threadsafe_flag="-pthreads"
6821          fi
6822        fi
6823        libs_save_old=$LIBS
6824        if test -n "$threadsafe_flag"; then
6825          cflags_save=$CFLAGS
6826          CFLAGS="$CFLAGS $threadsafe_flag"
6827          LIBS="$LIBS $thread_lib"
6828          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830
6831int
6832main ()
6833{
6834
6835  ;
6836  return 0;
6837}
6838_ACEOF
6839if ac_fn_c_try_link "$LINENO"; then :
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6841$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6842else
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844$as_echo "no" >&6; }; LIBS=$libs_save_old
6845
6846fi
6847rm -f core conftest.err conftest.$ac_objext \
6848    conftest$ac_exeext conftest.$ac_ext
6849          CFLAGS=$cflags_save
6850        else
6851          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
6853        fi
6854
6855                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6856$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6857        cflags_save=$CFLAGS
6858        libs_save=$LIBS
6859        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6860        LIBS="$LIBS $PYTHON3_LIBS"
6861        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862/* end confdefs.h.  */
6863
6864int
6865main ()
6866{
6867
6868  ;
6869  return 0;
6870}
6871_ACEOF
6872if ac_fn_c_try_link "$LINENO"; then :
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6874$as_echo "yes" >&6; }; python3_ok=yes
6875else
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6877$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6878fi
6879rm -f core conftest.err conftest.$ac_objext \
6880    conftest$ac_exeext conftest.$ac_ext
6881        CFLAGS=$cflags_save
6882        LIBS=$libs_save
6883        if test "$python3_ok" = yes; then
6884          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6885
6886        else
6887          LIBS=$libs_save_old
6888          PYTHON3_SRC=
6889          PYTHON3_OBJ=
6890          PYTHON3_LIBS=
6891          PYTHON3_CFLAGS=
6892        fi
6893      fi
6894    else
6895      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6896$as_echo "too old" >&6; }
6897    fi
6898  fi
6899  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6900    as_fn_error $? "could not configure python3" "$LINENO" 5
6901  fi
6902fi
6903
6904
6905
6906
6907
6908
6909if test "$python_ok" = yes && test "$python3_ok" = yes; then
6910  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6911
6912  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6913
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6915$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6916  cflags_save=$CFLAGS
6917  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6918  libs_save=$LIBS
6919    LIBS="-ldl $LIBS"
6920  if test "$cross_compiling" = yes; then :
6921  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6923as_fn_error $? "cannot run test program while cross compiling
6924See \`config.log' for more details" "$LINENO" 5; }
6925else
6926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h.  */
6928
6929    #include <dlfcn.h>
6930    /* If this program fails, then RTLD_GLOBAL is needed.
6931     * RTLD_GLOBAL will be used and then it is not possible to
6932     * have both python versions enabled in the same vim instance.
6933     * Only the first python version used will be switched on.
6934     */
6935
6936    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6937    {
6938      int needed = 0;
6939      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6940      if (pylib != 0)
6941      {
6942          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6943          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6944          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6945          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6946          (*pfx)(prefix);
6947          (*init)();
6948          needed = (*simple)("import termios") == -1;
6949          (*final)();
6950          dlclose(pylib);
6951      }
6952      return !needed;
6953    }
6954
6955    int main(int argc, char** argv)
6956    {
6957      int not_needed = 0;
6958      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6959            not_needed = 1;
6960      return !not_needed;
6961    }
6962_ACEOF
6963if ac_fn_c_try_run "$LINENO"; then :
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6965$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6966
6967else
6968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969$as_echo "no" >&6; }
6970fi
6971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6972  conftest.$ac_objext conftest.beam conftest.$ac_ext
6973fi
6974
6975
6976  CFLAGS=$cflags_save
6977  LIBS=$libs_save
6978
6979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
6980$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
6981  cflags_save=$CFLAGS
6982  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6983  libs_save=$LIBS
6984    LIBS="-ldl $LIBS"
6985  if test "$cross_compiling" = yes; then :
6986  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6988as_fn_error $? "cannot run test program while cross compiling
6989See \`config.log' for more details" "$LINENO" 5; }
6990else
6991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992/* end confdefs.h.  */
6993
6994    #include <dlfcn.h>
6995    #include <wchar.h>
6996    /* If this program fails, then RTLD_GLOBAL is needed.
6997     * RTLD_GLOBAL will be used and then it is not possible to
6998     * have both python versions enabled in the same vim instance.
6999     * Only the first python version used will be switched on.
7000     */
7001
7002    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
7003    {
7004      int needed = 0;
7005      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
7006      if (pylib != 0)
7007      {
7008          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
7009          void (*init)(void) = dlsym(pylib, "Py_Initialize");
7010          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
7011          void (*final)(void) = dlsym(pylib, "Py_Finalize");
7012          (*pfx)(prefix);
7013          (*init)();
7014          needed = (*simple)("import termios") == -1;
7015          (*final)();
7016          dlclose(pylib);
7017      }
7018      return !needed;
7019    }
7020
7021    int main(int argc, char** argv)
7022    {
7023      int not_needed = 0;
7024      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
7025            not_needed = 1;
7026      return !not_needed;
7027    }
7028_ACEOF
7029if ac_fn_c_try_run "$LINENO"; then :
7030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7031$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
7032
7033else
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035$as_echo "no" >&6; }
7036fi
7037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7038  conftest.$ac_objext conftest.beam conftest.$ac_ext
7039fi
7040
7041
7042  CFLAGS=$cflags_save
7043  LIBS=$libs_save
7044
7045  PYTHON_SRC="if_python.c"
7046  PYTHON_OBJ="objects/if_python.o"
7047  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7048  PYTHON_LIBS=
7049  PYTHON3_SRC="if_python3.c"
7050  PYTHON3_OBJ="objects/if_python3.o"
7051  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7052  PYTHON3_LIBS=
7053elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
7054  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
7055
7056  PYTHON_SRC="if_python.c"
7057  PYTHON_OBJ="objects/if_python.o"
7058  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7059  PYTHON_LIBS=
7060elif test "$python_ok" = yes; then
7061      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
7062$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
7063  cflags_save=$CFLAGS
7064  libs_save=$LIBS
7065  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
7066  LIBS="$LIBS $PYTHON_LIBS"
7067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069
7070int
7071main ()
7072{
7073
7074  ;
7075  return 0;
7076}
7077_ACEOF
7078if ac_fn_c_try_link "$LINENO"; then :
7079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7080$as_echo "yes" >&6; }; fpie_ok=yes
7081else
7082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083$as_echo "no" >&6; }; fpie_ok=no
7084fi
7085rm -f core conftest.err conftest.$ac_objext \
7086    conftest$ac_exeext conftest.$ac_ext
7087  CFLAGS=$cflags_save
7088  LIBS=$libs_save
7089  if test $fpie_ok = yes; then
7090    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
7091  fi
7092elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
7093  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
7094
7095  PYTHON3_SRC="if_python3.c"
7096  PYTHON3_OBJ="objects/if_python3.o"
7097  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7098  PYTHON3_LIBS=
7099elif test "$python3_ok" = yes; then
7100      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
7101$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
7102  cflags_save=$CFLAGS
7103  libs_save=$LIBS
7104  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
7105  LIBS="$LIBS $PYTHON3_LIBS"
7106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107/* end confdefs.h.  */
7108
7109int
7110main ()
7111{
7112
7113  ;
7114  return 0;
7115}
7116_ACEOF
7117if ac_fn_c_try_link "$LINENO"; then :
7118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7119$as_echo "yes" >&6; }; fpie_ok=yes
7120else
7121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122$as_echo "no" >&6; }; fpie_ok=no
7123fi
7124rm -f core conftest.err conftest.$ac_objext \
7125    conftest$ac_exeext conftest.$ac_ext
7126  CFLAGS=$cflags_save
7127  LIBS=$libs_save
7128  if test $fpie_ok = yes; then
7129    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
7130  fi
7131fi
7132
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
7134$as_echo_n "checking --enable-tclinterp argument... " >&6; }
7135# Check whether --enable-tclinterp was given.
7136if test "${enable_tclinterp+set}" = set; then :
7137  enableval=$enable_tclinterp;
7138else
7139  enable_tclinterp="no"
7140fi
7141
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
7143$as_echo "$enable_tclinterp" >&6; }
7144
7145if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then
7146
7147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
7148$as_echo_n "checking --with-tclsh argument... " >&6; }
7149
7150# Check whether --with-tclsh was given.
7151if test "${with_tclsh+set}" = set; then :
7152  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
7153$as_echo "$tclsh_name" >&6; }
7154else
7155  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156$as_echo "no" >&6; }
7157fi
7158
7159  # Extract the first word of "$tclsh_name", so it can be a program name with args.
7160set dummy $tclsh_name; ac_word=$2
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162$as_echo_n "checking for $ac_word... " >&6; }
7163if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7164  $as_echo_n "(cached) " >&6
7165else
7166  case $vi_cv_path_tcl in
7167  [\\/]* | ?:[\\/]*)
7168  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7169  ;;
7170  *)
7171  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176    for ac_exec_ext in '' $ac_executable_extensions; do
7177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183  done
7184IFS=$as_save_IFS
7185
7186  ;;
7187esac
7188fi
7189vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7190if test -n "$vi_cv_path_tcl"; then
7191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7192$as_echo "$vi_cv_path_tcl" >&6; }
7193else
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195$as_echo "no" >&6; }
7196fi
7197
7198
7199
7200
7201    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
7202    tclsh_name="tclsh8.4"
7203    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7204set dummy $tclsh_name; ac_word=$2
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206$as_echo_n "checking for $ac_word... " >&6; }
7207if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7208  $as_echo_n "(cached) " >&6
7209else
7210  case $vi_cv_path_tcl in
7211  [\\/]* | ?:[\\/]*)
7212  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7213  ;;
7214  *)
7215  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218  IFS=$as_save_IFS
7219  test -z "$as_dir" && as_dir=.
7220    for ac_exec_ext in '' $ac_executable_extensions; do
7221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224    break 2
7225  fi
7226done
7227  done
7228IFS=$as_save_IFS
7229
7230  ;;
7231esac
7232fi
7233vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7234if test -n "$vi_cv_path_tcl"; then
7235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7236$as_echo "$vi_cv_path_tcl" >&6; }
7237else
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240fi
7241
7242
7243  fi
7244  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
7245    tclsh_name="tclsh8.2"
7246    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7247set dummy $tclsh_name; ac_word=$2
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249$as_echo_n "checking for $ac_word... " >&6; }
7250if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  case $vi_cv_path_tcl in
7254  [\\/]* | ?:[\\/]*)
7255  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7256  ;;
7257  *)
7258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261  IFS=$as_save_IFS
7262  test -z "$as_dir" && as_dir=.
7263    for ac_exec_ext in '' $ac_executable_extensions; do
7264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267    break 2
7268  fi
7269done
7270  done
7271IFS=$as_save_IFS
7272
7273  ;;
7274esac
7275fi
7276vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7277if test -n "$vi_cv_path_tcl"; then
7278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7279$as_echo "$vi_cv_path_tcl" >&6; }
7280else
7281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282$as_echo "no" >&6; }
7283fi
7284
7285
7286  fi
7287  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
7288    tclsh_name="tclsh8.0"
7289    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7290set dummy $tclsh_name; ac_word=$2
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292$as_echo_n "checking for $ac_word... " >&6; }
7293if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7294  $as_echo_n "(cached) " >&6
7295else
7296  case $vi_cv_path_tcl in
7297  [\\/]* | ?:[\\/]*)
7298  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7299  ;;
7300  *)
7301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304  IFS=$as_save_IFS
7305  test -z "$as_dir" && as_dir=.
7306    for ac_exec_ext in '' $ac_executable_extensions; do
7307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310    break 2
7311  fi
7312done
7313  done
7314IFS=$as_save_IFS
7315
7316  ;;
7317esac
7318fi
7319vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7320if test -n "$vi_cv_path_tcl"; then
7321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7322$as_echo "$vi_cv_path_tcl" >&6; }
7323else
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325$as_echo "no" >&6; }
7326fi
7327
7328
7329  fi
7330    if test "X$vi_cv_path_tcl" = "X"; then
7331    tclsh_name="tclsh"
7332    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7333set dummy $tclsh_name; ac_word=$2
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339  case $vi_cv_path_tcl in
7340  [\\/]* | ?:[\\/]*)
7341  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7342  ;;
7343  *)
7344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347  IFS=$as_save_IFS
7348  test -z "$as_dir" && as_dir=.
7349    for ac_exec_ext in '' $ac_executable_extensions; do
7350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353    break 2
7354  fi
7355done
7356  done
7357IFS=$as_save_IFS
7358
7359  ;;
7360esac
7361fi
7362vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7363if test -n "$vi_cv_path_tcl"; then
7364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7365$as_echo "$vi_cv_path_tcl" >&6; }
7366else
7367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368$as_echo "no" >&6; }
7369fi
7370
7371
7372  fi
7373  if test "X$vi_cv_path_tcl" != "X"; then
7374    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
7375$as_echo_n "checking Tcl version... " >&6; }
7376    if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then
7377      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
7378      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
7379$as_echo "$tclver - OK" >&6; };
7380      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 -`
7381      tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
7382
7383      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
7384$as_echo_n "checking for location of Tcl include... " >&6; }
7385      if test "x$MACOS_X" != "xyes"; then
7386	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
7387      else
7388		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
7389      fi
7390      TCL_INC=
7391      for try in $tclinc; do
7392	if test -f "$try/tcl.h"; then
7393	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
7394$as_echo "$try/tcl.h" >&6; }
7395	  TCL_INC=$try
7396	  break
7397	fi
7398      done
7399      if test -z "$TCL_INC"; then
7400	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7401$as_echo "<not found>" >&6; }
7402	SKIP_TCL=YES
7403      fi
7404      if test -z "$SKIP_TCL"; then
7405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
7406$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
7407	if test "x$MACOS_X" != "xyes"; then
7408	  tclcnf=`echo $tclinc | sed s/include/lib/g`
7409	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
7410	else
7411	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
7412	fi
7413	for try in $tclcnf; do
7414	  if test -f "$try/tclConfig.sh"; then
7415	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
7416$as_echo "$try/tclConfig.sh" >&6; }
7417	    . "$try/tclConfig.sh"
7418	    	    if test "$enable_tclinterp" = "dynamic"; then
7419	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7420	    else
7421	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7422	    fi
7423	    	    	    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'`
7424	    break
7425	  fi
7426	done
7427	if test -z "$TCL_LIBS"; then
7428	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7429$as_echo "<not found>" >&6; }
7430	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7431$as_echo_n "checking for Tcl library by myself... " >&6; }
7432	  tcllib=`echo $tclinc | sed s/include/lib/g`
7433	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7434	  for ext in .so .a ; do
7435	    for ver in "" $tclver ; do
7436	      for try in $tcllib ; do
7437		trylib=tcl$ver$ext
7438		if test -f "$try/lib$trylib" ; then
7439		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7440$as_echo "$try/lib$trylib" >&6; }
7441		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7442		  if test "`(uname) 2>/dev/null`" = SunOS &&
7443					 uname -r | grep '^5' >/dev/null; then
7444		    TCL_LIBS="$TCL_LIBS -R $try"
7445		  fi
7446		  break 3
7447		fi
7448	      done
7449	    done
7450	  done
7451	  if test -z "$TCL_LIBS"; then
7452	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7453$as_echo "<not found>" >&6; }
7454	    SKIP_TCL=YES
7455	  fi
7456	fi
7457	if test -z "$SKIP_TCL"; then
7458	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7459
7460	  TCL_SRC=if_tcl.c
7461	  TCL_OBJ=objects/if_tcl.o
7462	  TCL_PRO=if_tcl.pro
7463	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7464	fi
7465      fi
7466    else
7467      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7468$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7469    fi
7470  fi
7471  if test "$enable_tclinterp" = "dynamic"; then
7472    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7473      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7474
7475      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7476    fi
7477  fi
7478  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7479    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7480  fi
7481fi
7482
7483
7484
7485
7486
7487
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7489$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7490# Check whether --enable-rubyinterp was given.
7491if test "${enable_rubyinterp+set}" = set; then :
7492  enableval=$enable_rubyinterp;
7493else
7494  enable_rubyinterp="no"
7495fi
7496
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7498$as_echo "$enable_rubyinterp" >&6; }
7499if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7500  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7501    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7502  fi
7503
7504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7505$as_echo_n "checking --with-ruby-command argument... " >&6; }
7506
7507
7508# Check whether --with-ruby-command was given.
7509if test "${with_ruby_command+set}" = set; then :
7510  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7511$as_echo "$RUBY_CMD" >&6; }
7512else
7513  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7514$as_echo "defaulting to $RUBY_CMD" >&6; }
7515fi
7516
7517  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7518set dummy $RUBY_CMD; ac_word=$2
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520$as_echo_n "checking for $ac_word... " >&6; }
7521if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7522  $as_echo_n "(cached) " >&6
7523else
7524  case $vi_cv_path_ruby in
7525  [\\/]* | ?:[\\/]*)
7526  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7527  ;;
7528  *)
7529  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532  IFS=$as_save_IFS
7533  test -z "$as_dir" && as_dir=.
7534    for ac_exec_ext in '' $ac_executable_extensions; do
7535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7536    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538    break 2
7539  fi
7540done
7541  done
7542IFS=$as_save_IFS
7543
7544  ;;
7545esac
7546fi
7547vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7548if test -n "$vi_cv_path_ruby"; then
7549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7550$as_echo "$vi_cv_path_ruby" >&6; }
7551else
7552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553$as_echo "no" >&6; }
7554fi
7555
7556
7557  if test "X$vi_cv_path_ruby" != "X"; then
7558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7559$as_echo_n "checking Ruby version... " >&6; }
7560    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7561      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7562$as_echo "OK" >&6; }
7563      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7564$as_echo_n "checking Ruby rbconfig... " >&6; }
7565      ruby_rbconfig="RbConfig"
7566      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7567	ruby_rbconfig="Config"
7568      fi
7569      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7570$as_echo "$ruby_rbconfig" >&6; }
7571      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7572$as_echo_n "checking Ruby header files... " >&6; }
7573      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7574      if test "X$rubyhdrdir" != "X"; then
7575	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7576$as_echo "$rubyhdrdir" >&6; }
7577	RUBY_CFLAGS="-I$rubyhdrdir"
7578        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7579        if test -d "$rubyarchdir"; then
7580          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7581        fi
7582        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7583	if test "X$rubyversion" = "X"; then
7584	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7585	fi
7586        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7587	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7588	if test "X$rubylibs" != "X"; then
7589	  RUBY_LIBS="$rubylibs"
7590	fi
7591	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7592	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7593	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7594	if test -f "$rubylibdir/$librubya"; then
7595	  librubyarg="$librubyarg"
7596	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7597	elif test "$librubyarg" = "libruby.a"; then
7598	  	  librubyarg="-lruby"
7599	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7600	fi
7601
7602	if test "X$librubyarg" != "X"; then
7603	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7604	fi
7605	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7606	if test "X$rubyldflags" != "X"; then
7607	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7608	  if test "X$rubyldflags" != "X"; then
7609	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7610	      LDFLAGS="$rubyldflags $LDFLAGS"
7611	    fi
7612	  fi
7613	fi
7614	RUBY_SRC="if_ruby.c"
7615	RUBY_OBJ="objects/if_ruby.o"
7616	RUBY_PRO="if_ruby.pro"
7617	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7618
7619	if test "$enable_rubyinterp" = "dynamic"; then
7620	  libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"`
7621	  if test -z "$libruby_soname"; then
7622	    libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7623	  fi
7624	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7625
7626	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
7627	  RUBY_LIBS=
7628	fi
7629      else
7630	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7631$as_echo "not found; disabling Ruby" >&6; }
7632      fi
7633    else
7634      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7635$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7636    fi
7637  fi
7638
7639  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7640    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7641  fi
7642fi
7643
7644
7645
7646
7647
7648
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7650$as_echo_n "checking --enable-cscope argument... " >&6; }
7651# Check whether --enable-cscope was given.
7652if test "${enable_cscope+set}" = set; then :
7653  enableval=$enable_cscope;
7654else
7655  enable_cscope="no"
7656fi
7657
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7659$as_echo "$enable_cscope" >&6; }
7660if test "$enable_cscope" = "yes"; then
7661  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7662
7663fi
7664
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7666$as_echo_n "checking --disable-netbeans argument... " >&6; }
7667# Check whether --enable-netbeans was given.
7668if test "${enable_netbeans+set}" = set; then :
7669  enableval=$enable_netbeans;
7670else
7671  enable_netbeans="yes"
7672fi
7673
7674if test "$enable_netbeans" = "yes"; then
7675  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7677$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7678    enable_netbeans="no"
7679  else
7680    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681$as_echo "no" >&6; }
7682  fi
7683else
7684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7685$as_echo "yes" >&6; }
7686fi
7687
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7689$as_echo_n "checking --disable-channel argument... " >&6; }
7690# Check whether --enable-channel was given.
7691if test "${enable_channel+set}" = set; then :
7692  enableval=$enable_channel;
7693else
7694  enable_channel="yes"
7695fi
7696
7697if test "$enable_channel" = "yes"; then
7698  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7699    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7700$as_echo "cannot use channels with tiny or small features" >&6; }
7701    enable_channel="no"
7702  else
7703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704$as_echo "no" >&6; }
7705  fi
7706else
7707  if test "$enable_netbeans" = "yes"; then
7708    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7709$as_echo "yes, netbeans also disabled" >&6; }
7710    enable_netbeans="no"
7711  else
7712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7713$as_echo "yes" >&6; }
7714  fi
7715fi
7716
7717if test "$enable_channel" = "yes"; then
7718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7719$as_echo_n "checking for socket in -lsocket... " >&6; }
7720if ${ac_cv_lib_socket_socket+:} false; then :
7721  $as_echo_n "(cached) " >&6
7722else
7723  ac_check_lib_save_LIBS=$LIBS
7724LIBS="-lsocket  $LIBS"
7725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726/* end confdefs.h.  */
7727
7728/* Override any GCC internal prototype to avoid an error.
7729   Use char because int might match the return type of a GCC
7730   builtin and then its argument prototype would still apply.  */
7731#ifdef __cplusplus
7732extern "C"
7733#endif
7734char socket ();
7735int
7736main ()
7737{
7738return socket ();
7739  ;
7740  return 0;
7741}
7742_ACEOF
7743if ac_fn_c_try_link "$LINENO"; then :
7744  ac_cv_lib_socket_socket=yes
7745else
7746  ac_cv_lib_socket_socket=no
7747fi
7748rm -f core conftest.err conftest.$ac_objext \
7749    conftest$ac_exeext conftest.$ac_ext
7750LIBS=$ac_check_lib_save_LIBS
7751fi
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7753$as_echo "$ac_cv_lib_socket_socket" >&6; }
7754if test "x$ac_cv_lib_socket_socket" = xyes; then :
7755  cat >>confdefs.h <<_ACEOF
7756#define HAVE_LIBSOCKET 1
7757_ACEOF
7758
7759  LIBS="-lsocket $LIBS"
7760
7761fi
7762
7763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7764$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7765if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7766  $as_echo_n "(cached) " >&6
7767else
7768  ac_check_lib_save_LIBS=$LIBS
7769LIBS="-lnsl  $LIBS"
7770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771/* end confdefs.h.  */
7772
7773/* Override any GCC internal prototype to avoid an error.
7774   Use char because int might match the return type of a GCC
7775   builtin and then its argument prototype would still apply.  */
7776#ifdef __cplusplus
7777extern "C"
7778#endif
7779char gethostbyname ();
7780int
7781main ()
7782{
7783return gethostbyname ();
7784  ;
7785  return 0;
7786}
7787_ACEOF
7788if ac_fn_c_try_link "$LINENO"; then :
7789  ac_cv_lib_nsl_gethostbyname=yes
7790else
7791  ac_cv_lib_nsl_gethostbyname=no
7792fi
7793rm -f core conftest.err conftest.$ac_objext \
7794    conftest$ac_exeext conftest.$ac_ext
7795LIBS=$ac_check_lib_save_LIBS
7796fi
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7798$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7799if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7800  cat >>confdefs.h <<_ACEOF
7801#define HAVE_LIBNSL 1
7802_ACEOF
7803
7804  LIBS="-lnsl $LIBS"
7805
7806fi
7807
7808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5
7809$as_echo_n "checking whether compiling with process communication is possible... " >&6; }
7810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h.  */
7812
7813#include <stdio.h>
7814#include <stdlib.h>
7815#include <stdarg.h>
7816#include <fcntl.h>
7817#include <netdb.h>
7818#include <netinet/in.h>
7819#include <errno.h>
7820#include <sys/types.h>
7821#include <sys/socket.h>
7822	/* Check bitfields */
7823	struct nbbuf {
7824	unsigned int  initDone:1;
7825	unsigned short signmaplen;
7826	};
7827
7828int
7829main ()
7830{
7831
7832		/* Check creating a socket. */
7833		struct sockaddr_in server;
7834		(void)socket(AF_INET, SOCK_STREAM, 0);
7835		(void)htons(100);
7836		(void)gethostbyname("microsoft.com");
7837		if (errno == ECONNREFUSED)
7838		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7839
7840  ;
7841  return 0;
7842}
7843_ACEOF
7844if ac_fn_c_try_link "$LINENO"; then :
7845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7846$as_echo "yes" >&6; }
7847else
7848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no"
7850fi
7851rm -f core conftest.err conftest.$ac_objext \
7852    conftest$ac_exeext conftest.$ac_ext
7853fi
7854if test "$enable_netbeans" = "yes"; then
7855  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
7856
7857  NETBEANS_SRC="netbeans.c"
7858
7859  NETBEANS_OBJ="objects/netbeans.o"
7860
7861fi
7862if test "$enable_channel" = "yes"; then
7863  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
7864
7865  CHANNEL_SRC="channel.c"
7866
7867  CHANNEL_OBJ="objects/channel.o"
7868
7869fi
7870
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
7872$as_echo_n "checking --enable-terminal argument... " >&6; }
7873# Check whether --enable-terminal was given.
7874if test "${enable_terminal+set}" = set; then :
7875  enableval=$enable_terminal;
7876else
7877  enable_terminal="auto"
7878fi
7879
7880if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
7881  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
7883$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
7884    enable_terminal="no"
7885  else
7886    if test "$enable_terminal" = "auto"; then
7887      enable_terminal="yes"
7888      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
7889$as_echo "defaulting to yes" >&6; }
7890    else
7891      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7892$as_echo "yes" >&6; }
7893    fi
7894  fi
7895else
7896  if test "$enable_terminal" = "auto"; then
7897    enable_terminal="no"
7898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
7899$as_echo "defaulting to no" >&6; }
7900  else
7901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902$as_echo "no" >&6; }
7903  fi
7904fi
7905if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then
7906  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
7907
7908  TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/termscreen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c"
7909
7910  TERM_OBJ="objects/encoding.o objects/keyboard.o objects/mouse.o objects/parser.o objects/pen.o objects/termscreen.o objects/state.o objects/unicode.o objects/vterm.o"
7911
7912fi
7913
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5
7915$as_echo_n "checking --enable-autoservername argument... " >&6; }
7916# Check whether --enable-autoservername was given.
7917if test "${enable_autoservername+set}" = set; then :
7918  enableval=$enable_autoservername;
7919else
7920  enable_autoservername="no"
7921fi
7922
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5
7924$as_echo "$enable_autoservername" >&6; }
7925if test "$enable_autoservername" = "yes"; then
7926  $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h
7927
7928fi
7929
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
7931$as_echo_n "checking --enable-multibyte argument... " >&6; }
7932# Check whether --enable-multibyte was given.
7933if test "${enable_multibyte+set}" = set; then :
7934  enableval=$enable_multibyte;
7935else
7936  enable_multibyte="yes"
7937fi
7938
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
7940$as_echo "$enable_multibyte" >&6; }
7941if test "$enable_multibyte" != "yes"; then
7942  as_fn_error $? "The multi-byte feature can no longer be disabled. If you have
7943		a problem with this, discuss on the Vim mailing list." "$LINENO" 5
7944fi
7945
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5
7947$as_echo_n "checking --disable-rightleft argument... " >&6; }
7948# Check whether --enable-rightleft was given.
7949if test "${enable_rightleft+set}" = set; then :
7950  enableval=$enable_rightleft;
7951else
7952  enable_rightleft="yes"
7953fi
7954
7955if test "$enable_rightleft" = "yes"; then
7956	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
7958else
7959	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7960$as_echo "yes" >&6; }
7961	$as_echo "#define DISABLE_RIGHTLEFT 1" >>confdefs.h
7962
7963fi
7964
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5
7966$as_echo_n "checking --disable-arabic argument... " >&6; }
7967# Check whether --enable-arabic was given.
7968if test "${enable_arabic+set}" = set; then :
7969  enableval=$enable_arabic;
7970else
7971  enable_arabic="yes"
7972fi
7973
7974if test "$enable_arabic" = "yes"; then
7975	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976$as_echo "no" >&6; }
7977else
7978	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7979$as_echo "yes" >&6; }
7980	$as_echo "#define DISABLE_ARABIC 1" >>confdefs.h
7981
7982fi
7983
7984# Check whether --enable-farsi was given.
7985if test "${enable_farsi+set}" = set; then :
7986  enableval=$enable_farsi;
7987fi
7988
7989
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
7991$as_echo_n "checking --enable-hangulinput argument... " >&6; }
7992# Check whether --enable-hangulinput was given.
7993if test "${enable_hangulinput+set}" = set; then :
7994  enableval=$enable_hangulinput;
7995else
7996  enable_hangulinput="no"
7997fi
7998
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
8000$as_echo "$enable_hangulinput" >&6; }
8001
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
8003$as_echo_n "checking --enable-xim argument... " >&6; }
8004# Check whether --enable-xim was given.
8005if test "${enable_xim+set}" = set; then :
8006  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
8007$as_echo "$enable_xim" >&6; }
8008else
8009  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
8010$as_echo "defaulting to auto" >&6; }
8011fi
8012
8013
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
8015$as_echo_n "checking --enable-fontset argument... " >&6; }
8016# Check whether --enable-fontset was given.
8017if test "${enable_fontset+set}" = set; then :
8018  enableval=$enable_fontset;
8019else
8020  enable_fontset="no"
8021fi
8022
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
8024$as_echo "$enable_fontset" >&6; }
8025
8026test -z "$with_x" && with_x=yes
8027test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
8028if test "$with_x" = no; then
8029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
8030$as_echo "defaulting to: don't HAVE_X11" >&6; }
8031else
8032
8033  # Extract the first word of "xmkmf", so it can be a program name with args.
8034set dummy xmkmf; ac_word=$2
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036$as_echo_n "checking for $ac_word... " >&6; }
8037if ${ac_cv_path_xmkmfpath+:} false; then :
8038  $as_echo_n "(cached) " >&6
8039else
8040  case $xmkmfpath in
8041  [\\/]* | ?:[\\/]*)
8042  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
8043  ;;
8044  *)
8045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046for as_dir in $PATH
8047do
8048  IFS=$as_save_IFS
8049  test -z "$as_dir" && as_dir=.
8050    for ac_exec_ext in '' $ac_executable_extensions; do
8051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
8053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054    break 2
8055  fi
8056done
8057  done
8058IFS=$as_save_IFS
8059
8060  ;;
8061esac
8062fi
8063xmkmfpath=$ac_cv_path_xmkmfpath
8064if test -n "$xmkmfpath"; then
8065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
8066$as_echo "$xmkmfpath" >&6; }
8067else
8068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069$as_echo "no" >&6; }
8070fi
8071
8072
8073
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8075$as_echo_n "checking for X... " >&6; }
8076
8077
8078# Check whether --with-x was given.
8079if test "${with_x+set}" = set; then :
8080  withval=$with_x;
8081fi
8082
8083# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8084if test "x$with_x" = xno; then
8085  # The user explicitly disabled X.
8086  have_x=disabled
8087else
8088  case $x_includes,$x_libraries in #(
8089    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8090    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8091  $as_echo_n "(cached) " >&6
8092else
8093  # One or both of the vars are not set, and there is no cached value.
8094ac_x_includes=no ac_x_libraries=no
8095rm -f -r conftest.dir
8096if mkdir conftest.dir; then
8097  cd conftest.dir
8098  cat >Imakefile <<'_ACEOF'
8099incroot:
8100	@echo incroot='${INCROOT}'
8101usrlibdir:
8102	@echo usrlibdir='${USRLIBDIR}'
8103libdir:
8104	@echo libdir='${LIBDIR}'
8105_ACEOF
8106  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8107    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8108    for ac_var in incroot usrlibdir libdir; do
8109      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8110    done
8111    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8112    for ac_extension in a so sl dylib la dll; do
8113      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8114	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8115	ac_im_usrlibdir=$ac_im_libdir; break
8116      fi
8117    done
8118    # Screen out bogus values from the imake configuration.  They are
8119    # bogus both because they are the default anyway, and because
8120    # using them would break gcc on systems where it needs fixed includes.
8121    case $ac_im_incroot in
8122	/usr/include) ac_x_includes= ;;
8123	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8124    esac
8125    case $ac_im_usrlibdir in
8126	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
8127	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8128    esac
8129  fi
8130  cd ..
8131  rm -f -r conftest.dir
8132fi
8133
8134# Standard set of common directories for X headers.
8135# Check X11 before X11Rn because it is often a symlink to the current release.
8136ac_x_header_dirs='
8137/usr/X11/include
8138/usr/X11R7/include
8139/usr/X11R6/include
8140/usr/X11R5/include
8141/usr/X11R4/include
8142
8143/usr/include/X11
8144/usr/include/X11R7
8145/usr/include/X11R6
8146/usr/include/X11R5
8147/usr/include/X11R4
8148
8149/usr/local/X11/include
8150/usr/local/X11R7/include
8151/usr/local/X11R6/include
8152/usr/local/X11R5/include
8153/usr/local/X11R4/include
8154
8155/usr/local/include/X11
8156/usr/local/include/X11R7
8157/usr/local/include/X11R6
8158/usr/local/include/X11R5
8159/usr/local/include/X11R4
8160
8161/usr/X386/include
8162/usr/x386/include
8163/usr/XFree86/include/X11
8164
8165/usr/include
8166/usr/local/include
8167/usr/unsupported/include
8168/usr/athena/include
8169/usr/local/x11r5/include
8170/usr/lpp/Xamples/include
8171
8172/usr/openwin/include
8173/usr/openwin/share/include'
8174
8175if test "$ac_x_includes" = no; then
8176  # Guess where to find include files, by looking for Xlib.h.
8177  # First, try using that file with no special directory specified.
8178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179/* end confdefs.h.  */
8180#include <X11/Xlib.h>
8181_ACEOF
8182if ac_fn_c_try_cpp "$LINENO"; then :
8183  # We can compile using X headers with no special include directory.
8184ac_x_includes=
8185else
8186  for ac_dir in $ac_x_header_dirs; do
8187  if test -r "$ac_dir/X11/Xlib.h"; then
8188    ac_x_includes=$ac_dir
8189    break
8190  fi
8191done
8192fi
8193rm -f conftest.err conftest.i conftest.$ac_ext
8194fi # $ac_x_includes = no
8195
8196if test "$ac_x_libraries" = no; then
8197  # Check for the libraries.
8198  # See if we find them without any special options.
8199  # Don't add to $LIBS permanently.
8200  ac_save_LIBS=$LIBS
8201  LIBS="-lX11 $LIBS"
8202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203/* end confdefs.h.  */
8204#include <X11/Xlib.h>
8205int
8206main ()
8207{
8208XrmInitialize ()
8209  ;
8210  return 0;
8211}
8212_ACEOF
8213if ac_fn_c_try_link "$LINENO"; then :
8214  LIBS=$ac_save_LIBS
8215# We can link X programs with no special library path.
8216ac_x_libraries=
8217else
8218  LIBS=$ac_save_LIBS
8219for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8220do
8221  # Don't even attempt the hair of trying to link an X program!
8222  for ac_extension in a so sl dylib la dll; do
8223    if test -r "$ac_dir/libX11.$ac_extension"; then
8224      ac_x_libraries=$ac_dir
8225      break 2
8226    fi
8227  done
8228done
8229fi
8230rm -f core conftest.err conftest.$ac_objext \
8231    conftest$ac_exeext conftest.$ac_ext
8232fi # $ac_x_libraries = no
8233
8234case $ac_x_includes,$ac_x_libraries in #(
8235  no,* | *,no | *\'*)
8236    # Didn't find X, or a directory has "'" in its name.
8237    ac_cv_have_x="have_x=no";; #(
8238  *)
8239    # Record where we found X for the cache.
8240    ac_cv_have_x="have_x=yes\
8241	ac_x_includes='$ac_x_includes'\
8242	ac_x_libraries='$ac_x_libraries'"
8243esac
8244fi
8245;; #(
8246    *) have_x=yes;;
8247  esac
8248  eval "$ac_cv_have_x"
8249fi # $with_x != no
8250
8251if test "$have_x" != yes; then
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8253$as_echo "$have_x" >&6; }
8254  no_x=yes
8255else
8256  # If each of the values was on the command line, it overrides each guess.
8257  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8258  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8259  # Update the cache value to reflect the command line values.
8260  ac_cv_have_x="have_x=yes\
8261	ac_x_includes='$x_includes'\
8262	ac_x_libraries='$x_libraries'"
8263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8264$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8265fi
8266
8267if test "$no_x" = yes; then
8268  # Not all programs may use this symbol, but it does not hurt to define it.
8269
8270$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8271
8272  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8273else
8274  if test -n "$x_includes"; then
8275    X_CFLAGS="$X_CFLAGS -I$x_includes"
8276  fi
8277
8278  # It would also be nice to do this for all -L options, not just this one.
8279  if test -n "$x_libraries"; then
8280    X_LIBS="$X_LIBS -L$x_libraries"
8281    # For Solaris; some versions of Sun CC require a space after -R and
8282    # others require no space.  Words are not sufficient . . . .
8283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8284$as_echo_n "checking whether -R must be followed by a space... " >&6; }
8285    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8286    ac_xsave_c_werror_flag=$ac_c_werror_flag
8287    ac_c_werror_flag=yes
8288    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h.  */
8290
8291int
8292main ()
8293{
8294
8295  ;
8296  return 0;
8297}
8298_ACEOF
8299if ac_fn_c_try_link "$LINENO"; then :
8300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301$as_echo "no" >&6; }
8302       X_LIBS="$X_LIBS -R$x_libraries"
8303else
8304  LIBS="$ac_xsave_LIBS -R $x_libraries"
8305       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306/* end confdefs.h.  */
8307
8308int
8309main ()
8310{
8311
8312  ;
8313  return 0;
8314}
8315_ACEOF
8316if ac_fn_c_try_link "$LINENO"; then :
8317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8318$as_echo "yes" >&6; }
8319	  X_LIBS="$X_LIBS -R $x_libraries"
8320else
8321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8322$as_echo "neither works" >&6; }
8323fi
8324rm -f core conftest.err conftest.$ac_objext \
8325    conftest$ac_exeext conftest.$ac_ext
8326fi
8327rm -f core conftest.err conftest.$ac_objext \
8328    conftest$ac_exeext conftest.$ac_ext
8329    ac_c_werror_flag=$ac_xsave_c_werror_flag
8330    LIBS=$ac_xsave_LIBS
8331  fi
8332
8333  # Check for system-dependent libraries X programs must link with.
8334  # Do this before checking for the system-independent R6 libraries
8335  # (-lICE), since we may need -lsocket or whatever for X linking.
8336
8337  if test "$ISC" = yes; then
8338    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8339  else
8340    # Martyn Johnson says this is needed for Ultrix, if the X
8341    # libraries were built with DECnet support.  And Karl Berry says
8342    # the Alpha needs dnet_stub (dnet does not exist).
8343    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8344    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345/* end confdefs.h.  */
8346
8347/* Override any GCC internal prototype to avoid an error.
8348   Use char because int might match the return type of a GCC
8349   builtin and then its argument prototype would still apply.  */
8350#ifdef __cplusplus
8351extern "C"
8352#endif
8353char XOpenDisplay ();
8354int
8355main ()
8356{
8357return XOpenDisplay ();
8358  ;
8359  return 0;
8360}
8361_ACEOF
8362if ac_fn_c_try_link "$LINENO"; then :
8363
8364else
8365  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8366$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8367if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8368  $as_echo_n "(cached) " >&6
8369else
8370  ac_check_lib_save_LIBS=$LIBS
8371LIBS="-ldnet  $LIBS"
8372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373/* end confdefs.h.  */
8374
8375/* Override any GCC internal prototype to avoid an error.
8376   Use char because int might match the return type of a GCC
8377   builtin and then its argument prototype would still apply.  */
8378#ifdef __cplusplus
8379extern "C"
8380#endif
8381char dnet_ntoa ();
8382int
8383main ()
8384{
8385return dnet_ntoa ();
8386  ;
8387  return 0;
8388}
8389_ACEOF
8390if ac_fn_c_try_link "$LINENO"; then :
8391  ac_cv_lib_dnet_dnet_ntoa=yes
8392else
8393  ac_cv_lib_dnet_dnet_ntoa=no
8394fi
8395rm -f core conftest.err conftest.$ac_objext \
8396    conftest$ac_exeext conftest.$ac_ext
8397LIBS=$ac_check_lib_save_LIBS
8398fi
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8400$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8401if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8402  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8403fi
8404
8405    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8406      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8407$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8408if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8409  $as_echo_n "(cached) " >&6
8410else
8411  ac_check_lib_save_LIBS=$LIBS
8412LIBS="-ldnet_stub  $LIBS"
8413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h.  */
8415
8416/* Override any GCC internal prototype to avoid an error.
8417   Use char because int might match the return type of a GCC
8418   builtin and then its argument prototype would still apply.  */
8419#ifdef __cplusplus
8420extern "C"
8421#endif
8422char dnet_ntoa ();
8423int
8424main ()
8425{
8426return dnet_ntoa ();
8427  ;
8428  return 0;
8429}
8430_ACEOF
8431if ac_fn_c_try_link "$LINENO"; then :
8432  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8433else
8434  ac_cv_lib_dnet_stub_dnet_ntoa=no
8435fi
8436rm -f core conftest.err conftest.$ac_objext \
8437    conftest$ac_exeext conftest.$ac_ext
8438LIBS=$ac_check_lib_save_LIBS
8439fi
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8441$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8442if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8443  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8444fi
8445
8446    fi
8447fi
8448rm -f core conftest.err conftest.$ac_objext \
8449    conftest$ac_exeext conftest.$ac_ext
8450    LIBS="$ac_xsave_LIBS"
8451
8452    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
8453    # to get the SysV transport functions.
8454    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8455    # needs -lnsl.
8456    # The nsl library prevents programs from opening the X display
8457    # on Irix 5.2, according to T.E. Dickey.
8458    # The functions gethostbyname, getservbyname, and inet_addr are
8459    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8460    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8461if test "x$ac_cv_func_gethostbyname" = xyes; then :
8462
8463fi
8464
8465    if test $ac_cv_func_gethostbyname = no; then
8466      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8467$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8468if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  ac_check_lib_save_LIBS=$LIBS
8472LIBS="-lnsl  $LIBS"
8473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474/* end confdefs.h.  */
8475
8476/* Override any GCC internal prototype to avoid an error.
8477   Use char because int might match the return type of a GCC
8478   builtin and then its argument prototype would still apply.  */
8479#ifdef __cplusplus
8480extern "C"
8481#endif
8482char gethostbyname ();
8483int
8484main ()
8485{
8486return gethostbyname ();
8487  ;
8488  return 0;
8489}
8490_ACEOF
8491if ac_fn_c_try_link "$LINENO"; then :
8492  ac_cv_lib_nsl_gethostbyname=yes
8493else
8494  ac_cv_lib_nsl_gethostbyname=no
8495fi
8496rm -f core conftest.err conftest.$ac_objext \
8497    conftest$ac_exeext conftest.$ac_ext
8498LIBS=$ac_check_lib_save_LIBS
8499fi
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8501$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8502if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8503  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8504fi
8505
8506      if test $ac_cv_lib_nsl_gethostbyname = no; then
8507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8508$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8509if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  ac_check_lib_save_LIBS=$LIBS
8513LIBS="-lbsd  $LIBS"
8514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h.  */
8516
8517/* Override any GCC internal prototype to avoid an error.
8518   Use char because int might match the return type of a GCC
8519   builtin and then its argument prototype would still apply.  */
8520#ifdef __cplusplus
8521extern "C"
8522#endif
8523char gethostbyname ();
8524int
8525main ()
8526{
8527return gethostbyname ();
8528  ;
8529  return 0;
8530}
8531_ACEOF
8532if ac_fn_c_try_link "$LINENO"; then :
8533  ac_cv_lib_bsd_gethostbyname=yes
8534else
8535  ac_cv_lib_bsd_gethostbyname=no
8536fi
8537rm -f core conftest.err conftest.$ac_objext \
8538    conftest$ac_exeext conftest.$ac_ext
8539LIBS=$ac_check_lib_save_LIBS
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8542$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8543if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8544  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8545fi
8546
8547      fi
8548    fi
8549
8550    # [email protected] says without -lsocket,
8551    # socket/setsockopt and other routines are undefined under SCO ODT
8552    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8553    # on later versions), says Simon Leinen: it contains gethostby*
8554    # variants that don't use the name server (or something).  -lsocket
8555    # must be given before -lnsl if both are needed.  We assume that
8556    # if connect needs -lnsl, so does gethostbyname.
8557    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8558if test "x$ac_cv_func_connect" = xyes; then :
8559
8560fi
8561
8562    if test $ac_cv_func_connect = no; then
8563      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8564$as_echo_n "checking for connect in -lsocket... " >&6; }
8565if ${ac_cv_lib_socket_connect+:} false; then :
8566  $as_echo_n "(cached) " >&6
8567else
8568  ac_check_lib_save_LIBS=$LIBS
8569LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571/* end confdefs.h.  */
8572
8573/* Override any GCC internal prototype to avoid an error.
8574   Use char because int might match the return type of a GCC
8575   builtin and then its argument prototype would still apply.  */
8576#ifdef __cplusplus
8577extern "C"
8578#endif
8579char connect ();
8580int
8581main ()
8582{
8583return connect ();
8584  ;
8585  return 0;
8586}
8587_ACEOF
8588if ac_fn_c_try_link "$LINENO"; then :
8589  ac_cv_lib_socket_connect=yes
8590else
8591  ac_cv_lib_socket_connect=no
8592fi
8593rm -f core conftest.err conftest.$ac_objext \
8594    conftest$ac_exeext conftest.$ac_ext
8595LIBS=$ac_check_lib_save_LIBS
8596fi
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8598$as_echo "$ac_cv_lib_socket_connect" >&6; }
8599if test "x$ac_cv_lib_socket_connect" = xyes; then :
8600  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8601fi
8602
8603    fi
8604
8605    # Guillermo Gomez says -lposix is necessary on A/UX.
8606    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8607if test "x$ac_cv_func_remove" = xyes; then :
8608
8609fi
8610
8611    if test $ac_cv_func_remove = no; then
8612      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8613$as_echo_n "checking for remove in -lposix... " >&6; }
8614if ${ac_cv_lib_posix_remove+:} false; then :
8615  $as_echo_n "(cached) " >&6
8616else
8617  ac_check_lib_save_LIBS=$LIBS
8618LIBS="-lposix  $LIBS"
8619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620/* end confdefs.h.  */
8621
8622/* Override any GCC internal prototype to avoid an error.
8623   Use char because int might match the return type of a GCC
8624   builtin and then its argument prototype would still apply.  */
8625#ifdef __cplusplus
8626extern "C"
8627#endif
8628char remove ();
8629int
8630main ()
8631{
8632return remove ();
8633  ;
8634  return 0;
8635}
8636_ACEOF
8637if ac_fn_c_try_link "$LINENO"; then :
8638  ac_cv_lib_posix_remove=yes
8639else
8640  ac_cv_lib_posix_remove=no
8641fi
8642rm -f core conftest.err conftest.$ac_objext \
8643    conftest$ac_exeext conftest.$ac_ext
8644LIBS=$ac_check_lib_save_LIBS
8645fi
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8647$as_echo "$ac_cv_lib_posix_remove" >&6; }
8648if test "x$ac_cv_lib_posix_remove" = xyes; then :
8649  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8650fi
8651
8652    fi
8653
8654    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8655    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8656if test "x$ac_cv_func_shmat" = xyes; then :
8657
8658fi
8659
8660    if test $ac_cv_func_shmat = no; then
8661      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8662$as_echo_n "checking for shmat in -lipc... " >&6; }
8663if ${ac_cv_lib_ipc_shmat+:} false; then :
8664  $as_echo_n "(cached) " >&6
8665else
8666  ac_check_lib_save_LIBS=$LIBS
8667LIBS="-lipc  $LIBS"
8668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669/* end confdefs.h.  */
8670
8671/* Override any GCC internal prototype to avoid an error.
8672   Use char because int might match the return type of a GCC
8673   builtin and then its argument prototype would still apply.  */
8674#ifdef __cplusplus
8675extern "C"
8676#endif
8677char shmat ();
8678int
8679main ()
8680{
8681return shmat ();
8682  ;
8683  return 0;
8684}
8685_ACEOF
8686if ac_fn_c_try_link "$LINENO"; then :
8687  ac_cv_lib_ipc_shmat=yes
8688else
8689  ac_cv_lib_ipc_shmat=no
8690fi
8691rm -f core conftest.err conftest.$ac_objext \
8692    conftest$ac_exeext conftest.$ac_ext
8693LIBS=$ac_check_lib_save_LIBS
8694fi
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8696$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8697if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8698  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8699fi
8700
8701    fi
8702  fi
8703
8704  # Check for libraries that X11R6 Xt/Xaw programs need.
8705  ac_save_LDFLAGS=$LDFLAGS
8706  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8707  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8708  # check for ICE first), but we must link in the order -lSM -lICE or
8709  # we get undefined symbols.  So assume we have SM if we have ICE.
8710  # These have to be linked with before -lX11, unlike the other
8711  # libraries we check for below, so use a different variable.
8712  # John Interrante, Karl Berry
8713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8714$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8715if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8716  $as_echo_n "(cached) " >&6
8717else
8718  ac_check_lib_save_LIBS=$LIBS
8719LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721/* end confdefs.h.  */
8722
8723/* Override any GCC internal prototype to avoid an error.
8724   Use char because int might match the return type of a GCC
8725   builtin and then its argument prototype would still apply.  */
8726#ifdef __cplusplus
8727extern "C"
8728#endif
8729char IceConnectionNumber ();
8730int
8731main ()
8732{
8733return IceConnectionNumber ();
8734  ;
8735  return 0;
8736}
8737_ACEOF
8738if ac_fn_c_try_link "$LINENO"; then :
8739  ac_cv_lib_ICE_IceConnectionNumber=yes
8740else
8741  ac_cv_lib_ICE_IceConnectionNumber=no
8742fi
8743rm -f core conftest.err conftest.$ac_objext \
8744    conftest$ac_exeext conftest.$ac_ext
8745LIBS=$ac_check_lib_save_LIBS
8746fi
8747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8748$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8749if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8750  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8751fi
8752
8753  LDFLAGS=$ac_save_LDFLAGS
8754
8755fi
8756
8757
8758        if test "$zOSUnix" = "yes"; then
8759    CFLAGS="$CFLAGS -W c,dll"
8760    LDFLAGS="$LDFLAGS -W l,dll"
8761    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8762  fi
8763
8764
8765  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8766    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8767    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8768$as_echo "Corrected X libraries to $x_libraries" >&6; }
8769    X_LIBS="$X_LIBS -L$x_libraries"
8770    if test "`(uname) 2>/dev/null`" = SunOS &&
8771					 uname -r | grep '^5' >/dev/null; then
8772      X_LIBS="$X_LIBS -R $x_libraries"
8773    fi
8774  fi
8775
8776  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8777    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8779$as_echo "Corrected X includes to $x_includes" >&6; }
8780    X_CFLAGS="$X_CFLAGS -I$x_includes"
8781  fi
8782
8783    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8784    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8785    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8786
8787
8788        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8789$as_echo_n "checking if X11 header files can be found... " >&6; }
8790  cflags_save=$CFLAGS
8791  CFLAGS="$CFLAGS $X_CFLAGS"
8792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793/* end confdefs.h.  */
8794#include <X11/Xlib.h>
8795#include <X11/Intrinsic.h>
8796int
8797main ()
8798{
8799
8800  ;
8801  return 0;
8802}
8803_ACEOF
8804if ac_fn_c_try_compile "$LINENO"; then :
8805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8806$as_echo "yes" >&6; }
8807else
8808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809$as_echo "no" >&6; }; no_x=yes
8810fi
8811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8812  CFLAGS=$cflags_save
8813
8814  if test "${no_x-no}" = yes; then
8815    with_x=no
8816  else
8817    $as_echo "#define HAVE_X11 1" >>confdefs.h
8818
8819    X_LIB="-lXt -lX11";
8820
8821
8822    ac_save_LDFLAGS="$LDFLAGS"
8823    LDFLAGS="-L$x_libraries $LDFLAGS"
8824
8825            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8826$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8827if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8828  $as_echo_n "(cached) " >&6
8829else
8830  ac_check_lib_save_LIBS=$LIBS
8831LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833/* end confdefs.h.  */
8834
8835/* Override any GCC internal prototype to avoid an error.
8836   Use char because int might match the return type of a GCC
8837   builtin and then its argument prototype would still apply.  */
8838#ifdef __cplusplus
8839extern "C"
8840#endif
8841char _XdmcpAuthDoIt ();
8842int
8843main ()
8844{
8845return _XdmcpAuthDoIt ();
8846  ;
8847  return 0;
8848}
8849_ACEOF
8850if ac_fn_c_try_link "$LINENO"; then :
8851  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8852else
8853  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8854fi
8855rm -f core conftest.err conftest.$ac_objext \
8856    conftest$ac_exeext conftest.$ac_ext
8857LIBS=$ac_check_lib_save_LIBS
8858fi
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8860$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8861if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8862  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8863fi
8864
8865
8866                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
8867$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8868if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
8869  $as_echo_n "(cached) " >&6
8870else
8871  ac_check_lib_save_LIBS=$LIBS
8872LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874/* end confdefs.h.  */
8875
8876/* Override any GCC internal prototype to avoid an error.
8877   Use char because int might match the return type of a GCC
8878   builtin and then its argument prototype would still apply.  */
8879#ifdef __cplusplus
8880extern "C"
8881#endif
8882char IceOpenConnection ();
8883int
8884main ()
8885{
8886return IceOpenConnection ();
8887  ;
8888  return 0;
8889}
8890_ACEOF
8891if ac_fn_c_try_link "$LINENO"; then :
8892  ac_cv_lib_ICE_IceOpenConnection=yes
8893else
8894  ac_cv_lib_ICE_IceOpenConnection=no
8895fi
8896rm -f core conftest.err conftest.$ac_objext \
8897    conftest$ac_exeext conftest.$ac_ext
8898LIBS=$ac_check_lib_save_LIBS
8899fi
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8901$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8902if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
8903  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8904fi
8905
8906
8907        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8908    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
8909$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8910if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
8911  $as_echo_n "(cached) " >&6
8912else
8913  ac_check_lib_save_LIBS=$LIBS
8914LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h.  */
8917
8918/* Override any GCC internal prototype to avoid an error.
8919   Use char because int might match the return type of a GCC
8920   builtin and then its argument prototype would still apply.  */
8921#ifdef __cplusplus
8922extern "C"
8923#endif
8924char XpmCreatePixmapFromData ();
8925int
8926main ()
8927{
8928return XpmCreatePixmapFromData ();
8929  ;
8930  return 0;
8931}
8932_ACEOF
8933if ac_fn_c_try_link "$LINENO"; then :
8934  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8935else
8936  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8937fi
8938rm -f core conftest.err conftest.$ac_objext \
8939    conftest$ac_exeext conftest.$ac_ext
8940LIBS=$ac_check_lib_save_LIBS
8941fi
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8943$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8944if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
8945  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8946fi
8947
8948
8949        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8950$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8951    cflags_save=$CFLAGS
8952        if test "$GCC" = yes; then
8953      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8954    else
8955      CFLAGS="$CFLAGS $X_CFLAGS"
8956    fi
8957    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958/* end confdefs.h.  */
8959#include <X11/Xlib.h>
8960int
8961main ()
8962{
8963
8964  ;
8965  return 0;
8966}
8967_ACEOF
8968if ac_fn_c_try_compile "$LINENO"; then :
8969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970$as_echo "no" >&6; }
8971else
8972  CFLAGS="$CFLAGS -Wno-implicit-int"
8973	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974/* end confdefs.h.  */
8975#include <X11/Xlib.h>
8976int
8977main ()
8978{
8979
8980  ;
8981  return 0;
8982}
8983_ACEOF
8984if ac_fn_c_try_compile "$LINENO"; then :
8985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8986$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8987else
8988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
8989$as_echo "test failed" >&6; }
8990
8991fi
8992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993
8994fi
8995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996    CFLAGS=$cflags_save
8997
8998    LDFLAGS="$ac_save_LDFLAGS"
8999
9000    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
9001$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
9002    if ${ac_cv_small_wchar_t+:} false; then :
9003  $as_echo_n "(cached) " >&6
9004else
9005  if test "$cross_compiling" = yes; then :
9006  as_fn_error $? "failed to compile test program" "$LINENO" 5
9007else
9008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009/* end confdefs.h.  */
9010
9011#include <X11/Xlib.h>
9012#if STDC_HEADERS
9013# include <stdlib.h>
9014# include <stddef.h>
9015#endif
9016		main()
9017		{
9018		  if (sizeof(wchar_t) <= 2)
9019		    exit(1);
9020		  exit(0);
9021		}
9022_ACEOF
9023if ac_fn_c_try_run "$LINENO"; then :
9024  ac_cv_small_wchar_t="no"
9025else
9026  ac_cv_small_wchar_t="yes"
9027fi
9028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9029  conftest.$ac_objext conftest.beam conftest.$ac_ext
9030fi
9031
9032fi
9033
9034    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
9035$as_echo "$ac_cv_small_wchar_t" >&6; }
9036    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
9037      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
9038
9039    fi
9040
9041  fi
9042fi
9043
9044if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then
9045    as_fn_error $? "could not configure X" "$LINENO" 5
9046fi
9047
9048test "x$with_x" = xno -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
9049
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
9051$as_echo_n "checking --enable-gui argument... " >&6; }
9052# Check whether --enable-gui was given.
9053if test "${enable_gui+set}" = set; then :
9054  enableval=$enable_gui;
9055else
9056  enable_gui="auto"
9057fi
9058
9059
9060enable_gui_canon=`echo "_$enable_gui" | \
9061	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
9062
9063SKIP_GTK2=YES
9064SKIP_GTK3=YES
9065SKIP_GNOME=YES
9066SKIP_MOTIF=YES
9067SKIP_ATHENA=YES
9068SKIP_NEXTAW=YES
9069SKIP_PHOTON=YES
9070SKIP_CARBON=YES
9071GUITYPE=NONE
9072
9073if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
9074  SKIP_PHOTON=
9075  case "$enable_gui_canon" in
9076    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9077$as_echo "no GUI support" >&6; }
9078		SKIP_PHOTON=YES ;;
9079    yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic GUI support" >&5
9080$as_echo "automatic GUI support" >&6; }
9081    		gui_auto=yes ;;
9082    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
9083$as_echo "Photon GUI support" >&6; } ;;
9084    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9085$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9086		SKIP_PHOTON=YES ;;
9087  esac
9088
9089elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
9090  SKIP_CARBON=
9091  case "$enable_gui_canon" in
9092    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9093$as_echo "no GUI support" >&6; }
9094		SKIP_CARBON=YES ;;
9095    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9096$as_echo "yes - automatic GUI support" >&6; }
9097    		gui_auto=yes ;;
9098    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
9099$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
9100		SKIP_CARBON=YES ;;
9101    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
9102$as_echo "Carbon GUI support" >&6; } ;;
9103    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9104$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9105		SKIP_CARBON=YES ;;
9106  esac
9107
9108else
9109
9110  case "$enable_gui_canon" in
9111    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9112$as_echo "no GUI support" >&6; } ;;
9113    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
9114$as_echo "yes/auto - automatic GUI support" >&6; }
9115		gui_auto=yes
9116		SKIP_GTK2=
9117		SKIP_GNOME=
9118		SKIP_MOTIF=
9119		SKIP_ATHENA=
9120		SKIP_NEXTAW=
9121		SKIP_CARBON=;;
9122    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
9123$as_echo "GTK+ 2.x GUI support" >&6; }
9124		SKIP_GTK2=;;
9125    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
9126$as_echo "GNOME 2.x GUI support" >&6; }
9127		SKIP_GNOME=
9128		SKIP_GTK2=;;
9129    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
9130$as_echo "GTK+ 3.x GUI support" >&6; }
9131		SKIP_GTK3=;;
9132    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
9133$as_echo "Motif GUI support" >&6; }
9134		SKIP_MOTIF=;;
9135    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
9136$as_echo "Athena GUI support" >&6; }
9137		SKIP_ATHENA=;;
9138    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
9139$as_echo "neXtaw GUI support" >&6; }
9140		SKIP_NEXTAW=;;
9141    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9142$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
9143  esac
9144
9145fi
9146
9147if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
9148				-a "$enable_gui_canon" != "gnome2"; then
9149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
9150$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
9151  # Check whether --enable-gtk2-check was given.
9152if test "${enable_gtk2_check+set}" = set; then :
9153  enableval=$enable_gtk2_check;
9154else
9155  enable_gtk2_check="yes"
9156fi
9157
9158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
9159$as_echo "$enable_gtk2_check" >&6; }
9160  if test "x$enable_gtk2_check" = "xno"; then
9161    SKIP_GTK2=YES
9162    SKIP_GNOME=YES
9163  fi
9164fi
9165
9166if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
9167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
9168$as_echo_n "checking whether or not to look for GNOME... " >&6; }
9169  # Check whether --enable-gnome-check was given.
9170if test "${enable_gnome_check+set}" = set; then :
9171  enableval=$enable_gnome_check;
9172else
9173  enable_gnome_check="no"
9174fi
9175
9176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
9177$as_echo "$enable_gnome_check" >&6; }
9178  if test "x$enable_gnome_check" = "xno"; then
9179    SKIP_GNOME=YES
9180  fi
9181fi
9182
9183if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
9184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
9185$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
9186  # Check whether --enable-gtk3-check was given.
9187if test "${enable_gtk3_check+set}" = set; then :
9188  enableval=$enable_gtk3_check;
9189else
9190  enable_gtk3_check="yes"
9191fi
9192
9193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
9194$as_echo "$enable_gtk3_check" >&6; }
9195  if test "x$enable_gtk3_check" = "xno"; then
9196    SKIP_GTK3=YES
9197  fi
9198fi
9199
9200if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
9201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
9202$as_echo_n "checking whether or not to look for Motif... " >&6; }
9203  # Check whether --enable-motif-check was given.
9204if test "${enable_motif_check+set}" = set; then :
9205  enableval=$enable_motif_check;
9206else
9207  enable_motif_check="yes"
9208fi
9209
9210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
9211$as_echo "$enable_motif_check" >&6; }
9212  if test "x$enable_motif_check" = "xno"; then
9213    SKIP_MOTIF=YES
9214  fi
9215fi
9216
9217if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
9218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
9219$as_echo_n "checking whether or not to look for Athena... " >&6; }
9220  # Check whether --enable-athena-check was given.
9221if test "${enable_athena_check+set}" = set; then :
9222  enableval=$enable_athena_check;
9223else
9224  enable_athena_check="yes"
9225fi
9226
9227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
9228$as_echo "$enable_athena_check" >&6; }
9229  if test "x$enable_athena_check" = "xno"; then
9230    SKIP_ATHENA=YES
9231  fi
9232fi
9233
9234if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
9235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
9236$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
9237  # Check whether --enable-nextaw-check was given.
9238if test "${enable_nextaw_check+set}" = set; then :
9239  enableval=$enable_nextaw_check;
9240else
9241  enable_nextaw_check="yes"
9242fi
9243
9244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
9245$as_echo "$enable_nextaw_check" >&6; };
9246  if test "x$enable_nextaw_check" = "xno"; then
9247    SKIP_NEXTAW=YES
9248  fi
9249fi
9250
9251if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
9252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
9253$as_echo_n "checking whether or not to look for Carbon... " >&6; }
9254  # Check whether --enable-carbon-check was given.
9255if test "${enable_carbon_check+set}" = set; then :
9256  enableval=$enable_carbon_check;
9257else
9258  enable_carbon_check="yes"
9259fi
9260
9261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
9262$as_echo "$enable_carbon_check" >&6; };
9263  if test "x$enable_carbon_check" = "xno"; then
9264    SKIP_CARBON=YES
9265  fi
9266fi
9267
9268
9269if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
9270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
9271$as_echo_n "checking for Carbon GUI... " >&6; }
9272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9273$as_echo "yes" >&6; };
9274  GUITYPE=CARBONGUI
9275  if test "$VIMNAME" = "vim"; then
9276    VIMNAME=Vim
9277  fi
9278
9279  if test "x$MACARCH" = "xboth"; then
9280    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
9281  else
9282    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
9283  fi
9284
9285    if test x$prefix = xNONE; then
9286    prefix=/Applications
9287  fi
9288
9289    datadir='${prefix}/Vim.app/Contents/Resources'
9290
9291    SKIP_GTK2=YES;
9292  SKIP_GNOME=YES;
9293  SKIP_MOTIF=YES;
9294  SKIP_ATHENA=YES;
9295  SKIP_NEXTAW=YES;
9296  SKIP_PHOTON=YES;
9297  SKIP_CARBON=YES
9298fi
9299
9300
9301
9302
9303
9304
9305
9306
9307if test -z "$SKIP_GTK2"; then
9308
9309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9310$as_echo_n "checking --disable-gtktest argument... " >&6; }
9311  # Check whether --enable-gtktest was given.
9312if test "${enable_gtktest+set}" = set; then :
9313  enableval=$enable_gtktest;
9314else
9315  enable_gtktest=yes
9316fi
9317
9318  if test "x$enable_gtktest" = "xyes" ; then
9319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9320$as_echo "gtk test enabled" >&6; }
9321  else
9322    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9323$as_echo "gtk test disabled" >&6; }
9324  fi
9325
9326  if test "X$PKG_CONFIG" = "X"; then
9327    if test -n "$ac_tool_prefix"; then
9328  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9329set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331$as_echo_n "checking for $ac_word... " >&6; }
9332if ${ac_cv_path_PKG_CONFIG+:} false; then :
9333  $as_echo_n "(cached) " >&6
9334else
9335  case $PKG_CONFIG in
9336  [\\/]* | ?:[\\/]*)
9337  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9338  ;;
9339  *)
9340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341for as_dir in $PATH
9342do
9343  IFS=$as_save_IFS
9344  test -z "$as_dir" && as_dir=.
9345    for ac_exec_ext in '' $ac_executable_extensions; do
9346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9347    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9349    break 2
9350  fi
9351done
9352  done
9353IFS=$as_save_IFS
9354
9355  ;;
9356esac
9357fi
9358PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9359if test -n "$PKG_CONFIG"; then
9360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9361$as_echo "$PKG_CONFIG" >&6; }
9362else
9363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364$as_echo "no" >&6; }
9365fi
9366
9367
9368fi
9369if test -z "$ac_cv_path_PKG_CONFIG"; then
9370  ac_pt_PKG_CONFIG=$PKG_CONFIG
9371  # Extract the first word of "pkg-config", so it can be a program name with args.
9372set dummy pkg-config; ac_word=$2
9373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374$as_echo_n "checking for $ac_word... " >&6; }
9375if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9376  $as_echo_n "(cached) " >&6
9377else
9378  case $ac_pt_PKG_CONFIG in
9379  [\\/]* | ?:[\\/]*)
9380  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9381  ;;
9382  *)
9383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384for as_dir in $PATH
9385do
9386  IFS=$as_save_IFS
9387  test -z "$as_dir" && as_dir=.
9388    for ac_exec_ext in '' $ac_executable_extensions; do
9389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9390    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9392    break 2
9393  fi
9394done
9395  done
9396IFS=$as_save_IFS
9397
9398  ;;
9399esac
9400fi
9401ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9402if test -n "$ac_pt_PKG_CONFIG"; then
9403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9404$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9405else
9406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407$as_echo "no" >&6; }
9408fi
9409
9410  if test "x$ac_pt_PKG_CONFIG" = x; then
9411    PKG_CONFIG="no"
9412  else
9413    case $cross_compiling:$ac_tool_warned in
9414yes:)
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9417ac_tool_warned=yes ;;
9418esac
9419    PKG_CONFIG=$ac_pt_PKG_CONFIG
9420  fi
9421else
9422  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9423fi
9424
9425  fi
9426
9427  if test "x$PKG_CONFIG" != "xno"; then
9428
9429  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9430  {
9431    no_gtk=""
9432    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9433	  && $PKG_CONFIG --exists gtk+-2.0; then
9434    {
9435      min_gtk_version=2.2.0
9436      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9437$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9438                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9439      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9440      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9441      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9442	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9443      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9444	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9445      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9446	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9447    }
9448    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9449	  && $PKG_CONFIG --exists gtk+-3.0; then
9450    {
9451      min_gtk_version=2.2.0
9452      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9453$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9454
9455      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9456      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9457      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9458      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9459	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9460      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9461	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9462      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9463	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9464    }
9465    else
9466      no_gtk=yes
9467    fi
9468
9469    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9470    {
9471      ac_save_CFLAGS="$CFLAGS"
9472      ac_save_LIBS="$LIBS"
9473      CFLAGS="$CFLAGS $GTK_CFLAGS"
9474      LIBS="$LIBS $GTK_LIBS"
9475
9476                        rm -f conf.gtktest
9477      if test "$cross_compiling" = yes; then :
9478  echo $ac_n "cross compiling; assumed OK... $ac_c"
9479else
9480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h.  */
9482
9483#include <gtk/gtk.h>
9484#include <stdio.h>
9485#if STDC_HEADERS
9486# include <stdlib.h>
9487# include <stddef.h>
9488#endif
9489
9490int
9491main ()
9492{
9493int major, minor, micro;
9494char *tmp_version;
9495
9496system ("touch conf.gtktest");
9497
9498/* HP/UX 9 (%@#!) writes to sscanf strings */
9499tmp_version = g_strdup("$min_gtk_version");
9500if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9501   printf("%s, bad version string\n", "$min_gtk_version");
9502   exit(1);
9503 }
9504
9505if ((gtk_major_version > major) ||
9506    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9507    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9508				     (gtk_micro_version >= micro)))
9509{
9510    return 0;
9511}
9512return 1;
9513}
9514
9515_ACEOF
9516if ac_fn_c_try_run "$LINENO"; then :
9517
9518else
9519  no_gtk=yes
9520fi
9521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9522  conftest.$ac_objext conftest.beam conftest.$ac_ext
9523fi
9524
9525      CFLAGS="$ac_save_CFLAGS"
9526      LIBS="$ac_save_LIBS"
9527    }
9528    fi
9529    if test "x$no_gtk" = x ; then
9530      if test "x$enable_gtktest" = "xyes"; then
9531	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9532$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9533      else
9534	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9535$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9536      fi
9537      GUI_LIB_LOC="$GTK_LIBDIR"
9538		 GTK_LIBNAME="$GTK_LIBS"
9539		GUI_INC_LOC="$GTK_CFLAGS"
9540    else
9541    {
9542      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543$as_echo "no" >&6; }
9544      GTK_CFLAGS=""
9545      GTK_LIBS=""
9546      :
9547      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9548	as_fn_error $? "could not configure GTK" "$LINENO" 5
9549      fi
9550    }
9551    fi
9552  }
9553  else
9554    GTK_CFLAGS=""
9555    GTK_LIBS=""
9556    :
9557  fi
9558
9559
9560  rm -f conf.gtktest
9561
9562    if test "x$GTK_CFLAGS" != "x"; then
9563      SKIP_GTK3=YES
9564      SKIP_ATHENA=YES
9565      SKIP_NEXTAW=YES
9566      SKIP_MOTIF=YES
9567      GUITYPE=GTK
9568
9569    fi
9570  fi
9571  if test "x$GUITYPE" = "xGTK"; then
9572                if test -z "$SKIP_GNOME"; then
9573    {
9574
9575
9576
9577
9578
9579
9580# Check whether --with-gnome-includes was given.
9581if test "${with_gnome_includes+set}" = set; then :
9582  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9583
9584fi
9585
9586
9587
9588# Check whether --with-gnome-libs was given.
9589if test "${with_gnome_libs+set}" = set; then :
9590  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9591
9592fi
9593
9594
9595
9596# Check whether --with-gnome was given.
9597if test "${with_gnome+set}" = set; then :
9598  withval=$with_gnome; if test x$withval = xyes; then
9599      want_gnome=yes
9600      have_gnome=yes
9601    else
9602      if test "x$withval" = xno; then
9603	want_gnome=no
9604      else
9605	want_gnome=yes
9606	LDFLAGS="$LDFLAGS -L$withval/lib"
9607	CFLAGS="$CFLAGS -I$withval/include"
9608	gnome_prefix=$withval/lib
9609      fi
9610    fi
9611else
9612  want_gnome=yes
9613fi
9614
9615
9616  if test "x$want_gnome" = xyes; then
9617  {
9618    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9619$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9620    if $PKG_CONFIG --exists libgnomeui-2.0; then
9621      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9622$as_echo "yes" >&6; }
9623      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9624      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9625      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9626
9627                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9628$as_echo_n "checking for FreeBSD... " >&6; }
9629      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9630	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9631$as_echo "yes" >&6; }
9632	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9633	GNOME_LIBS="$GNOME_LIBS -pthread"
9634      else
9635	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636$as_echo "no" >&6; }
9637      fi
9638      have_gnome=yes
9639    else
9640      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9641$as_echo "not found" >&6; }
9642      if test "x" = xfail; then
9643	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9644      fi
9645    fi
9646  }
9647  fi
9648
9649      if test "x$have_gnome" = xyes ; then
9650	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9651
9652	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9653	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9654      fi
9655    }
9656    fi
9657  fi
9658fi
9659
9660
9661if test -z "$SKIP_GTK3"; then
9662
9663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9664$as_echo_n "checking --disable-gtktest argument... " >&6; }
9665  # Check whether --enable-gtktest was given.
9666if test "${enable_gtktest+set}" = set; then :
9667  enableval=$enable_gtktest;
9668else
9669  enable_gtktest=yes
9670fi
9671
9672  if test "x$enable_gtktest" = "xyes" ; then
9673    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9674$as_echo "gtk test enabled" >&6; }
9675  else
9676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9677$as_echo "gtk test disabled" >&6; }
9678  fi
9679
9680  if test "X$PKG_CONFIG" = "X"; then
9681    if test -n "$ac_tool_prefix"; then
9682  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9683set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9685$as_echo_n "checking for $ac_word... " >&6; }
9686if ${ac_cv_path_PKG_CONFIG+:} false; then :
9687  $as_echo_n "(cached) " >&6
9688else
9689  case $PKG_CONFIG in
9690  [\\/]* | ?:[\\/]*)
9691  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9692  ;;
9693  *)
9694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697  IFS=$as_save_IFS
9698  test -z "$as_dir" && as_dir=.
9699    for ac_exec_ext in '' $ac_executable_extensions; do
9700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703    break 2
9704  fi
9705done
9706  done
9707IFS=$as_save_IFS
9708
9709  ;;
9710esac
9711fi
9712PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9713if test -n "$PKG_CONFIG"; then
9714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9715$as_echo "$PKG_CONFIG" >&6; }
9716else
9717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718$as_echo "no" >&6; }
9719fi
9720
9721
9722fi
9723if test -z "$ac_cv_path_PKG_CONFIG"; then
9724  ac_pt_PKG_CONFIG=$PKG_CONFIG
9725  # Extract the first word of "pkg-config", so it can be a program name with args.
9726set dummy pkg-config; ac_word=$2
9727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9728$as_echo_n "checking for $ac_word... " >&6; }
9729if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9730  $as_echo_n "(cached) " >&6
9731else
9732  case $ac_pt_PKG_CONFIG in
9733  [\\/]* | ?:[\\/]*)
9734  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9735  ;;
9736  *)
9737  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738for as_dir in $PATH
9739do
9740  IFS=$as_save_IFS
9741  test -z "$as_dir" && as_dir=.
9742    for ac_exec_ext in '' $ac_executable_extensions; do
9743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9744    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746    break 2
9747  fi
9748done
9749  done
9750IFS=$as_save_IFS
9751
9752  ;;
9753esac
9754fi
9755ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9756if test -n "$ac_pt_PKG_CONFIG"; then
9757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9758$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9759else
9760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761$as_echo "no" >&6; }
9762fi
9763
9764  if test "x$ac_pt_PKG_CONFIG" = x; then
9765    PKG_CONFIG="no"
9766  else
9767    case $cross_compiling:$ac_tool_warned in
9768yes:)
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9771ac_tool_warned=yes ;;
9772esac
9773    PKG_CONFIG=$ac_pt_PKG_CONFIG
9774  fi
9775else
9776  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9777fi
9778
9779  fi
9780
9781  if test "x$PKG_CONFIG" != "xno"; then
9782
9783  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9784  {
9785    no_gtk=""
9786    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9787	  && $PKG_CONFIG --exists gtk+-2.0; then
9788    {
9789      min_gtk_version=3.0.0
9790      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9791$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9792                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9793      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9794      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9795      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9796	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9797      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9798	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9799      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9800	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9801    }
9802    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9803	  && $PKG_CONFIG --exists gtk+-3.0; then
9804    {
9805      min_gtk_version=3.0.0
9806      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9807$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9808
9809      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9810      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9811      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9812      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9813	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9814      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9815	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9816      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9817	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9818    }
9819    else
9820      no_gtk=yes
9821    fi
9822
9823    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9824    {
9825      ac_save_CFLAGS="$CFLAGS"
9826      ac_save_LIBS="$LIBS"
9827      CFLAGS="$CFLAGS $GTK_CFLAGS"
9828      LIBS="$LIBS $GTK_LIBS"
9829
9830                        rm -f conf.gtktest
9831      if test "$cross_compiling" = yes; then :
9832  echo $ac_n "cross compiling; assumed OK... $ac_c"
9833else
9834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835/* end confdefs.h.  */
9836
9837#include <gtk/gtk.h>
9838#include <stdio.h>
9839#if STDC_HEADERS
9840# include <stdlib.h>
9841# include <stddef.h>
9842#endif
9843
9844int
9845main ()
9846{
9847int major, minor, micro;
9848char *tmp_version;
9849
9850system ("touch conf.gtktest");
9851
9852/* HP/UX 9 (%@#!) writes to sscanf strings */
9853tmp_version = g_strdup("$min_gtk_version");
9854if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9855   printf("%s, bad version string\n", "$min_gtk_version");
9856   exit(1);
9857 }
9858
9859if ((gtk_major_version > major) ||
9860    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9861    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9862				     (gtk_micro_version >= micro)))
9863{
9864    return 0;
9865}
9866return 1;
9867}
9868
9869_ACEOF
9870if ac_fn_c_try_run "$LINENO"; then :
9871
9872else
9873  no_gtk=yes
9874fi
9875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9876  conftest.$ac_objext conftest.beam conftest.$ac_ext
9877fi
9878
9879      CFLAGS="$ac_save_CFLAGS"
9880      LIBS="$ac_save_LIBS"
9881    }
9882    fi
9883    if test "x$no_gtk" = x ; then
9884      if test "x$enable_gtktest" = "xyes"; then
9885	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9886$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9887      else
9888	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9889$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9890      fi
9891      GUI_LIB_LOC="$GTK_LIBDIR"
9892		 GTK_LIBNAME="$GTK_LIBS"
9893		GUI_INC_LOC="$GTK_CFLAGS"
9894    else
9895    {
9896      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897$as_echo "no" >&6; }
9898      GTK_CFLAGS=""
9899      GTK_LIBS=""
9900      :
9901      if test "$fail_if_missing" = "yes" -a "X$gui_auto" != "Xyes"; then
9902	as_fn_error $? "could not configure GTK" "$LINENO" 5
9903      fi
9904    }
9905    fi
9906  }
9907  else
9908    GTK_CFLAGS=""
9909    GTK_LIBS=""
9910    :
9911  fi
9912
9913
9914  rm -f conf.gtktest
9915
9916    if test "x$GTK_CFLAGS" != "x"; then
9917      SKIP_GTK2=YES
9918      SKIP_GNOME=YES
9919      SKIP_ATHENA=YES
9920      SKIP_NEXTAW=YES
9921      SKIP_MOTIF=YES
9922      GUITYPE=GTK
9923
9924      $as_echo "#define USE_GTK3 1" >>confdefs.h
9925
9926    fi
9927  fi
9928fi
9929
9930if test "x$GUITYPE" = "xGTK"; then
9931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9932$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9933  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9934  if test "x$gdk_pixbuf_version" != x ; then
9935    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9936      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9937    if test "x$gdk_pixbuf_version_minor" != x -a \
9938	$gdk_pixbuf_version_minor -ge 31 ; then
9939      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
9940$as_echo "OK." >&6; }
9941      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
9942set dummy glib-compile-resources; ac_word=$2
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944$as_echo_n "checking for $ac_word... " >&6; }
9945if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
9946  $as_echo_n "(cached) " >&6
9947else
9948  case $GLIB_COMPILE_RESOURCES in
9949  [\\/]* | ?:[\\/]*)
9950  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
9951  ;;
9952  *)
9953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954for as_dir in $PATH
9955do
9956  IFS=$as_save_IFS
9957  test -z "$as_dir" && as_dir=.
9958    for ac_exec_ext in '' $ac_executable_extensions; do
9959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9960    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
9961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9962    break 2
9963  fi
9964done
9965  done
9966IFS=$as_save_IFS
9967
9968  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
9969  ;;
9970esac
9971fi
9972GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
9973if test -n "$GLIB_COMPILE_RESOURCES"; then
9974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
9975$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
9976else
9977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978$as_echo "no" >&6; }
9979fi
9980
9981
9982      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
9983$as_echo_n "checking glib-compile-resources... " >&6; }
9984      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
9985	GLIB_COMPILE_RESOURCES=""
9986	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
9987$as_echo "cannot be found in PATH." >&6; }
9988      else
9989	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
9990$as_echo "usable." >&6; }
9991	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
9992
9993	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
9994	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
9995      fi
9996    else
9997      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
9998$as_echo "not usable." >&6; }
9999    fi
10000  else
10001    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
10002$as_echo "cannot obtain from pkg_config." >&6; }
10003  fi
10004
10005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
10006$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
10007  # Check whether --enable-icon_cache_update was given.
10008if test "${enable_icon_cache_update+set}" = set; then :
10009  enableval=$enable_icon_cache_update;
10010else
10011  enable_icon_cache_update="yes"
10012fi
10013
10014  if test "$enable_icon_cache_update" = "yes"; then
10015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10016$as_echo "not set" >&6; }
10017    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
10018set dummy gtk-update-icon-cache; ac_word=$2
10019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020$as_echo_n "checking for $ac_word... " >&6; }
10021if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
10022  $as_echo_n "(cached) " >&6
10023else
10024  case $GTK_UPDATE_ICON_CACHE in
10025  [\\/]* | ?:[\\/]*)
10026  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
10027  ;;
10028  *)
10029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030for as_dir in $PATH
10031do
10032  IFS=$as_save_IFS
10033  test -z "$as_dir" && as_dir=.
10034    for ac_exec_ext in '' $ac_executable_extensions; do
10035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10036    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
10037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038    break 2
10039  fi
10040done
10041  done
10042IFS=$as_save_IFS
10043
10044  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
10045  ;;
10046esac
10047fi
10048GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
10049if test -n "$GTK_UPDATE_ICON_CACHE"; then
10050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
10051$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
10052else
10053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054$as_echo "no" >&6; }
10055fi
10056
10057
10058    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
10059      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10060$as_echo "not found in PATH." >&6; }
10061    fi
10062  else
10063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10064$as_echo "update disabled" >&6; }
10065  fi
10066
10067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
10068$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
10069  # Check whether --enable-desktop_database_update was given.
10070if test "${enable_desktop_database_update+set}" = set; then :
10071  enableval=$enable_desktop_database_update;
10072else
10073  enable_desktop_database_update="yes"
10074fi
10075
10076  if test "$enable_desktop_database_update" = "yes"; then
10077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10078$as_echo "not set" >&6; }
10079    # Extract the first word of "update-desktop-database", so it can be a program name with args.
10080set dummy update-desktop-database; ac_word=$2
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082$as_echo_n "checking for $ac_word... " >&6; }
10083if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
10084  $as_echo_n "(cached) " >&6
10085else
10086  case $UPDATE_DESKTOP_DATABASE in
10087  [\\/]* | ?:[\\/]*)
10088  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
10089  ;;
10090  *)
10091  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092for as_dir in $PATH
10093do
10094  IFS=$as_save_IFS
10095  test -z "$as_dir" && as_dir=.
10096    for ac_exec_ext in '' $ac_executable_extensions; do
10097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10098    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
10099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10100    break 2
10101  fi
10102done
10103  done
10104IFS=$as_save_IFS
10105
10106  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
10107  ;;
10108esac
10109fi
10110UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
10111if test -n "$UPDATE_DESKTOP_DATABASE"; then
10112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
10113$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
10114else
10115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116$as_echo "no" >&6; }
10117fi
10118
10119
10120    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
10121      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10122$as_echo "not found in PATH." >&6; }
10123    fi
10124  else
10125    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10126$as_echo "update disabled" >&6; }
10127  fi
10128fi
10129
10130
10131
10132
10133
10134
10135
10136if test -z "$SKIP_MOTIF"; then
10137  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"
10138    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
10139
10140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
10141$as_echo_n "checking for location of Motif GUI includes... " >&6; }
10142  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
10143  GUI_INC_LOC=
10144  for try in $gui_includes; do
10145    if test -f "$try/Xm/Xm.h"; then
10146      GUI_INC_LOC=$try
10147    fi
10148  done
10149  if test -n "$GUI_INC_LOC"; then
10150    if test "$GUI_INC_LOC" = /usr/include; then
10151      GUI_INC_LOC=
10152      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10153$as_echo "in default path" >&6; }
10154    else
10155      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
10156$as_echo "$GUI_INC_LOC" >&6; }
10157    fi
10158  else
10159    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10160$as_echo "<not found>" >&6; }
10161    SKIP_MOTIF=YES
10162  fi
10163fi
10164
10165
10166if test -z "$SKIP_MOTIF"; then
10167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
10168$as_echo_n "checking --with-motif-lib argument... " >&6; }
10169
10170# Check whether --with-motif-lib was given.
10171if test "${with_motif_lib+set}" = set; then :
10172  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
10173fi
10174
10175
10176  if test -n "$MOTIF_LIBNAME"; then
10177    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
10178$as_echo "$MOTIF_LIBNAME" >&6; }
10179    GUI_LIB_LOC=
10180  else
10181    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182$as_echo "no" >&6; }
10183
10184        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
10185
10186            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
10187$as_echo_n "checking for location of Motif GUI libs... " >&6; }
10188    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"
10189    GUI_LIB_LOC=
10190    for try in $gui_libs; do
10191      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
10192	if test -f "$libtry"; then
10193	  GUI_LIB_LOC=$try
10194	fi
10195      done
10196    done
10197    if test -n "$GUI_LIB_LOC"; then
10198            if test "$GUI_LIB_LOC" = /usr/lib \
10199	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
10200	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
10201	GUI_LIB_LOC=
10202	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10203$as_echo "in default path" >&6; }
10204      else
10205	if test -n "$GUI_LIB_LOC"; then
10206	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
10207$as_echo "$GUI_LIB_LOC" >&6; }
10208	  if test "`(uname) 2>/dev/null`" = SunOS &&
10209					 uname -r | grep '^5' >/dev/null; then
10210	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
10211	  fi
10212	fi
10213      fi
10214      MOTIF_LIBNAME=-lXm
10215    else
10216      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10217$as_echo "<not found>" >&6; }
10218      SKIP_MOTIF=YES
10219    fi
10220  fi
10221fi
10222
10223if test -z "$SKIP_MOTIF"; then
10224  SKIP_ATHENA=YES
10225  SKIP_NEXTAW=YES
10226  GUITYPE=MOTIF
10227
10228fi
10229
10230
10231GUI_X_LIBS=
10232
10233if test -z "$SKIP_ATHENA"; then
10234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
10235$as_echo_n "checking if Athena header files can be found... " >&6; }
10236  cflags_save=$CFLAGS
10237  CFLAGS="$CFLAGS $X_CFLAGS"
10238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239/* end confdefs.h.  */
10240
10241#include <X11/Intrinsic.h>
10242#include <X11/Xaw/Paned.h>
10243int
10244main ()
10245{
10246
10247  ;
10248  return 0;
10249}
10250_ACEOF
10251if ac_fn_c_try_compile "$LINENO"; then :
10252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10253$as_echo "yes" >&6; }
10254else
10255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256$as_echo "no" >&6; }; SKIP_ATHENA=YES
10257fi
10258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10259  CFLAGS=$cflags_save
10260fi
10261
10262if test -z "$SKIP_ATHENA"; then
10263  GUITYPE=ATHENA
10264fi
10265
10266if test -z "$SKIP_NEXTAW"; then
10267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
10268$as_echo_n "checking if neXtaw header files can be found... " >&6; }
10269  cflags_save=$CFLAGS
10270  CFLAGS="$CFLAGS $X_CFLAGS"
10271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272/* end confdefs.h.  */
10273
10274#include <X11/Intrinsic.h>
10275#include <X11/neXtaw/Paned.h>
10276int
10277main ()
10278{
10279
10280  ;
10281  return 0;
10282}
10283_ACEOF
10284if ac_fn_c_try_compile "$LINENO"; then :
10285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10286$as_echo "yes" >&6; }
10287else
10288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289$as_echo "no" >&6; }; SKIP_NEXTAW=YES
10290fi
10291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10292  CFLAGS=$cflags_save
10293fi
10294
10295if test -z "$SKIP_NEXTAW"; then
10296  GUITYPE=NEXTAW
10297fi
10298
10299if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10300      if test -n "$GUI_INC_LOC"; then
10301    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
10302  fi
10303  if test -n "$GUI_LIB_LOC"; then
10304    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
10305  fi
10306
10307    ldflags_save=$LDFLAGS
10308  LDFLAGS="$X_LIBS $LDFLAGS"
10309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10310$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10311if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10312  $as_echo_n "(cached) " >&6
10313else
10314  ac_check_lib_save_LIBS=$LIBS
10315LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317/* end confdefs.h.  */
10318
10319/* Override any GCC internal prototype to avoid an error.
10320   Use char because int might match the return type of a GCC
10321   builtin and then its argument prototype would still apply.  */
10322#ifdef __cplusplus
10323extern "C"
10324#endif
10325char XShapeQueryExtension ();
10326int
10327main ()
10328{
10329return XShapeQueryExtension ();
10330  ;
10331  return 0;
10332}
10333_ACEOF
10334if ac_fn_c_try_link "$LINENO"; then :
10335  ac_cv_lib_Xext_XShapeQueryExtension=yes
10336else
10337  ac_cv_lib_Xext_XShapeQueryExtension=no
10338fi
10339rm -f core conftest.err conftest.$ac_objext \
10340    conftest$ac_exeext conftest.$ac_ext
10341LIBS=$ac_check_lib_save_LIBS
10342fi
10343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10344$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10345if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10346  GUI_X_LIBS="-lXext"
10347fi
10348
10349    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
10350$as_echo_n "checking for wslen in -lw... " >&6; }
10351if ${ac_cv_lib_w_wslen+:} false; then :
10352  $as_echo_n "(cached) " >&6
10353else
10354  ac_check_lib_save_LIBS=$LIBS
10355LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357/* end confdefs.h.  */
10358
10359/* Override any GCC internal prototype to avoid an error.
10360   Use char because int might match the return type of a GCC
10361   builtin and then its argument prototype would still apply.  */
10362#ifdef __cplusplus
10363extern "C"
10364#endif
10365char wslen ();
10366int
10367main ()
10368{
10369return wslen ();
10370  ;
10371  return 0;
10372}
10373_ACEOF
10374if ac_fn_c_try_link "$LINENO"; then :
10375  ac_cv_lib_w_wslen=yes
10376else
10377  ac_cv_lib_w_wslen=no
10378fi
10379rm -f core conftest.err conftest.$ac_objext \
10380    conftest$ac_exeext conftest.$ac_ext
10381LIBS=$ac_check_lib_save_LIBS
10382fi
10383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
10384$as_echo "$ac_cv_lib_w_wslen" >&6; }
10385if test "x$ac_cv_lib_w_wslen" = xyes; then :
10386  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
10387fi
10388
10389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10390$as_echo_n "checking for dlsym in -ldl... " >&6; }
10391if ${ac_cv_lib_dl_dlsym+:} false; then :
10392  $as_echo_n "(cached) " >&6
10393else
10394  ac_check_lib_save_LIBS=$LIBS
10395LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397/* end confdefs.h.  */
10398
10399/* Override any GCC internal prototype to avoid an error.
10400   Use char because int might match the return type of a GCC
10401   builtin and then its argument prototype would still apply.  */
10402#ifdef __cplusplus
10403extern "C"
10404#endif
10405char dlsym ();
10406int
10407main ()
10408{
10409return dlsym ();
10410  ;
10411  return 0;
10412}
10413_ACEOF
10414if ac_fn_c_try_link "$LINENO"; then :
10415  ac_cv_lib_dl_dlsym=yes
10416else
10417  ac_cv_lib_dl_dlsym=no
10418fi
10419rm -f core conftest.err conftest.$ac_objext \
10420    conftest$ac_exeext conftest.$ac_ext
10421LIBS=$ac_check_lib_save_LIBS
10422fi
10423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10424$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10425if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10426  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
10427fi
10428
10429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
10430$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
10431if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
10432  $as_echo_n "(cached) " >&6
10433else
10434  ac_check_lib_save_LIBS=$LIBS
10435LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437/* end confdefs.h.  */
10438
10439/* Override any GCC internal prototype to avoid an error.
10440   Use char because int might match the return type of a GCC
10441   builtin and then its argument prototype would still apply.  */
10442#ifdef __cplusplus
10443extern "C"
10444#endif
10445char XmuCreateStippledPixmap ();
10446int
10447main ()
10448{
10449return XmuCreateStippledPixmap ();
10450  ;
10451  return 0;
10452}
10453_ACEOF
10454if ac_fn_c_try_link "$LINENO"; then :
10455  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
10456else
10457  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
10458fi
10459rm -f core conftest.err conftest.$ac_objext \
10460    conftest$ac_exeext conftest.$ac_ext
10461LIBS=$ac_check_lib_save_LIBS
10462fi
10463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
10464$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
10465if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
10466  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
10467fi
10468
10469  if test -z "$SKIP_MOTIF"; then
10470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
10471$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
10472if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
10473  $as_echo_n "(cached) " >&6
10474else
10475  ac_check_lib_save_LIBS=$LIBS
10476LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478/* end confdefs.h.  */
10479
10480/* Override any GCC internal prototype to avoid an error.
10481   Use char because int might match the return type of a GCC
10482   builtin and then its argument prototype would still apply.  */
10483#ifdef __cplusplus
10484extern "C"
10485#endif
10486char XpEndJob ();
10487int
10488main ()
10489{
10490return XpEndJob ();
10491  ;
10492  return 0;
10493}
10494_ACEOF
10495if ac_fn_c_try_link "$LINENO"; then :
10496  ac_cv_lib_Xp_XpEndJob=yes
10497else
10498  ac_cv_lib_Xp_XpEndJob=no
10499fi
10500rm -f core conftest.err conftest.$ac_objext \
10501    conftest$ac_exeext conftest.$ac_ext
10502LIBS=$ac_check_lib_save_LIBS
10503fi
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
10505$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
10506if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
10507  GUI_X_LIBS="-lXp $GUI_X_LIBS"
10508fi
10509
10510  fi
10511  LDFLAGS=$ldflags_save
10512
10513    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
10514$as_echo_n "checking for extra X11 defines... " >&6; }
10515  NARROW_PROTO=
10516  rm -fr conftestdir
10517  if mkdir conftestdir; then
10518    cd conftestdir
10519    cat > Imakefile <<'EOF'
10520acfindx:
10521	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
10522EOF
10523    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10524      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10525    fi
10526    cd ..
10527    rm -fr conftestdir
10528  fi
10529  if test -z "$NARROW_PROTO"; then
10530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531$as_echo "no" >&6; }
10532  else
10533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
10534$as_echo "$NARROW_PROTO" >&6; }
10535  fi
10536
10537fi
10538
10539if test "$enable_xsmp" = "yes"; then
10540  cppflags_save=$CPPFLAGS
10541  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10542  for ac_header in X11/SM/SMlib.h
10543do :
10544  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10545if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
10546  cat >>confdefs.h <<_ACEOF
10547#define HAVE_X11_SM_SMLIB_H 1
10548_ACEOF
10549
10550fi
10551
10552done
10553
10554  CPPFLAGS=$cppflags_save
10555fi
10556
10557
10558if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
10559    cppflags_save=$CPPFLAGS
10560  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10561  for ac_header in X11/xpm.h X11/Sunkeysym.h
10562do :
10563  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10564ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10565if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10566  cat >>confdefs.h <<_ACEOF
10567#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10568_ACEOF
10569
10570fi
10571
10572done
10573
10574
10575    if test ! "$enable_xim" = "no"; then
10576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
10577$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10578    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579/* end confdefs.h.  */
10580#include <X11/Xlib.h>
10581_ACEOF
10582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10583  $EGREP "XIMText" >/dev/null 2>&1; then :
10584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10585$as_echo "yes" >&6; }
10586else
10587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10588$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
10589fi
10590rm -f conftest*
10591
10592  fi
10593  CPPFLAGS=$cppflags_save
10594
10595    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10596		-a "x$GUITYPE" != "xNONE" ; then
10597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10598$as_echo "X GUI selected; xim has been enabled" >&6; }
10599    enable_xim="yes"
10600  fi
10601fi
10602
10603if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10604  cppflags_save=$CPPFLAGS
10605  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10607$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609/* end confdefs.h.  */
10610
10611#include <X11/Intrinsic.h>
10612#include <X11/Xmu/Editres.h>
10613int
10614main ()
10615{
10616int i; i = 0;
10617  ;
10618  return 0;
10619}
10620_ACEOF
10621if ac_fn_c_try_compile "$LINENO"; then :
10622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10623$as_echo "yes" >&6; }
10624		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10625
10626else
10627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628$as_echo "no" >&6; }
10629fi
10630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10631  CPPFLAGS=$cppflags_save
10632fi
10633
10634if test -z "$SKIP_MOTIF"; then
10635  cppflags_save=$CPPFLAGS
10636  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10637  if test "$zOSUnix" = "yes"; then
10638	xmheader="Xm/Xm.h"
10639  else
10640	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10641	   Xm/UnhighlightT.h Xm/Notebook.h"
10642  fi
10643  for ac_header in $xmheader
10644do :
10645  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10646ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10647if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10648  cat >>confdefs.h <<_ACEOF
10649#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10650_ACEOF
10651
10652fi
10653
10654done
10655
10656
10657  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10658        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10659$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10660    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661/* end confdefs.h.  */
10662#include <Xm/XpmP.h>
10663int
10664main ()
10665{
10666XpmAttributes_21 attr;
10667  ;
10668  return 0;
10669}
10670_ACEOF
10671if ac_fn_c_try_compile "$LINENO"; then :
10672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10673$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10674
10675else
10676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10677$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10678
10679
10680fi
10681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682  else
10683    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10684
10685  fi
10686  CPPFLAGS=$cppflags_save
10687fi
10688
10689if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10691$as_echo "no GUI selected; xim has been disabled" >&6; }
10692  enable_xim="no"
10693fi
10694if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10696$as_echo "no GUI selected; fontset has been disabled" >&6; }
10697  enable_fontset="no"
10698fi
10699if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10701$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10702  enable_fontset="no"
10703fi
10704
10705if test -z "$SKIP_PHOTON"; then
10706  GUITYPE=PHOTONGUI
10707fi
10708
10709
10710
10711
10712
10713
10714if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10715  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10716fi
10717
10718if test "$enable_xim" = "yes"; then
10719  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10720
10721fi
10722if test "$enable_fontset" = "yes"; then
10723  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10724
10725fi
10726
10727
10728
10729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10730$as_echo_n "checking for /proc link to executable... " >&6; }
10731if test -L "/proc/self/exe"; then
10732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10733$as_echo "/proc/self/exe" >&6; }
10734  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10735
10736elif test -L "/proc/self/path/a.out"; then
10737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10738$as_echo "/proc/self/path/a.out" >&6; }
10739  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10740
10741elif test -L "/proc/curproc/file"; then
10742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10743$as_echo "/proc/curproc/file" >&6; }
10744  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10745
10746else
10747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748$as_echo "no" >&6; }
10749fi
10750
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10752$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10753case `uname` in
10754    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10755$as_echo "yes" >&6; }
10756                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10757$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10758                if test "x$with_x" = "xno" ; then
10759                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10760                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10761$as_echo "yes" >&6; }
10762                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10763
10764                else
10765                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10766$as_echo "no - using X11" >&6; }
10767                fi ;;
10768
10769    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770$as_echo "no" >&6; };;
10771esac
10772
10773if test "$enable_hangulinput" = "yes"; then
10774  if test "x$GUITYPE" = "xNONE"; then
10775    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
10776$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10777    enable_hangulinput=no
10778  else
10779    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
10780
10781    HANGULIN_SRC=hangulin.c
10782
10783    HANGULIN_OBJ=objects/hangulin.o
10784
10785  fi
10786fi
10787
10788
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10790$as_echo_n "checking whether toupper is broken... " >&6; }
10791if ${vim_cv_toupper_broken+:} false; then :
10792  $as_echo_n "(cached) " >&6
10793else
10794
10795    if test "$cross_compiling" = yes; then :
10796
10797    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10798
10799else
10800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801/* end confdefs.h.  */
10802
10803#include "confdefs.h"
10804#include <ctype.h>
10805#if STDC_HEADERS
10806# include <stdlib.h>
10807# include <stddef.h>
10808#endif
10809main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10810
10811_ACEOF
10812if ac_fn_c_try_run "$LINENO"; then :
10813
10814    vim_cv_toupper_broken=yes
10815
10816else
10817
10818    vim_cv_toupper_broken=no
10819
10820fi
10821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10822  conftest.$ac_objext conftest.beam conftest.$ac_ext
10823fi
10824
10825fi
10826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10827$as_echo "$vim_cv_toupper_broken" >&6; }
10828
10829if test "x$vim_cv_toupper_broken" = "xyes" ; then
10830  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10831
10832fi
10833
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10835$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837/* end confdefs.h.  */
10838#include <stdio.h>
10839int
10840main ()
10841{
10842printf("(" __DATE__ " " __TIME__ ")");
10843  ;
10844  return 0;
10845}
10846_ACEOF
10847if ac_fn_c_try_compile "$LINENO"; then :
10848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10849$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10850
10851else
10852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853$as_echo "no" >&6; }
10854fi
10855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10858$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860/* end confdefs.h.  */
10861#include <stdio.h>
10862int
10863main ()
10864{
10865int x __attribute__((unused));
10866  ;
10867  return 0;
10868}
10869_ACEOF
10870if ac_fn_c_try_compile "$LINENO"; then :
10871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10872$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10873
10874else
10875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876$as_echo "no" >&6; }
10877fi
10878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10879
10880ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10881if test "x$ac_cv_header_elf_h" = xyes; then :
10882  HAS_ELF=1
10883fi
10884
10885
10886if test "$HAS_ELF" = 1; then
10887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10888$as_echo_n "checking for main in -lelf... " >&6; }
10889if ${ac_cv_lib_elf_main+:} false; then :
10890  $as_echo_n "(cached) " >&6
10891else
10892  ac_check_lib_save_LIBS=$LIBS
10893LIBS="-lelf  $LIBS"
10894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895/* end confdefs.h.  */
10896
10897
10898int
10899main ()
10900{
10901return main ();
10902  ;
10903  return 0;
10904}
10905_ACEOF
10906if ac_fn_c_try_link "$LINENO"; then :
10907  ac_cv_lib_elf_main=yes
10908else
10909  ac_cv_lib_elf_main=no
10910fi
10911rm -f core conftest.err conftest.$ac_objext \
10912    conftest$ac_exeext conftest.$ac_ext
10913LIBS=$ac_check_lib_save_LIBS
10914fi
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10916$as_echo "$ac_cv_lib_elf_main" >&6; }
10917if test "x$ac_cv_lib_elf_main" = xyes; then :
10918  cat >>confdefs.h <<_ACEOF
10919#define HAVE_LIBELF 1
10920_ACEOF
10921
10922  LIBS="-lelf $LIBS"
10923
10924fi
10925
10926fi
10927
10928ac_header_dirent=no
10929for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10930  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10932$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10933if eval \${$as_ac_Header+:} false; then :
10934  $as_echo_n "(cached) " >&6
10935else
10936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937/* end confdefs.h.  */
10938#include <sys/types.h>
10939#include <$ac_hdr>
10940
10941int
10942main ()
10943{
10944if ((DIR *) 0)
10945return 0;
10946  ;
10947  return 0;
10948}
10949_ACEOF
10950if ac_fn_c_try_compile "$LINENO"; then :
10951  eval "$as_ac_Header=yes"
10952else
10953  eval "$as_ac_Header=no"
10954fi
10955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10956fi
10957eval ac_res=\$$as_ac_Header
10958	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10959$as_echo "$ac_res" >&6; }
10960if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10961  cat >>confdefs.h <<_ACEOF
10962#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10963_ACEOF
10964
10965ac_header_dirent=$ac_hdr; break
10966fi
10967
10968done
10969# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10970if test $ac_header_dirent = dirent.h; then
10971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10972$as_echo_n "checking for library containing opendir... " >&6; }
10973if ${ac_cv_search_opendir+:} false; then :
10974  $as_echo_n "(cached) " >&6
10975else
10976  ac_func_search_save_LIBS=$LIBS
10977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978/* end confdefs.h.  */
10979
10980/* Override any GCC internal prototype to avoid an error.
10981   Use char because int might match the return type of a GCC
10982   builtin and then its argument prototype would still apply.  */
10983#ifdef __cplusplus
10984extern "C"
10985#endif
10986char opendir ();
10987int
10988main ()
10989{
10990return opendir ();
10991  ;
10992  return 0;
10993}
10994_ACEOF
10995for ac_lib in '' dir; do
10996  if test -z "$ac_lib"; then
10997    ac_res="none required"
10998  else
10999    ac_res=-l$ac_lib
11000    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11001  fi
11002  if ac_fn_c_try_link "$LINENO"; then :
11003  ac_cv_search_opendir=$ac_res
11004fi
11005rm -f core conftest.err conftest.$ac_objext \
11006    conftest$ac_exeext
11007  if ${ac_cv_search_opendir+:} false; then :
11008  break
11009fi
11010done
11011if ${ac_cv_search_opendir+:} false; then :
11012
11013else
11014  ac_cv_search_opendir=no
11015fi
11016rm conftest.$ac_ext
11017LIBS=$ac_func_search_save_LIBS
11018fi
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11020$as_echo "$ac_cv_search_opendir" >&6; }
11021ac_res=$ac_cv_search_opendir
11022if test "$ac_res" != no; then :
11023  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11024
11025fi
11026
11027else
11028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11029$as_echo_n "checking for library containing opendir... " >&6; }
11030if ${ac_cv_search_opendir+:} false; then :
11031  $as_echo_n "(cached) " >&6
11032else
11033  ac_func_search_save_LIBS=$LIBS
11034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035/* end confdefs.h.  */
11036
11037/* Override any GCC internal prototype to avoid an error.
11038   Use char because int might match the return type of a GCC
11039   builtin and then its argument prototype would still apply.  */
11040#ifdef __cplusplus
11041extern "C"
11042#endif
11043char opendir ();
11044int
11045main ()
11046{
11047return opendir ();
11048  ;
11049  return 0;
11050}
11051_ACEOF
11052for ac_lib in '' x; do
11053  if test -z "$ac_lib"; then
11054    ac_res="none required"
11055  else
11056    ac_res=-l$ac_lib
11057    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11058  fi
11059  if ac_fn_c_try_link "$LINENO"; then :
11060  ac_cv_search_opendir=$ac_res
11061fi
11062rm -f core conftest.err conftest.$ac_objext \
11063    conftest$ac_exeext
11064  if ${ac_cv_search_opendir+:} false; then :
11065  break
11066fi
11067done
11068if ${ac_cv_search_opendir+:} false; then :
11069
11070else
11071  ac_cv_search_opendir=no
11072fi
11073rm conftest.$ac_ext
11074LIBS=$ac_func_search_save_LIBS
11075fi
11076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11077$as_echo "$ac_cv_search_opendir" >&6; }
11078ac_res=$ac_cv_search_opendir
11079if test "$ac_res" != no; then :
11080  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11081
11082fi
11083
11084fi
11085
11086
11087if test $ac_cv_header_sys_wait_h = no; then
11088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
11089$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091/* end confdefs.h.  */
11092#include <sys/wait.h>
11093int
11094main ()
11095{
11096union wait xx, yy; xx = yy
11097  ;
11098  return 0;
11099}
11100_ACEOF
11101if ac_fn_c_try_compile "$LINENO"; then :
11102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11103$as_echo "yes" >&6; }
11104			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11105
11106			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
11107
11108else
11109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110$as_echo "no" >&6; }
11111fi
11112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113fi
11114
11115for ac_header in stdint.h stdlib.h string.h \
11116	sys/select.h sys/utsname.h termcap.h fcntl.h \
11117	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
11118	termio.h iconv.h inttypes.h langinfo.h math.h \
11119	unistd.h stropts.h errno.h sys/resource.h \
11120	sys/systeminfo.h locale.h sys/stream.h termios.h \
11121	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
11122	utime.h sys/param.h sys/ptms.h libintl.h libgen.h \
11123	util/debug.h util/msg18n.h frame.h sys/acl.h \
11124	sys/access.h sys/sysinfo.h wchar.h wctype.h
11125do :
11126  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11127ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11128if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11129  cat >>confdefs.h <<_ACEOF
11130#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11131_ACEOF
11132
11133fi
11134
11135done
11136
11137
11138for ac_header in sys/ptem.h
11139do :
11140  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
11141#  include <sys/stream.h>
11142#endif
11143"
11144if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
11145  cat >>confdefs.h <<_ACEOF
11146#define HAVE_SYS_PTEM_H 1
11147_ACEOF
11148
11149fi
11150
11151done
11152
11153
11154for ac_header in sys/sysctl.h
11155do :
11156  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
11157#  include <sys/param.h>
11158#endif
11159"
11160if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
11161  cat >>confdefs.h <<_ACEOF
11162#define HAVE_SYS_SYSCTL_H 1
11163_ACEOF
11164
11165fi
11166
11167done
11168
11169
11170
11171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
11172$as_echo_n "checking for pthread_np.h... " >&6; }
11173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174/* end confdefs.h.  */
11175
11176#include <pthread.h>
11177#include <pthread_np.h>
11178int
11179main ()
11180{
11181int i; i = 0;
11182  ;
11183  return 0;
11184}
11185_ACEOF
11186if ac_fn_c_try_compile "$LINENO"; then :
11187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11188$as_echo "yes" >&6; }
11189		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
11190
11191else
11192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193$as_echo "no" >&6; }
11194fi
11195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11196
11197for ac_header in strings.h
11198do :
11199  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
11200if test "x$ac_cv_header_strings_h" = xyes; then :
11201  cat >>confdefs.h <<_ACEOF
11202#define HAVE_STRINGS_H 1
11203_ACEOF
11204
11205fi
11206
11207done
11208
11209if test "x$MACOS_X" = "xyes"; then
11210    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11211
11212else
11213
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
11215$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11216cppflags_save=$CPPFLAGS
11217CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219/* end confdefs.h.  */
11220
11221#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11222# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11223			/* but don't do it on AIX 5.1 (Uribarri) */
11224#endif
11225#ifdef HAVE_XM_XM_H
11226# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11227#endif
11228#ifdef HAVE_STRING_H
11229# include <string.h>
11230#endif
11231#if defined(HAVE_STRINGS_H)
11232# include <strings.h>
11233#endif
11234
11235int
11236main ()
11237{
11238int i; i = 0;
11239  ;
11240  return 0;
11241}
11242_ACEOF
11243if ac_fn_c_try_compile "$LINENO"; then :
11244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11245$as_echo "yes" >&6; }
11246else
11247  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11248
11249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250$as_echo "no" >&6; }
11251fi
11252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11253CPPFLAGS=$cppflags_save
11254fi
11255
11256if test $ac_cv_c_compiler_gnu = yes; then
11257    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11258$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11259if ${ac_cv_prog_gcc_traditional+:} false; then :
11260  $as_echo_n "(cached) " >&6
11261else
11262    ac_pattern="Autoconf.*'x'"
11263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264/* end confdefs.h.  */
11265#include <sgtty.h>
11266Autoconf TIOCGETP
11267_ACEOF
11268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11269  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11270  ac_cv_prog_gcc_traditional=yes
11271else
11272  ac_cv_prog_gcc_traditional=no
11273fi
11274rm -f conftest*
11275
11276
11277  if test $ac_cv_prog_gcc_traditional = no; then
11278    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279/* end confdefs.h.  */
11280#include <termio.h>
11281Autoconf TCGETA
11282_ACEOF
11283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11284  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11285  ac_cv_prog_gcc_traditional=yes
11286fi
11287rm -f conftest*
11288
11289  fi
11290fi
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11292$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11293  if test $ac_cv_prog_gcc_traditional = yes; then
11294    CC="$CC -traditional"
11295  fi
11296fi
11297
11298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11299$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11300if ${ac_cv_c_const+:} false; then :
11301  $as_echo_n "(cached) " >&6
11302else
11303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304/* end confdefs.h.  */
11305
11306int
11307main ()
11308{
11309
11310#ifndef __cplusplus
11311  /* Ultrix mips cc rejects this sort of thing.  */
11312  typedef int charset[2];
11313  const charset cs = { 0, 0 };
11314  /* SunOS 4.1.1 cc rejects this.  */
11315  char const *const *pcpcc;
11316  char **ppc;
11317  /* NEC SVR4.0.2 mips cc rejects this.  */
11318  struct point {int x, y;};
11319  static struct point const zero = {0,0};
11320  /* AIX XL C 1.02.0.0 rejects this.
11321     It does not let you subtract one const X* pointer from another in
11322     an arm of an if-expression whose if-part is not a constant
11323     expression */
11324  const char *g = "string";
11325  pcpcc = &g + (g ? g-g : 0);
11326  /* HPUX 7.0 cc rejects these. */
11327  ++pcpcc;
11328  ppc = (char**) pcpcc;
11329  pcpcc = (char const *const *) ppc;
11330  { /* SCO 3.2v4 cc rejects this sort of thing.  */
11331    char tx;
11332    char *t = &tx;
11333    char const *s = 0 ? (char *) 0 : (char const *) 0;
11334
11335    *t++ = 0;
11336    if (s) return 0;
11337  }
11338  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11339    int x[] = {25, 17};
11340    const int *foo = &x[0];
11341    ++foo;
11342  }
11343  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11344    typedef const int *iptr;
11345    iptr p = 0;
11346    ++p;
11347  }
11348  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11349       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11350    struct s { int j; const int *ap[3]; } bx;
11351    struct s *b = &bx; b->j = 5;
11352  }
11353  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11354    const int foo = 10;
11355    if (!foo) return 0;
11356  }
11357  return !cs[0] && !zero.x;
11358#endif
11359
11360  ;
11361  return 0;
11362}
11363_ACEOF
11364if ac_fn_c_try_compile "$LINENO"; then :
11365  ac_cv_c_const=yes
11366else
11367  ac_cv_c_const=no
11368fi
11369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370fi
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11372$as_echo "$ac_cv_c_const" >&6; }
11373if test $ac_cv_c_const = no; then
11374
11375$as_echo "#define const /**/" >>confdefs.h
11376
11377fi
11378
11379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11380$as_echo_n "checking for working volatile... " >&6; }
11381if ${ac_cv_c_volatile+:} false; then :
11382  $as_echo_n "(cached) " >&6
11383else
11384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385/* end confdefs.h.  */
11386
11387int
11388main ()
11389{
11390
11391volatile int x;
11392int * volatile y = (int *) 0;
11393return !x && !y;
11394  ;
11395  return 0;
11396}
11397_ACEOF
11398if ac_fn_c_try_compile "$LINENO"; then :
11399  ac_cv_c_volatile=yes
11400else
11401  ac_cv_c_volatile=no
11402fi
11403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404fi
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11406$as_echo "$ac_cv_c_volatile" >&6; }
11407if test $ac_cv_c_volatile = no; then
11408
11409$as_echo "#define volatile /**/" >>confdefs.h
11410
11411fi
11412
11413ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11414if test "x$ac_cv_type_mode_t" = xyes; then :
11415
11416else
11417
11418cat >>confdefs.h <<_ACEOF
11419#define mode_t int
11420_ACEOF
11421
11422fi
11423
11424ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11425if test "x$ac_cv_type_off_t" = xyes; then :
11426
11427else
11428
11429cat >>confdefs.h <<_ACEOF
11430#define off_t long int
11431_ACEOF
11432
11433fi
11434
11435ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11436if test "x$ac_cv_type_pid_t" = xyes; then :
11437
11438else
11439
11440cat >>confdefs.h <<_ACEOF
11441#define pid_t int
11442_ACEOF
11443
11444fi
11445
11446ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11447if test "x$ac_cv_type_size_t" = xyes; then :
11448
11449else
11450
11451cat >>confdefs.h <<_ACEOF
11452#define size_t unsigned int
11453_ACEOF
11454
11455fi
11456
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11458$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11459if ${ac_cv_type_uid_t+:} false; then :
11460  $as_echo_n "(cached) " >&6
11461else
11462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463/* end confdefs.h.  */
11464#include <sys/types.h>
11465
11466_ACEOF
11467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11468  $EGREP "uid_t" >/dev/null 2>&1; then :
11469  ac_cv_type_uid_t=yes
11470else
11471  ac_cv_type_uid_t=no
11472fi
11473rm -f conftest*
11474
11475fi
11476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11477$as_echo "$ac_cv_type_uid_t" >&6; }
11478if test $ac_cv_type_uid_t = no; then
11479
11480$as_echo "#define uid_t int" >>confdefs.h
11481
11482
11483$as_echo "#define gid_t int" >>confdefs.h
11484
11485fi
11486
11487ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
11488case $ac_cv_c_uint32_t in #(
11489  no|yes) ;; #(
11490  *)
11491
11492$as_echo "#define _UINT32_T 1" >>confdefs.h
11493
11494
11495cat >>confdefs.h <<_ACEOF
11496#define uint32_t $ac_cv_c_uint32_t
11497_ACEOF
11498;;
11499  esac
11500
11501
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11503$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11504if ${ac_cv_header_time+:} false; then :
11505  $as_echo_n "(cached) " >&6
11506else
11507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508/* end confdefs.h.  */
11509#include <sys/types.h>
11510#include <sys/time.h>
11511#include <time.h>
11512
11513int
11514main ()
11515{
11516if ((struct tm *) 0)
11517return 0;
11518  ;
11519  return 0;
11520}
11521_ACEOF
11522if ac_fn_c_try_compile "$LINENO"; then :
11523  ac_cv_header_time=yes
11524else
11525  ac_cv_header_time=no
11526fi
11527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11528fi
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11530$as_echo "$ac_cv_header_time" >&6; }
11531if test $ac_cv_header_time = yes; then
11532
11533$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11534
11535fi
11536
11537ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
11538if test "x$ac_cv_type_ino_t" = xyes; then :
11539
11540else
11541
11542cat >>confdefs.h <<_ACEOF
11543#define ino_t long
11544_ACEOF
11545
11546fi
11547
11548ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
11549if test "x$ac_cv_type_dev_t" = xyes; then :
11550
11551else
11552
11553cat >>confdefs.h <<_ACEOF
11554#define dev_t unsigned
11555_ACEOF
11556
11557fi
11558
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11560$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11561if ${ac_cv_c_bigendian+:} false; then :
11562  $as_echo_n "(cached) " >&6
11563else
11564  ac_cv_c_bigendian=unknown
11565    # See if we're dealing with a universal compiler.
11566    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567/* end confdefs.h.  */
11568#ifndef __APPLE_CC__
11569	       not a universal capable compiler
11570	     #endif
11571	     typedef int dummy;
11572
11573_ACEOF
11574if ac_fn_c_try_compile "$LINENO"; then :
11575
11576	# Check for potential -arch flags.  It is not universal unless
11577	# there are at least two -arch flags with different values.
11578	ac_arch=
11579	ac_prev=
11580	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11581	 if test -n "$ac_prev"; then
11582	   case $ac_word in
11583	     i?86 | x86_64 | ppc | ppc64)
11584	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11585		 ac_arch=$ac_word
11586	       else
11587		 ac_cv_c_bigendian=universal
11588		 break
11589	       fi
11590	       ;;
11591	   esac
11592	   ac_prev=
11593	 elif test "x$ac_word" = "x-arch"; then
11594	   ac_prev=arch
11595	 fi
11596       done
11597fi
11598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599    if test $ac_cv_c_bigendian = unknown; then
11600      # See if sys/param.h defines the BYTE_ORDER macro.
11601      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602/* end confdefs.h.  */
11603#include <sys/types.h>
11604	     #include <sys/param.h>
11605
11606int
11607main ()
11608{
11609#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11610		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11611		     && LITTLE_ENDIAN)
11612	      bogus endian macros
11613	     #endif
11614
11615  ;
11616  return 0;
11617}
11618_ACEOF
11619if ac_fn_c_try_compile "$LINENO"; then :
11620  # It does; now see whether it defined to BIG_ENDIAN or not.
11621	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622/* end confdefs.h.  */
11623#include <sys/types.h>
11624		#include <sys/param.h>
11625
11626int
11627main ()
11628{
11629#if BYTE_ORDER != BIG_ENDIAN
11630		 not big endian
11631		#endif
11632
11633  ;
11634  return 0;
11635}
11636_ACEOF
11637if ac_fn_c_try_compile "$LINENO"; then :
11638  ac_cv_c_bigendian=yes
11639else
11640  ac_cv_c_bigendian=no
11641fi
11642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643fi
11644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645    fi
11646    if test $ac_cv_c_bigendian = unknown; then
11647      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11648      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649/* end confdefs.h.  */
11650#include <limits.h>
11651
11652int
11653main ()
11654{
11655#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11656	      bogus endian macros
11657	     #endif
11658
11659  ;
11660  return 0;
11661}
11662_ACEOF
11663if ac_fn_c_try_compile "$LINENO"; then :
11664  # It does; now see whether it defined to _BIG_ENDIAN or not.
11665	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666/* end confdefs.h.  */
11667#include <limits.h>
11668
11669int
11670main ()
11671{
11672#ifndef _BIG_ENDIAN
11673		 not big endian
11674		#endif
11675
11676  ;
11677  return 0;
11678}
11679_ACEOF
11680if ac_fn_c_try_compile "$LINENO"; then :
11681  ac_cv_c_bigendian=yes
11682else
11683  ac_cv_c_bigendian=no
11684fi
11685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686fi
11687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11688    fi
11689    if test $ac_cv_c_bigendian = unknown; then
11690      # Compile a test program.
11691      if test "$cross_compiling" = yes; then :
11692  # Try to guess by grepping values from an object file.
11693	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11694/* end confdefs.h.  */
11695short int ascii_mm[] =
11696		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11697		short int ascii_ii[] =
11698		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11699		int use_ascii (int i) {
11700		  return ascii_mm[i] + ascii_ii[i];
11701		}
11702		short int ebcdic_ii[] =
11703		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11704		short int ebcdic_mm[] =
11705		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11706		int use_ebcdic (int i) {
11707		  return ebcdic_mm[i] + ebcdic_ii[i];
11708		}
11709		extern int foo;
11710
11711int
11712main ()
11713{
11714return use_ascii (foo) == use_ebcdic (foo);
11715  ;
11716  return 0;
11717}
11718_ACEOF
11719if ac_fn_c_try_compile "$LINENO"; then :
11720  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11721	      ac_cv_c_bigendian=yes
11722	    fi
11723	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11724	      if test "$ac_cv_c_bigendian" = unknown; then
11725		ac_cv_c_bigendian=no
11726	      else
11727		# finding both strings is unlikely to happen, but who knows?
11728		ac_cv_c_bigendian=unknown
11729	      fi
11730	    fi
11731fi
11732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733else
11734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735/* end confdefs.h.  */
11736$ac_includes_default
11737int
11738main ()
11739{
11740
11741	     /* Are we little or big endian?  From Harbison&Steele.  */
11742	     union
11743	     {
11744	       long int l;
11745	       char c[sizeof (long int)];
11746	     } u;
11747	     u.l = 1;
11748	     return u.c[sizeof (long int) - 1] == 1;
11749
11750  ;
11751  return 0;
11752}
11753_ACEOF
11754if ac_fn_c_try_run "$LINENO"; then :
11755  ac_cv_c_bigendian=no
11756else
11757  ac_cv_c_bigendian=yes
11758fi
11759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11760  conftest.$ac_objext conftest.beam conftest.$ac_ext
11761fi
11762
11763    fi
11764fi
11765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11766$as_echo "$ac_cv_c_bigendian" >&6; }
11767 case $ac_cv_c_bigendian in #(
11768   yes)
11769     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11770;; #(
11771   no)
11772      ;; #(
11773   universal)
11774
11775$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11776
11777     ;; #(
11778   *)
11779     as_fn_error $? "unknown endianness
11780 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11781 esac
11782
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11784$as_echo_n "checking for inline... " >&6; }
11785if ${ac_cv_c_inline+:} false; then :
11786  $as_echo_n "(cached) " >&6
11787else
11788  ac_cv_c_inline=no
11789for ac_kw in inline __inline__ __inline; do
11790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791/* end confdefs.h.  */
11792#ifndef __cplusplus
11793typedef int foo_t;
11794static $ac_kw foo_t static_foo () {return 0; }
11795$ac_kw foo_t foo () {return 0; }
11796#endif
11797
11798_ACEOF
11799if ac_fn_c_try_compile "$LINENO"; then :
11800  ac_cv_c_inline=$ac_kw
11801fi
11802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803  test "$ac_cv_c_inline" != no && break
11804done
11805
11806fi
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11808$as_echo "$ac_cv_c_inline" >&6; }
11809
11810case $ac_cv_c_inline in
11811  inline | yes) ;;
11812  *)
11813    case $ac_cv_c_inline in
11814      no) ac_val=;;
11815      *) ac_val=$ac_cv_c_inline;;
11816    esac
11817    cat >>confdefs.h <<_ACEOF
11818#ifndef __cplusplus
11819#define inline $ac_val
11820#endif
11821_ACEOF
11822    ;;
11823esac
11824
11825
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11827$as_echo_n "checking for rlim_t... " >&6; }
11828if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11830$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11831else
11832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833/* end confdefs.h.  */
11834
11835#include <sys/types.h>
11836#if STDC_HEADERS
11837# include <stdlib.h>
11838# include <stddef.h>
11839#endif
11840#ifdef HAVE_SYS_RESOURCE_H
11841# include <sys/resource.h>
11842#endif
11843
11844_ACEOF
11845if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11846  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11847  ac_cv_type_rlim_t=yes
11848else
11849  ac_cv_type_rlim_t=no
11850fi
11851rm -f conftest*
11852
11853	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11854$as_echo "$ac_cv_type_rlim_t" >&6; }
11855fi
11856if test $ac_cv_type_rlim_t = no; then
11857  cat >> confdefs.h <<\EOF
11858#define rlim_t unsigned long
11859EOF
11860fi
11861
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11863$as_echo_n "checking for stack_t... " >&6; }
11864if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11866$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11867else
11868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869/* end confdefs.h.  */
11870
11871#include <sys/types.h>
11872#if STDC_HEADERS
11873# include <stdlib.h>
11874# include <stddef.h>
11875#endif
11876#include <signal.h>
11877
11878_ACEOF
11879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11880  $EGREP "stack_t" >/dev/null 2>&1; then :
11881  ac_cv_type_stack_t=yes
11882else
11883  ac_cv_type_stack_t=no
11884fi
11885rm -f conftest*
11886
11887	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11888$as_echo "$ac_cv_type_stack_t" >&6; }
11889fi
11890if test $ac_cv_type_stack_t = no; then
11891  cat >> confdefs.h <<\EOF
11892#define stack_t struct sigaltstack
11893EOF
11894fi
11895
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11897$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899/* end confdefs.h.  */
11900
11901#include <sys/types.h>
11902#if STDC_HEADERS
11903# include <stdlib.h>
11904# include <stddef.h>
11905#endif
11906#include <signal.h>
11907#include "confdefs.h"
11908
11909int
11910main ()
11911{
11912stack_t sigstk; sigstk.ss_base = 0;
11913  ;
11914  return 0;
11915}
11916_ACEOF
11917if ac_fn_c_try_compile "$LINENO"; then :
11918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11919$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11920
11921else
11922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923$as_echo "no" >&6; }
11924fi
11925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926
11927olibs="$LIBS"
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11929$as_echo_n "checking --with-tlib argument... " >&6; }
11930
11931# Check whether --with-tlib was given.
11932if test "${with_tlib+set}" = set; then :
11933  withval=$with_tlib;
11934fi
11935
11936if test -n "$with_tlib"; then
11937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11938$as_echo "$with_tlib" >&6; }
11939  LIBS="$LIBS -l$with_tlib"
11940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11941$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943/* end confdefs.h.  */
11944
11945int
11946main ()
11947{
11948
11949  ;
11950  return 0;
11951}
11952_ACEOF
11953if ac_fn_c_try_link "$LINENO"; then :
11954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
11955$as_echo "OK" >&6; }
11956else
11957  as_fn_error $? "FAILED" "$LINENO" 5
11958fi
11959rm -f core conftest.err conftest.$ac_objext \
11960    conftest$ac_exeext conftest.$ac_ext
11961    olibs="$LIBS"
11962else
11963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
11964$as_echo "empty: automatic terminal library selection" >&6; }
11965                case "`uname -s 2>/dev/null`" in
11966	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
11967	*)	tlibs="tinfo ncurses termlib termcap curses";;
11968  esac
11969  for libname in $tlibs; do
11970    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
11972$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
11973if eval \${$as_ac_Lib+:} false; then :
11974  $as_echo_n "(cached) " >&6
11975else
11976  ac_check_lib_save_LIBS=$LIBS
11977LIBS="-l${libname}  $LIBS"
11978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979/* end confdefs.h.  */
11980
11981/* Override any GCC internal prototype to avoid an error.
11982   Use char because int might match the return type of a GCC
11983   builtin and then its argument prototype would still apply.  */
11984#ifdef __cplusplus
11985extern "C"
11986#endif
11987char tgetent ();
11988int
11989main ()
11990{
11991return tgetent ();
11992  ;
11993  return 0;
11994}
11995_ACEOF
11996if ac_fn_c_try_link "$LINENO"; then :
11997  eval "$as_ac_Lib=yes"
11998else
11999  eval "$as_ac_Lib=no"
12000fi
12001rm -f core conftest.err conftest.$ac_objext \
12002    conftest$ac_exeext conftest.$ac_ext
12003LIBS=$ac_check_lib_save_LIBS
12004fi
12005eval ac_res=\$$as_ac_Lib
12006	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12007$as_echo "$ac_res" >&6; }
12008if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12009  cat >>confdefs.h <<_ACEOF
12010#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12011_ACEOF
12012
12013  LIBS="-l${libname} $LIBS"
12014
12015fi
12016
12017    if test "x$olibs" != "x$LIBS"; then
12018                        if test "$cross_compiling" = yes; then :
12019  res="FAIL"
12020else
12021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022/* end confdefs.h.  */
12023
12024#ifdef HAVE_TERMCAP_H
12025# include <termcap.h>
12026#endif
12027#if STDC_HEADERS
12028# include <stdlib.h>
12029# include <stddef.h>
12030#endif
12031main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12032_ACEOF
12033if ac_fn_c_try_run "$LINENO"; then :
12034  res="OK"
12035else
12036  res="FAIL"
12037fi
12038rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12039  conftest.$ac_objext conftest.beam conftest.$ac_ext
12040fi
12041
12042      if test "$res" = "OK"; then
12043	break
12044      fi
12045      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
12046$as_echo "$libname library is not usable" >&6; }
12047      LIBS="$olibs"
12048    fi
12049  done
12050  if test "x$olibs" = "x$LIBS"; then
12051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
12052$as_echo "no terminal library found" >&6; }
12053  fi
12054fi
12055
12056if test "x$olibs" = "x$LIBS"; then
12057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
12058$as_echo_n "checking for tgetent()... " >&6; }
12059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060/* end confdefs.h.  */
12061
12062int
12063main ()
12064{
12065char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12066  ;
12067  return 0;
12068}
12069_ACEOF
12070if ac_fn_c_try_link "$LINENO"; then :
12071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072$as_echo "yes" >&6; }
12073else
12074  as_fn_error $? "NOT FOUND!
12075      You need to install a terminal library; for example ncurses.
12076      Or specify the name of the library with --with-tlib." "$LINENO" 5
12077fi
12078rm -f core conftest.err conftest.$ac_objext \
12079    conftest$ac_exeext conftest.$ac_ext
12080fi
12081
12082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
12083$as_echo_n "checking whether we talk terminfo... " >&6; }
12084if ${vim_cv_terminfo+:} false; then :
12085  $as_echo_n "(cached) " >&6
12086else
12087
12088    if test "$cross_compiling" = yes; then :
12089
12090      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
12091
12092else
12093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094/* end confdefs.h.  */
12095
12096#include "confdefs.h"
12097#ifdef HAVE_TERMCAP_H
12098# include <termcap.h>
12099#endif
12100#ifdef HAVE_STRING_H
12101# include <string.h>
12102#endif
12103#if STDC_HEADERS
12104# include <stdlib.h>
12105# include <stddef.h>
12106#endif
12107main()
12108{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12109
12110_ACEOF
12111if ac_fn_c_try_run "$LINENO"; then :
12112
12113      vim_cv_terminfo=no
12114
12115else
12116
12117      vim_cv_terminfo=yes
12118
12119fi
12120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12121  conftest.$ac_objext conftest.beam conftest.$ac_ext
12122fi
12123
12124
12125fi
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
12127$as_echo "$vim_cv_terminfo" >&6; }
12128
12129if test "x$vim_cv_terminfo" = "xyes" ; then
12130  $as_echo "#define TERMINFO 1" >>confdefs.h
12131
12132fi
12133
12134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
12135$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12136if ${vim_cv_tgetent+:} false; then :
12137  $as_echo_n "(cached) " >&6
12138else
12139
12140    if test "$cross_compiling" = yes; then :
12141
12142      as_fn_error $? "failed to compile test program." "$LINENO" 5
12143
12144else
12145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146/* end confdefs.h.  */
12147
12148#include "confdefs.h"
12149#ifdef HAVE_TERMCAP_H
12150# include <termcap.h>
12151#endif
12152#if STDC_HEADERS
12153# include <stdlib.h>
12154# include <stddef.h>
12155#endif
12156main()
12157{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12158
12159_ACEOF
12160if ac_fn_c_try_run "$LINENO"; then :
12161
12162      vim_cv_tgetent=zero
12163
12164else
12165
12166      vim_cv_tgetent=non-zero
12167
12168fi
12169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12170  conftest.$ac_objext conftest.beam conftest.$ac_ext
12171fi
12172
12173
12174fi
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5
12176$as_echo "$vim_cv_tgetent" >&6; }
12177
12178if test "x$vim_cv_tgetent" = "xzero" ; then
12179  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
12180
12181fi
12182
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
12184$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186/* end confdefs.h.  */
12187
12188#ifdef HAVE_TERMCAP_H
12189# include <termcap.h>
12190#endif
12191
12192int
12193main ()
12194{
12195ospeed = 20000
12196  ;
12197  return 0;
12198}
12199_ACEOF
12200if ac_fn_c_try_link "$LINENO"; then :
12201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12202$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
12203
12204else
12205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206$as_echo "no" >&6; }
12207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
12208$as_echo_n "checking whether ospeed can be extern... " >&6; }
12209	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210/* end confdefs.h.  */
12211
12212#ifdef HAVE_TERMCAP_H
12213# include <termcap.h>
12214#endif
12215extern short ospeed;
12216
12217int
12218main ()
12219{
12220ospeed = 20000
12221  ;
12222  return 0;
12223}
12224_ACEOF
12225if ac_fn_c_try_link "$LINENO"; then :
12226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12227$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
12228
12229else
12230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231$as_echo "no" >&6; }
12232fi
12233rm -f core conftest.err conftest.$ac_objext \
12234    conftest$ac_exeext conftest.$ac_ext
12235
12236fi
12237rm -f core conftest.err conftest.$ac_objext \
12238    conftest$ac_exeext conftest.$ac_ext
12239
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
12241$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243/* end confdefs.h.  */
12244
12245#ifdef HAVE_TERMCAP_H
12246# include <termcap.h>
12247#endif
12248
12249int
12250main ()
12251{
12252if (UP == 0 && BC == 0) PC = 1
12253  ;
12254  return 0;
12255}
12256_ACEOF
12257if ac_fn_c_try_link "$LINENO"; then :
12258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12259$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
12260
12261else
12262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263$as_echo "no" >&6; }
12264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
12265$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
12266	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267/* end confdefs.h.  */
12268
12269#ifdef HAVE_TERMCAP_H
12270# include <termcap.h>
12271#endif
12272extern char *UP, *BC, PC;
12273
12274int
12275main ()
12276{
12277if (UP == 0 && BC == 0) PC = 1
12278  ;
12279  return 0;
12280}
12281_ACEOF
12282if ac_fn_c_try_link "$LINENO"; then :
12283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12284$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
12285
12286else
12287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288$as_echo "no" >&6; }
12289fi
12290rm -f core conftest.err conftest.$ac_objext \
12291    conftest$ac_exeext conftest.$ac_ext
12292
12293fi
12294rm -f core conftest.err conftest.$ac_objext \
12295    conftest$ac_exeext conftest.$ac_ext
12296
12297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
12298$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
12299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300/* end confdefs.h.  */
12301
12302#ifdef HAVE_TERMCAP_H
12303# include <termcap.h>
12304#endif
12305
12306int
12307main ()
12308{
12309extern int xx(); tputs("test", 1, (outfuntype)xx)
12310  ;
12311  return 0;
12312}
12313_ACEOF
12314if ac_fn_c_try_compile "$LINENO"; then :
12315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12316$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
12317
12318else
12319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320$as_echo "no" >&6; }
12321fi
12322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12325$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327/* end confdefs.h.  */
12328
12329#include <sys/types.h>
12330#include <sys/time.h>
12331#include <sys/select.h>
12332int
12333main ()
12334{
12335
12336  ;
12337  return 0;
12338}
12339_ACEOF
12340if ac_fn_c_try_compile "$LINENO"; then :
12341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12342$as_echo "yes" >&6; }
12343			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12344
12345else
12346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347$as_echo "no" >&6; }
12348fi
12349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350
12351
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
12353$as_echo_n "checking for /dev/ptc... " >&6; }
12354if test -r /dev/ptc; then
12355  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
12356
12357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358$as_echo "yes" >&6; }
12359else
12360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361$as_echo "no" >&6; }
12362fi
12363
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
12365$as_echo_n "checking for SVR4 ptys... " >&6; }
12366if test -c /dev/ptmx ; then
12367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368/* end confdefs.h.  */
12369
12370int
12371main ()
12372{
12373ptsname(0);grantpt(0);unlockpt(0);
12374  ;
12375  return 0;
12376}
12377_ACEOF
12378if ac_fn_c_try_link "$LINENO"; then :
12379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
12381
12382else
12383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384$as_echo "no" >&6; }
12385fi
12386rm -f core conftest.err conftest.$ac_objext \
12387    conftest$ac_exeext conftest.$ac_ext
12388else
12389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390$as_echo "no" >&6; }
12391fi
12392
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
12394$as_echo_n "checking for ptyranges... " >&6; }
12395if test -d /dev/ptym ; then
12396  pdir='/dev/ptym'
12397else
12398  pdir='/dev'
12399fi
12400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401/* end confdefs.h.  */
12402#ifdef M_UNIX
12403   yes;
12404#endif
12405
12406_ACEOF
12407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12408  $EGREP "yes" >/dev/null 2>&1; then :
12409  ptys=`echo /dev/ptyp??`
12410else
12411  ptys=`echo $pdir/pty??`
12412fi
12413rm -f conftest*
12414
12415if test "$ptys" != "$pdir/pty??" ; then
12416  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12417  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12418  cat >>confdefs.h <<_ACEOF
12419#define PTYRANGE0 "$p0"
12420_ACEOF
12421
12422  cat >>confdefs.h <<_ACEOF
12423#define PTYRANGE1 "$p1"
12424_ACEOF
12425
12426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
12427$as_echo "$p0 / $p1" >&6; }
12428else
12429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
12430$as_echo "don't know" >&6; }
12431fi
12432
12433rm -f conftest_grp
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
12435$as_echo_n "checking default tty permissions/group... " >&6; }
12436if ${vim_cv_tty_group+:} false; then :
12437  $as_echo_n "(cached) " >&6
12438else
12439
12440    if test "$cross_compiling" = yes; then :
12441
12442      as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
12443
12444else
12445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446/* end confdefs.h.  */
12447
12448#include "confdefs.h"
12449#include <sys/types.h>
12450#if STDC_HEADERS
12451# include <stdlib.h>
12452# include <stddef.h>
12453#endif
12454#ifdef HAVE_UNISTD_H
12455#include <unistd.h>
12456#endif
12457#include <sys/stat.h>
12458#include <stdio.h>
12459main()
12460{
12461  struct stat sb;
12462  char *x,*ttyname();
12463  int om, m;
12464  FILE *fp;
12465
12466  if (!(x = ttyname(0))) exit(1);
12467  if (stat(x, &sb)) exit(1);
12468  om = sb.st_mode;
12469  if (om & 002) exit(0);
12470  m = system("mesg y");
12471  if (m == -1 || m == 127) exit(1);
12472  if (stat(x, &sb)) exit(1);
12473  m = sb.st_mode;
12474  if (chmod(x, om)) exit(1);
12475  if (m & 002) exit(0);
12476  if (sb.st_gid == getgid()) exit(1);
12477  if (!(fp=fopen("conftest_grp", "w")))
12478    exit(1);
12479  fprintf(fp, "%d\n", sb.st_gid);
12480  fclose(fp);
12481  exit(0);
12482}
12483
12484_ACEOF
12485if ac_fn_c_try_run "$LINENO"; then :
12486
12487      if test -f conftest_grp; then
12488	vim_cv_tty_group=`cat conftest_grp`
12489	if test "x$vim_cv_tty_mode" = "x" ; then
12490	  vim_cv_tty_mode=0620
12491	fi
12492	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
12493$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
12494      else
12495	vim_cv_tty_group=world
12496	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
12497$as_echo "ptys are world accessible" >&6; }
12498      fi
12499
12500else
12501
12502      vim_cv_tty_group=world
12503      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
12504$as_echo "can't determine - assume ptys are world accessible" >&6; }
12505
12506fi
12507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12508  conftest.$ac_objext conftest.beam conftest.$ac_ext
12509fi
12510
12511
12512fi
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
12514$as_echo "$vim_cv_tty_group" >&6; }
12515rm -f conftest_grp
12516
12517if test "x$vim_cv_tty_group" != "xworld" ; then
12518  cat >>confdefs.h <<_ACEOF
12519#define PTYGROUP $vim_cv_tty_group
12520_ACEOF
12521
12522  if test "x$vim_cv_tty_mode" = "x" ; then
12523    as_fn_error $? "It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (probably 0620)" "$LINENO" 5
12524  else
12525    $as_echo "#define PTYMODE 0620" >>confdefs.h
12526
12527  fi
12528fi
12529
12530
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12532$as_echo_n "checking return type of signal handlers... " >&6; }
12533if ${ac_cv_type_signal+:} false; then :
12534  $as_echo_n "(cached) " >&6
12535else
12536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537/* end confdefs.h.  */
12538#include <sys/types.h>
12539#include <signal.h>
12540
12541int
12542main ()
12543{
12544return *(signal (0, 0)) (0) == 1;
12545  ;
12546  return 0;
12547}
12548_ACEOF
12549if ac_fn_c_try_compile "$LINENO"; then :
12550  ac_cv_type_signal=int
12551else
12552  ac_cv_type_signal=void
12553fi
12554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555fi
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12557$as_echo "$ac_cv_type_signal" >&6; }
12558
12559cat >>confdefs.h <<_ACEOF
12560#define RETSIGTYPE $ac_cv_type_signal
12561_ACEOF
12562
12563
12564
12565if test $ac_cv_type_signal = void; then
12566  $as_echo "#define SIGRETURN return" >>confdefs.h
12567
12568else
12569  $as_echo "#define SIGRETURN return 0" >>confdefs.h
12570
12571fi
12572
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
12574$as_echo_n "checking for struct sigcontext... " >&6; }
12575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576/* end confdefs.h.  */
12577
12578#include <signal.h>
12579test_sig()
12580{
12581    struct sigcontext *scont;
12582    scont = (struct sigcontext *)0;
12583    return 1;
12584}
12585int
12586main ()
12587{
12588
12589  ;
12590  return 0;
12591}
12592_ACEOF
12593if ac_fn_c_try_compile "$LINENO"; then :
12594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12595$as_echo "yes" >&6; }
12596		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
12597
12598else
12599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600$as_echo "no" >&6; }
12601fi
12602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12603
12604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12605$as_echo_n "checking getcwd implementation is broken... " >&6; }
12606if ${vim_cv_getcwd_broken+:} false; then :
12607  $as_echo_n "(cached) " >&6
12608else
12609
12610    if test "$cross_compiling" = yes; then :
12611
12612      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12613
12614else
12615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616/* end confdefs.h.  */
12617
12618#include "confdefs.h"
12619#ifdef HAVE_UNISTD_H
12620#include <unistd.h>
12621#endif
12622char *dagger[] = { "IFS=pwd", 0 };
12623main()
12624{
12625  char buffer[500];
12626  extern char **environ;
12627  environ = dagger;
12628  return getcwd(buffer, 500) ? 0 : 1;
12629}
12630
12631_ACEOF
12632if ac_fn_c_try_run "$LINENO"; then :
12633
12634      vim_cv_getcwd_broken=no
12635
12636else
12637
12638      vim_cv_getcwd_broken=yes
12639
12640fi
12641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12642  conftest.$ac_objext conftest.beam conftest.$ac_ext
12643fi
12644
12645
12646fi
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12648$as_echo "$vim_cv_getcwd_broken" >&6; }
12649
12650if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12651  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12652
12653  for ac_func in getwd
12654do :
12655  ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
12656if test "x$ac_cv_func_getwd" = xyes; then :
12657  cat >>confdefs.h <<_ACEOF
12658#define HAVE_GETWD 1
12659_ACEOF
12660
12661fi
12662done
12663
12664fi
12665
12666for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \
12667	getpwent getpwnam getpwuid getrlimit gettimeofday localtime_r lstat \
12668	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12669	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12670	sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
12671	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12672	usleep utime utimes mblen ftruncate unsetenv posix_openpt
12673do :
12674  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12675ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12676if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12677  cat >>confdefs.h <<_ACEOF
12678#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12679_ACEOF
12680
12681fi
12682done
12683
12684for ac_header in sys/select.h sys/socket.h
12685do :
12686  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12687ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12688if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12689  cat >>confdefs.h <<_ACEOF
12690#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12691_ACEOF
12692
12693fi
12694
12695done
12696
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
12698$as_echo_n "checking types of arguments for select... " >&6; }
12699if ${ac_cv_func_select_args+:} false; then :
12700  $as_echo_n "(cached) " >&6
12701else
12702  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12703 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12704  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706/* end confdefs.h.  */
12707$ac_includes_default
12708#ifdef HAVE_SYS_SELECT_H
12709# include <sys/select.h>
12710#endif
12711#ifdef HAVE_SYS_SOCKET_H
12712# include <sys/socket.h>
12713#endif
12714
12715int
12716main ()
12717{
12718extern int select ($ac_arg1,
12719					    $ac_arg234, $ac_arg234, $ac_arg234,
12720					    $ac_arg5);
12721  ;
12722  return 0;
12723}
12724_ACEOF
12725if ac_fn_c_try_compile "$LINENO"; then :
12726  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12727fi
12728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12729  done
12730 done
12731done
12732# Provide a safe default value.
12733: "${ac_cv_func_select_args=int,int *,struct timeval *}"
12734
12735fi
12736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
12737$as_echo "$ac_cv_func_select_args" >&6; }
12738ac_save_IFS=$IFS; IFS=','
12739set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12740IFS=$ac_save_IFS
12741shift
12742
12743cat >>confdefs.h <<_ACEOF
12744#define SELECT_TYPE_ARG1 $1
12745_ACEOF
12746
12747
12748cat >>confdefs.h <<_ACEOF
12749#define SELECT_TYPE_ARG234 ($2)
12750_ACEOF
12751
12752
12753cat >>confdefs.h <<_ACEOF
12754#define SELECT_TYPE_ARG5 ($3)
12755_ACEOF
12756
12757rm -f conftest*
12758
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12760$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12761if ${ac_cv_sys_largefile_source+:} false; then :
12762  $as_echo_n "(cached) " >&6
12763else
12764  while :; do
12765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766/* end confdefs.h.  */
12767#include <sys/types.h> /* for off_t */
12768     #include <stdio.h>
12769int
12770main ()
12771{
12772int (*fp) (FILE *, off_t, int) = fseeko;
12773     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12774  ;
12775  return 0;
12776}
12777_ACEOF
12778if ac_fn_c_try_link "$LINENO"; then :
12779  ac_cv_sys_largefile_source=no; break
12780fi
12781rm -f core conftest.err conftest.$ac_objext \
12782    conftest$ac_exeext conftest.$ac_ext
12783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784/* end confdefs.h.  */
12785#define _LARGEFILE_SOURCE 1
12786#include <sys/types.h> /* for off_t */
12787     #include <stdio.h>
12788int
12789main ()
12790{
12791int (*fp) (FILE *, off_t, int) = fseeko;
12792     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12793  ;
12794  return 0;
12795}
12796_ACEOF
12797if ac_fn_c_try_link "$LINENO"; then :
12798  ac_cv_sys_largefile_source=1; break
12799fi
12800rm -f core conftest.err conftest.$ac_objext \
12801    conftest$ac_exeext conftest.$ac_ext
12802  ac_cv_sys_largefile_source=unknown
12803  break
12804done
12805fi
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12807$as_echo "$ac_cv_sys_largefile_source" >&6; }
12808case $ac_cv_sys_largefile_source in #(
12809  no | unknown) ;;
12810  *)
12811cat >>confdefs.h <<_ACEOF
12812#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12813_ACEOF
12814;;
12815esac
12816rm -rf conftest*
12817
12818# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12819# in glibc 2.1.3, but that breaks too many other things.
12820# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12821if test $ac_cv_sys_largefile_source != unknown; then
12822
12823$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12824
12825fi
12826
12827
12828# Check whether --enable-largefile was given.
12829if test "${enable_largefile+set}" = set; then :
12830  enableval=$enable_largefile;
12831fi
12832
12833if test "$enable_largefile" != no; then
12834
12835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12836$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12837if ${ac_cv_sys_largefile_CC+:} false; then :
12838  $as_echo_n "(cached) " >&6
12839else
12840  ac_cv_sys_largefile_CC=no
12841     if test "$GCC" != yes; then
12842       ac_save_CC=$CC
12843       while :; do
12844	 # IRIX 6.2 and later do not support large files by default,
12845	 # so use the C compiler's -n32 option if that helps.
12846	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847/* end confdefs.h.  */
12848#include <sys/types.h>
12849 /* Check that off_t can represent 2**63 - 1 correctly.
12850    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12851    since some C++ compilers masquerading as C compilers
12852    incorrectly reject 9223372036854775807.  */
12853#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12854  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12855		       && LARGE_OFF_T % 2147483647 == 1)
12856		      ? 1 : -1];
12857int
12858main ()
12859{
12860
12861  ;
12862  return 0;
12863}
12864_ACEOF
12865	 if ac_fn_c_try_compile "$LINENO"; then :
12866  break
12867fi
12868rm -f core conftest.err conftest.$ac_objext
12869	 CC="$CC -n32"
12870	 if ac_fn_c_try_compile "$LINENO"; then :
12871  ac_cv_sys_largefile_CC=' -n32'; break
12872fi
12873rm -f core conftest.err conftest.$ac_objext
12874	 break
12875       done
12876       CC=$ac_save_CC
12877       rm -f conftest.$ac_ext
12878    fi
12879fi
12880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12881$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12882  if test "$ac_cv_sys_largefile_CC" != no; then
12883    CC=$CC$ac_cv_sys_largefile_CC
12884  fi
12885
12886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12887$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12888if ${ac_cv_sys_file_offset_bits+:} false; then :
12889  $as_echo_n "(cached) " >&6
12890else
12891  while :; do
12892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893/* end confdefs.h.  */
12894#include <sys/types.h>
12895 /* Check that off_t can represent 2**63 - 1 correctly.
12896    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12897    since some C++ compilers masquerading as C compilers
12898    incorrectly reject 9223372036854775807.  */
12899#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12900  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12901		       && LARGE_OFF_T % 2147483647 == 1)
12902		      ? 1 : -1];
12903int
12904main ()
12905{
12906
12907  ;
12908  return 0;
12909}
12910_ACEOF
12911if ac_fn_c_try_compile "$LINENO"; then :
12912  ac_cv_sys_file_offset_bits=no; break
12913fi
12914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916/* end confdefs.h.  */
12917#define _FILE_OFFSET_BITS 64
12918#include <sys/types.h>
12919 /* Check that off_t can represent 2**63 - 1 correctly.
12920    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12921    since some C++ compilers masquerading as C compilers
12922    incorrectly reject 9223372036854775807.  */
12923#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12924  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12925		       && LARGE_OFF_T % 2147483647 == 1)
12926		      ? 1 : -1];
12927int
12928main ()
12929{
12930
12931  ;
12932  return 0;
12933}
12934_ACEOF
12935if ac_fn_c_try_compile "$LINENO"; then :
12936  ac_cv_sys_file_offset_bits=64; break
12937fi
12938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939  ac_cv_sys_file_offset_bits=unknown
12940  break
12941done
12942fi
12943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12944$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12945case $ac_cv_sys_file_offset_bits in #(
12946  no | unknown) ;;
12947  *)
12948cat >>confdefs.h <<_ACEOF
12949#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12950_ACEOF
12951;;
12952esac
12953rm -rf conftest*
12954  if test $ac_cv_sys_file_offset_bits = unknown; then
12955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12956$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12957if ${ac_cv_sys_large_files+:} false; then :
12958  $as_echo_n "(cached) " >&6
12959else
12960  while :; do
12961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962/* end confdefs.h.  */
12963#include <sys/types.h>
12964 /* Check that off_t can represent 2**63 - 1 correctly.
12965    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12966    since some C++ compilers masquerading as C compilers
12967    incorrectly reject 9223372036854775807.  */
12968#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12969  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12970		       && LARGE_OFF_T % 2147483647 == 1)
12971		      ? 1 : -1];
12972int
12973main ()
12974{
12975
12976  ;
12977  return 0;
12978}
12979_ACEOF
12980if ac_fn_c_try_compile "$LINENO"; then :
12981  ac_cv_sys_large_files=no; break
12982fi
12983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985/* end confdefs.h.  */
12986#define _LARGE_FILES 1
12987#include <sys/types.h>
12988 /* Check that off_t can represent 2**63 - 1 correctly.
12989    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12990    since some C++ compilers masquerading as C compilers
12991    incorrectly reject 9223372036854775807.  */
12992#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12993  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12994		       && LARGE_OFF_T % 2147483647 == 1)
12995		      ? 1 : -1];
12996int
12997main ()
12998{
12999
13000  ;
13001  return 0;
13002}
13003_ACEOF
13004if ac_fn_c_try_compile "$LINENO"; then :
13005  ac_cv_sys_large_files=1; break
13006fi
13007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13008  ac_cv_sys_large_files=unknown
13009  break
13010done
13011fi
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13013$as_echo "$ac_cv_sys_large_files" >&6; }
13014case $ac_cv_sys_large_files in #(
13015  no | unknown) ;;
13016  *)
13017cat >>confdefs.h <<_ACEOF
13018#define _LARGE_FILES $ac_cv_sys_large_files
13019_ACEOF
13020;;
13021esac
13022rm -rf conftest*
13023  fi
13024
13025
13026fi
13027
13028
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
13030$as_echo_n "checking for st_blksize... " >&6; }
13031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032/* end confdefs.h.  */
13033#include <sys/types.h>
13034#include <sys/stat.h>
13035int
13036main ()
13037{
13038	struct stat st;
13039	int n;
13040
13041	stat("/", &st);
13042	n = (int)st.st_blksize;
13043  ;
13044  return 0;
13045}
13046_ACEOF
13047if ac_fn_c_try_compile "$LINENO"; then :
13048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13049$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
13050
13051else
13052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053$as_echo "no" >&6; }
13054fi
13055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13056
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
13058$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13059if ${vim_cv_stat_ignores_slash+:} false; then :
13060  $as_echo_n "(cached) " >&6
13061else
13062
13063    if test "$cross_compiling" = yes; then :
13064
13065      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
13066
13067else
13068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h.  */
13070
13071#include "confdefs.h"
13072#if STDC_HEADERS
13073# include <stdlib.h>
13074# include <stddef.h>
13075#endif
13076#include <sys/types.h>
13077#include <sys/stat.h>
13078main() {struct stat st;  exit(stat("configure/", &st) != 0); }
13079
13080_ACEOF
13081if ac_fn_c_try_run "$LINENO"; then :
13082
13083      vim_cv_stat_ignores_slash=yes
13084
13085else
13086
13087      vim_cv_stat_ignores_slash=no
13088
13089fi
13090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13091  conftest.$ac_objext conftest.beam conftest.$ac_ext
13092fi
13093
13094
13095fi
13096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
13097$as_echo "$vim_cv_stat_ignores_slash" >&6; }
13098
13099if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13100  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
13101
13102fi
13103
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
13105$as_echo_n "checking for iconv_open()... " >&6; }
13106save_LIBS="$LIBS"
13107LIBS="$LIBS -liconv"
13108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109/* end confdefs.h.  */
13110
13111#ifdef HAVE_ICONV_H
13112# include <iconv.h>
13113#endif
13114
13115int
13116main ()
13117{
13118iconv_open("fr", "to");
13119  ;
13120  return 0;
13121}
13122_ACEOF
13123if ac_fn_c_try_link "$LINENO"; then :
13124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
13125$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13126
13127else
13128  LIBS="$save_LIBS"
13129    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130/* end confdefs.h.  */
13131
13132#ifdef HAVE_ICONV_H
13133# include <iconv.h>
13134#endif
13135
13136int
13137main ()
13138{
13139iconv_open("fr", "to");
13140  ;
13141  return 0;
13142}
13143_ACEOF
13144if ac_fn_c_try_link "$LINENO"; then :
13145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13146$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13147
13148else
13149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150$as_echo "no" >&6; }
13151fi
13152rm -f core conftest.err conftest.$ac_objext \
13153    conftest$ac_exeext conftest.$ac_ext
13154fi
13155rm -f core conftest.err conftest.$ac_objext \
13156    conftest$ac_exeext conftest.$ac_ext
13157
13158
13159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
13160$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
13161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162/* end confdefs.h.  */
13163
13164#ifdef HAVE_LANGINFO_H
13165# include <langinfo.h>
13166#endif
13167
13168int
13169main ()
13170{
13171char *cs = nl_langinfo(CODESET);
13172  ;
13173  return 0;
13174}
13175_ACEOF
13176if ac_fn_c_try_link "$LINENO"; then :
13177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13178$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
13179
13180else
13181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182$as_echo "no" >&6; }
13183fi
13184rm -f core conftest.err conftest.$ac_objext \
13185    conftest$ac_exeext conftest.$ac_ext
13186
13187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
13188$as_echo_n "checking for strtod in -lm... " >&6; }
13189if ${ac_cv_lib_m_strtod+:} false; then :
13190  $as_echo_n "(cached) " >&6
13191else
13192  ac_check_lib_save_LIBS=$LIBS
13193LIBS="-lm  $LIBS"
13194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195/* end confdefs.h.  */
13196
13197/* Override any GCC internal prototype to avoid an error.
13198   Use char because int might match the return type of a GCC
13199   builtin and then its argument prototype would still apply.  */
13200#ifdef __cplusplus
13201extern "C"
13202#endif
13203char strtod ();
13204int
13205main ()
13206{
13207return strtod ();
13208  ;
13209  return 0;
13210}
13211_ACEOF
13212if ac_fn_c_try_link "$LINENO"; then :
13213  ac_cv_lib_m_strtod=yes
13214else
13215  ac_cv_lib_m_strtod=no
13216fi
13217rm -f core conftest.err conftest.$ac_objext \
13218    conftest$ac_exeext conftest.$ac_ext
13219LIBS=$ac_check_lib_save_LIBS
13220fi
13221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
13222$as_echo "$ac_cv_lib_m_strtod" >&6; }
13223if test "x$ac_cv_lib_m_strtod" = xyes; then :
13224  cat >>confdefs.h <<_ACEOF
13225#define HAVE_LIBM 1
13226_ACEOF
13227
13228  LIBS="-lm $LIBS"
13229
13230fi
13231
13232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
13233$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
13234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235/* end confdefs.h.  */
13236
13237#ifdef HAVE_MATH_H
13238# include <math.h>
13239#endif
13240#if STDC_HEADERS
13241# include <stdlib.h>
13242# include <stddef.h>
13243#endif
13244
13245int
13246main ()
13247{
13248char *s; double d;
13249    d = strtod("1.1", &s);
13250    d = fabs(1.11);
13251    d = ceil(1.11);
13252    d = floor(1.11);
13253    d = log10(1.11);
13254    d = pow(1.11, 2.22);
13255    d = sqrt(1.11);
13256    d = sin(1.11);
13257    d = cos(1.11);
13258    d = atan(1.11);
13259
13260  ;
13261  return 0;
13262}
13263_ACEOF
13264if ac_fn_c_try_link "$LINENO"; then :
13265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13266$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
13267
13268else
13269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270$as_echo "no" >&6; }
13271fi
13272rm -f core conftest.err conftest.$ac_objext \
13273    conftest$ac_exeext conftest.$ac_ext
13274
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
13276$as_echo_n "checking for isinf()... " >&6; }
13277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278/* end confdefs.h.  */
13279
13280#ifdef HAVE_MATH_H
13281# include <math.h>
13282#endif
13283#if STDC_HEADERS
13284# include <stdlib.h>
13285# include <stddef.h>
13286#endif
13287
13288int
13289main ()
13290{
13291int r = isinf(1.11);
13292  ;
13293  return 0;
13294}
13295_ACEOF
13296if ac_fn_c_try_link "$LINENO"; then :
13297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13298$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13299
13300else
13301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302$as_echo "no" >&6; }
13303fi
13304rm -f core conftest.err conftest.$ac_objext \
13305    conftest$ac_exeext conftest.$ac_ext
13306
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
13308$as_echo_n "checking for isnan()... " >&6; }
13309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310/* end confdefs.h.  */
13311
13312#ifdef HAVE_MATH_H
13313# include <math.h>
13314#endif
13315#if STDC_HEADERS
13316# include <stdlib.h>
13317# include <stddef.h>
13318#endif
13319
13320int
13321main ()
13322{
13323int r = isnan(1.11);
13324  ;
13325  return 0;
13326}
13327_ACEOF
13328if ac_fn_c_try_link "$LINENO"; then :
13329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13330$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13331
13332else
13333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334$as_echo "no" >&6; }
13335fi
13336rm -f core conftest.err conftest.$ac_objext \
13337    conftest$ac_exeext conftest.$ac_ext
13338
13339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
13340$as_echo_n "checking --disable-acl argument... " >&6; }
13341# Check whether --enable-acl was given.
13342if test "${enable_acl+set}" = set; then :
13343  enableval=$enable_acl;
13344else
13345  enable_acl="yes"
13346fi
13347
13348if test "$enable_acl" = "yes"; then
13349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350$as_echo "no" >&6; }
13351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
13352$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
13353if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
13354  $as_echo_n "(cached) " >&6
13355else
13356  ac_check_lib_save_LIBS=$LIBS
13357LIBS="-lposix1e  $LIBS"
13358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359/* end confdefs.h.  */
13360
13361/* Override any GCC internal prototype to avoid an error.
13362   Use char because int might match the return type of a GCC
13363   builtin and then its argument prototype would still apply.  */
13364#ifdef __cplusplus
13365extern "C"
13366#endif
13367char acl_get_file ();
13368int
13369main ()
13370{
13371return acl_get_file ();
13372  ;
13373  return 0;
13374}
13375_ACEOF
13376if ac_fn_c_try_link "$LINENO"; then :
13377  ac_cv_lib_posix1e_acl_get_file=yes
13378else
13379  ac_cv_lib_posix1e_acl_get_file=no
13380fi
13381rm -f core conftest.err conftest.$ac_objext \
13382    conftest$ac_exeext conftest.$ac_ext
13383LIBS=$ac_check_lib_save_LIBS
13384fi
13385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13386$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
13387if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
13388  LIBS="$LIBS -lposix1e"
13389else
13390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
13391$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
13392if ${ac_cv_lib_acl_acl_get_file+:} false; then :
13393  $as_echo_n "(cached) " >&6
13394else
13395  ac_check_lib_save_LIBS=$LIBS
13396LIBS="-lacl  $LIBS"
13397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398/* end confdefs.h.  */
13399
13400/* Override any GCC internal prototype to avoid an error.
13401   Use char because int might match the return type of a GCC
13402   builtin and then its argument prototype would still apply.  */
13403#ifdef __cplusplus
13404extern "C"
13405#endif
13406char acl_get_file ();
13407int
13408main ()
13409{
13410return acl_get_file ();
13411  ;
13412  return 0;
13413}
13414_ACEOF
13415if ac_fn_c_try_link "$LINENO"; then :
13416  ac_cv_lib_acl_acl_get_file=yes
13417else
13418  ac_cv_lib_acl_acl_get_file=no
13419fi
13420rm -f core conftest.err conftest.$ac_objext \
13421    conftest$ac_exeext conftest.$ac_ext
13422LIBS=$ac_check_lib_save_LIBS
13423fi
13424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
13425$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
13426if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
13427  LIBS="$LIBS -lacl"
13428		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
13429$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
13430if ${ac_cv_lib_attr_fgetxattr+:} false; then :
13431  $as_echo_n "(cached) " >&6
13432else
13433  ac_check_lib_save_LIBS=$LIBS
13434LIBS="-lattr  $LIBS"
13435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436/* end confdefs.h.  */
13437
13438/* Override any GCC internal prototype to avoid an error.
13439   Use char because int might match the return type of a GCC
13440   builtin and then its argument prototype would still apply.  */
13441#ifdef __cplusplus
13442extern "C"
13443#endif
13444char fgetxattr ();
13445int
13446main ()
13447{
13448return fgetxattr ();
13449  ;
13450  return 0;
13451}
13452_ACEOF
13453if ac_fn_c_try_link "$LINENO"; then :
13454  ac_cv_lib_attr_fgetxattr=yes
13455else
13456  ac_cv_lib_attr_fgetxattr=no
13457fi
13458rm -f core conftest.err conftest.$ac_objext \
13459    conftest$ac_exeext conftest.$ac_ext
13460LIBS=$ac_check_lib_save_LIBS
13461fi
13462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
13463$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
13464if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
13465  LIBS="$LIBS -lattr"
13466fi
13467
13468fi
13469
13470fi
13471
13472
13473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
13474$as_echo_n "checking for POSIX ACL support... " >&6; }
13475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476/* end confdefs.h.  */
13477
13478#include <sys/types.h>
13479#ifdef HAVE_SYS_ACL_H
13480# include <sys/acl.h>
13481#endif
13482acl_t acl;
13483int
13484main ()
13485{
13486acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13487	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13488	acl_free(acl);
13489  ;
13490  return 0;
13491}
13492_ACEOF
13493if ac_fn_c_try_link "$LINENO"; then :
13494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13495$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
13496
13497else
13498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499$as_echo "no" >&6; }
13500fi
13501rm -f core conftest.err conftest.$ac_objext \
13502    conftest$ac_exeext conftest.$ac_ext
13503
13504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
13505$as_echo_n "checking for acl_get in -lsec... " >&6; }
13506if ${ac_cv_lib_sec_acl_get+:} false; then :
13507  $as_echo_n "(cached) " >&6
13508else
13509  ac_check_lib_save_LIBS=$LIBS
13510LIBS="-lsec  $LIBS"
13511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512/* end confdefs.h.  */
13513
13514/* Override any GCC internal prototype to avoid an error.
13515   Use char because int might match the return type of a GCC
13516   builtin and then its argument prototype would still apply.  */
13517#ifdef __cplusplus
13518extern "C"
13519#endif
13520char acl_get ();
13521int
13522main ()
13523{
13524return acl_get ();
13525  ;
13526  return 0;
13527}
13528_ACEOF
13529if ac_fn_c_try_link "$LINENO"; then :
13530  ac_cv_lib_sec_acl_get=yes
13531else
13532  ac_cv_lib_sec_acl_get=no
13533fi
13534rm -f core conftest.err conftest.$ac_objext \
13535    conftest$ac_exeext conftest.$ac_ext
13536LIBS=$ac_check_lib_save_LIBS
13537fi
13538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
13539$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
13540if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
13541  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
13542
13543else
13544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
13545$as_echo_n "checking for Solaris ACL support... " >&6; }
13546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547/* end confdefs.h.  */
13548
13549#ifdef HAVE_SYS_ACL_H
13550# include <sys/acl.h>
13551#endif
13552int
13553main ()
13554{
13555acl("foo", GETACLCNT, 0, NULL);
13556
13557  ;
13558  return 0;
13559}
13560_ACEOF
13561if ac_fn_c_try_link "$LINENO"; then :
13562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13563$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
13564
13565else
13566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567$as_echo "no" >&6; }
13568fi
13569rm -f core conftest.err conftest.$ac_objext \
13570    conftest$ac_exeext conftest.$ac_ext
13571fi
13572
13573
13574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
13575$as_echo_n "checking for AIX ACL support... " >&6; }
13576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577/* end confdefs.h.  */
13578
13579#if STDC_HEADERS
13580# include <stdlib.h>
13581# include <stddef.h>
13582#endif
13583#ifdef HAVE_SYS_ACL_H
13584# include <sys/acl.h>
13585#endif
13586#ifdef HAVE_SYS_ACCESS_H
13587# include <sys/access.h>
13588#endif
13589#define _ALL_SOURCE
13590
13591#include <sys/stat.h>
13592
13593int aclsize;
13594struct acl *aclent;
13595int
13596main ()
13597{
13598aclsize = sizeof(struct acl);
13599	aclent = (void *)malloc(aclsize);
13600	statacl("foo", STX_NORMAL, aclent, aclsize);
13601
13602  ;
13603  return 0;
13604}
13605_ACEOF
13606if ac_fn_c_try_link "$LINENO"; then :
13607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13608$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
13609
13610else
13611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612$as_echo "no" >&6; }
13613fi
13614rm -f core conftest.err conftest.$ac_objext \
13615    conftest$ac_exeext conftest.$ac_ext
13616else
13617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13618$as_echo "yes" >&6; }
13619fi
13620
13621if test "x$GTK_CFLAGS" != "x"; then
13622    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
13623$as_echo_n "checking for pango_shape_full... " >&6; }
13624  ac_save_CFLAGS="$CFLAGS"
13625  ac_save_LIBS="$LIBS"
13626  CFLAGS="$CFLAGS $GTK_CFLAGS"
13627  LIBS="$LIBS $GTK_LIBS"
13628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629/* end confdefs.h.  */
13630#include <gtk/gtk.h>
13631int
13632main ()
13633{
13634 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
13635  ;
13636  return 0;
13637}
13638_ACEOF
13639if ac_fn_c_try_link "$LINENO"; then :
13640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13641$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
13642
13643else
13644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13645$as_echo "no" >&6; }
13646fi
13647rm -f core conftest.err conftest.$ac_objext \
13648    conftest$ac_exeext conftest.$ac_ext
13649  CFLAGS="$ac_save_CFLAGS"
13650  LIBS="$ac_save_LIBS"
13651fi
13652
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
13654$as_echo_n "checking --disable-gpm argument... " >&6; }
13655# Check whether --enable-gpm was given.
13656if test "${enable_gpm+set}" = set; then :
13657  enableval=$enable_gpm;
13658else
13659  enable_gpm="yes"
13660fi
13661
13662
13663if test "$enable_gpm" = "yes"; then
13664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665$as_echo "no" >&6; }
13666    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
13667$as_echo_n "checking for gpm... " >&6; }
13668if ${vi_cv_have_gpm+:} false; then :
13669  $as_echo_n "(cached) " >&6
13670else
13671  olibs="$LIBS" ; LIBS="-lgpm"
13672	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673/* end confdefs.h.  */
13674#include <gpm.h>
13675	    #include <linux/keyboard.h>
13676int
13677main ()
13678{
13679Gpm_GetLibVersion(NULL);
13680  ;
13681  return 0;
13682}
13683_ACEOF
13684if ac_fn_c_try_link "$LINENO"; then :
13685  	    	    vi_cv_have_gpm=yes
13686else
13687  vi_cv_have_gpm=no
13688fi
13689rm -f core conftest.err conftest.$ac_objext \
13690    conftest$ac_exeext conftest.$ac_ext
13691	LIBS="$olibs"
13692
13693fi
13694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13695$as_echo "$vi_cv_have_gpm" >&6; }
13696  if test $vi_cv_have_gpm = yes; then
13697    LIBS="$LIBS -lgpm"
13698    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13699
13700  fi
13701else
13702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13703$as_echo "yes" >&6; }
13704fi
13705
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13707$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13708# Check whether --enable-sysmouse was given.
13709if test "${enable_sysmouse+set}" = set; then :
13710  enableval=$enable_sysmouse;
13711else
13712  enable_sysmouse="yes"
13713fi
13714
13715
13716if test "$enable_sysmouse" = "yes"; then
13717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718$as_echo "no" >&6; }
13719        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13720$as_echo_n "checking for sysmouse... " >&6; }
13721if ${vi_cv_have_sysmouse+:} false; then :
13722  $as_echo_n "(cached) " >&6
13723else
13724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725/* end confdefs.h.  */
13726#include <sys/consio.h>
13727	     #include <signal.h>
13728	     #include <sys/fbio.h>
13729int
13730main ()
13731{
13732struct mouse_info   mouse;
13733	     mouse.operation = MOUSE_MODE;
13734	     mouse.operation = MOUSE_SHOW;
13735	     mouse.u.mode.mode = 0;
13736	     mouse.u.mode.signal = SIGUSR2;
13737  ;
13738  return 0;
13739}
13740_ACEOF
13741if ac_fn_c_try_link "$LINENO"; then :
13742  vi_cv_have_sysmouse=yes
13743else
13744  vi_cv_have_sysmouse=no
13745fi
13746rm -f core conftest.err conftest.$ac_objext \
13747    conftest$ac_exeext conftest.$ac_ext
13748
13749fi
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13751$as_echo "$vi_cv_have_sysmouse" >&6; }
13752  if test $vi_cv_have_sysmouse = yes; then
13753    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13754
13755  fi
13756else
13757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13758$as_echo "yes" >&6; }
13759fi
13760
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13762$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764/* end confdefs.h.  */
13765#if HAVE_FCNTL_H
13766# include <fcntl.h>
13767#endif
13768int
13769main ()
13770{
13771	int flag = FD_CLOEXEC;
13772  ;
13773  return 0;
13774}
13775_ACEOF
13776if ac_fn_c_try_compile "$LINENO"; then :
13777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13778$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13779
13780else
13781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13782$as_echo "not usable" >&6; }
13783fi
13784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13787$as_echo_n "checking for rename... " >&6; }
13788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789/* end confdefs.h.  */
13790#include <stdio.h>
13791int
13792main ()
13793{
13794rename("this", "that")
13795  ;
13796  return 0;
13797}
13798_ACEOF
13799if ac_fn_c_try_link "$LINENO"; then :
13800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13801$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13802
13803else
13804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805$as_echo "no" >&6; }
13806fi
13807rm -f core conftest.err conftest.$ac_objext \
13808    conftest$ac_exeext conftest.$ac_ext
13809
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13811$as_echo_n "checking for sysctl... " >&6; }
13812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813/* end confdefs.h.  */
13814#include <sys/types.h>
13815#include <sys/sysctl.h>
13816int
13817main ()
13818{
13819	int mib[2], r;
13820	size_t len;
13821
13822	mib[0] = CTL_HW;
13823	mib[1] = HW_USERMEM;
13824	len = sizeof(r);
13825	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13826
13827  ;
13828  return 0;
13829}
13830_ACEOF
13831if ac_fn_c_try_compile "$LINENO"; then :
13832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13833$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13834
13835else
13836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13837$as_echo "not usable" >&6; }
13838fi
13839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13840
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13842$as_echo_n "checking for sysinfo... " >&6; }
13843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844/* end confdefs.h.  */
13845#include <sys/types.h>
13846#include <sys/sysinfo.h>
13847int
13848main ()
13849{
13850	struct sysinfo sinfo;
13851	int t;
13852
13853	(void)sysinfo(&sinfo);
13854	t = sinfo.totalram;
13855
13856  ;
13857  return 0;
13858}
13859_ACEOF
13860if ac_fn_c_try_compile "$LINENO"; then :
13861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13862$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13863
13864else
13865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13866$as_echo "not usable" >&6; }
13867fi
13868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13869
13870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13871$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873/* end confdefs.h.  */
13874#include <sys/types.h>
13875#include <sys/sysinfo.h>
13876int
13877main ()
13878{
13879	struct sysinfo sinfo;
13880	sinfo.mem_unit = 1;
13881
13882  ;
13883  return 0;
13884}
13885_ACEOF
13886if ac_fn_c_try_compile "$LINENO"; then :
13887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13888$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13889
13890else
13891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892$as_echo "no" >&6; }
13893fi
13894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13897$as_echo_n "checking for sysconf... " >&6; }
13898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899/* end confdefs.h.  */
13900#include <unistd.h>
13901int
13902main ()
13903{
13904	(void)sysconf(_SC_PAGESIZE);
13905	(void)sysconf(_SC_PHYS_PAGES);
13906
13907  ;
13908  return 0;
13909}
13910_ACEOF
13911if ac_fn_c_try_compile "$LINENO"; then :
13912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13913$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13914
13915else
13916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13917$as_echo "not usable" >&6; }
13918fi
13919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13920
13921# The cast to long int works around a bug in the HP C Compiler
13922# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13923# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13924# This bug is HP SR number 8606223364.
13925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13926$as_echo_n "checking size of int... " >&6; }
13927if ${ac_cv_sizeof_int+:} false; then :
13928  $as_echo_n "(cached) " >&6
13929else
13930  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13931
13932else
13933  if test "$ac_cv_type_int" = yes; then
13934     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13936as_fn_error 77 "cannot compute sizeof (int)
13937See \`config.log' for more details" "$LINENO" 5; }
13938   else
13939     ac_cv_sizeof_int=0
13940   fi
13941fi
13942
13943fi
13944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13945$as_echo "$ac_cv_sizeof_int" >&6; }
13946
13947
13948
13949cat >>confdefs.h <<_ACEOF
13950#define SIZEOF_INT $ac_cv_sizeof_int
13951_ACEOF
13952
13953
13954# The cast to long int works around a bug in the HP C Compiler
13955# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13956# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13957# This bug is HP SR number 8606223364.
13958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13959$as_echo_n "checking size of long... " >&6; }
13960if ${ac_cv_sizeof_long+:} false; then :
13961  $as_echo_n "(cached) " >&6
13962else
13963  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13964
13965else
13966  if test "$ac_cv_type_long" = yes; then
13967     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13969as_fn_error 77 "cannot compute sizeof (long)
13970See \`config.log' for more details" "$LINENO" 5; }
13971   else
13972     ac_cv_sizeof_long=0
13973   fi
13974fi
13975
13976fi
13977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13978$as_echo "$ac_cv_sizeof_long" >&6; }
13979
13980
13981
13982cat >>confdefs.h <<_ACEOF
13983#define SIZEOF_LONG $ac_cv_sizeof_long
13984_ACEOF
13985
13986
13987# The cast to long int works around a bug in the HP C Compiler
13988# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13989# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13990# This bug is HP SR number 8606223364.
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
13992$as_echo_n "checking size of time_t... " >&6; }
13993if ${ac_cv_sizeof_time_t+:} false; then :
13994  $as_echo_n "(cached) " >&6
13995else
13996  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
13997
13998else
13999  if test "$ac_cv_type_time_t" = yes; then
14000     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14002as_fn_error 77 "cannot compute sizeof (time_t)
14003See \`config.log' for more details" "$LINENO" 5; }
14004   else
14005     ac_cv_sizeof_time_t=0
14006   fi
14007fi
14008
14009fi
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14011$as_echo "$ac_cv_sizeof_time_t" >&6; }
14012
14013
14014
14015cat >>confdefs.h <<_ACEOF
14016#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14017_ACEOF
14018
14019
14020# The cast to long int works around a bug in the HP C Compiler
14021# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14022# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14023# This bug is HP SR number 8606223364.
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14025$as_echo_n "checking size of off_t... " >&6; }
14026if ${ac_cv_sizeof_off_t+:} false; then :
14027  $as_echo_n "(cached) " >&6
14028else
14029  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14030
14031else
14032  if test "$ac_cv_type_off_t" = yes; then
14033     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14035as_fn_error 77 "cannot compute sizeof (off_t)
14036See \`config.log' for more details" "$LINENO" 5; }
14037   else
14038     ac_cv_sizeof_off_t=0
14039   fi
14040fi
14041
14042fi
14043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14044$as_echo "$ac_cv_sizeof_off_t" >&6; }
14045
14046
14047
14048cat >>confdefs.h <<_ACEOF
14049#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14050_ACEOF
14051
14052
14053
14054cat >>confdefs.h <<_ACEOF
14055#define VIM_SIZEOF_INT $ac_cv_sizeof_int
14056_ACEOF
14057
14058cat >>confdefs.h <<_ACEOF
14059#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
14060_ACEOF
14061
14062
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
14064$as_echo_n "checking uint32_t is 32 bits... " >&6; }
14065if test "$cross_compiling" = yes; then :
14066  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
14067$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
14068else
14069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070/* end confdefs.h.  */
14071
14072#ifdef HAVE_STDINT_H
14073# include <stdint.h>
14074#endif
14075#ifdef HAVE_INTTYPES_H
14076# include <inttypes.h>
14077#endif
14078main() {
14079  uint32_t nr1 = (uint32_t)-1;
14080  uint32_t nr2 = (uint32_t)0xffffffffUL;
14081  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
14082  exit(0);
14083}
14084_ACEOF
14085if ac_fn_c_try_run "$LINENO"; then :
14086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14087$as_echo "ok" >&6; }
14088else
14089  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
14090fi
14091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14092  conftest.$ac_objext conftest.beam conftest.$ac_ext
14093fi
14094
14095
14096
14097bcopy_test_prog='
14098#include "confdefs.h"
14099#ifdef HAVE_STRING_H
14100# include <string.h>
14101#endif
14102#if STDC_HEADERS
14103# include <stdlib.h>
14104# include <stddef.h>
14105#endif
14106main() {
14107  char buf[10];
14108  strcpy(buf, "abcdefghi");
14109  mch_memmove(buf, buf + 2, 3);
14110  if (strncmp(buf, "ababcf", 6))
14111    exit(1);
14112  strcpy(buf, "abcdefghi");
14113  mch_memmove(buf + 2, buf, 3);
14114  if (strncmp(buf, "cdedef", 6))
14115    exit(1);
14116  exit(0); /* libc version works properly.  */
14117}'
14118
14119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
14120$as_echo_n "checking whether memmove handles overlaps... " >&6; }
14121if ${vim_cv_memmove_handles_overlap+:} false; then :
14122  $as_echo_n "(cached) " >&6
14123else
14124
14125    if test "$cross_compiling" = yes; then :
14126
14127	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
14128
14129else
14130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131/* end confdefs.h.  */
14132#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14133_ACEOF
14134if ac_fn_c_try_run "$LINENO"; then :
14135
14136	vim_cv_memmove_handles_overlap=yes
14137
14138else
14139
14140	vim_cv_memmove_handles_overlap=no
14141
14142fi
14143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14144  conftest.$ac_objext conftest.beam conftest.$ac_ext
14145fi
14146
14147
14148fi
14149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
14150$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
14151
14152if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
14153  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
14154
14155else
14156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
14157$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
14158if ${vim_cv_bcopy_handles_overlap+:} false; then :
14159  $as_echo_n "(cached) " >&6
14160else
14161
14162      if test "$cross_compiling" = yes; then :
14163
14164	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
14165
14166else
14167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168/* end confdefs.h.  */
14169#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14170_ACEOF
14171if ac_fn_c_try_run "$LINENO"; then :
14172
14173	vim_cv_bcopy_handles_overlap=yes
14174
14175else
14176
14177	vim_cv_bcopy_handles_overlap=no
14178
14179fi
14180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14181  conftest.$ac_objext conftest.beam conftest.$ac_ext
14182fi
14183
14184
14185fi
14186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
14187$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
14188
14189  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
14190    $as_echo "#define USEBCOPY 1" >>confdefs.h
14191
14192  else
14193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
14194$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
14195if ${vim_cv_memcpy_handles_overlap+:} false; then :
14196  $as_echo_n "(cached) " >&6
14197else
14198
14199	if test "$cross_compiling" = yes; then :
14200
14201	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
14202
14203else
14204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205/* end confdefs.h.  */
14206#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14207_ACEOF
14208if ac_fn_c_try_run "$LINENO"; then :
14209
14210	    vim_cv_memcpy_handles_overlap=yes
14211
14212else
14213
14214	    vim_cv_memcpy_handles_overlap=no
14215
14216fi
14217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14218  conftest.$ac_objext conftest.beam conftest.$ac_ext
14219fi
14220
14221
14222fi
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
14224$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
14225
14226    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
14227      $as_echo "#define USEMEMCPY 1" >>confdefs.h
14228
14229    fi
14230  fi
14231fi
14232
14233
14234if test "x$with_x" = "xyes"; then
14235  cflags_save=$CFLAGS
14236  libs_save=$LIBS
14237  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
14238  CFLAGS="$CFLAGS $X_CFLAGS"
14239
14240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
14241$as_echo_n "checking whether X_LOCALE needed... " >&6; }
14242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243/* end confdefs.h.  */
14244#include <X11/Xlocale.h>
14245int
14246main ()
14247{
14248
14249  ;
14250  return 0;
14251}
14252_ACEOF
14253if ac_fn_c_try_compile "$LINENO"; then :
14254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255/* end confdefs.h.  */
14256
14257/* Override any GCC internal prototype to avoid an error.
14258   Use char because int might match the return type of a GCC
14259   builtin and then its argument prototype would still apply.  */
14260#ifdef __cplusplus
14261extern "C"
14262#endif
14263char _Xsetlocale ();
14264int
14265main ()
14266{
14267return _Xsetlocale ();
14268  ;
14269  return 0;
14270}
14271_ACEOF
14272if ac_fn_c_try_link "$LINENO"; then :
14273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14274$as_echo "yes" >&6; }
14275	      $as_echo "#define X_LOCALE 1" >>confdefs.h
14276
14277else
14278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279$as_echo "no" >&6; }
14280fi
14281rm -f core conftest.err conftest.$ac_objext \
14282    conftest$ac_exeext conftest.$ac_ext
14283else
14284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285$as_echo "no" >&6; }
14286fi
14287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14288
14289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
14290$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
14291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292/* end confdefs.h.  */
14293
14294/* Override any GCC internal prototype to avoid an error.
14295   Use char because int might match the return type of a GCC
14296   builtin and then its argument prototype would still apply.  */
14297#ifdef __cplusplus
14298extern "C"
14299#endif
14300char Xutf8SetWMProperties ();
14301int
14302main ()
14303{
14304return Xutf8SetWMProperties ();
14305  ;
14306  return 0;
14307}
14308_ACEOF
14309if ac_fn_c_try_link "$LINENO"; then :
14310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14311$as_echo "yes" >&6; }
14312	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
14313
14314else
14315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316$as_echo "no" >&6; }
14317fi
14318rm -f core conftest.err conftest.$ac_objext \
14319    conftest$ac_exeext conftest.$ac_ext
14320
14321  CFLAGS=$cflags_save
14322  LIBS=$libs_save
14323fi
14324
14325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
14326$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
14327if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
14328  $as_echo_n "(cached) " >&6
14329else
14330  ac_check_lib_save_LIBS=$LIBS
14331LIBS="-lxpg4  $LIBS"
14332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333/* end confdefs.h.  */
14334
14335/* Override any GCC internal prototype to avoid an error.
14336   Use char because int might match the return type of a GCC
14337   builtin and then its argument prototype would still apply.  */
14338#ifdef __cplusplus
14339extern "C"
14340#endif
14341char _xpg4_setrunelocale ();
14342int
14343main ()
14344{
14345return _xpg4_setrunelocale ();
14346  ;
14347  return 0;
14348}
14349_ACEOF
14350if ac_fn_c_try_link "$LINENO"; then :
14351  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14352else
14353  ac_cv_lib_xpg4__xpg4_setrunelocale=no
14354fi
14355rm -f core conftest.err conftest.$ac_objext \
14356    conftest$ac_exeext conftest.$ac_ext
14357LIBS=$ac_check_lib_save_LIBS
14358fi
14359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14360$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
14361if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
14362  LIBS="$LIBS -lxpg4"
14363fi
14364
14365
14366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
14367$as_echo_n "checking how to create tags... " >&6; }
14368test -f tags && mv tags tags.save
14369if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14370  TAGPRG="ctags -I INIT+ --fields=+S"
14371elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14372  TAGPRG="exctags -I INIT+ --fields=+S"
14373elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14374  TAGPRG="exuberant-ctags -I INIT+ --fields=+S"
14375else
14376  TAGPRG="ctags"
14377  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14378  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14379  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14380  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14381  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14382  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14383  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14384fi
14385test -f tags.save && mv tags.save tags
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
14387$as_echo "$TAGPRG" >&6; }
14388
14389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
14390$as_echo_n "checking how to run man with a section nr... " >&6; }
14391MANDEF="man"
14392(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
14394$as_echo "$MANDEF" >&6; }
14395if test "$MANDEF" = "man -s"; then
14396  $as_echo "#define USEMAN_S 1" >>confdefs.h
14397
14398fi
14399
14400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
14401$as_echo_n "checking --disable-nls argument... " >&6; }
14402# Check whether --enable-nls was given.
14403if test "${enable_nls+set}" = set; then :
14404  enableval=$enable_nls;
14405else
14406  enable_nls="yes"
14407fi
14408
14409
14410if test "$enable_nls" = "yes"; then
14411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412$as_echo "no" >&6; }
14413
14414  INSTALL_LANGS=install-languages
14415
14416  INSTALL_TOOL_LANGS=install-tool-languages
14417
14418
14419  # Extract the first word of "msgfmt", so it can be a program name with args.
14420set dummy msgfmt; ac_word=$2
14421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14422$as_echo_n "checking for $ac_word... " >&6; }
14423if ${ac_cv_prog_MSGFMT+:} false; then :
14424  $as_echo_n "(cached) " >&6
14425else
14426  if test -n "$MSGFMT"; then
14427  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14428else
14429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14430for as_dir in $PATH
14431do
14432  IFS=$as_save_IFS
14433  test -z "$as_dir" && as_dir=.
14434    for ac_exec_ext in '' $ac_executable_extensions; do
14435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14436    ac_cv_prog_MSGFMT="msgfmt"
14437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14438    break 2
14439  fi
14440done
14441  done
14442IFS=$as_save_IFS
14443
14444fi
14445fi
14446MSGFMT=$ac_cv_prog_MSGFMT
14447if test -n "$MSGFMT"; then
14448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14449$as_echo "$MSGFMT" >&6; }
14450else
14451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14452$as_echo "no" >&6; }
14453fi
14454
14455
14456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
14457$as_echo_n "checking for NLS... " >&6; }
14458  if test -f po/Makefile; then
14459    have_gettext="no"
14460    if test -n "$MSGFMT"; then
14461      olibs=$LIBS
14462      LIBS=""
14463      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464/* end confdefs.h.  */
14465#include <libintl.h>
14466int
14467main ()
14468{
14469gettext("Test");
14470  ;
14471  return 0;
14472}
14473_ACEOF
14474if ac_fn_c_try_link "$LINENO"; then :
14475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
14476$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
14477else
14478  LIBS="-lintl"
14479	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480/* end confdefs.h.  */
14481#include <libintl.h>
14482int
14483main ()
14484{
14485gettext("Test");
14486  ;
14487  return 0;
14488}
14489_ACEOF
14490if ac_fn_c_try_link "$LINENO"; then :
14491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
14492$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
14493	      LIBS="$olibs -lintl"
14494else
14495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
14496$as_echo "gettext() doesn't work" >&6; };
14497	      LIBS=$olibs
14498fi
14499rm -f core conftest.err conftest.$ac_objext \
14500    conftest$ac_exeext conftest.$ac_ext
14501fi
14502rm -f core conftest.err conftest.$ac_objext \
14503    conftest$ac_exeext conftest.$ac_ext
14504    else
14505      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
14506$as_echo "msgfmt not found - disabled" >&6; };
14507    fi
14508    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
14509      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14510
14511      MAKEMO=yes
14512
14513            for ac_func in bind_textdomain_codeset
14514do :
14515  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14516if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14517  cat >>confdefs.h <<_ACEOF
14518#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14519_ACEOF
14520
14521fi
14522done
14523
14524            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
14525$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
14526      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527/* end confdefs.h.  */
14528#include <libintl.h>
14529		extern int _nl_msg_cat_cntr;
14530int
14531main ()
14532{
14533++_nl_msg_cat_cntr;
14534  ;
14535  return 0;
14536}
14537_ACEOF
14538if ac_fn_c_try_link "$LINENO"; then :
14539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14540$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
14541
14542else
14543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544$as_echo "no" >&6; }
14545fi
14546rm -f core conftest.err conftest.$ac_objext \
14547    conftest$ac_exeext conftest.$ac_ext
14548      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt supports --desktop" >&5
14549$as_echo_n "checking if msgfmt supports --desktop... " >&6; }
14550      MSGFMT_DESKTOP=
14551      if "$MSGFMT" --help | grep -e '--desktop' >/dev/null; then
14552	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14553$as_echo "yes" >&6; }
14554	MSGFMT_DESKTOP="gvim.desktop vim.desktop"
14555      else
14556	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14557$as_echo "no" >&6; }
14558      fi
14559
14560    fi
14561  else
14562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
14563$as_echo "no \"po/Makefile\" - disabled" >&6; };
14564  fi
14565else
14566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14567$as_echo "yes" >&6; }
14568fi
14569
14570ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14571if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14572  DLL=dlfcn.h
14573else
14574  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
14575if test "x$ac_cv_header_dl_h" = xyes; then :
14576  DLL=dl.h
14577fi
14578
14579
14580fi
14581
14582
14583if test x${DLL} = xdlfcn.h; then
14584
14585$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14586
14587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
14588$as_echo_n "checking for dlopen()... " >&6; }
14589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14590/* end confdefs.h.  */
14591
14592int
14593main ()
14594{
14595
14596		extern void* dlopen();
14597		dlopen();
14598
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; };
14606
14607$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14608
14609else
14610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14611$as_echo "no" >&6; };
14612	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
14613$as_echo_n "checking for dlopen() in -ldl... " >&6; }
14614	      olibs=$LIBS
14615	      LIBS="$LIBS -ldl"
14616	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617/* end confdefs.h.  */
14618
14619int
14620main ()
14621{
14622
14623				extern void* dlopen();
14624				dlopen();
14625
14626  ;
14627  return 0;
14628}
14629_ACEOF
14630if ac_fn_c_try_link "$LINENO"; then :
14631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14632$as_echo "yes" >&6; };
14633
14634$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14635
14636else
14637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638$as_echo "no" >&6; };
14639			  LIBS=$olibs
14640fi
14641rm -f core conftest.err conftest.$ac_objext \
14642    conftest$ac_exeext conftest.$ac_ext
14643fi
14644rm -f core conftest.err conftest.$ac_objext \
14645    conftest$ac_exeext conftest.$ac_ext
14646      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
14647$as_echo_n "checking for dlsym()... " >&6; }
14648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649/* end confdefs.h.  */
14650
14651int
14652main ()
14653{
14654
14655		extern void* dlsym();
14656		dlsym();
14657
14658  ;
14659  return 0;
14660}
14661_ACEOF
14662if ac_fn_c_try_link "$LINENO"; then :
14663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14664$as_echo "yes" >&6; };
14665
14666$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14667
14668else
14669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670$as_echo "no" >&6; };
14671	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
14672$as_echo_n "checking for dlsym() in -ldl... " >&6; }
14673	      olibs=$LIBS
14674	      LIBS="$LIBS -ldl"
14675	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676/* end confdefs.h.  */
14677
14678int
14679main ()
14680{
14681
14682				extern void* dlsym();
14683				dlsym();
14684
14685  ;
14686  return 0;
14687}
14688_ACEOF
14689if ac_fn_c_try_link "$LINENO"; then :
14690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14691$as_echo "yes" >&6; };
14692
14693$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14694
14695else
14696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697$as_echo "no" >&6; };
14698			  LIBS=$olibs
14699fi
14700rm -f core conftest.err conftest.$ac_objext \
14701    conftest$ac_exeext conftest.$ac_ext
14702fi
14703rm -f core conftest.err conftest.$ac_objext \
14704    conftest$ac_exeext conftest.$ac_ext
14705elif test x${DLL} = xdl.h; then
14706
14707$as_echo "#define HAVE_DL_H 1" >>confdefs.h
14708
14709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
14710$as_echo_n "checking for shl_load()... " >&6; }
14711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712/* end confdefs.h.  */
14713
14714int
14715main ()
14716{
14717
14718		extern void* shl_load();
14719		shl_load();
14720
14721  ;
14722  return 0;
14723}
14724_ACEOF
14725if ac_fn_c_try_link "$LINENO"; then :
14726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14727$as_echo "yes" >&6; };
14728
14729$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14730
14731else
14732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14733$as_echo "no" >&6; };
14734	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
14735$as_echo_n "checking for shl_load() in -ldld... " >&6; }
14736	  olibs=$LIBS
14737	  LIBS="$LIBS -ldld"
14738	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14739/* end confdefs.h.  */
14740
14741int
14742main ()
14743{
14744
14745			extern void* shl_load();
14746			shl_load();
14747
14748  ;
14749  return 0;
14750}
14751_ACEOF
14752if ac_fn_c_try_link "$LINENO"; then :
14753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754$as_echo "yes" >&6; };
14755
14756$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14757
14758else
14759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14760$as_echo "no" >&6; };
14761		  LIBS=$olibs
14762fi
14763rm -f core conftest.err conftest.$ac_objext \
14764    conftest$ac_exeext conftest.$ac_ext
14765fi
14766rm -f core conftest.err conftest.$ac_objext \
14767    conftest$ac_exeext conftest.$ac_ext
14768fi
14769for ac_header in setjmp.h
14770do :
14771  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
14772if test "x$ac_cv_header_setjmp_h" = xyes; then :
14773  cat >>confdefs.h <<_ACEOF
14774#define HAVE_SETJMP_H 1
14775_ACEOF
14776
14777fi
14778
14779done
14780
14781
14782if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then
14783    if echo $LIBS | grep -e '-ldl' >/dev/null; then
14784    LIBS=`echo $LIBS | sed s/-ldl//`
14785    PERL_LIBS="$PERL_LIBS -ldl"
14786  fi
14787fi
14788
14789if test "$MACOS_X" = "yes"; then
14790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5
14791$as_echo_n "checking whether we need macOS frameworks... " >&6; }
14792  if test "$GUITYPE" = "CARBONGUI"; then
14793    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5
14794$as_echo "yes, we need Carbon" >&6; }
14795    LIBS="$LIBS -framework Carbon"
14796  elif test "$MACOS_X_DARWIN" = "yes"; then
14797    if test "$features" = "tiny"; then
14798            OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
14799      OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
14800      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
14801$as_echo "yes, we need CoreServices" >&6; }
14802      LIBS="$LIBS -framework CoreServices"
14803    else
14804      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
14805$as_echo "yes, we need AppKit" >&6; }
14806      LIBS="$LIBS -framework AppKit"
14807    fi
14808  else
14809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14810$as_echo "no" >&6; }
14811  fi
14812fi
14813if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
14814  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
14815fi
14816
14817DEPEND_CFLAGS_FILTER=
14818if test "$GCC" = yes; then
14819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14820$as_echo_n "checking for GCC 3 or later... " >&6; }
14821  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
14822  if test "$gccmajor" -gt "2"; then
14823    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14825$as_echo "yes" >&6; }
14826  else
14827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14828$as_echo "no" >&6; }
14829  fi
14830          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14831$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14832  if test "$gccmajor" -gt "3"; then
14833    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/'`
14834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14835$as_echo "yes" >&6; }
14836  else
14837    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14838$as_echo "no" >&6; }
14839  fi
14840fi
14841
14842
14843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5
14844$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; }
14845if 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
14846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14847$as_echo "yes" >&6; }
14848  $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14849
14850else
14851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14852$as_echo "no" >&6; }
14853fi
14854
14855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14856$as_echo_n "checking linker --as-needed support... " >&6; }
14857LINK_AS_NEEDED=
14858# Check if linker supports --as-needed and --no-as-needed options
14859if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14860  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14861  LINK_AS_NEEDED=yes
14862fi
14863if test "$LINK_AS_NEEDED" = yes; then
14864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14865$as_echo "yes" >&6; }
14866else
14867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868$as_echo "no" >&6; }
14869fi
14870
14871
14872# IBM z/OS reset CFLAGS for config.mk
14873if test "$zOSUnix" = "yes"; then
14874	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14875fi
14876
14877ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14878
14879cat >confcache <<\_ACEOF
14880# This file is a shell script that caches the results of configure
14881# tests run on this system so they can be shared between configure
14882# scripts and configure runs, see configure's option --config-cache.
14883# It is not useful on other systems.  If it contains results you don't
14884# want to keep, you may remove or edit it.
14885#
14886# config.status only pays attention to the cache file if you give it
14887# the --recheck option to rerun configure.
14888#
14889# `ac_cv_env_foo' variables (set or unset) will be overridden when
14890# loading this file, other *unset* `ac_cv_foo' will be assigned the
14891# following values.
14892
14893_ACEOF
14894
14895# The following way of writing the cache mishandles newlines in values,
14896# but we know of no workaround that is simple, portable, and efficient.
14897# So, we kill variables containing newlines.
14898# Ultrix sh set writes to stderr and can't be redirected directly,
14899# and sets the high bit in the cache file unless we assign to the vars.
14900(
14901  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14902    eval ac_val=\$$ac_var
14903    case $ac_val in #(
14904    *${as_nl}*)
14905      case $ac_var in #(
14906      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14907$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14908      esac
14909      case $ac_var in #(
14910      _ | IFS | as_nl) ;; #(
14911      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14912      *) { eval $ac_var=; unset $ac_var;} ;;
14913      esac ;;
14914    esac
14915  done
14916
14917  (set) 2>&1 |
14918    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14919    *${as_nl}ac_space=\ *)
14920      # `set' does not quote correctly, so add quotes: double-quote
14921      # substitution turns \\\\ into \\, and sed turns \\ into \.
14922      sed -n \
14923	"s/'/'\\\\''/g;
14924	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14925      ;; #(
14926    *)
14927      # `set' quotes correctly as required by POSIX, so do not add quotes.
14928      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14929      ;;
14930    esac |
14931    sort
14932) |
14933  sed '
14934     /^ac_cv_env_/b end
14935     t clear
14936     :clear
14937     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14938     t end
14939     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14940     :end' >>confcache
14941if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14942  if test -w "$cache_file"; then
14943    if test "x$cache_file" != "x/dev/null"; then
14944      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14945$as_echo "$as_me: updating cache $cache_file" >&6;}
14946      if test ! -f "$cache_file" || test -h "$cache_file"; then
14947	cat confcache >"$cache_file"
14948      else
14949        case $cache_file in #(
14950        */* | ?:*)
14951	  mv -f confcache "$cache_file"$$ &&
14952	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14953        *)
14954	  mv -f confcache "$cache_file" ;;
14955	esac
14956      fi
14957    fi
14958  else
14959    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14960$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14961  fi
14962fi
14963rm -f confcache
14964
14965test "x$prefix" = xNONE && prefix=$ac_default_prefix
14966# Let make expand exec_prefix.
14967test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14968
14969DEFS=-DHAVE_CONFIG_H
14970
14971ac_libobjs=
14972ac_ltlibobjs=
14973U=
14974for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14975  # 1. Remove the extension, and $U if already installed.
14976  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14977  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14978  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14979  #    will be set to the directory where LIBOBJS objects are built.
14980  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14981  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14982done
14983LIBOBJS=$ac_libobjs
14984
14985LTLIBOBJS=$ac_ltlibobjs
14986
14987
14988
14989
14990: "${CONFIG_STATUS=./config.status}"
14991ac_write_fail=0
14992ac_clean_files_save=$ac_clean_files
14993ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14994{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14995$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14996as_write_fail=0
14997cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14998#! $SHELL
14999# Generated by $as_me.
15000# Run this file to recreate the current configuration.
15001# Compiler output produced by configure, useful for debugging
15002# configure, is in config.log if it exists.
15003
15004debug=false
15005ac_cs_recheck=false
15006ac_cs_silent=false
15007
15008SHELL=\${CONFIG_SHELL-$SHELL}
15009export SHELL
15010_ASEOF
15011cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15012## -------------------- ##
15013## M4sh Initialization. ##
15014## -------------------- ##
15015
15016# Be more Bourne compatible
15017DUALCASE=1; export DUALCASE # for MKS sh
15018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15019  emulate sh
15020  NULLCMD=:
15021  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15022  # is contrary to our usage.  Disable this feature.
15023  alias -g '${1+"$@"}'='"$@"'
15024  setopt NO_GLOB_SUBST
15025else
15026  case `(set -o) 2>/dev/null` in #(
15027  *posix*) :
15028    set -o posix ;; #(
15029  *) :
15030     ;;
15031esac
15032fi
15033
15034
15035as_nl='
15036'
15037export as_nl
15038# Printing a long string crashes Solaris 7 /usr/bin/printf.
15039as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15040as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15041as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15042# Prefer a ksh shell builtin over an external printf program on Solaris,
15043# but without wasting forks for bash or zsh.
15044if test -z "$BASH_VERSION$ZSH_VERSION" \
15045    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15046  as_echo='print -r --'
15047  as_echo_n='print -rn --'
15048elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15049  as_echo='printf %s\n'
15050  as_echo_n='printf %s'
15051else
15052  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15053    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15054    as_echo_n='/usr/ucb/echo -n'
15055  else
15056    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15057    as_echo_n_body='eval
15058      arg=$1;
15059      case $arg in #(
15060      *"$as_nl"*)
15061	expr "X$arg" : "X\\(.*\\)$as_nl";
15062	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15063      esac;
15064      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15065    '
15066    export as_echo_n_body
15067    as_echo_n='sh -c $as_echo_n_body as_echo'
15068  fi
15069  export as_echo_body
15070  as_echo='sh -c $as_echo_body as_echo'
15071fi
15072
15073# The user is always right.
15074if test "${PATH_SEPARATOR+set}" != set; then
15075  PATH_SEPARATOR=:
15076  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15077    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15078      PATH_SEPARATOR=';'
15079  }
15080fi
15081
15082
15083# IFS
15084# We need space, tab and new line, in precisely that order.  Quoting is
15085# there to prevent editors from complaining about space-tab.
15086# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15087# splitting by setting IFS to empty value.)
15088IFS=" ""	$as_nl"
15089
15090# Find who we are.  Look in the path if we contain no directory separator.
15091as_myself=
15092case $0 in #((
15093  *[\\/]* ) as_myself=$0 ;;
15094  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15095for as_dir in $PATH
15096do
15097  IFS=$as_save_IFS
15098  test -z "$as_dir" && as_dir=.
15099    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15100  done
15101IFS=$as_save_IFS
15102
15103     ;;
15104esac
15105# We did not find ourselves, most probably we were run as `sh COMMAND'
15106# in which case we are not to be found in the path.
15107if test "x$as_myself" = x; then
15108  as_myself=$0
15109fi
15110if test ! -f "$as_myself"; then
15111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15112  exit 1
15113fi
15114
15115# Unset variables that we do not need and which cause bugs (e.g. in
15116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15117# suppresses any "Segmentation fault" message there.  '((' could
15118# trigger a bug in pdksh 5.2.14.
15119for as_var in BASH_ENV ENV MAIL MAILPATH
15120do eval test x\${$as_var+set} = xset \
15121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15122done
15123PS1='$ '
15124PS2='> '
15125PS4='+ '
15126
15127# NLS nuisances.
15128LC_ALL=C
15129export LC_ALL
15130LANGUAGE=C
15131export LANGUAGE
15132
15133# CDPATH.
15134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15135
15136
15137# as_fn_error STATUS ERROR [LINENO LOG_FD]
15138# ----------------------------------------
15139# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15140# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15141# script with STATUS, using 1 if that was 0.
15142as_fn_error ()
15143{
15144  as_status=$1; test $as_status -eq 0 && as_status=1
15145  if test "$4"; then
15146    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15147    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15148  fi
15149  $as_echo "$as_me: error: $2" >&2
15150  as_fn_exit $as_status
15151} # as_fn_error
15152
15153
15154# as_fn_set_status STATUS
15155# -----------------------
15156# Set $? to STATUS, without forking.
15157as_fn_set_status ()
15158{
15159  return $1
15160} # as_fn_set_status
15161
15162# as_fn_exit STATUS
15163# -----------------
15164# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15165as_fn_exit ()
15166{
15167  set +e
15168  as_fn_set_status $1
15169  exit $1
15170} # as_fn_exit
15171
15172# as_fn_unset VAR
15173# ---------------
15174# Portably unset VAR.
15175as_fn_unset ()
15176{
15177  { eval $1=; unset $1;}
15178}
15179as_unset=as_fn_unset
15180# as_fn_append VAR VALUE
15181# ----------------------
15182# Append the text in VALUE to the end of the definition contained in VAR. Take
15183# advantage of any shell optimizations that allow amortized linear growth over
15184# repeated appends, instead of the typical quadratic growth present in naive
15185# implementations.
15186if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15187  eval 'as_fn_append ()
15188  {
15189    eval $1+=\$2
15190  }'
15191else
15192  as_fn_append ()
15193  {
15194    eval $1=\$$1\$2
15195  }
15196fi # as_fn_append
15197
15198# as_fn_arith ARG...
15199# ------------------
15200# Perform arithmetic evaluation on the ARGs, and store the result in the
15201# global $as_val. Take advantage of shells that can avoid forks. The arguments
15202# must be portable across $(()) and expr.
15203if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15204  eval 'as_fn_arith ()
15205  {
15206    as_val=$(( $* ))
15207  }'
15208else
15209  as_fn_arith ()
15210  {
15211    as_val=`expr "$@" || test $? -eq 1`
15212  }
15213fi # as_fn_arith
15214
15215
15216if expr a : '\(a\)' >/dev/null 2>&1 &&
15217   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15218  as_expr=expr
15219else
15220  as_expr=false
15221fi
15222
15223if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15224  as_basename=basename
15225else
15226  as_basename=false
15227fi
15228
15229if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15230  as_dirname=dirname
15231else
15232  as_dirname=false
15233fi
15234
15235as_me=`$as_basename -- "$0" ||
15236$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15237	 X"$0" : 'X\(//\)$' \| \
15238	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15239$as_echo X/"$0" |
15240    sed '/^.*\/\([^/][^/]*\)\/*$/{
15241	    s//\1/
15242	    q
15243	  }
15244	  /^X\/\(\/\/\)$/{
15245	    s//\1/
15246	    q
15247	  }
15248	  /^X\/\(\/\).*/{
15249	    s//\1/
15250	    q
15251	  }
15252	  s/.*/./; q'`
15253
15254# Avoid depending upon Character Ranges.
15255as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15256as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15257as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15258as_cr_digits='0123456789'
15259as_cr_alnum=$as_cr_Letters$as_cr_digits
15260
15261ECHO_C= ECHO_N= ECHO_T=
15262case `echo -n x` in #(((((
15263-n*)
15264  case `echo 'xy\c'` in
15265  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15266  xy)  ECHO_C='\c';;
15267  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15268       ECHO_T='	';;
15269  esac;;
15270*)
15271  ECHO_N='-n';;
15272esac
15273
15274rm -f conf$$ conf$$.exe conf$$.file
15275if test -d conf$$.dir; then
15276  rm -f conf$$.dir/conf$$.file
15277else
15278  rm -f conf$$.dir
15279  mkdir conf$$.dir 2>/dev/null
15280fi
15281if (echo >conf$$.file) 2>/dev/null; then
15282  if ln -s conf$$.file conf$$ 2>/dev/null; then
15283    as_ln_s='ln -s'
15284    # ... but there are two gotchas:
15285    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15286    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15287    # In both cases, we have to default to `cp -pR'.
15288    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15289      as_ln_s='cp -pR'
15290  elif ln conf$$.file conf$$ 2>/dev/null; then
15291    as_ln_s=ln
15292  else
15293    as_ln_s='cp -pR'
15294  fi
15295else
15296  as_ln_s='cp -pR'
15297fi
15298rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15299rmdir conf$$.dir 2>/dev/null
15300
15301
15302# as_fn_mkdir_p
15303# -------------
15304# Create "$as_dir" as a directory, including parents if necessary.
15305as_fn_mkdir_p ()
15306{
15307
15308  case $as_dir in #(
15309  -*) as_dir=./$as_dir;;
15310  esac
15311  test -d "$as_dir" || eval $as_mkdir_p || {
15312    as_dirs=
15313    while :; do
15314      case $as_dir in #(
15315      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15316      *) as_qdir=$as_dir;;
15317      esac
15318      as_dirs="'$as_qdir' $as_dirs"
15319      as_dir=`$as_dirname -- "$as_dir" ||
15320$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15321	 X"$as_dir" : 'X\(//\)[^/]' \| \
15322	 X"$as_dir" : 'X\(//\)$' \| \
15323	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15324$as_echo X"$as_dir" |
15325    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15326	    s//\1/
15327	    q
15328	  }
15329	  /^X\(\/\/\)[^/].*/{
15330	    s//\1/
15331	    q
15332	  }
15333	  /^X\(\/\/\)$/{
15334	    s//\1/
15335	    q
15336	  }
15337	  /^X\(\/\).*/{
15338	    s//\1/
15339	    q
15340	  }
15341	  s/.*/./; q'`
15342      test -d "$as_dir" && break
15343    done
15344    test -z "$as_dirs" || eval "mkdir $as_dirs"
15345  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15346
15347
15348} # as_fn_mkdir_p
15349if mkdir -p . 2>/dev/null; then
15350  as_mkdir_p='mkdir -p "$as_dir"'
15351else
15352  test -d ./-p && rmdir ./-p
15353  as_mkdir_p=false
15354fi
15355
15356
15357# as_fn_executable_p FILE
15358# -----------------------
15359# Test if FILE is an executable regular file.
15360as_fn_executable_p ()
15361{
15362  test -f "$1" && test -x "$1"
15363} # as_fn_executable_p
15364as_test_x='test -x'
15365as_executable_p=as_fn_executable_p
15366
15367# Sed expression to map a string onto a valid CPP name.
15368as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15369
15370# Sed expression to map a string onto a valid variable name.
15371as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15372
15373
15374exec 6>&1
15375## ----------------------------------- ##
15376## Main body of $CONFIG_STATUS script. ##
15377## ----------------------------------- ##
15378_ASEOF
15379test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15380
15381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15382# Save the log message, to keep $0 and so on meaningful, and to
15383# report actual input values of CONFIG_FILES etc. instead of their
15384# values after options handling.
15385ac_log="
15386This file was extended by $as_me, which was
15387generated by GNU Autoconf 2.69.  Invocation command line was
15388
15389  CONFIG_FILES    = $CONFIG_FILES
15390  CONFIG_HEADERS  = $CONFIG_HEADERS
15391  CONFIG_LINKS    = $CONFIG_LINKS
15392  CONFIG_COMMANDS = $CONFIG_COMMANDS
15393  $ $0 $@
15394
15395on `(hostname || uname -n) 2>/dev/null | sed 1q`
15396"
15397
15398_ACEOF
15399
15400case $ac_config_files in *"
15401"*) set x $ac_config_files; shift; ac_config_files=$*;;
15402esac
15403
15404case $ac_config_headers in *"
15405"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15406esac
15407
15408
15409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15410# Files that config.status was made for.
15411config_files="$ac_config_files"
15412config_headers="$ac_config_headers"
15413
15414_ACEOF
15415
15416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15417ac_cs_usage="\
15418\`$as_me' instantiates files and other configuration actions
15419from templates according to the current configuration.  Unless the files
15420and actions are specified as TAGs, all are instantiated by default.
15421
15422Usage: $0 [OPTION]... [TAG]...
15423
15424  -h, --help       print this help, then exit
15425  -V, --version    print version number and configuration settings, then exit
15426      --config     print configuration, then exit
15427  -q, --quiet, --silent
15428                   do not print progress messages
15429  -d, --debug      don't remove temporary files
15430      --recheck    update $as_me by reconfiguring in the same conditions
15431      --file=FILE[:TEMPLATE]
15432                   instantiate the configuration file FILE
15433      --header=FILE[:TEMPLATE]
15434                   instantiate the configuration header FILE
15435
15436Configuration files:
15437$config_files
15438
15439Configuration headers:
15440$config_headers
15441
15442Report bugs to the package provider."
15443
15444_ACEOF
15445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15446ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15447ac_cs_version="\\
15448config.status
15449configured by $0, generated by GNU Autoconf 2.69,
15450  with options \\"\$ac_cs_config\\"
15451
15452Copyright (C) 2012 Free Software Foundation, Inc.
15453This config.status script is free software; the Free Software Foundation
15454gives unlimited permission to copy, distribute and modify it."
15455
15456ac_pwd='$ac_pwd'
15457srcdir='$srcdir'
15458AWK='$AWK'
15459test -n "\$AWK" || AWK=awk
15460_ACEOF
15461
15462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15463# The default lists apply if the user does not specify any file.
15464ac_need_defaults=:
15465while test $# != 0
15466do
15467  case $1 in
15468  --*=?*)
15469    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15470    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15471    ac_shift=:
15472    ;;
15473  --*=)
15474    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15475    ac_optarg=
15476    ac_shift=:
15477    ;;
15478  *)
15479    ac_option=$1
15480    ac_optarg=$2
15481    ac_shift=shift
15482    ;;
15483  esac
15484
15485  case $ac_option in
15486  # Handling of the options.
15487  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15488    ac_cs_recheck=: ;;
15489  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15490    $as_echo "$ac_cs_version"; exit ;;
15491  --config | --confi | --conf | --con | --co | --c )
15492    $as_echo "$ac_cs_config"; exit ;;
15493  --debug | --debu | --deb | --de | --d | -d )
15494    debug=: ;;
15495  --file | --fil | --fi | --f )
15496    $ac_shift
15497    case $ac_optarg in
15498    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15499    '') as_fn_error $? "missing file argument" ;;
15500    esac
15501    as_fn_append CONFIG_FILES " '$ac_optarg'"
15502    ac_need_defaults=false;;
15503  --header | --heade | --head | --hea )
15504    $ac_shift
15505    case $ac_optarg in
15506    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15507    esac
15508    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15509    ac_need_defaults=false;;
15510  --he | --h)
15511    # Conflict between --help and --header
15512    as_fn_error $? "ambiguous option: \`$1'
15513Try \`$0 --help' for more information.";;
15514  --help | --hel | -h )
15515    $as_echo "$ac_cs_usage"; exit ;;
15516  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15517  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15518    ac_cs_silent=: ;;
15519
15520  # This is an error.
15521  -*) as_fn_error $? "unrecognized option: \`$1'
15522Try \`$0 --help' for more information." ;;
15523
15524  *) as_fn_append ac_config_targets " $1"
15525     ac_need_defaults=false ;;
15526
15527  esac
15528  shift
15529done
15530
15531ac_configure_extra_args=
15532
15533if $ac_cs_silent; then
15534  exec 6>/dev/null
15535  ac_configure_extra_args="$ac_configure_extra_args --silent"
15536fi
15537
15538_ACEOF
15539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15540if \$ac_cs_recheck; then
15541  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15542  shift
15543  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15544  CONFIG_SHELL='$SHELL'
15545  export CONFIG_SHELL
15546  exec "\$@"
15547fi
15548
15549_ACEOF
15550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15551exec 5>>auto/config.log
15552{
15553  echo
15554  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15555## Running $as_me. ##
15556_ASBOX
15557  $as_echo "$ac_log"
15558} >&5
15559
15560_ACEOF
15561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15562_ACEOF
15563
15564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15565
15566# Handling of arguments.
15567for ac_config_target in $ac_config_targets
15568do
15569  case $ac_config_target in
15570    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15571    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15572
15573  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15574  esac
15575done
15576
15577
15578# If the user did not use the arguments to specify the items to instantiate,
15579# then the envvar interface is used.  Set only those that are not.
15580# We use the long form for the default assignment because of an extremely
15581# bizarre bug on SunOS 4.1.3.
15582if $ac_need_defaults; then
15583  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15584  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15585fi
15586
15587# Have a temporary directory for convenience.  Make it in the build tree
15588# simply because there is no reason against having it here, and in addition,
15589# creating and moving files from /tmp can sometimes cause problems.
15590# Hook for its removal unless debugging.
15591# Note that there is a small window in which the directory will not be cleaned:
15592# after its creation but before its name has been assigned to `$tmp'.
15593$debug ||
15594{
15595  tmp= ac_tmp=
15596  trap 'exit_status=$?
15597  : "${ac_tmp:=$tmp}"
15598  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15599' 0
15600  trap 'as_fn_exit 1' 1 2 13 15
15601}
15602# Create a (secure) tmp directory for tmp files.
15603
15604{
15605  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15606  test -d "$tmp"
15607}  ||
15608{
15609  tmp=./conf$$-$RANDOM
15610  (umask 077 && mkdir "$tmp")
15611} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15612ac_tmp=$tmp
15613
15614# Set up the scripts for CONFIG_FILES section.
15615# No need to generate them if there are no CONFIG_FILES.
15616# This happens for instance with `./config.status config.h'.
15617if test -n "$CONFIG_FILES"; then
15618
15619
15620ac_cr=`echo X | tr X '\015'`
15621# On cygwin, bash can eat \r inside `` if the user requested igncr.
15622# But we know of no other shell where ac_cr would be empty at this
15623# point, so we can use a bashism as a fallback.
15624if test "x$ac_cr" = x; then
15625  eval ac_cr=\$\'\\r\'
15626fi
15627ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15628if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15629  ac_cs_awk_cr='\\r'
15630else
15631  ac_cs_awk_cr=$ac_cr
15632fi
15633
15634echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15635_ACEOF
15636
15637
15638{
15639  echo "cat >conf$$subs.awk <<_ACEOF" &&
15640  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15641  echo "_ACEOF"
15642} >conf$$subs.sh ||
15643  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15644ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15645ac_delim='%!_!# '
15646for ac_last_try in false false false false false :; do
15647  . ./conf$$subs.sh ||
15648    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15649
15650  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15651  if test $ac_delim_n = $ac_delim_num; then
15652    break
15653  elif $ac_last_try; then
15654    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15655  else
15656    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15657  fi
15658done
15659rm -f conf$$subs.sh
15660
15661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15662cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15663_ACEOF
15664sed -n '
15665h
15666s/^/S["/; s/!.*/"]=/
15667p
15668g
15669s/^[^!]*!//
15670:repl
15671t repl
15672s/'"$ac_delim"'$//
15673t delim
15674:nl
15675h
15676s/\(.\{148\}\)..*/\1/
15677t more1
15678s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15679p
15680n
15681b repl
15682:more1
15683s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15684p
15685g
15686s/.\{148\}//
15687t nl
15688:delim
15689h
15690s/\(.\{148\}\)..*/\1/
15691t more2
15692s/["\\]/\\&/g; s/^/"/; s/$/"/
15693p
15694b
15695:more2
15696s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15697p
15698g
15699s/.\{148\}//
15700t delim
15701' <conf$$subs.awk | sed '
15702/^[^""]/{
15703  N
15704  s/\n//
15705}
15706' >>$CONFIG_STATUS || ac_write_fail=1
15707rm -f conf$$subs.awk
15708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15709_ACAWK
15710cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15711  for (key in S) S_is_set[key] = 1
15712  FS = ""
15713
15714}
15715{
15716  line = $ 0
15717  nfields = split(line, field, "@")
15718  substed = 0
15719  len = length(field[1])
15720  for (i = 2; i < nfields; i++) {
15721    key = field[i]
15722    keylen = length(key)
15723    if (S_is_set[key]) {
15724      value = S[key]
15725      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15726      len += length(value) + length(field[++i])
15727      substed = 1
15728    } else
15729      len += 1 + keylen
15730  }
15731
15732  print line
15733}
15734
15735_ACAWK
15736_ACEOF
15737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15738if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15739  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15740else
15741  cat
15742fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15743  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15744_ACEOF
15745
15746# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15747# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15748# trailing colons and then remove the whole line if VPATH becomes empty
15749# (actually we leave an empty line to preserve line numbers).
15750if test "x$srcdir" = x.; then
15751  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15752h
15753s///
15754s/^/:/
15755s/[	 ]*$/:/
15756s/:\$(srcdir):/:/g
15757s/:\${srcdir}:/:/g
15758s/:@srcdir@:/:/g
15759s/^:*//
15760s/:*$//
15761x
15762s/\(=[	 ]*\).*/\1/
15763G
15764s/\n//
15765s/^[^=]*=[	 ]*$//
15766}'
15767fi
15768
15769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15770fi # test -n "$CONFIG_FILES"
15771
15772# Set up the scripts for CONFIG_HEADERS section.
15773# No need to generate them if there are no CONFIG_HEADERS.
15774# This happens for instance with `./config.status Makefile'.
15775if test -n "$CONFIG_HEADERS"; then
15776cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15777BEGIN {
15778_ACEOF
15779
15780# Transform confdefs.h into an awk script `defines.awk', embedded as
15781# here-document in config.status, that substitutes the proper values into
15782# config.h.in to produce config.h.
15783
15784# Create a delimiter string that does not exist in confdefs.h, to ease
15785# handling of long lines.
15786ac_delim='%!_!# '
15787for ac_last_try in false false :; do
15788  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15789  if test -z "$ac_tt"; then
15790    break
15791  elif $ac_last_try; then
15792    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15793  else
15794    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15795  fi
15796done
15797
15798# For the awk script, D is an array of macro values keyed by name,
15799# likewise P contains macro parameters if any.  Preserve backslash
15800# newline sequences.
15801
15802ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15803sed -n '
15804s/.\{148\}/&'"$ac_delim"'/g
15805t rset
15806:rset
15807s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15808t def
15809d
15810:def
15811s/\\$//
15812t bsnl
15813s/["\\]/\\&/g
15814s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15815D["\1"]=" \3"/p
15816s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15817d
15818:bsnl
15819s/["\\]/\\&/g
15820s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15821D["\1"]=" \3\\\\\\n"\\/p
15822t cont
15823s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15824t cont
15825d
15826:cont
15827n
15828s/.\{148\}/&'"$ac_delim"'/g
15829t clear
15830:clear
15831s/\\$//
15832t bsnlc
15833s/["\\]/\\&/g; s/^/"/; s/$/"/p
15834d
15835:bsnlc
15836s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15837b cont
15838' <confdefs.h | sed '
15839s/'"$ac_delim"'/"\\\
15840"/g' >>$CONFIG_STATUS || ac_write_fail=1
15841
15842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15843  for (key in D) D_is_set[key] = 1
15844  FS = ""
15845}
15846/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15847  line = \$ 0
15848  split(line, arg, " ")
15849  if (arg[1] == "#") {
15850    defundef = arg[2]
15851    mac1 = arg[3]
15852  } else {
15853    defundef = substr(arg[1], 2)
15854    mac1 = arg[2]
15855  }
15856  split(mac1, mac2, "(") #)
15857  macro = mac2[1]
15858  prefix = substr(line, 1, index(line, defundef) - 1)
15859  if (D_is_set[macro]) {
15860    # Preserve the white space surrounding the "#".
15861    print prefix "define", macro P[macro] D[macro]
15862    next
15863  } else {
15864    # Replace #undef with comments.  This is necessary, for example,
15865    # in the case of _POSIX_SOURCE, which is predefined and required
15866    # on some systems where configure will not decide to define it.
15867    if (defundef == "undef") {
15868      print "/*", prefix defundef, macro, "*/"
15869      next
15870    }
15871  }
15872}
15873{ print }
15874_ACAWK
15875_ACEOF
15876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15877  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15878fi # test -n "$CONFIG_HEADERS"
15879
15880
15881eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15882shift
15883for ac_tag
15884do
15885  case $ac_tag in
15886  :[FHLC]) ac_mode=$ac_tag; continue;;
15887  esac
15888  case $ac_mode$ac_tag in
15889  :[FHL]*:*);;
15890  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15891  :[FH]-) ac_tag=-:-;;
15892  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15893  esac
15894  ac_save_IFS=$IFS
15895  IFS=:
15896  set x $ac_tag
15897  IFS=$ac_save_IFS
15898  shift
15899  ac_file=$1
15900  shift
15901
15902  case $ac_mode in
15903  :L) ac_source=$1;;
15904  :[FH])
15905    ac_file_inputs=
15906    for ac_f
15907    do
15908      case $ac_f in
15909      -) ac_f="$ac_tmp/stdin";;
15910      *) # Look for the file first in the build tree, then in the source tree
15911	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15912	 # because $ac_f cannot contain `:'.
15913	 test -f "$ac_f" ||
15914	   case $ac_f in
15915	   [\\/$]*) false;;
15916	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15917	   esac ||
15918	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15919      esac
15920      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15921      as_fn_append ac_file_inputs " '$ac_f'"
15922    done
15923
15924    # Let's still pretend it is `configure' which instantiates (i.e., don't
15925    # use $as_me), people would be surprised to read:
15926    #    /* config.h.  Generated by config.status.  */
15927    configure_input='Generated from '`
15928	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15929	`' by configure.'
15930    if test x"$ac_file" != x-; then
15931      configure_input="$ac_file.  $configure_input"
15932      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15933$as_echo "$as_me: creating $ac_file" >&6;}
15934    fi
15935    # Neutralize special characters interpreted by sed in replacement strings.
15936    case $configure_input in #(
15937    *\&* | *\|* | *\\* )
15938       ac_sed_conf_input=`$as_echo "$configure_input" |
15939       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15940    *) ac_sed_conf_input=$configure_input;;
15941    esac
15942
15943    case $ac_tag in
15944    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15945      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15946    esac
15947    ;;
15948  esac
15949
15950  ac_dir=`$as_dirname -- "$ac_file" ||
15951$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15952	 X"$ac_file" : 'X\(//\)[^/]' \| \
15953	 X"$ac_file" : 'X\(//\)$' \| \
15954	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15955$as_echo X"$ac_file" |
15956    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15957	    s//\1/
15958	    q
15959	  }
15960	  /^X\(\/\/\)[^/].*/{
15961	    s//\1/
15962	    q
15963	  }
15964	  /^X\(\/\/\)$/{
15965	    s//\1/
15966	    q
15967	  }
15968	  /^X\(\/\).*/{
15969	    s//\1/
15970	    q
15971	  }
15972	  s/.*/./; q'`
15973  as_dir="$ac_dir"; as_fn_mkdir_p
15974  ac_builddir=.
15975
15976case "$ac_dir" in
15977.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15978*)
15979  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15980  # A ".." for each directory in $ac_dir_suffix.
15981  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15982  case $ac_top_builddir_sub in
15983  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15984  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15985  esac ;;
15986esac
15987ac_abs_top_builddir=$ac_pwd
15988ac_abs_builddir=$ac_pwd$ac_dir_suffix
15989# for backward compatibility:
15990ac_top_builddir=$ac_top_build_prefix
15991
15992case $srcdir in
15993  .)  # We are building in place.
15994    ac_srcdir=.
15995    ac_top_srcdir=$ac_top_builddir_sub
15996    ac_abs_top_srcdir=$ac_pwd ;;
15997  [\\/]* | ?:[\\/]* )  # Absolute name.
15998    ac_srcdir=$srcdir$ac_dir_suffix;
15999    ac_top_srcdir=$srcdir
16000    ac_abs_top_srcdir=$srcdir ;;
16001  *) # Relative name.
16002    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16003    ac_top_srcdir=$ac_top_build_prefix$srcdir
16004    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16005esac
16006ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16007
16008
16009  case $ac_mode in
16010  :F)
16011  #
16012  # CONFIG_FILE
16013  #
16014
16015_ACEOF
16016
16017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16018# If the template does not know about datarootdir, expand it.
16019# FIXME: This hack should be removed a few years after 2.60.
16020ac_datarootdir_hack=; ac_datarootdir_seen=
16021ac_sed_dataroot='
16022/datarootdir/ {
16023  p
16024  q
16025}
16026/@datadir@/p
16027/@docdir@/p
16028/@infodir@/p
16029/@localedir@/p
16030/@mandir@/p'
16031case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16032*datarootdir*) ac_datarootdir_seen=yes;;
16033*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16034  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16035$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16036_ACEOF
16037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16038  ac_datarootdir_hack='
16039  s&@datadir@&$datadir&g
16040  s&@docdir@&$docdir&g
16041  s&@infodir@&$infodir&g
16042  s&@localedir@&$localedir&g
16043  s&@mandir@&$mandir&g
16044  s&\\\${datarootdir}&$datarootdir&g' ;;
16045esac
16046_ACEOF
16047
16048# Neutralize VPATH when `$srcdir' = `.'.
16049# Shell code in configure.ac might set extrasub.
16050# FIXME: do we really want to maintain this feature?
16051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16052ac_sed_extra="$ac_vpsub
16053$extrasub
16054_ACEOF
16055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056:t
16057/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16058s|@configure_input@|$ac_sed_conf_input|;t t
16059s&@top_builddir@&$ac_top_builddir_sub&;t t
16060s&@top_build_prefix@&$ac_top_build_prefix&;t t
16061s&@srcdir@&$ac_srcdir&;t t
16062s&@abs_srcdir@&$ac_abs_srcdir&;t t
16063s&@top_srcdir@&$ac_top_srcdir&;t t
16064s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16065s&@builddir@&$ac_builddir&;t t
16066s&@abs_builddir@&$ac_abs_builddir&;t t
16067s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16068$ac_datarootdir_hack
16069"
16070eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16071  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16072
16073test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16074  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16075  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16076      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16077  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16078which seems to be undefined.  Please make sure it is defined" >&5
16079$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16080which seems to be undefined.  Please make sure it is defined" >&2;}
16081
16082  rm -f "$ac_tmp/stdin"
16083  case $ac_file in
16084  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16085  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16086  esac \
16087  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16088 ;;
16089  :H)
16090  #
16091  # CONFIG_HEADER
16092  #
16093  if test x"$ac_file" != x-; then
16094    {
16095      $as_echo "/* $configure_input  */" \
16096      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16097    } >"$ac_tmp/config.h" \
16098      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16099    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16100      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16101$as_echo "$as_me: $ac_file is unchanged" >&6;}
16102    else
16103      rm -f "$ac_file"
16104      mv "$ac_tmp/config.h" "$ac_file" \
16105	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16106    fi
16107  else
16108    $as_echo "/* $configure_input  */" \
16109      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16110      || as_fn_error $? "could not create -" "$LINENO" 5
16111  fi
16112 ;;
16113
16114
16115  esac
16116
16117done # for ac_tag
16118
16119
16120as_fn_exit 0
16121_ACEOF
16122ac_clean_files=$ac_clean_files_save
16123
16124test $ac_write_fail = 0 ||
16125  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16126
16127
16128# configure is writing to config.log, and then calls config.status.
16129# config.status does its own redirection, appending to config.log.
16130# Unfortunately, on DOS this fails, as config.log is still kept open
16131# by configure, so config.status won't be able to write to it; its
16132# output is simply discarded.  So we exec the FD to /dev/null,
16133# effectively closing config.log, so it can be properly (re)opened and
16134# appended to by config.status.  When coming back to configure, we
16135# need to make the FD available again.
16136if test "$no_create" != yes; then
16137  ac_cs_success=:
16138  ac_config_status_args=
16139  test "$silent" = yes &&
16140    ac_config_status_args="$ac_config_status_args --quiet"
16141  exec 5>/dev/null
16142  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16143  exec 5>>auto/config.log
16144  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16145  # would make configure fail if this is the last instruction.
16146  $ac_cs_success || as_fn_exit 1
16147fi
16148if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16149  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16150$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16151fi
16152
16153
16154