xref: /vim-8.2.3635/src/auto/configure (revision 37e3edce)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell [email protected] about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="vim.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624LINK_AS_NEEDED
625DEPEND_CFLAGS_FILTER
626MAKEMO
627MSGFMT
628INSTALL_TOOL_LANGS
629INSTALL_LANGS
630TAGPRG
631HANGULIN_OBJ
632HANGULIN_SRC
633GUI_X_LIBS
634GUITYPE
635GUI_LIB_LOC
636GUI_INC_LOC
637NARROW_PROTO
638MOTIF_LIBNAME
639GRESOURCE_OBJ
640GRESOURCE_SRC
641UPDATE_DESKTOP_DATABASE
642GTK_UPDATE_ICON_CACHE
643GLIB_COMPILE_RESOURCES
644GNOME_INCLUDEDIR
645GNOME_LIBDIR
646GNOME_LIBS
647GTK_LIBNAME
648GTK_LIBS
649GTK_CFLAGS
650PKG_CONFIG
651X_LIB
652X_EXTRA_LIBS
653X_LIBS
654X_PRE_LIBS
655X_CFLAGS
656XMKMF
657xmkmfpath
658TERM_OBJ
659TERM_SRC
660CHANNEL_OBJ
661CHANNEL_SRC
662NETBEANS_OBJ
663NETBEANS_SRC
664WORKSHOP_OBJ
665WORKSHOP_SRC
666RUBY_LIBS
667RUBY_CFLAGS
668RUBY_PRO
669RUBY_OBJ
670RUBY_SRC
671vi_cv_path_ruby
672TCL_LIBS
673TCL_CFLAGS
674TCL_PRO
675TCL_OBJ
676TCL_SRC
677vi_cv_path_tcl
678PYTHON3_OBJ
679PYTHON3_SRC
680PYTHON3_CFLAGS
681PYTHON3_LIBS
682vi_cv_path_python3
683PYTHON_OBJ
684PYTHON_SRC
685PYTHON_CFLAGS
686PYTHON_LIBS
687vi_cv_path_python
688PERL_LIBS
689PERL_CFLAGS
690PERL_PRO
691PERL_OBJ
692PERL_SRC
693shrpenv
694vi_cv_perl_xsubpp
695vi_cv_perllib
696vi_cv_path_perl
697MZSCHEME_MZC
698MZSCHEME_EXTRA
699MZSCHEME_CFLAGS
700MZSCHEME_LIBS
701MZSCHEME_PRO
702MZSCHEME_OBJ
703MZSCHEME_SRC
704vi_cv_path_mzscheme
705LUA_CFLAGS
706LUA_LIBS
707LUA_PRO
708LUA_OBJ
709LUA_SRC
710vi_cv_path_plain_lua
711vi_cv_path_luajit
712vi_cv_path_lua
713compiledby
714dogvimdiff
715dovimdiff
716QUOTESED
717line_break
718VIEWNAME
719EXNAME
720VIMNAME
721OS_EXTRA_OBJ
722OS_EXTRA_SRC
723XCODE_SELECT
724CPP_MM
725CROSS_COMPILING
726STRIP
727AWK
728FGREP
729EGREP
730GREP
731CPP
732OBJEXT
733EXEEXT
734ac_ct_CC
735CPPFLAGS
736LDFLAGS
737CFLAGS
738CC
739SET_MAKE
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759runstatedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
782enable_fail_if_missing
783enable_darwin
784with_mac_arch
785with_developer_dir
786with_local_dir
787with_vim_name
788with_ex_name
789with_view_name
790with_global_runtime
791with_modified_by
792enable_smack
793enable_selinux
794with_features
795with_compiledby
796enable_xsmp
797enable_xsmp_interact
798enable_luainterp
799with_lua_prefix
800with_luajit
801enable_mzschemeinterp
802with_plthome
803enable_perlinterp
804enable_pythoninterp
805with_python_command
806with_python_config_dir
807enable_python3interp
808with_python3_command
809with_python3_config_dir
810enable_tclinterp
811with_tclsh
812enable_rubyinterp
813with_ruby_command
814enable_cscope
815enable_workshop
816enable_netbeans
817enable_channel
818enable_terminal
819enable_autoservername
820enable_multibyte
821enable_rightleft
822enable_arabic
823enable_farsi
824enable_hangulinput
825enable_xim
826enable_fontset
827with_x
828enable_gui
829enable_gtk2_check
830enable_gnome_check
831enable_gtk3_check
832enable_motif_check
833enable_athena_check
834enable_nextaw_check
835enable_carbon_check
836enable_gtktest
837with_gnome_includes
838with_gnome_libs
839with_gnome
840enable_icon_cache_update
841enable_desktop_database_update
842with_motif_lib
843with_tlib
844enable_largefile
845enable_acl
846enable_gpm
847enable_sysmouse
848enable_nls
849'
850      ac_precious_vars='build_alias
851host_alias
852target_alias
853CC
854CFLAGS
855LDFLAGS
856LIBS
857CPPFLAGS
858CPP
859XMKMF'
860
861
862# Initialize some variables set by options.
863ac_init_help=
864ac_init_version=false
865ac_unrecognized_opts=
866ac_unrecognized_sep=
867# The variables have the same names as the options, with
868# dashes changed to underlines.
869cache_file=/dev/null
870exec_prefix=NONE
871no_create=
872no_recursion=
873prefix=NONE
874program_prefix=NONE
875program_suffix=NONE
876program_transform_name=s,x,x,
877silent=
878site=
879srcdir=
880verbose=
881x_includes=NONE
882x_libraries=NONE
883
884# Installation directory options.
885# These are left unexpanded so users can "make install exec_prefix=/foo"
886# and all the variables that are supposed to be based on exec_prefix
887# by default will actually change.
888# Use braces instead of parens because sh, perl, etc. also accept them.
889# (The list follows the same order as the GNU Coding Standards.)
890bindir='${exec_prefix}/bin'
891sbindir='${exec_prefix}/sbin'
892libexecdir='${exec_prefix}/libexec'
893datarootdir='${prefix}/share'
894datadir='${datarootdir}'
895sysconfdir='${prefix}/etc'
896sharedstatedir='${prefix}/com'
897localstatedir='${prefix}/var'
898runstatedir='${localstatedir}/run'
899includedir='${prefix}/include'
900oldincludedir='/usr/include'
901docdir='${datarootdir}/doc/${PACKAGE}'
902infodir='${datarootdir}/info'
903htmldir='${docdir}'
904dvidir='${docdir}'
905pdfdir='${docdir}'
906psdir='${docdir}'
907libdir='${exec_prefix}/lib'
908localedir='${datarootdir}/locale'
909mandir='${datarootdir}/man'
910
911ac_prev=
912ac_dashdash=
913for ac_option
914do
915  # If the previous option needs an argument, assign it.
916  if test -n "$ac_prev"; then
917    eval $ac_prev=\$ac_option
918    ac_prev=
919    continue
920  fi
921
922  case $ac_option in
923  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924  *=)   ac_optarg= ;;
925  *)    ac_optarg=yes ;;
926  esac
927
928  # Accept the important Cygnus configure options, so we can diagnose typos.
929
930  case $ac_dashdash$ac_option in
931  --)
932    ac_dashdash=yes ;;
933
934  -bindir | --bindir | --bindi | --bind | --bin | --bi)
935    ac_prev=bindir ;;
936  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937    bindir=$ac_optarg ;;
938
939  -build | --build | --buil | --bui | --bu)
940    ac_prev=build_alias ;;
941  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942    build_alias=$ac_optarg ;;
943
944  -cache-file | --cache-file | --cache-fil | --cache-fi \
945  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946    ac_prev=cache_file ;;
947  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949    cache_file=$ac_optarg ;;
950
951  --config-cache | -C)
952    cache_file=config.cache ;;
953
954  -datadir | --datadir | --datadi | --datad)
955    ac_prev=datadir ;;
956  -datadir=* | --datadir=* | --datadi=* | --datad=*)
957    datadir=$ac_optarg ;;
958
959  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960  | --dataroo | --dataro | --datar)
961    ac_prev=datarootdir ;;
962  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964    datarootdir=$ac_optarg ;;
965
966  -disable-* | --disable-*)
967    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968    # Reject names that are not valid shell variable names.
969    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970      as_fn_error $? "invalid feature name: $ac_useropt"
971    ac_useropt_orig=$ac_useropt
972    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973    case $ac_user_opts in
974      *"
975"enable_$ac_useropt"
976"*) ;;
977      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978	 ac_unrecognized_sep=', ';;
979    esac
980    eval enable_$ac_useropt=no ;;
981
982  -docdir | --docdir | --docdi | --doc | --do)
983    ac_prev=docdir ;;
984  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985    docdir=$ac_optarg ;;
986
987  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988    ac_prev=dvidir ;;
989  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990    dvidir=$ac_optarg ;;
991
992  -enable-* | --enable-*)
993    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994    # Reject names that are not valid shell variable names.
995    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996      as_fn_error $? "invalid feature name: $ac_useropt"
997    ac_useropt_orig=$ac_useropt
998    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999    case $ac_user_opts in
1000      *"
1001"enable_$ac_useropt"
1002"*) ;;
1003      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004	 ac_unrecognized_sep=', ';;
1005    esac
1006    eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010  | --exec | --exe | --ex)
1011    ac_prev=exec_prefix ;;
1012  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014  | --exec=* | --exe=* | --ex=*)
1015    exec_prefix=$ac_optarg ;;
1016
1017  -gas | --gas | --ga | --g)
1018    # Obsolete; use --with-gas.
1019    with_gas=yes ;;
1020
1021  -help | --help | --hel | --he | -h)
1022    ac_init_help=long ;;
1023  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024    ac_init_help=recursive ;;
1025  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026    ac_init_help=short ;;
1027
1028  -host | --host | --hos | --ho)
1029    ac_prev=host_alias ;;
1030  -host=* | --host=* | --hos=* | --ho=*)
1031    host_alias=$ac_optarg ;;
1032
1033  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034    ac_prev=htmldir ;;
1035  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036  | --ht=*)
1037    htmldir=$ac_optarg ;;
1038
1039  -includedir | --includedir | --includedi | --included | --include \
1040  | --includ | --inclu | --incl | --inc)
1041    ac_prev=includedir ;;
1042  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043  | --includ=* | --inclu=* | --incl=* | --inc=*)
1044    includedir=$ac_optarg ;;
1045
1046  -infodir | --infodir | --infodi | --infod | --info | --inf)
1047    ac_prev=infodir ;;
1048  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049    infodir=$ac_optarg ;;
1050
1051  -libdir | --libdir | --libdi | --libd)
1052    ac_prev=libdir ;;
1053  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054    libdir=$ac_optarg ;;
1055
1056  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057  | --libexe | --libex | --libe)
1058    ac_prev=libexecdir ;;
1059  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060  | --libexe=* | --libex=* | --libe=*)
1061    libexecdir=$ac_optarg ;;
1062
1063  -localedir | --localedir | --localedi | --localed | --locale)
1064    ac_prev=localedir ;;
1065  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066    localedir=$ac_optarg ;;
1067
1068  -localstatedir | --localstatedir | --localstatedi | --localstated \
1069  | --localstate | --localstat | --localsta | --localst | --locals)
1070    ac_prev=localstatedir ;;
1071  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073    localstatedir=$ac_optarg ;;
1074
1075  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076    ac_prev=mandir ;;
1077  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078    mandir=$ac_optarg ;;
1079
1080  -nfp | --nfp | --nf)
1081    # Obsolete; use --without-fp.
1082    with_fp=no ;;
1083
1084  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085  | --no-cr | --no-c | -n)
1086    no_create=yes ;;
1087
1088  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090    no_recursion=yes ;;
1091
1092  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094  | --oldin | --oldi | --old | --ol | --o)
1095    ac_prev=oldincludedir ;;
1096  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099    oldincludedir=$ac_optarg ;;
1100
1101  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102    ac_prev=prefix ;;
1103  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104    prefix=$ac_optarg ;;
1105
1106  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107  | --program-pre | --program-pr | --program-p)
1108    ac_prev=program_prefix ;;
1109  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111    program_prefix=$ac_optarg ;;
1112
1113  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114  | --program-suf | --program-su | --program-s)
1115    ac_prev=program_suffix ;;
1116  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118    program_suffix=$ac_optarg ;;
1119
1120  -program-transform-name | --program-transform-name \
1121  | --program-transform-nam | --program-transform-na \
1122  | --program-transform-n | --program-transform- \
1123  | --program-transform | --program-transfor \
1124  | --program-transfo | --program-transf \
1125  | --program-trans | --program-tran \
1126  | --progr-tra | --program-tr | --program-t)
1127    ac_prev=program_transform_name ;;
1128  -program-transform-name=* | --program-transform-name=* \
1129  | --program-transform-nam=* | --program-transform-na=* \
1130  | --program-transform-n=* | --program-transform-=* \
1131  | --program-transform=* | --program-transfor=* \
1132  | --program-transfo=* | --program-transf=* \
1133  | --program-trans=* | --program-tran=* \
1134  | --progr-tra=* | --program-tr=* | --program-t=*)
1135    program_transform_name=$ac_optarg ;;
1136
1137  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138    ac_prev=pdfdir ;;
1139  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140    pdfdir=$ac_optarg ;;
1141
1142  -psdir | --psdir | --psdi | --psd | --ps)
1143    ac_prev=psdir ;;
1144  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145    psdir=$ac_optarg ;;
1146
1147  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148  | -silent | --silent | --silen | --sile | --sil)
1149    silent=yes ;;
1150
1151  -runstatedir | --runstatedir | --runstatedi | --runstated \
1152  | --runstate | --runstat | --runsta | --runst | --runs \
1153  | --run | --ru | --r)
1154    ac_prev=runstatedir ;;
1155  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1156  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1157  | --run=* | --ru=* | --r=*)
1158    runstatedir=$ac_optarg ;;
1159
1160  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161    ac_prev=sbindir ;;
1162  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163  | --sbi=* | --sb=*)
1164    sbindir=$ac_optarg ;;
1165
1166  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168  | --sharedst | --shareds | --shared | --share | --shar \
1169  | --sha | --sh)
1170    ac_prev=sharedstatedir ;;
1171  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174  | --sha=* | --sh=*)
1175    sharedstatedir=$ac_optarg ;;
1176
1177  -site | --site | --sit)
1178    ac_prev=site ;;
1179  -site=* | --site=* | --sit=*)
1180    site=$ac_optarg ;;
1181
1182  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183    ac_prev=srcdir ;;
1184  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185    srcdir=$ac_optarg ;;
1186
1187  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188  | --syscon | --sysco | --sysc | --sys | --sy)
1189    ac_prev=sysconfdir ;;
1190  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192    sysconfdir=$ac_optarg ;;
1193
1194  -target | --target | --targe | --targ | --tar | --ta | --t)
1195    ac_prev=target_alias ;;
1196  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197    target_alias=$ac_optarg ;;
1198
1199  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200    verbose=yes ;;
1201
1202  -version | --version | --versio | --versi | --vers | -V)
1203    ac_init_version=: ;;
1204
1205  -with-* | --with-*)
1206    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207    # Reject names that are not valid shell variable names.
1208    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209      as_fn_error $? "invalid package name: $ac_useropt"
1210    ac_useropt_orig=$ac_useropt
1211    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212    case $ac_user_opts in
1213      *"
1214"with_$ac_useropt"
1215"*) ;;
1216      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217	 ac_unrecognized_sep=', ';;
1218    esac
1219    eval with_$ac_useropt=\$ac_optarg ;;
1220
1221  -without-* | --without-*)
1222    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223    # Reject names that are not valid shell variable names.
1224    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225      as_fn_error $? "invalid package name: $ac_useropt"
1226    ac_useropt_orig=$ac_useropt
1227    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228    case $ac_user_opts in
1229      *"
1230"with_$ac_useropt"
1231"*) ;;
1232      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233	 ac_unrecognized_sep=', ';;
1234    esac
1235    eval with_$ac_useropt=no ;;
1236
1237  --x)
1238    # Obsolete; use --with-x.
1239    with_x=yes ;;
1240
1241  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242  | --x-incl | --x-inc | --x-in | --x-i)
1243    ac_prev=x_includes ;;
1244  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246    x_includes=$ac_optarg ;;
1247
1248  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250    ac_prev=x_libraries ;;
1251  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253    x_libraries=$ac_optarg ;;
1254
1255  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256Try \`$0 --help' for more information"
1257    ;;
1258
1259  *=*)
1260    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261    # Reject names that are not valid shell variable names.
1262    case $ac_envvar in #(
1263      '' | [0-9]* | *[!_$as_cr_alnum]* )
1264      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1265    esac
1266    eval $ac_envvar=\$ac_optarg
1267    export $ac_envvar ;;
1268
1269  *)
1270    # FIXME: should be removed in autoconf 3.0.
1271    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1275    ;;
1276
1277  esac
1278done
1279
1280if test -n "$ac_prev"; then
1281  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282  as_fn_error $? "missing argument to $ac_option"
1283fi
1284
1285if test -n "$ac_unrecognized_opts"; then
1286  case $enable_option_checking in
1287    no) ;;
1288    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1289    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290  esac
1291fi
1292
1293# Check all directory arguments for consistency.
1294for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295		datadir sysconfdir sharedstatedir localstatedir includedir \
1296		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297		libdir localedir mandir runstatedir
1298do
1299  eval ac_val=\$$ac_var
1300  # Remove trailing slashes.
1301  case $ac_val in
1302    */ )
1303      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304      eval $ac_var=\$ac_val;;
1305  esac
1306  # Be sure to have absolute directory names.
1307  case $ac_val in
1308    [\\/$]* | ?:[\\/]* )  continue;;
1309    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310  esac
1311  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1312done
1313
1314# There might be people who depend on the old broken behavior: `$host'
1315# used to hold the argument of --host etc.
1316# FIXME: To remove some day.
1317build=$build_alias
1318host=$host_alias
1319target=$target_alias
1320
1321# FIXME: To remove some day.
1322if test "x$host_alias" != x; then
1323  if test "x$build_alias" = x; then
1324    cross_compiling=maybe
1325  elif test "x$build_alias" != "x$host_alias"; then
1326    cross_compiling=yes
1327  fi
1328fi
1329
1330ac_tool_prefix=
1331test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333test "$silent" = yes && exec 6>/dev/null
1334
1335
1336ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337ac_ls_di=`ls -di .` &&
1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339  as_fn_error $? "working directory cannot be determined"
1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341  as_fn_error $? "pwd does not report name of working directory"
1342
1343
1344# Find the source files, if location was not specified.
1345if test -z "$srcdir"; then
1346  ac_srcdir_defaulted=yes
1347  # Try the directory containing this script, then the parent directory.
1348  ac_confdir=`$as_dirname -- "$as_myself" ||
1349$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350	 X"$as_myself" : 'X\(//\)[^/]' \| \
1351	 X"$as_myself" : 'X\(//\)$' \| \
1352	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353$as_echo X"$as_myself" |
1354    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\/\)[^/].*/{
1359	    s//\1/
1360	    q
1361	  }
1362	  /^X\(\/\/\)$/{
1363	    s//\1/
1364	    q
1365	  }
1366	  /^X\(\/\).*/{
1367	    s//\1/
1368	    q
1369	  }
1370	  s/.*/./; q'`
1371  srcdir=$ac_confdir
1372  if test ! -r "$srcdir/$ac_unique_file"; then
1373    srcdir=..
1374  fi
1375else
1376  ac_srcdir_defaulted=no
1377fi
1378if test ! -r "$srcdir/$ac_unique_file"; then
1379  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1381fi
1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
1384	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1385	pwd)`
1386# When building in place, set srcdir=.
1387if test "$ac_abs_confdir" = "$ac_pwd"; then
1388  srcdir=.
1389fi
1390# Remove unnecessary trailing slashes from srcdir.
1391# Double slashes in file names in object file debugging info
1392# mess up M-x gdb in Emacs.
1393case $srcdir in
1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395esac
1396for ac_var in $ac_precious_vars; do
1397  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398  eval ac_env_${ac_var}_value=\$${ac_var}
1399  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401done
1402
1403#
1404# Report the --help message.
1405#
1406if test "$ac_init_help" = "long"; then
1407  # Omit some internal or obsolete options to make the list less imposing.
1408  # This message is too long to be a string in the A/UX 3.1 sh.
1409  cat <<_ACEOF
1410\`configure' configures this package to adapt to many kinds of systems.
1411
1412Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415VAR=VALUE.  See below for descriptions of some of the useful variables.
1416
1417Defaults for the options are specified in brackets.
1418
1419Configuration:
1420  -h, --help              display this help and exit
1421      --help=short        display options specific to this package
1422      --help=recursive    display the short help of all the included packages
1423  -V, --version           display version information and exit
1424  -q, --quiet, --silent   do not print \`checking ...' messages
1425      --cache-file=FILE   cache test results in FILE [disabled]
1426  -C, --config-cache      alias for \`--cache-file=config.cache'
1427  -n, --no-create         do not create output files
1428      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1429
1430Installation directories:
1431  --prefix=PREFIX         install architecture-independent files in PREFIX
1432                          [$ac_default_prefix]
1433  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1434                          [PREFIX]
1435
1436By default, \`make install' will install all the files in
1437\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1438an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439for instance \`--prefix=\$HOME'.
1440
1441For better control, use the options below.
1442
1443Fine tuning of the installation directories:
1444  --bindir=DIR            user executables [EPREFIX/bin]
1445  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1446  --libexecdir=DIR        program executables [EPREFIX/libexec]
1447  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1448  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1449  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1450  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1451  --libdir=DIR            object code libraries [EPREFIX/lib]
1452  --includedir=DIR        C header files [PREFIX/include]
1453  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1454  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1455  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1456  --infodir=DIR           info documentation [DATAROOTDIR/info]
1457  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1458  --mandir=DIR            man documentation [DATAROOTDIR/man]
1459  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1460  --htmldir=DIR           html documentation [DOCDIR]
1461  --dvidir=DIR            dvi documentation [DOCDIR]
1462  --pdfdir=DIR            pdf documentation [DOCDIR]
1463  --psdir=DIR             ps documentation [DOCDIR]
1464_ACEOF
1465
1466  cat <<\_ACEOF
1467
1468X features:
1469  --x-includes=DIR    X include files are in DIR
1470  --x-libraries=DIR   X library files are in DIR
1471_ACEOF
1472fi
1473
1474if test -n "$ac_init_help"; then
1475
1476  cat <<\_ACEOF
1477
1478Optional Features:
1479  --disable-option-checking  ignore unrecognized --enable/--with options
1480  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482  --enable-fail-if-missing    Fail if dependencies on additional features
1483     specified on the command line are missing.
1484  --disable-darwin        Disable Darwin (Mac OS X) support.
1485  --disable-smack	  Do not check for Smack support.
1486  --disable-selinux	  Do not check for SELinux support.
1487  --disable-xsmp          Disable XSMP session management
1488  --disable-xsmp-interact Disable XSMP interaction
1489  --enable-luainterp=OPTS      Include Lua interpreter.  default=no OPTS=no/yes/dynamic
1490  --enable-mzschemeinterp      Include MzScheme interpreter.
1491  --enable-perlinterp=OPTS     Include Perl interpreter.  default=no OPTS=no/yes/dynamic
1492  --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
1493  --enable-python3interp=OPTS  Include Python3 interpreter. default=no OPTS=no/yes/dynamic
1494  --enable-tclinterp=OPTS      Include Tcl interpreter. default=no OPTS=no/yes/dynamic
1495  --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
1496  --enable-cscope         Include cscope interface.
1497  --enable-workshop       Include Sun Visual Workshop support.
1498  --disable-netbeans      Disable NetBeans integration support.
1499  --disable-channel       Disable process communication support.
1500  --enable-terminal       Enable terminal emulation support.
1501  --enable-autoservername Automatically define servername at vim startup.
1502  --enable-multibyte      Include multibyte editing support.
1503  --disable-rightleft     Do not include Right-to-Left language support.
1504  --disable-arabic        Do not include Arabic language support.
1505  --disable-farsi         Do not include Farsi language support.
1506  --enable-hangulinput    Include Hangul input support.
1507  --enable-xim            Include XIM input support.
1508  --enable-fontset        Include X fontset output support.
1509  --enable-gui=OPTS       X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon
1510  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1511  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1512  --enable-gtk3-check     If auto-select GUI, check for GTK+ 3 default=yes
1513  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1514  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1515  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1516  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1517  --disable-gtktest       Do not try to compile and run a test GTK program
1518  --disable-icon-cache-update        update disabled
1519  --disable-desktop-database-update  update disabled
1520  --disable-largefile     omit support for large files
1521  --disable-acl           No check for ACL support.
1522  --disable-gpm           Don't use gpm (Linux mouse daemon).
1523  --disable-sysmouse      Don't use sysmouse (mouse in *BSD console).
1524  --disable-nls           Don't support NLS (gettext()).
1525
1526Optional Packages:
1527  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1528  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1529  --with-mac-arch=ARCH    current, intel, ppc or both
1530  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1531  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1532  --without-local-dir     do not search /usr/local for local libraries.
1533  --with-vim-name=NAME    what to call the Vim executable
1534  --with-ex-name=NAME     what to call the Ex executable
1535  --with-view-name=NAME   what to call the View executable
1536  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1537  --with-modified-by=NAME       name of who modified a release version
1538  --with-features=TYPE    tiny, small, normal, big or huge (default: huge)
1539  --with-compiledby=NAME  name to show in :version message
1540  --with-lua-prefix=PFX   Prefix where Lua is installed.
1541  --with-luajit           Link with LuaJIT instead of Lua.
1542  --with-plthome=PLTHOME   Use PLTHOME.
1543  --with-python-command=NAME  name of the Python 2 command (default: python2 or python)
1544  --with-python-config-dir=PATH  Python's config directory (deprecated)
1545  --with-python3-command=NAME  name of the Python 3 command (default: python3 or python)
1546  --with-python3-config-dir=PATH  Python's config directory (deprecated)
1547  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1548  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1549  --with-x                use the X Window System
1550  --with-gnome-includes=DIR Specify location of GNOME headers
1551  --with-gnome-libs=DIR   Specify location of GNOME libs
1552  --with-gnome            Specify prefix for GNOME files
1553  --with-motif-lib=STRING Library for Motif
1554  --with-tlib=library     terminal library to be used
1555
1556Some influential environment variables:
1557  CC          C compiler command
1558  CFLAGS      C compiler flags
1559  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1560              nonstandard directory <lib dir>
1561  LIBS        libraries to pass to the linker, e.g. -l<library>
1562  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1563              you have headers in a nonstandard directory <include dir>
1564  CPP         C preprocessor
1565  XMKMF       Path to xmkmf, Makefile generator for X Window System
1566
1567Use these variables to override the choices made by `configure' or to help
1568it to find libraries and programs with nonstandard names/locations.
1569
1570Report bugs to the package provider.
1571_ACEOF
1572ac_status=$?
1573fi
1574
1575if test "$ac_init_help" = "recursive"; then
1576  # If there are subdirs, report their specific --help.
1577  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578    test -d "$ac_dir" ||
1579      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1580      continue
1581    ac_builddir=.
1582
1583case "$ac_dir" in
1584.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585*)
1586  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1587  # A ".." for each directory in $ac_dir_suffix.
1588  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1589  case $ac_top_builddir_sub in
1590  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592  esac ;;
1593esac
1594ac_abs_top_builddir=$ac_pwd
1595ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596# for backward compatibility:
1597ac_top_builddir=$ac_top_build_prefix
1598
1599case $srcdir in
1600  .)  # We are building in place.
1601    ac_srcdir=.
1602    ac_top_srcdir=$ac_top_builddir_sub
1603    ac_abs_top_srcdir=$ac_pwd ;;
1604  [\\/]* | ?:[\\/]* )  # Absolute name.
1605    ac_srcdir=$srcdir$ac_dir_suffix;
1606    ac_top_srcdir=$srcdir
1607    ac_abs_top_srcdir=$srcdir ;;
1608  *) # Relative name.
1609    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610    ac_top_srcdir=$ac_top_build_prefix$srcdir
1611    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612esac
1613ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614
1615    cd "$ac_dir" || { ac_status=$?; continue; }
1616    # Check for guested configure.
1617    if test -f "$ac_srcdir/configure.gnu"; then
1618      echo &&
1619      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620    elif test -f "$ac_srcdir/configure"; then
1621      echo &&
1622      $SHELL "$ac_srcdir/configure" --help=recursive
1623    else
1624      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625    fi || ac_status=$?
1626    cd "$ac_pwd" || { ac_status=$?; break; }
1627  done
1628fi
1629
1630test -n "$ac_init_help" && exit $ac_status
1631if $ac_init_version; then
1632  cat <<\_ACEOF
1633configure
1634generated by GNU Autoconf 2.69
1635
1636Copyright (C) 2012 Free Software Foundation, Inc.
1637This configure script is free software; the Free Software Foundation
1638gives unlimited permission to copy, distribute and modify it.
1639_ACEOF
1640  exit
1641fi
1642
1643## ------------------------ ##
1644## Autoconf initialization. ##
1645## ------------------------ ##
1646
1647# ac_fn_c_try_compile LINENO
1648# --------------------------
1649# Try to compile conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_compile ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  rm -f conftest.$ac_objext
1654  if { { ac_try="$ac_compile"
1655case "(($ac_try" in
1656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657  *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661  (eval "$ac_compile") 2>conftest.err
1662  ac_status=$?
1663  if test -s conftest.err; then
1664    grep -v '^ *+' conftest.err >conftest.er1
1665    cat conftest.er1 >&5
1666    mv -f conftest.er1 conftest.err
1667  fi
1668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } && {
1670	 test -z "$ac_c_werror_flag" ||
1671	 test ! -s conftest.err
1672       } && test -s conftest.$ac_objext; then :
1673  ac_retval=0
1674else
1675  $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678	ac_retval=1
1679fi
1680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681  as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_compile
1684
1685# ac_fn_c_try_cpp LINENO
1686# ----------------------
1687# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_cpp ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  if { { ac_try="$ac_cpp conftest.$ac_ext"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699  ac_status=$?
1700  if test -s conftest.err; then
1701    grep -v '^ *+' conftest.err >conftest.er1
1702    cat conftest.er1 >&5
1703    mv -f conftest.er1 conftest.err
1704  fi
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; } > conftest.i && {
1707	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708	 test ! -s conftest.err
1709       }; then :
1710  ac_retval=0
1711else
1712  $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715    ac_retval=1
1716fi
1717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718  as_fn_set_status $ac_retval
1719
1720} # ac_fn_c_try_cpp
1721
1722# ac_fn_c_try_link LINENO
1723# -----------------------
1724# Try to link conftest.$ac_ext, and return whether this succeeded.
1725ac_fn_c_try_link ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  rm -f conftest.$ac_objext conftest$ac_exeext
1729  if { { ac_try="$ac_link"
1730case "(($ac_try" in
1731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732  *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736  (eval "$ac_link") 2>conftest.err
1737  ac_status=$?
1738  if test -s conftest.err; then
1739    grep -v '^ *+' conftest.err >conftest.er1
1740    cat conftest.er1 >&5
1741    mv -f conftest.er1 conftest.err
1742  fi
1743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; } && {
1745	 test -z "$ac_c_werror_flag" ||
1746	 test ! -s conftest.err
1747       } && test -s conftest$ac_exeext && {
1748	 test "$cross_compiling" = yes ||
1749	 test -x conftest$ac_exeext
1750       }; then :
1751  ac_retval=0
1752else
1753  $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756	ac_retval=1
1757fi
1758  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760  # interfere with the next link command; also delete a directory that is
1761  # left behind by Apple's compiler.  We do this before executing the actions.
1762  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764  as_fn_set_status $ac_retval
1765
1766} # ac_fn_c_try_link
1767
1768# ac_fn_c_try_run LINENO
1769# ----------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771# that executables *can* be run.
1772ac_fn_c_try_run ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778  *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782  (eval "$ac_link") 2>&5
1783  ac_status=$?
1784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786  { { case "(($ac_try" in
1787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788  *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792  (eval "$ac_try") 2>&5
1793  ac_status=$?
1794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; }; }; then :
1796  ac_retval=0
1797else
1798  $as_echo "$as_me: program exited with status $ac_status" >&5
1799       $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802       ac_retval=$ac_status
1803fi
1804  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806  as_fn_set_status $ac_retval
1807
1808} # ac_fn_c_try_run
1809
1810# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811# -------------------------------------------------------
1812# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813# the include files in INCLUDES and setting the cache variable VAR
1814# accordingly.
1815ac_fn_c_check_header_mongrel ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  if eval \${$3+:} false; then :
1819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822  $as_echo_n "(cached) " >&6
1823fi
1824eval ac_res=\$$3
1825	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
1827else
1828  # Is the header compilable?
1829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830$as_echo_n "checking $2 usability... " >&6; }
1831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h.  */
1833$4
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_compile "$LINENO"; then :
1837  ac_header_compiler=yes
1838else
1839  ac_header_compiler=no
1840fi
1841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843$as_echo "$ac_header_compiler" >&6; }
1844
1845# Is the header present?
1846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847$as_echo_n "checking $2 presence... " >&6; }
1848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h.  */
1850#include <$2>
1851_ACEOF
1852if ac_fn_c_try_cpp "$LINENO"; then :
1853  ac_header_preproc=yes
1854else
1855  ac_header_preproc=no
1856fi
1857rm -f conftest.err conftest.i conftest.$ac_ext
1858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859$as_echo "$ac_header_preproc" >&6; }
1860
1861# So?  What about this header?
1862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863  yes:no: )
1864    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868    ;;
1869  no:yes:* )
1870    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1873$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1877$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1878    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880    ;;
1881esac
1882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if eval \${$3+:} false; then :
1885  $as_echo_n "(cached) " >&6
1886else
1887  eval "$3=\$ac_header_compiler"
1888fi
1889eval ac_res=\$$3
1890	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891$as_echo "$ac_res" >&6; }
1892fi
1893  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895} # ac_fn_c_check_header_mongrel
1896
1897# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898# -------------------------------------------------------
1899# Tests whether HEADER exists and can be compiled using the include files in
1900# INCLUDES, setting the cache variable VAR accordingly.
1901ac_fn_c_check_header_compile ()
1902{
1903  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if eval \${$3+:} false; then :
1907  $as_echo_n "(cached) " >&6
1908else
1909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h.  */
1911$4
1912#include <$2>
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915  eval "$3=yes"
1916else
1917  eval "$3=no"
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_header_compile
1927
1928# ac_fn_c_check_func LINENO FUNC VAR
1929# ----------------------------------
1930# Tests whether FUNC exists, setting the cache variable VAR accordingly
1931ac_fn_c_check_func ()
1932{
1933  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
1936if eval \${$3+:} false; then :
1937  $as_echo_n "(cached) " >&6
1938else
1939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h.  */
1941/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1943#define $2 innocuous_$2
1944
1945/* System header to define __stub macros and hopefully few prototypes,
1946    which can conflict with char $2 (); below.
1947    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948    <limits.h> exists even on freestanding compilers.  */
1949
1950#ifdef __STDC__
1951# include <limits.h>
1952#else
1953# include <assert.h>
1954#endif
1955
1956#undef $2
1957
1958/* Override any GCC internal prototype to avoid an error.
1959   Use char because int might match the return type of a GCC
1960   builtin and then its argument prototype would still apply.  */
1961#ifdef __cplusplus
1962extern "C"
1963#endif
1964char $2 ();
1965/* The GNU C library defines this for functions which it implements
1966    to always fail with ENOSYS.  Some functions are actually named
1967    something starting with __ and the normal name is an alias.  */
1968#if defined __stub_$2 || defined __stub___$2
1969choke me
1970#endif
1971
1972int
1973main ()
1974{
1975return $2 ();
1976  ;
1977  return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_link "$LINENO"; then :
1981  eval "$3=yes"
1982else
1983  eval "$3=no"
1984fi
1985rm -f core conftest.err conftest.$ac_objext \
1986    conftest$ac_exeext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
1991  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993} # ac_fn_c_check_func
1994
1995# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1996# -------------------------------------------
1997# Tests whether TYPE exists after having included INCLUDES, setting cache
1998# variable VAR accordingly.
1999ac_fn_c_check_type ()
2000{
2001  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003$as_echo_n "checking for $2... " >&6; }
2004if eval \${$3+:} false; then :
2005  $as_echo_n "(cached) " >&6
2006else
2007  eval "$3=no"
2008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h.  */
2010$4
2011int
2012main ()
2013{
2014if (sizeof ($2))
2015	 return 0;
2016  ;
2017  return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024int
2025main ()
2026{
2027if (sizeof (($2)))
2028	    return 0;
2029  ;
2030  return 0;
2031}
2032_ACEOF
2033if ac_fn_c_try_compile "$LINENO"; then :
2034
2035else
2036  eval "$3=yes"
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042eval ac_res=\$$3
2043	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047} # ac_fn_c_check_type
2048
2049# ac_fn_c_find_uintX_t LINENO BITS VAR
2050# ------------------------------------
2051# Finds an unsigned integer type with width BITS, setting cache variable VAR
2052# accordingly.
2053ac_fn_c_find_uintX_t ()
2054{
2055  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2057$as_echo_n "checking for uint$2_t... " >&6; }
2058if eval \${$3+:} false; then :
2059  $as_echo_n "(cached) " >&6
2060else
2061  eval "$3=no"
2062     # Order is important - never check a type that is potentially smaller
2063     # than half of the expected target width.
2064     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2065	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h.  */
2068$ac_includes_default
2069int
2070main ()
2071{
2072static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2073test_array [0] = 0;
2074return test_array [0];
2075
2076  ;
2077  return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081  case $ac_type in #(
2082  uint$2_t) :
2083    eval "$3=yes" ;; #(
2084  *) :
2085    eval "$3=\$ac_type" ;;
2086esac
2087fi
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089       if eval test \"x\$"$3"\" = x"no"; then :
2090
2091else
2092  break
2093fi
2094     done
2095fi
2096eval ac_res=\$$3
2097	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098$as_echo "$ac_res" >&6; }
2099  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100
2101} # ac_fn_c_find_uintX_t
2102
2103# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2104# --------------------------------------------
2105# Tries to find the compile-time value of EXPR in a program that includes
2106# INCLUDES, setting VAR accordingly. Returns whether the value could be
2107# computed
2108ac_fn_c_compute_int ()
2109{
2110  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111  if test "$cross_compiling" = yes; then
2112    # Depending upon the size, compute the lo and hi bounds.
2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h.  */
2115$4
2116int
2117main ()
2118{
2119static int test_array [1 - 2 * !(($2) >= 0)];
2120test_array [0] = 0;
2121return test_array [0];
2122
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_compile "$LINENO"; then :
2128  ac_lo=0 ac_mid=0
2129  while :; do
2130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h.  */
2132$4
2133int
2134main ()
2135{
2136static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2137test_array [0] = 0;
2138return test_array [0];
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145  ac_hi=$ac_mid; break
2146else
2147  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2148			if test $ac_lo -le $ac_mid; then
2149			  ac_lo= ac_hi=
2150			  break
2151			fi
2152			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155  done
2156else
2157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h.  */
2159$4
2160int
2161main ()
2162{
2163static int test_array [1 - 2 * !(($2) < 0)];
2164test_array [0] = 0;
2165return test_array [0];
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171if ac_fn_c_try_compile "$LINENO"; then :
2172  ac_hi=-1 ac_mid=-1
2173  while :; do
2174    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h.  */
2176$4
2177int
2178main ()
2179{
2180static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2181test_array [0] = 0;
2182return test_array [0];
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188if ac_fn_c_try_compile "$LINENO"; then :
2189  ac_lo=$ac_mid; break
2190else
2191  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2192			if test $ac_mid -le $ac_hi; then
2193			  ac_lo= ac_hi=
2194			  break
2195			fi
2196			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199  done
2200else
2201  ac_lo= ac_hi=
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206# Binary search between lo and hi bounds.
2207while test "x$ac_lo" != "x$ac_hi"; do
2208  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210/* end confdefs.h.  */
2211$4
2212int
2213main ()
2214{
2215static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2216test_array [0] = 0;
2217return test_array [0];
2218
2219  ;
2220  return 0;
2221}
2222_ACEOF
2223if ac_fn_c_try_compile "$LINENO"; then :
2224  ac_hi=$ac_mid
2225else
2226  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229done
2230case $ac_lo in #((
2231?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2232'') ac_retval=1 ;;
2233esac
2234  else
2235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$4
2238static long int longval () { return $2; }
2239static unsigned long int ulongval () { return $2; }
2240#include <stdio.h>
2241#include <stdlib.h>
2242int
2243main ()
2244{
2245
2246  FILE *f = fopen ("conftest.val", "w");
2247  if (! f)
2248    return 1;
2249  if (($2) < 0)
2250    {
2251      long int i = longval ();
2252      if (i != ($2))
2253	return 1;
2254      fprintf (f, "%ld", i);
2255    }
2256  else
2257    {
2258      unsigned long int i = ulongval ();
2259      if (i != ($2))
2260	return 1;
2261      fprintf (f, "%lu", i);
2262    }
2263  /* Do not output a trailing newline, as this causes \r\n confusion
2264     on some platforms.  */
2265  return ferror (f) || fclose (f) != 0;
2266
2267  ;
2268  return 0;
2269}
2270_ACEOF
2271if ac_fn_c_try_run "$LINENO"; then :
2272  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2273else
2274  ac_retval=1
2275fi
2276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2277  conftest.$ac_objext conftest.beam conftest.$ac_ext
2278rm -f conftest.val
2279
2280  fi
2281  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282  as_fn_set_status $ac_retval
2283
2284} # ac_fn_c_compute_int
2285cat >auto/config.log <<_ACEOF
2286This file contains any messages produced by compilers while
2287running configure, to aid debugging if configure makes a mistake.
2288
2289It was created by $as_me, which was
2290generated by GNU Autoconf 2.69.  Invocation command line was
2291
2292  $ $0 $@
2293
2294_ACEOF
2295exec 5>>auto/config.log
2296{
2297cat <<_ASUNAME
2298## --------- ##
2299## Platform. ##
2300## --------- ##
2301
2302hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2303uname -m = `(uname -m) 2>/dev/null || echo unknown`
2304uname -r = `(uname -r) 2>/dev/null || echo unknown`
2305uname -s = `(uname -s) 2>/dev/null || echo unknown`
2306uname -v = `(uname -v) 2>/dev/null || echo unknown`
2307
2308/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2309/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2310
2311/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2312/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2313/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2314/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2315/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2316/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2317/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2318
2319_ASUNAME
2320
2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322for as_dir in $PATH
2323do
2324  IFS=$as_save_IFS
2325  test -z "$as_dir" && as_dir=.
2326    $as_echo "PATH: $as_dir"
2327  done
2328IFS=$as_save_IFS
2329
2330} >&5
2331
2332cat >&5 <<_ACEOF
2333
2334
2335## ----------- ##
2336## Core tests. ##
2337## ----------- ##
2338
2339_ACEOF
2340
2341
2342# Keep a trace of the command line.
2343# Strip out --no-create and --no-recursion so they do not pile up.
2344# Strip out --silent because we don't want to record it for future runs.
2345# Also quote any args containing shell meta-characters.
2346# Make two passes to allow for proper duplicate-argument suppression.
2347ac_configure_args=
2348ac_configure_args0=
2349ac_configure_args1=
2350ac_must_keep_next=false
2351for ac_pass in 1 2
2352do
2353  for ac_arg
2354  do
2355    case $ac_arg in
2356    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2357    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2358    | -silent | --silent | --silen | --sile | --sil)
2359      continue ;;
2360    *\'*)
2361      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2362    esac
2363    case $ac_pass in
2364    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2365    2)
2366      as_fn_append ac_configure_args1 " '$ac_arg'"
2367      if test $ac_must_keep_next = true; then
2368	ac_must_keep_next=false # Got value, back to normal.
2369      else
2370	case $ac_arg in
2371	  *=* | --config-cache | -C | -disable-* | --disable-* \
2372	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2373	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2374	  | -with-* | --with-* | -without-* | --without-* | --x)
2375	    case "$ac_configure_args0 " in
2376	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2377	    esac
2378	    ;;
2379	  -* ) ac_must_keep_next=true ;;
2380	esac
2381      fi
2382      as_fn_append ac_configure_args " '$ac_arg'"
2383      ;;
2384    esac
2385  done
2386done
2387{ ac_configure_args0=; unset ac_configure_args0;}
2388{ ac_configure_args1=; unset ac_configure_args1;}
2389
2390# When interrupted or exit'd, cleanup temporary files, and complete
2391# config.log.  We remove comments because anyway the quotes in there
2392# would cause problems or look ugly.
2393# WARNING: Use '\'' to represent an apostrophe within the trap.
2394# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2395trap 'exit_status=$?
2396  # Save into config.log some information that might help in debugging.
2397  {
2398    echo
2399
2400    $as_echo "## ---------------- ##
2401## Cache variables. ##
2402## ---------------- ##"
2403    echo
2404    # The following way of writing the cache mishandles newlines in values,
2405(
2406  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2407    eval ac_val=\$$ac_var
2408    case $ac_val in #(
2409    *${as_nl}*)
2410      case $ac_var in #(
2411      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2412$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2413      esac
2414      case $ac_var in #(
2415      _ | IFS | as_nl) ;; #(
2416      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2417      *) { eval $ac_var=; unset $ac_var;} ;;
2418      esac ;;
2419    esac
2420  done
2421  (set) 2>&1 |
2422    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2423    *${as_nl}ac_space=\ *)
2424      sed -n \
2425	"s/'\''/'\''\\\\'\'''\''/g;
2426	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2427      ;; #(
2428    *)
2429      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2430      ;;
2431    esac |
2432    sort
2433)
2434    echo
2435
2436    $as_echo "## ----------------- ##
2437## Output variables. ##
2438## ----------------- ##"
2439    echo
2440    for ac_var in $ac_subst_vars
2441    do
2442      eval ac_val=\$$ac_var
2443      case $ac_val in
2444      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2445      esac
2446      $as_echo "$ac_var='\''$ac_val'\''"
2447    done | sort
2448    echo
2449
2450    if test -n "$ac_subst_files"; then
2451      $as_echo "## ------------------- ##
2452## File substitutions. ##
2453## ------------------- ##"
2454      echo
2455      for ac_var in $ac_subst_files
2456      do
2457	eval ac_val=\$$ac_var
2458	case $ac_val in
2459	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460	esac
2461	$as_echo "$ac_var='\''$ac_val'\''"
2462      done | sort
2463      echo
2464    fi
2465
2466    if test -s confdefs.h; then
2467      $as_echo "## ----------- ##
2468## confdefs.h. ##
2469## ----------- ##"
2470      echo
2471      cat confdefs.h
2472      echo
2473    fi
2474    test "$ac_signal" != 0 &&
2475      $as_echo "$as_me: caught signal $ac_signal"
2476    $as_echo "$as_me: exit $exit_status"
2477  } >&5
2478  rm -f core *.core core.conftest.* &&
2479    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2480    exit $exit_status
2481' 0
2482for ac_signal in 1 2 13 15; do
2483  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2484done
2485ac_signal=0
2486
2487# confdefs.h avoids OS command line length limits that DEFS can exceed.
2488rm -f -r conftest* confdefs.h
2489
2490$as_echo "/* confdefs.h */" > confdefs.h
2491
2492# Predefined preprocessor variables.
2493
2494cat >>confdefs.h <<_ACEOF
2495#define PACKAGE_NAME "$PACKAGE_NAME"
2496_ACEOF
2497
2498cat >>confdefs.h <<_ACEOF
2499#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2500_ACEOF
2501
2502cat >>confdefs.h <<_ACEOF
2503#define PACKAGE_VERSION "$PACKAGE_VERSION"
2504_ACEOF
2505
2506cat >>confdefs.h <<_ACEOF
2507#define PACKAGE_STRING "$PACKAGE_STRING"
2508_ACEOF
2509
2510cat >>confdefs.h <<_ACEOF
2511#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2512_ACEOF
2513
2514cat >>confdefs.h <<_ACEOF
2515#define PACKAGE_URL "$PACKAGE_URL"
2516_ACEOF
2517
2518
2519# Let the site file select an alternate cache file if it wants to.
2520# Prefer an explicitly selected file to automatically selected ones.
2521ac_site_file1=NONE
2522ac_site_file2=NONE
2523if test -n "$CONFIG_SITE"; then
2524  # We do not want a PATH search for config.site.
2525  case $CONFIG_SITE in #((
2526    -*)  ac_site_file1=./$CONFIG_SITE;;
2527    */*) ac_site_file1=$CONFIG_SITE;;
2528    *)   ac_site_file1=./$CONFIG_SITE;;
2529  esac
2530elif test "x$prefix" != xNONE; then
2531  ac_site_file1=$prefix/share/config.site
2532  ac_site_file2=$prefix/etc/config.site
2533else
2534  ac_site_file1=$ac_default_prefix/share/config.site
2535  ac_site_file2=$ac_default_prefix/etc/config.site
2536fi
2537for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2538do
2539  test "x$ac_site_file" = xNONE && continue
2540  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2541    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2542$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2543    sed 's/^/| /' "$ac_site_file" >&5
2544    . "$ac_site_file" \
2545      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547as_fn_error $? "failed to load site script $ac_site_file
2548See \`config.log' for more details" "$LINENO" 5; }
2549  fi
2550done
2551
2552if test -r "$cache_file"; then
2553  # Some versions of bash will fail to source /dev/null (special files
2554  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2555  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2556    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2557$as_echo "$as_me: loading cache $cache_file" >&6;}
2558    case $cache_file in
2559      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2560      *)                      . "./$cache_file";;
2561    esac
2562  fi
2563else
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2565$as_echo "$as_me: creating cache $cache_file" >&6;}
2566  >$cache_file
2567fi
2568
2569# Check that the precious variables saved in the cache have kept the same
2570# value.
2571ac_cache_corrupted=false
2572for ac_var in $ac_precious_vars; do
2573  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2574  eval ac_new_set=\$ac_env_${ac_var}_set
2575  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2576  eval ac_new_val=\$ac_env_${ac_var}_value
2577  case $ac_old_set,$ac_new_set in
2578    set,)
2579      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2580$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2581      ac_cache_corrupted=: ;;
2582    ,set)
2583      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2584$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2585      ac_cache_corrupted=: ;;
2586    ,);;
2587    *)
2588      if test "x$ac_old_val" != "x$ac_new_val"; then
2589	# differences in whitespace do not lead to failure.
2590	ac_old_val_w=`echo x $ac_old_val`
2591	ac_new_val_w=`echo x $ac_new_val`
2592	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2593	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2594$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2595	  ac_cache_corrupted=:
2596	else
2597	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2598$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2599	  eval $ac_var=\$ac_old_val
2600	fi
2601	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2602$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2603	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2604$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2605      fi;;
2606  esac
2607  # Pass precious variables to config.status.
2608  if test "$ac_new_set" = set; then
2609    case $ac_new_val in
2610    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2611    *) ac_arg=$ac_var=$ac_new_val ;;
2612    esac
2613    case " $ac_configure_args " in
2614      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2615      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2616    esac
2617  fi
2618done
2619if $ac_cache_corrupted; then
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2622  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2623$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2624  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2625fi
2626## -------------------- ##
2627## Main body of script. ##
2628## -------------------- ##
2629
2630ac_ext=c
2631ac_cpp='$CPP $CPPFLAGS'
2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635
2636
2637ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2638
2639
2640$as_echo "#define UNIX 1" >>confdefs.h
2641
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2644set x ${MAKE-make}
2645ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  cat >conftest.make <<\_ACEOF
2650SHELL = /bin/sh
2651all:
2652	@echo '@@@%%%=$(MAKE)=@@@%%%'
2653_ACEOF
2654# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2655case `${MAKE-make} -f conftest.make 2>/dev/null` in
2656  *@@@%%%=?*=@@@%%%*)
2657    eval ac_cv_prog_make_${ac_make}_set=yes;;
2658  *)
2659    eval ac_cv_prog_make_${ac_make}_set=no;;
2660esac
2661rm -f conftest.make
2662fi
2663if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665$as_echo "yes" >&6; }
2666  SET_MAKE=
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670  SET_MAKE="MAKE=${MAKE-make}"
2671fi
2672
2673
2674ac_ext=c
2675ac_cpp='$CPP $CPPFLAGS'
2676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679if test -n "$ac_tool_prefix"; then
2680  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2681set dummy ${ac_tool_prefix}gcc; ac_word=$2
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683$as_echo_n "checking for $ac_word... " >&6; }
2684if ${ac_cv_prog_CC+:} false; then :
2685  $as_echo_n "(cached) " >&6
2686else
2687  if test -n "$CC"; then
2688  ac_cv_prog_CC="$CC" # Let the user override the test.
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693  IFS=$as_save_IFS
2694  test -z "$as_dir" && as_dir=.
2695    for ac_exec_ext in '' $ac_executable_extensions; do
2696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699    break 2
2700  fi
2701done
2702  done
2703IFS=$as_save_IFS
2704
2705fi
2706fi
2707CC=$ac_cv_prog_CC
2708if test -n "$CC"; then
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710$as_echo "$CC" >&6; }
2711else
2712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713$as_echo "no" >&6; }
2714fi
2715
2716
2717fi
2718if test -z "$ac_cv_prog_CC"; then
2719  ac_ct_CC=$CC
2720  # Extract the first word of "gcc", so it can be a program name with args.
2721set dummy gcc; ac_word=$2
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
2724if ${ac_cv_prog_ac_ct_CC+:} false; then :
2725  $as_echo_n "(cached) " >&6
2726else
2727  if test -n "$ac_ct_CC"; then
2728  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733  IFS=$as_save_IFS
2734  test -z "$as_dir" && as_dir=.
2735    for ac_exec_ext in '' $ac_executable_extensions; do
2736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737    ac_cv_prog_ac_ct_CC="gcc"
2738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739    break 2
2740  fi
2741done
2742  done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748if test -n "$ac_ct_CC"; then
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2750$as_echo "$ac_ct_CC" >&6; }
2751else
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753$as_echo "no" >&6; }
2754fi
2755
2756  if test "x$ac_ct_CC" = x; then
2757    CC=""
2758  else
2759    case $cross_compiling:$ac_tool_warned in
2760yes:)
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763ac_tool_warned=yes ;;
2764esac
2765    CC=$ac_ct_CC
2766  fi
2767else
2768  CC="$ac_cv_prog_CC"
2769fi
2770
2771if test -z "$CC"; then
2772          if test -n "$ac_tool_prefix"; then
2773    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2774set dummy ${ac_tool_prefix}cc; ac_word=$2
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if ${ac_cv_prog_CC+:} false; then :
2778  $as_echo_n "(cached) " >&6
2779else
2780  if test -n "$CC"; then
2781  ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786  IFS=$as_save_IFS
2787  test -z "$as_dir" && as_dir=.
2788    for ac_exec_ext in '' $ac_executable_extensions; do
2789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790    ac_cv_prog_CC="${ac_tool_prefix}cc"
2791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792    break 2
2793  fi
2794done
2795  done
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803$as_echo "$CC" >&6; }
2804else
2805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2809
2810  fi
2811fi
2812if test -z "$CC"; then
2813  # Extract the first word of "cc", so it can be a program name with args.
2814set dummy cc; ac_word=$2
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816$as_echo_n "checking for $ac_word... " >&6; }
2817if ${ac_cv_prog_CC+:} false; then :
2818  $as_echo_n "(cached) " >&6
2819else
2820  if test -n "$CC"; then
2821  ac_cv_prog_CC="$CC" # Let the user override the test.
2822else
2823  ac_prog_rejected=no
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827  IFS=$as_save_IFS
2828  test -z "$as_dir" && as_dir=.
2829    for ac_exec_ext in '' $ac_executable_extensions; do
2830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2832       ac_prog_rejected=yes
2833       continue
2834     fi
2835    ac_cv_prog_CC="cc"
2836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837    break 2
2838  fi
2839done
2840  done
2841IFS=$as_save_IFS
2842
2843if test $ac_prog_rejected = yes; then
2844  # We found a bogon in the path, so make sure we never use it.
2845  set dummy $ac_cv_prog_CC
2846  shift
2847  if test $# != 0; then
2848    # We chose a different compiler from the bogus one.
2849    # However, it has the same basename, so the bogon will be chosen
2850    # first if we set CC to just the basename; use the full file name.
2851    shift
2852    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2853  fi
2854fi
2855fi
2856fi
2857CC=$ac_cv_prog_CC
2858if test -n "$CC"; then
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860$as_echo "$CC" >&6; }
2861else
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866
2867fi
2868if test -z "$CC"; then
2869  if test -n "$ac_tool_prefix"; then
2870  for ac_prog in cl.exe
2871  do
2872    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2873set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if ${ac_cv_prog_CC+:} false; then :
2877  $as_echo_n "(cached) " >&6
2878else
2879  if test -n "$CC"; then
2880  ac_cv_prog_CC="$CC" # Let the user override the test.
2881else
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  test -z "$as_dir" && as_dir=.
2887    for ac_exec_ext in '' $ac_executable_extensions; do
2888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891    break 2
2892  fi
2893done
2894  done
2895IFS=$as_save_IFS
2896
2897fi
2898fi
2899CC=$ac_cv_prog_CC
2900if test -n "$CC"; then
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902$as_echo "$CC" >&6; }
2903else
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908
2909    test -n "$CC" && break
2910  done
2911fi
2912if test -z "$CC"; then
2913  ac_ct_CC=$CC
2914  for ac_prog in cl.exe
2915do
2916  # Extract the first word of "$ac_prog", so it can be a program name with args.
2917set dummy $ac_prog; ac_word=$2
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919$as_echo_n "checking for $ac_word... " >&6; }
2920if ${ac_cv_prog_ac_ct_CC+:} false; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  if test -n "$ac_ct_CC"; then
2924  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929  IFS=$as_save_IFS
2930  test -z "$as_dir" && as_dir=.
2931    for ac_exec_ext in '' $ac_executable_extensions; do
2932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933    ac_cv_prog_ac_ct_CC="$ac_prog"
2934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935    break 2
2936  fi
2937done
2938  done
2939IFS=$as_save_IFS
2940
2941fi
2942fi
2943ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944if test -n "$ac_ct_CC"; then
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2946$as_echo "$ac_ct_CC" >&6; }
2947else
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950fi
2951
2952
2953  test -n "$ac_ct_CC" && break
2954done
2955
2956  if test "x$ac_ct_CC" = x; then
2957    CC=""
2958  else
2959    case $cross_compiling:$ac_tool_warned in
2960yes:)
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963ac_tool_warned=yes ;;
2964esac
2965    CC=$ac_ct_CC
2966  fi
2967fi
2968
2969fi
2970
2971
2972test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974as_fn_error $? "no acceptable C compiler found in \$PATH
2975See \`config.log' for more details" "$LINENO" 5; }
2976
2977# Provide some information about the compiler.
2978$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2979set X $ac_compile
2980ac_compiler=$2
2981for ac_option in --version -v -V -qversion; do
2982  { { ac_try="$ac_compiler $ac_option >&5"
2983case "(($ac_try" in
2984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985  *) ac_try_echo=$ac_try;;
2986esac
2987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988$as_echo "$ac_try_echo"; } >&5
2989  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2990  ac_status=$?
2991  if test -s conftest.err; then
2992    sed '10a\
2993... rest of stderr output deleted ...
2994         10q' conftest.err >conftest.er1
2995    cat conftest.er1 >&5
2996  fi
2997  rm -f conftest.er1 conftest.err
2998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999  test $ac_status = 0; }
3000done
3001
3002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003/* end confdefs.h.  */
3004
3005int
3006main ()
3007{
3008
3009  ;
3010  return 0;
3011}
3012_ACEOF
3013ac_clean_files_save=$ac_clean_files
3014ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3015# Try to create an executable without -o first, disregard a.out.
3016# It will help us diagnose broken compilers, and finding out an intuition
3017# of exeext.
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3019$as_echo_n "checking whether the C compiler works... " >&6; }
3020ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3021
3022# The possible output files:
3023ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3024
3025ac_rmfiles=
3026for ac_file in $ac_files
3027do
3028  case $ac_file in
3029    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3030    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3031  esac
3032done
3033rm -f $ac_rmfiles
3034
3035if { { ac_try="$ac_link_default"
3036case "(($ac_try" in
3037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038  *) ac_try_echo=$ac_try;;
3039esac
3040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041$as_echo "$ac_try_echo"; } >&5
3042  (eval "$ac_link_default") 2>&5
3043  ac_status=$?
3044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045  test $ac_status = 0; }; then :
3046  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3047# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3048# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3049# so that the user can short-circuit this test for compilers unknown to
3050# Autoconf.
3051for ac_file in $ac_files ''
3052do
3053  test -f "$ac_file" || continue
3054  case $ac_file in
3055    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3056	;;
3057    [ab].out )
3058	# We found the default executable, but exeext='' is most
3059	# certainly right.
3060	break;;
3061    *.* )
3062	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3063	then :; else
3064	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065	fi
3066	# We set ac_cv_exeext here because the later test for it is not
3067	# safe: cross compilers may not add the suffix if given an `-o'
3068	# argument, so we may need to know it at that point already.
3069	# Even if this section looks crufty: it has the advantage of
3070	# actually working.
3071	break;;
3072    * )
3073	break;;
3074  esac
3075done
3076test "$ac_cv_exeext" = no && ac_cv_exeext=
3077
3078else
3079  ac_file=''
3080fi
3081if test -z "$ac_file"; then :
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083$as_echo "no" >&6; }
3084$as_echo "$as_me: failed program was:" >&5
3085sed 's/^/| /' conftest.$ac_ext >&5
3086
3087{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089as_fn_error 77 "C compiler cannot create executables
3090See \`config.log' for more details" "$LINENO" 5; }
3091else
3092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093$as_echo "yes" >&6; }
3094fi
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3096$as_echo_n "checking for C compiler default output file name... " >&6; }
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3098$as_echo "$ac_file" >&6; }
3099ac_exeext=$ac_cv_exeext
3100
3101rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3102ac_clean_files=$ac_clean_files_save
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3104$as_echo_n "checking for suffix of executables... " >&6; }
3105if { { ac_try="$ac_link"
3106case "(($ac_try" in
3107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108  *) ac_try_echo=$ac_try;;
3109esac
3110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111$as_echo "$ac_try_echo"; } >&5
3112  (eval "$ac_link") 2>&5
3113  ac_status=$?
3114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115  test $ac_status = 0; }; then :
3116  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3117# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3118# work properly (i.e., refer to `conftest.exe'), while it won't with
3119# `rm'.
3120for ac_file in conftest.exe conftest conftest.*; do
3121  test -f "$ac_file" || continue
3122  case $ac_file in
3123    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3124    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125	  break;;
3126    * ) break;;
3127  esac
3128done
3129else
3130  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3133See \`config.log' for more details" "$LINENO" 5; }
3134fi
3135rm -f conftest conftest$ac_cv_exeext
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3137$as_echo "$ac_cv_exeext" >&6; }
3138
3139rm -f conftest.$ac_ext
3140EXEEXT=$ac_cv_exeext
3141ac_exeext=$EXEEXT
3142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143/* end confdefs.h.  */
3144#include <stdio.h>
3145int
3146main ()
3147{
3148FILE *f = fopen ("conftest.out", "w");
3149 return ferror (f) || fclose (f) != 0;
3150
3151  ;
3152  return 0;
3153}
3154_ACEOF
3155ac_clean_files="$ac_clean_files conftest.out"
3156# Check that the compiler produces executables we can run.  If not, either
3157# the compiler is broken, or we cross compile.
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3159$as_echo_n "checking whether we are cross compiling... " >&6; }
3160if test "$cross_compiling" != yes; then
3161  { { ac_try="$ac_link"
3162case "(($ac_try" in
3163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164  *) ac_try_echo=$ac_try;;
3165esac
3166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167$as_echo "$ac_try_echo"; } >&5
3168  (eval "$ac_link") 2>&5
3169  ac_status=$?
3170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171  test $ac_status = 0; }
3172  if { ac_try='./conftest$ac_cv_exeext'
3173  { { case "(($ac_try" in
3174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175  *) ac_try_echo=$ac_try;;
3176esac
3177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178$as_echo "$ac_try_echo"; } >&5
3179  (eval "$ac_try") 2>&5
3180  ac_status=$?
3181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182  test $ac_status = 0; }; }; then
3183    cross_compiling=no
3184  else
3185    if test "$cross_compiling" = maybe; then
3186	cross_compiling=yes
3187    else
3188	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190as_fn_error $? "cannot run C compiled programs.
3191If you meant to cross compile, use \`--host'.
3192See \`config.log' for more details" "$LINENO" 5; }
3193    fi
3194  fi
3195fi
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3197$as_echo "$cross_compiling" >&6; }
3198
3199rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3200ac_clean_files=$ac_clean_files_save
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3202$as_echo_n "checking for suffix of object files... " >&6; }
3203if ${ac_cv_objext+:} false; then :
3204  $as_echo_n "(cached) " >&6
3205else
3206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h.  */
3208
3209int
3210main ()
3211{
3212
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217rm -f conftest.o conftest.obj
3218if { { ac_try="$ac_compile"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_compile") 2>&5
3226  ac_status=$?
3227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228  test $ac_status = 0; }; then :
3229  for ac_file in conftest.o conftest.obj conftest.*; do
3230  test -f "$ac_file" || continue;
3231  case $ac_file in
3232    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3233    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3234       break;;
3235  esac
3236done
3237else
3238  $as_echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243as_fn_error $? "cannot compute suffix of object files: cannot compile
3244See \`config.log' for more details" "$LINENO" 5; }
3245fi
3246rm -f conftest.$ac_cv_objext conftest.$ac_ext
3247fi
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3249$as_echo "$ac_cv_objext" >&6; }
3250OBJEXT=$ac_cv_objext
3251ac_objext=$OBJEXT
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3253$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3254if ${ac_cv_c_compiler_gnu+:} false; then :
3255  $as_echo_n "(cached) " >&6
3256else
3257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h.  */
3259
3260int
3261main ()
3262{
3263#ifndef __GNUC__
3264       choke me
3265#endif
3266
3267  ;
3268  return 0;
3269}
3270_ACEOF
3271if ac_fn_c_try_compile "$LINENO"; then :
3272  ac_compiler_gnu=yes
3273else
3274  ac_compiler_gnu=no
3275fi
3276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277ac_cv_c_compiler_gnu=$ac_compiler_gnu
3278
3279fi
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3281$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3282if test $ac_compiler_gnu = yes; then
3283  GCC=yes
3284else
3285  GCC=
3286fi
3287ac_test_CFLAGS=${CFLAGS+set}
3288ac_save_CFLAGS=$CFLAGS
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3290$as_echo_n "checking whether $CC accepts -g... " >&6; }
3291if ${ac_cv_prog_cc_g+:} false; then :
3292  $as_echo_n "(cached) " >&6
3293else
3294  ac_save_c_werror_flag=$ac_c_werror_flag
3295   ac_c_werror_flag=yes
3296   ac_cv_prog_cc_g=no
3297   CFLAGS="-g"
3298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299/* end confdefs.h.  */
3300
3301int
3302main ()
3303{
3304
3305  ;
3306  return 0;
3307}
3308_ACEOF
3309if ac_fn_c_try_compile "$LINENO"; then :
3310  ac_cv_prog_cc_g=yes
3311else
3312  CFLAGS=""
3313      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314/* end confdefs.h.  */
3315
3316int
3317main ()
3318{
3319
3320  ;
3321  return 0;
3322}
3323_ACEOF
3324if ac_fn_c_try_compile "$LINENO"; then :
3325
3326else
3327  ac_c_werror_flag=$ac_save_c_werror_flag
3328	 CFLAGS="-g"
3329	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330/* end confdefs.h.  */
3331
3332int
3333main ()
3334{
3335
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340if ac_fn_c_try_compile "$LINENO"; then :
3341  ac_cv_prog_cc_g=yes
3342fi
3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344fi
3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346fi
3347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348   ac_c_werror_flag=$ac_save_c_werror_flag
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3351$as_echo "$ac_cv_prog_cc_g" >&6; }
3352if test "$ac_test_CFLAGS" = set; then
3353  CFLAGS=$ac_save_CFLAGS
3354elif test $ac_cv_prog_cc_g = yes; then
3355  if test "$GCC" = yes; then
3356    CFLAGS="-g -O2"
3357  else
3358    CFLAGS="-g"
3359  fi
3360else
3361  if test "$GCC" = yes; then
3362    CFLAGS="-O2"
3363  else
3364    CFLAGS=
3365  fi
3366fi
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3368$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3369if ${ac_cv_prog_cc_c89+:} false; then :
3370  $as_echo_n "(cached) " >&6
3371else
3372  ac_cv_prog_cc_c89=no
3373ac_save_CC=$CC
3374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375/* end confdefs.h.  */
3376#include <stdarg.h>
3377#include <stdio.h>
3378struct stat;
3379/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3380struct buf { int x; };
3381FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382static char *e (p, i)
3383     char **p;
3384     int i;
3385{
3386  return p[i];
3387}
3388static char *f (char * (*g) (char **, int), char **p, ...)
3389{
3390  char *s;
3391  va_list v;
3392  va_start (v,p);
3393  s = g (p, va_arg (v,int));
3394  va_end (v);
3395  return s;
3396}
3397
3398/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3399   function prototypes and stuff, but not '\xHH' hex character constants.
3400   These don't provoke an error unfortunately, instead are silently treated
3401   as 'x'.  The following induces an error, until -std is added to get
3402   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3403   array size at least.  It's necessary to write '\x00'==0 to get something
3404   that's true only with -std.  */
3405int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3406
3407/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408   inside strings and character constants.  */
3409#define FOO(x) 'x'
3410int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3411
3412int test (int i, double x);
3413struct s1 {int (*f) (int a);};
3414struct s2 {int (*f) (double a);};
3415int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3416int argc;
3417char **argv;
3418int
3419main ()
3420{
3421return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428do
3429  CC="$ac_save_CC $ac_arg"
3430  if ac_fn_c_try_compile "$LINENO"; then :
3431  ac_cv_prog_cc_c89=$ac_arg
3432fi
3433rm -f core conftest.err conftest.$ac_objext
3434  test "x$ac_cv_prog_cc_c89" != "xno" && break
3435done
3436rm -f conftest.$ac_ext
3437CC=$ac_save_CC
3438
3439fi
3440# AC_CACHE_VAL
3441case "x$ac_cv_prog_cc_c89" in
3442  x)
3443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3444$as_echo "none needed" >&6; } ;;
3445  xno)
3446    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3447$as_echo "unsupported" >&6; } ;;
3448  *)
3449    CC="$CC $ac_cv_prog_cc_c89"
3450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3451$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3452esac
3453if test "x$ac_cv_prog_cc_c89" != xno; then :
3454
3455fi
3456
3457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3464$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3465if ${ac_cv_prog_cc_c99+:} false; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  ac_cv_prog_cc_c99=no
3469ac_save_CC=$CC
3470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471/* end confdefs.h.  */
3472#include <stdarg.h>
3473#include <stdbool.h>
3474#include <stdlib.h>
3475#include <wchar.h>
3476#include <stdio.h>
3477
3478// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3479#define debug(...) fprintf (stderr, __VA_ARGS__)
3480#define showlist(...) puts (#__VA_ARGS__)
3481#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3482static void
3483test_varargs_macros (void)
3484{
3485  int x = 1234;
3486  int y = 5678;
3487  debug ("Flag");
3488  debug ("X = %d\n", x);
3489  showlist (The first, second, and third items.);
3490  report (x>y, "x is %d but y is %d", x, y);
3491}
3492
3493// Check long long types.
3494#define BIG64 18446744073709551615ull
3495#define BIG32 4294967295ul
3496#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3497#if !BIG_OK
3498  your preprocessor is broken;
3499#endif
3500#if BIG_OK
3501#else
3502  your preprocessor is broken;
3503#endif
3504static long long int bignum = -9223372036854775807LL;
3505static unsigned long long int ubignum = BIG64;
3506
3507struct incomplete_array
3508{
3509  int datasize;
3510  double data[];
3511};
3512
3513struct named_init {
3514  int number;
3515  const wchar_t *name;
3516  double average;
3517};
3518
3519typedef const char *ccp;
3520
3521static inline int
3522test_restrict (ccp restrict text)
3523{
3524  // See if C++-style comments work.
3525  // Iterate through items via the restricted pointer.
3526  // Also check for declarations in for loops.
3527  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3528    continue;
3529  return 0;
3530}
3531
3532// Check varargs and va_copy.
3533static void
3534test_varargs (const char *format, ...)
3535{
3536  va_list args;
3537  va_start (args, format);
3538  va_list args_copy;
3539  va_copy (args_copy, args);
3540
3541  const char *str;
3542  int number;
3543  float fnumber;
3544
3545  while (*format)
3546    {
3547      switch (*format++)
3548	{
3549	case 's': // string
3550	  str = va_arg (args_copy, const char *);
3551	  break;
3552	case 'd': // int
3553	  number = va_arg (args_copy, int);
3554	  break;
3555	case 'f': // float
3556	  fnumber = va_arg (args_copy, double);
3557	  break;
3558	default:
3559	  break;
3560	}
3561    }
3562  va_end (args_copy);
3563  va_end (args);
3564}
3565
3566int
3567main ()
3568{
3569
3570  // Check bool.
3571  _Bool success = false;
3572
3573  // Check restrict.
3574  if (test_restrict ("String literal") == 0)
3575    success = true;
3576  char *restrict newvar = "Another string";
3577
3578  // Check varargs.
3579  test_varargs ("s, d' f .", "string", 65, 34.234);
3580  test_varargs_macros ();
3581
3582  // Check flexible array members.
3583  struct incomplete_array *ia =
3584    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3585  ia->datasize = 10;
3586  for (int i = 0; i < ia->datasize; ++i)
3587    ia->data[i] = i * 1.234;
3588
3589  // Check named initializers.
3590  struct named_init ni = {
3591    .number = 34,
3592    .name = L"Test wide string",
3593    .average = 543.34343,
3594  };
3595
3596  ni.number = 58;
3597
3598  int dynamic_array[ni.number];
3599  dynamic_array[ni.number - 1] = 543;
3600
3601  // work around unused variable warnings
3602  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3603	  || dynamic_array[ni.number - 1] != 543);
3604
3605  ;
3606  return 0;
3607}
3608_ACEOF
3609for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3610do
3611  CC="$ac_save_CC $ac_arg"
3612  if ac_fn_c_try_compile "$LINENO"; then :
3613  ac_cv_prog_cc_c99=$ac_arg
3614fi
3615rm -f core conftest.err conftest.$ac_objext
3616  test "x$ac_cv_prog_cc_c99" != "xno" && break
3617done
3618rm -f conftest.$ac_ext
3619CC=$ac_save_CC
3620
3621fi
3622# AC_CACHE_VAL
3623case "x$ac_cv_prog_cc_c99" in
3624  x)
3625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3626$as_echo "none needed" >&6; } ;;
3627  xno)
3628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3629$as_echo "unsupported" >&6; } ;;
3630  *)
3631    CC="$CC $ac_cv_prog_cc_c99"
3632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3633$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3634esac
3635if test "x$ac_cv_prog_cc_c99" != xno; then :
3636
3637fi
3638
3639		ac_ext=c
3640ac_cpp='$CPP $CPPFLAGS'
3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3645$as_echo_n "checking how to run the C preprocessor... " >&6; }
3646# On Suns, sometimes $CPP names a directory.
3647if test -n "$CPP" && test -d "$CPP"; then
3648  CPP=
3649fi
3650if test -z "$CPP"; then
3651  if ${ac_cv_prog_CPP+:} false; then :
3652  $as_echo_n "(cached) " >&6
3653else
3654      # Double quotes because CPP needs to be expanded
3655    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3656    do
3657      ac_preproc_ok=false
3658for ac_c_preproc_warn_flag in '' yes
3659do
3660  # Use a header file that comes with gcc, so configuring glibc
3661  # with a fresh cross-compiler works.
3662  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3663  # <limits.h> exists even on freestanding compilers.
3664  # On the NeXT, cc -E runs the code through the compiler's parser,
3665  # not just through cpp. "Syntax error" is here to catch this case.
3666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h.  */
3668#ifdef __STDC__
3669# include <limits.h>
3670#else
3671# include <assert.h>
3672#endif
3673		     Syntax error
3674_ACEOF
3675if ac_fn_c_try_cpp "$LINENO"; then :
3676
3677else
3678  # Broken: fails on valid input.
3679continue
3680fi
3681rm -f conftest.err conftest.i conftest.$ac_ext
3682
3683  # OK, works on sane cases.  Now check whether nonexistent headers
3684  # can be detected and how.
3685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h.  */
3687#include <ac_nonexistent.h>
3688_ACEOF
3689if ac_fn_c_try_cpp "$LINENO"; then :
3690  # Broken: success on invalid input.
3691continue
3692else
3693  # Passes both tests.
3694ac_preproc_ok=:
3695break
3696fi
3697rm -f conftest.err conftest.i conftest.$ac_ext
3698
3699done
3700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3701rm -f conftest.i conftest.err conftest.$ac_ext
3702if $ac_preproc_ok; then :
3703  break
3704fi
3705
3706    done
3707    ac_cv_prog_CPP=$CPP
3708
3709fi
3710  CPP=$ac_cv_prog_CPP
3711else
3712  ac_cv_prog_CPP=$CPP
3713fi
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3715$as_echo "$CPP" >&6; }
3716ac_preproc_ok=false
3717for ac_c_preproc_warn_flag in '' yes
3718do
3719  # Use a header file that comes with gcc, so configuring glibc
3720  # with a fresh cross-compiler works.
3721  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722  # <limits.h> exists even on freestanding compilers.
3723  # On the NeXT, cc -E runs the code through the compiler's parser,
3724  # not just through cpp. "Syntax error" is here to catch this case.
3725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726/* end confdefs.h.  */
3727#ifdef __STDC__
3728# include <limits.h>
3729#else
3730# include <assert.h>
3731#endif
3732		     Syntax error
3733_ACEOF
3734if ac_fn_c_try_cpp "$LINENO"; then :
3735
3736else
3737  # Broken: fails on valid input.
3738continue
3739fi
3740rm -f conftest.err conftest.i conftest.$ac_ext
3741
3742  # OK, works on sane cases.  Now check whether nonexistent headers
3743  # can be detected and how.
3744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h.  */
3746#include <ac_nonexistent.h>
3747_ACEOF
3748if ac_fn_c_try_cpp "$LINENO"; then :
3749  # Broken: success on invalid input.
3750continue
3751else
3752  # Passes both tests.
3753ac_preproc_ok=:
3754break
3755fi
3756rm -f conftest.err conftest.i conftest.$ac_ext
3757
3758done
3759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3760rm -f conftest.i conftest.err conftest.$ac_ext
3761if $ac_preproc_ok; then :
3762
3763else
3764  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3767See \`config.log' for more details" "$LINENO" 5; }
3768fi
3769
3770ac_ext=c
3771ac_cpp='$CPP $CPPFLAGS'
3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
3776
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3778$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3779if ${ac_cv_path_GREP+:} false; then :
3780  $as_echo_n "(cached) " >&6
3781else
3782  if test -z "$GREP"; then
3783  ac_path_GREP_found=false
3784  # Loop through the user's path and test for each of PROGNAME-LIST
3785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787do
3788  IFS=$as_save_IFS
3789  test -z "$as_dir" && as_dir=.
3790    for ac_prog in grep ggrep; do
3791    for ac_exec_ext in '' $ac_executable_extensions; do
3792      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3793      as_fn_executable_p "$ac_path_GREP" || continue
3794# Check for GNU ac_path_GREP and select it if it is found.
3795  # Check for GNU $ac_path_GREP
3796case `"$ac_path_GREP" --version 2>&1` in
3797*GNU*)
3798  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3799*)
3800  ac_count=0
3801  $as_echo_n 0123456789 >"conftest.in"
3802  while :
3803  do
3804    cat "conftest.in" "conftest.in" >"conftest.tmp"
3805    mv "conftest.tmp" "conftest.in"
3806    cp "conftest.in" "conftest.nl"
3807    $as_echo 'GREP' >> "conftest.nl"
3808    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810    as_fn_arith $ac_count + 1 && ac_count=$as_val
3811    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3812      # Best one so far, save it but keep looking for a better one
3813      ac_cv_path_GREP="$ac_path_GREP"
3814      ac_path_GREP_max=$ac_count
3815    fi
3816    # 10*(2^10) chars as input seems more than enough
3817    test $ac_count -gt 10 && break
3818  done
3819  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820esac
3821
3822      $ac_path_GREP_found && break 3
3823    done
3824  done
3825  done
3826IFS=$as_save_IFS
3827  if test -z "$ac_cv_path_GREP"; then
3828    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3829  fi
3830else
3831  ac_cv_path_GREP=$GREP
3832fi
3833
3834fi
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3836$as_echo "$ac_cv_path_GREP" >&6; }
3837 GREP="$ac_cv_path_GREP"
3838
3839
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3841$as_echo_n "checking for egrep... " >&6; }
3842if ${ac_cv_path_EGREP+:} false; then :
3843  $as_echo_n "(cached) " >&6
3844else
3845  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3846   then ac_cv_path_EGREP="$GREP -E"
3847   else
3848     if test -z "$EGREP"; then
3849  ac_path_EGREP_found=false
3850  # Loop through the user's path and test for each of PROGNAME-LIST
3851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3853do
3854  IFS=$as_save_IFS
3855  test -z "$as_dir" && as_dir=.
3856    for ac_prog in egrep; do
3857    for ac_exec_ext in '' $ac_executable_extensions; do
3858      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3859      as_fn_executable_p "$ac_path_EGREP" || continue
3860# Check for GNU ac_path_EGREP and select it if it is found.
3861  # Check for GNU $ac_path_EGREP
3862case `"$ac_path_EGREP" --version 2>&1` in
3863*GNU*)
3864  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3865*)
3866  ac_count=0
3867  $as_echo_n 0123456789 >"conftest.in"
3868  while :
3869  do
3870    cat "conftest.in" "conftest.in" >"conftest.tmp"
3871    mv "conftest.tmp" "conftest.in"
3872    cp "conftest.in" "conftest.nl"
3873    $as_echo 'EGREP' >> "conftest.nl"
3874    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3875    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3876    as_fn_arith $ac_count + 1 && ac_count=$as_val
3877    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3878      # Best one so far, save it but keep looking for a better one
3879      ac_cv_path_EGREP="$ac_path_EGREP"
3880      ac_path_EGREP_max=$ac_count
3881    fi
3882    # 10*(2^10) chars as input seems more than enough
3883    test $ac_count -gt 10 && break
3884  done
3885  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886esac
3887
3888      $ac_path_EGREP_found && break 3
3889    done
3890  done
3891  done
3892IFS=$as_save_IFS
3893  if test -z "$ac_cv_path_EGREP"; then
3894    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3895  fi
3896else
3897  ac_cv_path_EGREP=$EGREP
3898fi
3899
3900   fi
3901fi
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3903$as_echo "$ac_cv_path_EGREP" >&6; }
3904 EGREP="$ac_cv_path_EGREP"
3905
3906
3907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908/* end confdefs.h.  */
3909
3910_ACEOF
3911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912  $EGREP "" >/dev/null 2>&1; then :
3913
3914fi
3915rm -f conftest*
3916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3917$as_echo_n "checking for fgrep... " >&6; }
3918if ${ac_cv_path_FGREP+:} false; then :
3919  $as_echo_n "(cached) " >&6
3920else
3921  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3922   then ac_cv_path_FGREP="$GREP -F"
3923   else
3924     if test -z "$FGREP"; then
3925  ac_path_FGREP_found=false
3926  # Loop through the user's path and test for each of PROGNAME-LIST
3927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3929do
3930  IFS=$as_save_IFS
3931  test -z "$as_dir" && as_dir=.
3932    for ac_prog in fgrep; do
3933    for ac_exec_ext in '' $ac_executable_extensions; do
3934      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3935      as_fn_executable_p "$ac_path_FGREP" || continue
3936# Check for GNU ac_path_FGREP and select it if it is found.
3937  # Check for GNU $ac_path_FGREP
3938case `"$ac_path_FGREP" --version 2>&1` in
3939*GNU*)
3940  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3941*)
3942  ac_count=0
3943  $as_echo_n 0123456789 >"conftest.in"
3944  while :
3945  do
3946    cat "conftest.in" "conftest.in" >"conftest.tmp"
3947    mv "conftest.tmp" "conftest.in"
3948    cp "conftest.in" "conftest.nl"
3949    $as_echo 'FGREP' >> "conftest.nl"
3950    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952    as_fn_arith $ac_count + 1 && ac_count=$as_val
3953    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3954      # Best one so far, save it but keep looking for a better one
3955      ac_cv_path_FGREP="$ac_path_FGREP"
3956      ac_path_FGREP_max=$ac_count
3957    fi
3958    # 10*(2^10) chars as input seems more than enough
3959    test $ac_count -gt 10 && break
3960  done
3961  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3962esac
3963
3964      $ac_path_FGREP_found && break 3
3965    done
3966  done
3967  done
3968IFS=$as_save_IFS
3969  if test -z "$ac_cv_path_FGREP"; then
3970    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3971  fi
3972else
3973  ac_cv_path_FGREP=$FGREP
3974fi
3975
3976   fi
3977fi
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3979$as_echo "$ac_cv_path_FGREP" >&6; }
3980 FGREP="$ac_cv_path_FGREP"
3981
3982		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3983$as_echo_n "checking for library containing strerror... " >&6; }
3984if ${ac_cv_search_strerror+:} false; then :
3985  $as_echo_n "(cached) " >&6
3986else
3987  ac_func_search_save_LIBS=$LIBS
3988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989/* end confdefs.h.  */
3990
3991/* Override any GCC internal prototype to avoid an error.
3992   Use char because int might match the return type of a GCC
3993   builtin and then its argument prototype would still apply.  */
3994#ifdef __cplusplus
3995extern "C"
3996#endif
3997char strerror ();
3998int
3999main ()
4000{
4001return strerror ();
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006for ac_lib in '' cposix; do
4007  if test -z "$ac_lib"; then
4008    ac_res="none required"
4009  else
4010    ac_res=-l$ac_lib
4011    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4012  fi
4013  if ac_fn_c_try_link "$LINENO"; then :
4014  ac_cv_search_strerror=$ac_res
4015fi
4016rm -f core conftest.err conftest.$ac_objext \
4017    conftest$ac_exeext
4018  if ${ac_cv_search_strerror+:} false; then :
4019  break
4020fi
4021done
4022if ${ac_cv_search_strerror+:} false; then :
4023
4024else
4025  ac_cv_search_strerror=no
4026fi
4027rm conftest.$ac_ext
4028LIBS=$ac_func_search_save_LIBS
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4031$as_echo "$ac_cv_search_strerror" >&6; }
4032ac_res=$ac_cv_search_strerror
4033if test "$ac_res" != no; then :
4034  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4035
4036fi
4037		for ac_prog in gawk mawk nawk awk
4038do
4039  # Extract the first word of "$ac_prog", so it can be a program name with args.
4040set dummy $ac_prog; ac_word=$2
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042$as_echo_n "checking for $ac_word... " >&6; }
4043if ${ac_cv_prog_AWK+:} false; then :
4044  $as_echo_n "(cached) " >&6
4045else
4046  if test -n "$AWK"; then
4047  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052  IFS=$as_save_IFS
4053  test -z "$as_dir" && as_dir=.
4054    for ac_exec_ext in '' $ac_executable_extensions; do
4055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056    ac_cv_prog_AWK="$ac_prog"
4057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058    break 2
4059  fi
4060done
4061  done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066AWK=$ac_cv_prog_AWK
4067if test -n "$AWK"; then
4068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4069$as_echo "$AWK" >&6; }
4070else
4071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072$as_echo "no" >&6; }
4073fi
4074
4075
4076  test -n "$AWK" && break
4077done
4078
4079# Extract the first word of "strip", so it can be a program name with args.
4080set dummy strip; ac_word=$2
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082$as_echo_n "checking for $ac_word... " >&6; }
4083if ${ac_cv_prog_STRIP+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  if test -n "$STRIP"; then
4087  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094    for ac_exec_ext in '' $ac_executable_extensions; do
4095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096    ac_cv_prog_STRIP="strip"
4097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098    break 2
4099  fi
4100done
4101  done
4102IFS=$as_save_IFS
4103
4104  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4105fi
4106fi
4107STRIP=$ac_cv_prog_STRIP
4108if test -n "$STRIP"; then
4109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4110$as_echo "$STRIP" >&6; }
4111else
4112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113$as_echo "no" >&6; }
4114fi
4115
4116
4117
4118
4119
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4121$as_echo_n "checking for ANSI C header files... " >&6; }
4122if ${ac_cv_header_stdc+:} false; then :
4123  $as_echo_n "(cached) " >&6
4124else
4125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h.  */
4127#include <stdlib.h>
4128#include <stdarg.h>
4129#include <string.h>
4130#include <float.h>
4131
4132int
4133main ()
4134{
4135
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140if ac_fn_c_try_compile "$LINENO"; then :
4141  ac_cv_header_stdc=yes
4142else
4143  ac_cv_header_stdc=no
4144fi
4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146
4147if test $ac_cv_header_stdc = yes; then
4148  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h.  */
4151#include <string.h>
4152
4153_ACEOF
4154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155  $EGREP "memchr" >/dev/null 2>&1; then :
4156
4157else
4158  ac_cv_header_stdc=no
4159fi
4160rm -f conftest*
4161
4162fi
4163
4164if test $ac_cv_header_stdc = yes; then
4165  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h.  */
4168#include <stdlib.h>
4169
4170_ACEOF
4171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172  $EGREP "free" >/dev/null 2>&1; then :
4173
4174else
4175  ac_cv_header_stdc=no
4176fi
4177rm -f conftest*
4178
4179fi
4180
4181if test $ac_cv_header_stdc = yes; then
4182  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4183  if test "$cross_compiling" = yes; then :
4184  :
4185else
4186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h.  */
4188#include <ctype.h>
4189#include <stdlib.h>
4190#if ((' ' & 0x0FF) == 0x020)
4191# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4192# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4193#else
4194# define ISLOWER(c) \
4195		   (('a' <= (c) && (c) <= 'i') \
4196		     || ('j' <= (c) && (c) <= 'r') \
4197		     || ('s' <= (c) && (c) <= 'z'))
4198# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4199#endif
4200
4201#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4202int
4203main ()
4204{
4205  int i;
4206  for (i = 0; i < 256; i++)
4207    if (XOR (islower (i), ISLOWER (i))
4208	|| toupper (i) != TOUPPER (i))
4209      return 2;
4210  return 0;
4211}
4212_ACEOF
4213if ac_fn_c_try_run "$LINENO"; then :
4214
4215else
4216  ac_cv_header_stdc=no
4217fi
4218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4219  conftest.$ac_objext conftest.beam conftest.$ac_ext
4220fi
4221
4222fi
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4225$as_echo "$ac_cv_header_stdc" >&6; }
4226if test $ac_cv_header_stdc = yes; then
4227
4228$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4229
4230fi
4231
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4233$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4234if ${ac_cv_header_sys_wait_h+:} false; then :
4235  $as_echo_n "(cached) " >&6
4236else
4237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h.  */
4239#include <sys/types.h>
4240#include <sys/wait.h>
4241#ifndef WEXITSTATUS
4242# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4243#endif
4244#ifndef WIFEXITED
4245# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4246#endif
4247
4248int
4249main ()
4250{
4251  int s;
4252  wait (&s);
4253  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4254  ;
4255  return 0;
4256}
4257_ACEOF
4258if ac_fn_c_try_compile "$LINENO"; then :
4259  ac_cv_header_sys_wait_h=yes
4260else
4261  ac_cv_header_sys_wait_h=no
4262fi
4263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4266$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4267if test $ac_cv_header_sys_wait_h = yes; then
4268
4269$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4270
4271fi
4272
4273
4274if test x"$ac_cv_prog_cc_c99" != xno; then
4275
4276
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4278$as_echo_n "checking for unsigned long long int... " >&6; }
4279if ${ac_cv_type_unsigned_long_long_int+:} false; then :
4280  $as_echo_n "(cached) " >&6
4281else
4282  ac_cv_type_unsigned_long_long_int=yes
4283     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4284       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286
4287  /* For now, do not test the preprocessor; as of 2007 there are too many
4288	 implementations with broken preprocessors.  Perhaps this can
4289	 be revisited in 2012.  In the meantime, code should not expect
4290	 #if to work with literals wider than 32 bits.  */
4291      /* Test literals.  */
4292      long long int ll = 9223372036854775807ll;
4293      long long int nll = -9223372036854775807LL;
4294      unsigned long long int ull = 18446744073709551615ULL;
4295      /* Test constant expressions.   */
4296      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4297		     ? 1 : -1)];
4298      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4299		     ? 1 : -1)];
4300      int i = 63;
4301int
4302main ()
4303{
4304/* Test availability of runtime routines for shift and division.  */
4305      long long int llmax = 9223372036854775807ll;
4306      unsigned long long int ullmax = 18446744073709551615ull;
4307      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4308	      | (llmax / ll) | (llmax % ll)
4309	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4310	      | (ullmax / ull) | (ullmax % ull));
4311  ;
4312  return 0;
4313}
4314
4315_ACEOF
4316if ac_fn_c_try_link "$LINENO"; then :
4317
4318else
4319  ac_cv_type_unsigned_long_long_int=no
4320fi
4321rm -f core conftest.err conftest.$ac_objext \
4322    conftest$ac_exeext conftest.$ac_ext
4323     fi
4324fi
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4326$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4327  if test $ac_cv_type_unsigned_long_long_int = yes; then
4328
4329$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4330
4331  fi
4332
4333
4334
4335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4336$as_echo_n "checking for long long int... " >&6; }
4337if ${ac_cv_type_long_long_int+:} false; then :
4338  $as_echo_n "(cached) " >&6
4339else
4340  ac_cv_type_long_long_int=yes
4341      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4342	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
4343	if test $ac_cv_type_long_long_int = yes; then
4344	  	  	  	  if test "$cross_compiling" = yes; then :
4345  :
4346else
4347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349#include <limits.h>
4350		 #ifndef LLONG_MAX
4351		 # define HALF \
4352			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4353		 # define LLONG_MAX (HALF - 1 + HALF)
4354		 #endif
4355int
4356main ()
4357{
4358long long int n = 1;
4359		 int i;
4360		 for (i = 0; ; i++)
4361		   {
4362		     long long int m = n << i;
4363		     if (m >> i != n)
4364		       return 1;
4365		     if (LLONG_MAX / 2 < m)
4366		       break;
4367		   }
4368		 return 0;
4369  ;
4370  return 0;
4371}
4372_ACEOF
4373if ac_fn_c_try_run "$LINENO"; then :
4374
4375else
4376  ac_cv_type_long_long_int=no
4377fi
4378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4379  conftest.$ac_objext conftest.beam conftest.$ac_ext
4380fi
4381
4382	fi
4383      fi
4384fi
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4386$as_echo "$ac_cv_type_long_long_int" >&6; }
4387  if test $ac_cv_type_long_long_int = yes; then
4388
4389$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4390
4391  fi
4392
4393  if test "$ac_cv_type_long_long_int" = no; then
4394    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4396as_fn_error $? "Compiler does not support long long int
4397See \`config.log' for more details" "$LINENO" 5; }
4398  fi
4399
4400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5
4401$as_echo_n "checking if the compiler supports trailing commas... " >&6; }
4402  trailing_commas=no
4403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h.  */
4405
4406int
4407main ()
4408{
4409
4410    enum {
4411      one,
4412    };
4413  ;
4414  return 0;
4415}
4416_ACEOF
4417if ac_fn_c_try_compile "$LINENO"; then :
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4419$as_echo "yes" >&6; }; trailing_commas=yes
4420else
4421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422$as_echo "no" >&6; }
4423fi
4424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425  if test "$trailing_commas" = no; then
4426    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428as_fn_error $? "Compiler does not support trailing comma in enum
4429See \`config.log' for more details" "$LINENO" 5; }
4430  fi
4431
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5
4433$as_echo_n "checking if the compiler supports C++ comments... " >&6; }
4434  slash_comments=no
4435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436/* end confdefs.h.  */
4437
4438int
4439main ()
4440{
4441// C++ comments?
4442  ;
4443  return 0;
4444}
4445_ACEOF
4446if ac_fn_c_try_compile "$LINENO"; then :
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4448$as_echo "yes" >&6; }; slash_comments=yes
4449else
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451$as_echo "no" >&6; }
4452fi
4453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454  if test "$slash_comments" = no; then
4455    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4457as_fn_error $? "Compiler does not support C++ comments
4458See \`config.log' for more details" "$LINENO" 5; }
4459  fi
4460fi
4461
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4464$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4465# Check whether --enable-fail_if_missing was given.
4466if test "${enable_fail_if_missing+set}" = set; then :
4467  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4468else
4469  fail_if_missing="no"
4470fi
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4473$as_echo "$fail_if_missing" >&6; }
4474
4475with_x_arg="$with_x"
4476
4477if test -z "$CFLAGS"; then
4478  CFLAGS="-O"
4479  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4480fi
4481if test "$GCC" = yes; then
4482    gccversion=`$CC -dumpversion`
4483  if test "x$gccversion" = "x"; then
4484        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4485  fi
4486    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4487    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4488    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4489  else
4490    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4491      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4492      CFLAGS="$CFLAGS -fno-strength-reduce"
4493    fi
4494  fi
4495fi
4496
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5
4498$as_echo_n "checking for clang version... " >&6; }
4499CLANG_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'`
4500if test x"$CLANG_VERSION_STRING" != x"" ; then
4501  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4502  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4503  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4504  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4506$as_echo "$CLANG_VERSION" >&6; }
4507          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
4508$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
4509  if test "$CLANG_VERSION" -ge 500002075 ; then
4510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511$as_echo "no" >&6; }
4512    CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
4513  else
4514    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4515$as_echo "yes" >&6; }
4516  fi
4517else
4518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5
4519$as_echo "N/A" >&6; }
4520fi
4521
4522CROSS_COMPILING=
4523if test "$cross_compiling" = yes; then
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4525$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4526  CROSS_COMPILING=1
4527fi
4528
4529
4530test "$GCC" = yes && CPP_MM=M;
4531
4532if test -f ./toolcheck; then
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4534$as_echo "$as_me: checking for buggy tools..." >&6;}
4535  sh ./toolcheck 1>&6
4536fi
4537
4538OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4539
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
4541$as_echo_n "checking for BeOS... " >&6; }
4542case `uname` in
4543    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
4544		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4545$as_echo "yes" >&6; };;
4546    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547$as_echo "no" >&6; };;
4548esac
4549
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4551$as_echo_n "checking for QNX... " >&6; }
4552case `uname` in
4553    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4554		test -z "$with_x" && with_x=no
4555		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4556$as_echo "yes" >&6; };;
4557    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558$as_echo "no" >&6; };;
4559esac
4560
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4562$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4563if test "`(uname) 2>/dev/null`" = Darwin; then
4564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565$as_echo "yes" >&6; }
4566  MACOS_X=yes
4567  CPPFLAGS="$CPPFLAGS -DMACOS_X"
4568
4569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4570$as_echo_n "checking --disable-darwin argument... " >&6; }
4571  # Check whether --enable-darwin was given.
4572if test "${enable_darwin+set}" = set; then :
4573  enableval=$enable_darwin;
4574else
4575  enable_darwin="yes"
4576fi
4577
4578  if test "$enable_darwin" = "yes"; then
4579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580$as_echo "no" >&6; }
4581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4582$as_echo_n "checking if Darwin files are there... " >&6; }
4583    if test -f os_macosx.m; then
4584      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4585$as_echo "yes" >&6; }
4586    else
4587      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4588$as_echo "no, Darwin support disabled" >&6; }
4589      enable_darwin=no
4590    fi
4591  else
4592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4593$as_echo "yes, Darwin support excluded" >&6; }
4594  fi
4595
4596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4597$as_echo_n "checking --with-mac-arch argument... " >&6; }
4598
4599# Check whether --with-mac-arch was given.
4600if test "${with_mac_arch+set}" = set; then :
4601  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4602$as_echo "$MACARCH" >&6; }
4603else
4604  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4605$as_echo "defaulting to $MACARCH" >&6; }
4606fi
4607
4608
4609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4610$as_echo_n "checking --with-developer-dir argument... " >&6; }
4611
4612# Check whether --with-developer-dir was given.
4613if test "${with_developer_dir+set}" = set; then :
4614  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4615$as_echo "$DEVELOPER_DIR" >&6; }
4616else
4617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4618$as_echo "not present" >&6; }
4619fi
4620
4621
4622  if test "x$DEVELOPER_DIR" = "x"; then
4623    # Extract the first word of "xcode-select", so it can be a program name with args.
4624set dummy xcode-select; ac_word=$2
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626$as_echo_n "checking for $ac_word... " >&6; }
4627if ${ac_cv_path_XCODE_SELECT+:} false; then :
4628  $as_echo_n "(cached) " >&6
4629else
4630  case $XCODE_SELECT in
4631  [\\/]* | ?:[\\/]*)
4632  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4633  ;;
4634  *)
4635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638  IFS=$as_save_IFS
4639  test -z "$as_dir" && as_dir=.
4640    for ac_exec_ext in '' $ac_executable_extensions; do
4641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644    break 2
4645  fi
4646done
4647  done
4648IFS=$as_save_IFS
4649
4650  ;;
4651esac
4652fi
4653XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4654if test -n "$XCODE_SELECT"; then
4655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4656$as_echo "$XCODE_SELECT" >&6; }
4657else
4658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4659$as_echo "no" >&6; }
4660fi
4661
4662
4663    if test "x$XCODE_SELECT" != "x"; then
4664      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4665$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4666      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4667      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4668$as_echo "$DEVELOPER_DIR" >&6; }
4669    else
4670      DEVELOPER_DIR=/Developer
4671    fi
4672  fi
4673
4674  if test "x$MACARCH" = "xboth"; then
4675    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4676$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4677                            save_cppflags="$CPPFLAGS"
4678    save_cflags="$CFLAGS"
4679    save_ldflags="$LDFLAGS"
4680    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4681    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682/* end confdefs.h.  */
4683
4684int
4685main ()
4686{
4687
4688  ;
4689  return 0;
4690}
4691_ACEOF
4692if ac_fn_c_try_link "$LINENO"; then :
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4694$as_echo "found" >&6; }
4695else
4696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4697$as_echo "not found" >&6; }
4698	CFLAGS="$save_cflags"
4699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4700$as_echo_n "checking if Intel architecture is supported... " >&6; }
4701	CPPFLAGS="$CPPFLAGS -arch i386"
4702	LDFLAGS="$save_ldflags -arch i386"
4703	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704/* end confdefs.h.  */
4705
4706int
4707main ()
4708{
4709
4710  ;
4711  return 0;
4712}
4713_ACEOF
4714if ac_fn_c_try_link "$LINENO"; then :
4715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4716$as_echo "yes" >&6; }; MACARCH="intel"
4717else
4718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719$as_echo "no" >&6; }
4720		MACARCH="ppc"
4721		CPPFLAGS="$save_cppflags -arch ppc"
4722		LDFLAGS="$save_ldflags -arch ppc"
4723fi
4724rm -f core conftest.err conftest.$ac_objext \
4725    conftest$ac_exeext conftest.$ac_ext
4726fi
4727rm -f core conftest.err conftest.$ac_objext \
4728    conftest$ac_exeext conftest.$ac_ext
4729  elif test "x$MACARCH" = "xintel"; then
4730    CPPFLAGS="$CPPFLAGS -arch intel"
4731    LDFLAGS="$LDFLAGS -arch intel"
4732  elif test "x$MACARCH" = "xppc"; then
4733    CPPFLAGS="$CPPFLAGS -arch ppc"
4734    LDFLAGS="$LDFLAGS -arch ppc"
4735  fi
4736
4737  if test "$enable_darwin" = "yes"; then
4738    MACOS_X_DARWIN=yes
4739    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4740    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4741            CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN"
4742
4743                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4744for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4745		  inttypes.h stdint.h unistd.h
4746do :
4747  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4749"
4750if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4751  cat >>confdefs.h <<_ACEOF
4752#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4753_ACEOF
4754
4755fi
4756
4757done
4758
4759
4760ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4761if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4762  CARBON=yes
4763fi
4764
4765
4766    if test "x$CARBON" = "xyes"; then
4767      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
4768	with_x=no
4769      fi
4770    fi
4771  fi
4772
4773        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4774    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4775  fi
4776
4777else
4778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779$as_echo "no" >&6; }
4780fi
4781
4782for ac_header in AvailabilityMacros.h
4783do :
4784  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4785if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4786  cat >>confdefs.h <<_ACEOF
4787#define HAVE_AVAILABILITYMACROS_H 1
4788_ACEOF
4789
4790fi
4791
4792done
4793
4794
4795
4796
4797
4798if test "$cross_compiling" = no; then
4799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4800$as_echo_n "checking --with-local-dir argument... " >&6; }
4801  have_local_include=''
4802  have_local_lib=''
4803
4804# Check whether --with-local-dir was given.
4805if test "${with_local_dir+set}" = set; then :
4806  withval=$with_local_dir;
4807    local_dir="$withval"
4808    case "$withval" in
4809    */*) ;;
4810    no)
4811      # avoid adding local dir to LDFLAGS and CPPFLAGS
4812      have_local_include=yes
4813      have_local_lib=yes
4814      ;;
4815    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4816    esac
4817	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4818$as_echo "$local_dir" >&6; }
4819
4820else
4821
4822    local_dir=/usr/local
4823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4824$as_echo "Defaulting to $local_dir" >&6; }
4825
4826fi
4827
4828  if test "$GCC" = yes -a "$local_dir" != no; then
4829    echo 'void f(){}' > conftest.c
4830        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4831    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4832    rm -f conftest.c conftest.o
4833  fi
4834  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4835    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4836    if test "$tt" = "$LDFLAGS"; then
4837      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4838    fi
4839  fi
4840  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4841    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4842    if test "$tt" = "$CPPFLAGS"; then
4843      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4844    fi
4845  fi
4846fi
4847
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4849$as_echo_n "checking --with-vim-name argument... " >&6; }
4850
4851# Check whether --with-vim-name was given.
4852if test "${with_vim_name+set}" = set; then :
4853  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4854$as_echo "$VIMNAME" >&6; }
4855else
4856  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4857$as_echo "Defaulting to $VIMNAME" >&6; }
4858fi
4859
4860
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4862$as_echo_n "checking --with-ex-name argument... " >&6; }
4863
4864# Check whether --with-ex-name was given.
4865if test "${with_ex_name+set}" = set; then :
4866  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4867$as_echo "$EXNAME" >&6; }
4868else
4869  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4870$as_echo "Defaulting to ex" >&6; }
4871fi
4872
4873
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4875$as_echo_n "checking --with-view-name argument... " >&6; }
4876
4877# Check whether --with-view-name was given.
4878if test "${with_view_name+set}" = set; then :
4879  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4880$as_echo "$VIEWNAME" >&6; }
4881else
4882  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4883$as_echo "Defaulting to view" >&6; }
4884fi
4885
4886
4887
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4889$as_echo_n "checking --with-global-runtime argument... " >&6; }
4890
4891# Check whether --with-global-runtime was given.
4892if test "${with_global_runtime+set}" = set; then :
4893  withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4894$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4895#define RUNTIME_GLOBAL "$withval"
4896_ACEOF
4897
4898else
4899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900$as_echo "no" >&6; }
4901fi
4902
4903
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4905$as_echo_n "checking --with-modified-by argument... " >&6; }
4906
4907# Check whether --with-modified-by was given.
4908if test "${with_modified_by+set}" = set; then :
4909  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4910$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4911#define MODIFIED_BY "$withval"
4912_ACEOF
4913
4914else
4915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916$as_echo "no" >&6; }
4917fi
4918
4919
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4921$as_echo_n "checking if character set is EBCDIC... " >&6; }
4922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923/* end confdefs.h.  */
4924
4925int
4926main ()
4927{
4928 /* TryCompile function for CharSet.
4929   Treat any failure as ASCII for compatibility with existing art.
4930   Use compile-time rather than run-time tests for cross-compiler
4931   tolerance.  */
4932#if '0'!=240
4933make an error "Character set is not EBCDIC"
4934#endif
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939if ac_fn_c_try_compile "$LINENO"; then :
4940   # TryCompile action if true
4941cf_cv_ebcdic=yes
4942else
4943   # TryCompile action if false
4944cf_cv_ebcdic=no
4945fi
4946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947# end of TryCompile ])
4948# end of CacheVal CvEbcdic
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4950$as_echo "$cf_cv_ebcdic" >&6; }
4951case "$cf_cv_ebcdic" in  #(vi
4952    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4953
4954		line_break='"\\n"'
4955		;;
4956    *)		line_break='"\\012"';;
4957esac
4958
4959
4960if test "$cf_cv_ebcdic" = "yes"; then
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4962$as_echo_n "checking for z/OS Unix... " >&6; }
4963case `uname` in
4964    OS/390)	zOSUnix="yes";
4965										if test "$CC" = "cc"; then
4966		  ccm="$_CC_CCMODE"
4967		  ccn="CC"
4968		else
4969		  if test "$CC" = "c89"; then
4970		    ccm="$_CC_C89MODE"
4971		    ccn="C89"
4972		  else
4973		    ccm=1
4974		  fi
4975		fi
4976		if test "$ccm" != "1"; then
4977		  echo ""
4978		  echo "------------------------------------------"
4979		  echo " On z/OS Unix, the environment variable"
4980		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4981		  echo " Do:"
4982		  echo "    export _CC_${ccn}MODE=1"
4983		  echo " and then call configure again."
4984		  echo "------------------------------------------"
4985		  exit 1
4986		fi
4987		# Set CFLAGS for configure process.
4988		# This will be reset later for config.mk.
4989		# Use haltonmsg to force error for missing H files.
4990		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
4991		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4992		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4993$as_echo "yes" >&6; }
4994		;;
4995    *)		zOSUnix="no";
4996		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997$as_echo "no" >&6; }
4998		;;
4999esac
5000fi
5001
5002if test "$zOSUnix" = "yes"; then
5003    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
5004else
5005    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
5006fi
5007
5008
5009
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
5011$as_echo_n "checking --disable-smack argument... " >&6; }
5012# Check whether --enable-smack was given.
5013if test "${enable_smack+set}" = set; then :
5014  enableval=$enable_smack;
5015else
5016  enable_smack="yes"
5017fi
5018
5019if test "$enable_smack" = "yes"; then
5020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021$as_echo "no" >&6; }
5022  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
5023if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
5024  true
5025else
5026  enable_smack="no"
5027fi
5028
5029
5030else
5031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5032$as_echo "yes" >&6; }
5033fi
5034if test "$enable_smack" = "yes"; then
5035  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
5036if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
5037  true
5038else
5039  enable_smack="no"
5040fi
5041
5042
5043fi
5044if test "$enable_smack" = "yes"; then
5045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
5046$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
5047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048/* end confdefs.h.  */
5049#include <linux/xattr.h>
5050_ACEOF
5051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
5053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5054$as_echo "yes" >&6; }
5055else
5056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057$as_echo "no" >&6; }; enable_smack="no"
5058fi
5059rm -f conftest*
5060
5061fi
5062if test "$enable_smack" = "yes"; then
5063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
5064$as_echo_n "checking for setxattr in -lattr... " >&6; }
5065if ${ac_cv_lib_attr_setxattr+:} false; then :
5066  $as_echo_n "(cached) " >&6
5067else
5068  ac_check_lib_save_LIBS=$LIBS
5069LIBS="-lattr  $LIBS"
5070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072
5073/* Override any GCC internal prototype to avoid an error.
5074   Use char because int might match the return type of a GCC
5075   builtin and then its argument prototype would still apply.  */
5076#ifdef __cplusplus
5077extern "C"
5078#endif
5079char setxattr ();
5080int
5081main ()
5082{
5083return setxattr ();
5084  ;
5085  return 0;
5086}
5087_ACEOF
5088if ac_fn_c_try_link "$LINENO"; then :
5089  ac_cv_lib_attr_setxattr=yes
5090else
5091  ac_cv_lib_attr_setxattr=no
5092fi
5093rm -f core conftest.err conftest.$ac_objext \
5094    conftest$ac_exeext conftest.$ac_ext
5095LIBS=$ac_check_lib_save_LIBS
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
5098$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
5099if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
5100  LIBS="$LIBS -lattr"
5101	   found_smack="yes"
5102	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
5103
5104fi
5105
5106fi
5107
5108if test "x$found_smack" = "x"; then
5109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
5110$as_echo_n "checking --disable-selinux argument... " >&6; }
5111  # Check whether --enable-selinux was given.
5112if test "${enable_selinux+set}" = set; then :
5113  enableval=$enable_selinux;
5114else
5115  enable_selinux="yes"
5116fi
5117
5118  if test "$enable_selinux" = "yes"; then
5119    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120$as_echo "no" >&6; }
5121    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
5122$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
5123if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
5124  $as_echo_n "(cached) " >&6
5125else
5126  ac_check_lib_save_LIBS=$LIBS
5127LIBS="-lselinux  $LIBS"
5128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129/* end confdefs.h.  */
5130
5131/* Override any GCC internal prototype to avoid an error.
5132   Use char because int might match the return type of a GCC
5133   builtin and then its argument prototype would still apply.  */
5134#ifdef __cplusplus
5135extern "C"
5136#endif
5137char is_selinux_enabled ();
5138int
5139main ()
5140{
5141return is_selinux_enabled ();
5142  ;
5143  return 0;
5144}
5145_ACEOF
5146if ac_fn_c_try_link "$LINENO"; then :
5147  ac_cv_lib_selinux_is_selinux_enabled=yes
5148else
5149  ac_cv_lib_selinux_is_selinux_enabled=no
5150fi
5151rm -f core conftest.err conftest.$ac_objext \
5152    conftest$ac_exeext conftest.$ac_ext
5153LIBS=$ac_check_lib_save_LIBS
5154fi
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
5156$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
5157if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
5158  ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
5159if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
5160  LIBS="$LIBS -lselinux"
5161	    $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5162
5163fi
5164
5165
5166fi
5167
5168  else
5169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5170$as_echo "yes" >&6; }
5171  fi
5172fi
5173
5174
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
5176$as_echo_n "checking --with-features argument... " >&6; }
5177
5178# Check whether --with-features was given.
5179if test "${with_features+set}" = set; then :
5180  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
5181$as_echo "$features" >&6; }
5182else
5183  features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5
5184$as_echo "Defaulting to huge" >&6; }
5185fi
5186
5187
5188dovimdiff=""
5189dogvimdiff=""
5190case "$features" in
5191  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
5192 ;;
5193  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
5194 ;;
5195  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
5196 dovimdiff="installvimdiff";
5197			dogvimdiff="installgvimdiff" ;;
5198  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
5199 dovimdiff="installvimdiff";
5200			dogvimdiff="installgvimdiff" ;;
5201  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
5202 dovimdiff="installvimdiff";
5203			dogvimdiff="installgvimdiff" ;;
5204  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
5205$as_echo "Sorry, $features is not supported" >&6; } ;;
5206esac
5207
5208
5209
5210
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
5212$as_echo_n "checking --with-compiledby argument... " >&6; }
5213
5214# Check whether --with-compiledby was given.
5215if test "${with_compiledby+set}" = set; then :
5216  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5217$as_echo "$withval" >&6; }
5218else
5219  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220$as_echo "no" >&6; }
5221fi
5222
5223
5224
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
5226$as_echo_n "checking --disable-xsmp argument... " >&6; }
5227# Check whether --enable-xsmp was given.
5228if test "${enable_xsmp+set}" = set; then :
5229  enableval=$enable_xsmp;
5230else
5231  enable_xsmp="yes"
5232fi
5233
5234
5235if test "$enable_xsmp" = "yes"; then
5236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237$as_echo "no" >&6; }
5238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
5239$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
5240  # Check whether --enable-xsmp-interact was given.
5241if test "${enable_xsmp_interact+set}" = set; then :
5242  enableval=$enable_xsmp_interact;
5243else
5244  enable_xsmp_interact="yes"
5245fi
5246
5247  if test "$enable_xsmp_interact" = "yes"; then
5248    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249$as_echo "no" >&6; }
5250    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
5251
5252  else
5253    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5254$as_echo "yes" >&6; }
5255  fi
5256else
5257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5258$as_echo "yes" >&6; }
5259fi
5260
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
5262$as_echo_n "checking --enable-luainterp argument... " >&6; }
5263# Check whether --enable-luainterp was given.
5264if test "${enable_luainterp+set}" = set; then :
5265  enableval=$enable_luainterp;
5266else
5267  enable_luainterp="no"
5268fi
5269
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
5271$as_echo "$enable_luainterp" >&6; }
5272
5273if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
5274  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5275    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
5276  fi
5277
5278
5279
5280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
5281$as_echo_n "checking --with-lua-prefix argument... " >&6; }
5282
5283# Check whether --with-lua_prefix was given.
5284if test "${with_lua_prefix+set}" = set; then :
5285  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
5286$as_echo "$with_lua_prefix" >&6; }
5287else
5288  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289$as_echo "no" >&6; }
5290fi
5291
5292
5293  if test "X$with_lua_prefix" != "X"; then
5294       vi_cv_path_lua_pfx="$with_lua_prefix"
5295  else
5296    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
5297$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
5298    if test "X$LUA_PREFIX" != "X"; then
5299	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
5300$as_echo "\"$LUA_PREFIX\"" >&6; }
5301	vi_cv_path_lua_pfx="$LUA_PREFIX"
5302    else
5303	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
5304$as_echo "not set, default to /usr" >&6; }
5305	vi_cv_path_lua_pfx="/usr"
5306    fi
5307  fi
5308
5309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
5310$as_echo_n "checking --with-luajit... " >&6; }
5311
5312# Check whether --with-luajit was given.
5313if test "${with_luajit+set}" = set; then :
5314  withval=$with_luajit; vi_cv_with_luajit="$withval"
5315else
5316  vi_cv_with_luajit="no"
5317fi
5318
5319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
5320$as_echo "$vi_cv_with_luajit" >&6; }
5321
5322  LUA_INC=
5323  if test "X$vi_cv_path_lua_pfx" != "X"; then
5324    if test "x$vi_cv_with_luajit" != "xno"; then
5325            # Extract the first word of "luajit", so it can be a program name with args.
5326set dummy luajit; ac_word=$2
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328$as_echo_n "checking for $ac_word... " >&6; }
5329if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  case $vi_cv_path_luajit in
5333  [\\/]* | ?:[\\/]*)
5334  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
5335  ;;
5336  *)
5337  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338for as_dir in $PATH
5339do
5340  IFS=$as_save_IFS
5341  test -z "$as_dir" && as_dir=.
5342    for ac_exec_ext in '' $ac_executable_extensions; do
5343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
5345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346    break 2
5347  fi
5348done
5349  done
5350IFS=$as_save_IFS
5351
5352  ;;
5353esac
5354fi
5355vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
5356if test -n "$vi_cv_path_luajit"; then
5357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
5358$as_echo "$vi_cv_path_luajit" >&6; }
5359else
5360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361$as_echo "no" >&6; }
5362fi
5363
5364
5365      if test "X$vi_cv_path_luajit" != "X"; then
5366		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
5367$as_echo_n "checking LuaJIT version... " >&6; }
5368if ${vi_cv_version_luajit+:} false; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
5374$as_echo "$vi_cv_version_luajit" >&6; }
5375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
5376$as_echo_n "checking Lua version of LuaJIT... " >&6; }
5377if ${vi_cv_version_lua_luajit+:} false; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
5383$as_echo "$vi_cv_version_lua_luajit" >&6; }
5384	vi_cv_path_lua="$vi_cv_path_luajit"
5385	vi_cv_version_lua="$vi_cv_version_lua_luajit"
5386      fi
5387    else
5388            # Extract the first word of "lua", so it can be a program name with args.
5389set dummy lua; ac_word=$2
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391$as_echo_n "checking for $ac_word... " >&6; }
5392if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
5393  $as_echo_n "(cached) " >&6
5394else
5395  case $vi_cv_path_plain_lua in
5396  [\\/]* | ?:[\\/]*)
5397  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
5398  ;;
5399  *)
5400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403  IFS=$as_save_IFS
5404  test -z "$as_dir" && as_dir=.
5405    for ac_exec_ext in '' $ac_executable_extensions; do
5406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
5408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409    break 2
5410  fi
5411done
5412  done
5413IFS=$as_save_IFS
5414
5415  ;;
5416esac
5417fi
5418vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
5419if test -n "$vi_cv_path_plain_lua"; then
5420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
5421$as_echo "$vi_cv_path_plain_lua" >&6; }
5422else
5423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424$as_echo "no" >&6; }
5425fi
5426
5427
5428      if test "X$vi_cv_path_plain_lua" != "X"; then
5429		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5430$as_echo_n "checking Lua version... " >&6; }
5431if ${vi_cv_version_plain_lua+:} false; then :
5432  $as_echo_n "(cached) " >&6
5433else
5434   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5435fi
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5437$as_echo "$vi_cv_version_plain_lua" >&6; }
5438      fi
5439      vi_cv_path_lua="$vi_cv_path_plain_lua"
5440      vi_cv_version_lua="$vi_cv_version_plain_lua"
5441    fi
5442    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5443      { $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
5444$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5445      if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then
5446	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5447$as_echo "yes" >&6; }
5448	LUA_INC=/luajit-$vi_cv_version_luajit
5449      fi
5450    fi
5451    if test "X$LUA_INC" = "X"; then
5452      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5453$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5454      if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then
5455	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5456$as_echo "yes" >&6; }
5457      else
5458	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459$as_echo "no" >&6; }
5460	{ $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
5461$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5462	if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
5463	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5464$as_echo "yes" >&6; }
5465	  LUA_INC=/lua$vi_cv_version_lua
5466	else
5467	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468$as_echo "no" >&6; }
5469	  vi_cv_path_lua_pfx=
5470	fi
5471      fi
5472    fi
5473  fi
5474
5475  if test "X$vi_cv_path_lua_pfx" != "X"; then
5476    if test "x$vi_cv_with_luajit" != "xno"; then
5477      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5478      if test "X$multiarch" != "X"; then
5479	lib_multiarch="lib/${multiarch}"
5480      else
5481	lib_multiarch="lib"
5482      fi
5483      if test "X$vi_cv_version_lua" = "X"; then
5484	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5485      else
5486	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5487      fi
5488    else
5489      if test "X$LUA_INC" != "X"; then
5490		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5491      else
5492	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5493      fi
5494    fi
5495    if test "$enable_luainterp" = "dynamic"; then
5496      lua_ok="yes"
5497    else
5498      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5499$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5500      libs_save=$LIBS
5501      LIBS="$LIBS $LUA_LIBS"
5502      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h.  */
5504
5505int
5506main ()
5507{
5508
5509  ;
5510  return 0;
5511}
5512_ACEOF
5513if ac_fn_c_try_link "$LINENO"; then :
5514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515$as_echo "yes" >&6; }; lua_ok="yes"
5516else
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5519fi
5520rm -f core conftest.err conftest.$ac_objext \
5521    conftest$ac_exeext conftest.$ac_ext
5522      LIBS=$libs_save
5523    fi
5524    if test "x$lua_ok" = "xyes"; then
5525      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5526      LUA_SRC="if_lua.c"
5527      LUA_OBJ="objects/if_lua.o"
5528      LUA_PRO="if_lua.pro"
5529      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5530
5531    fi
5532    if test "$enable_luainterp" = "dynamic"; then
5533      if test "x$vi_cv_with_luajit" != "xno"; then
5534	luajit="jit"
5535      fi
5536      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5537	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5538      else
5539	if test "x$MACOS_X" = "xyes"; then
5540	  ext="dylib"
5541	  indexes=""
5542	else
5543	  ext="so"
5544	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5545	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5546	  if test "X$multiarch" != "X"; then
5547	    lib_multiarch="lib/${multiarch}"
5548	  fi
5549	fi
5550			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5551$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5552	for subdir in "${lib_multiarch}" lib64 lib; do
5553	  if test -z "$subdir"; then
5554	    continue
5555	  fi
5556	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5557	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5558	    for i in $indexes ""; do
5559	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5560		sover2="$i"
5561		break 3
5562	      fi
5563	    done
5564	  done
5565	  sover=""
5566	done
5567	if test "X$sover" = "X"; then
5568	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569$as_echo "no" >&6; }
5570	  lua_ok="no"
5571	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5572	else
5573	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5574$as_echo "yes" >&6; }
5575	  lua_ok="yes"
5576	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5577	fi
5578      fi
5579      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5580
5581      LUA_LIBS=""
5582      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5583    fi
5584    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5585       test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5586       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5587            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5588    fi
5589  fi
5590  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5591    as_fn_error $? "could not configure lua" "$LINENO" 5
5592  fi
5593
5594
5595
5596
5597
5598fi
5599
5600
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5602$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5603# Check whether --enable-mzschemeinterp was given.
5604if test "${enable_mzschemeinterp+set}" = set; then :
5605  enableval=$enable_mzschemeinterp;
5606else
5607  enable_mzschemeinterp="no"
5608fi
5609
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5611$as_echo "$enable_mzschemeinterp" >&6; }
5612
5613if test "$enable_mzschemeinterp" = "yes"; then
5614
5615
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5617$as_echo_n "checking --with-plthome argument... " >&6; }
5618
5619# Check whether --with-plthome was given.
5620if test "${with_plthome+set}" = set; then :
5621  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5622$as_echo "$with_plthome" >&6; }
5623else
5624  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5625$as_echo "\"no\"" >&6; }
5626fi
5627
5628
5629  if test "X$with_plthome" != "X"; then
5630       vi_cv_path_mzscheme_pfx="$with_plthome"
5631       vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5632  else
5633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5634$as_echo_n "checking PLTHOME environment var... " >&6; }
5635    if test "X$PLTHOME" != "X"; then
5636	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5637$as_echo "\"$PLTHOME\"" >&6; }
5638	vi_cv_path_mzscheme_pfx="$PLTHOME"
5639	vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5640    else
5641	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5642$as_echo "not set" >&6; }
5643		# Extract the first word of "mzscheme", so it can be a program name with args.
5644set dummy mzscheme; ac_word=$2
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646$as_echo_n "checking for $ac_word... " >&6; }
5647if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  case $vi_cv_path_mzscheme in
5651  [\\/]* | ?:[\\/]*)
5652  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5653  ;;
5654  *)
5655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658  IFS=$as_save_IFS
5659  test -z "$as_dir" && as_dir=.
5660    for ac_exec_ext in '' $ac_executable_extensions; do
5661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664    break 2
5665  fi
5666done
5667  done
5668IFS=$as_save_IFS
5669
5670  ;;
5671esac
5672fi
5673vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5674if test -n "$vi_cv_path_mzscheme"; then
5675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5676$as_echo "$vi_cv_path_mzscheme" >&6; }
5677else
5678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679$as_echo "no" >&6; }
5680fi
5681
5682
5683
5684			if test "X$vi_cv_path_mzscheme" != "X"; then
5685	  lsout=`ls -l $vi_cv_path_mzscheme`
5686	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5687	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5688	  fi
5689	fi
5690
5691	if test "X$vi_cv_path_mzscheme" != "X"; then
5692	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5693$as_echo_n "checking MzScheme install prefix... " >&6; }
5694if ${vi_cv_path_mzscheme_pfx+:} false; then :
5695  $as_echo_n "(cached) " >&6
5696else
5697  	    	    echo "(display (simplify-path		\
5698	       (build-path (call-with-values	\
5699		(lambda () (split-path (find-system-path (quote exec-file)))) \
5700		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5701	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5702		sed -e 's+/$++'`
5703fi
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5705$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5706	    rm -f mzdirs.scm
5707	fi
5708    fi
5709  fi
5710
5711  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5
5713$as_echo_n "checking for racket include directory... " >&6; }
5714    SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'`
5715    if test "X$SCHEME_INC" != "X"; then
5716      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5
5717$as_echo "${SCHEME_INC}" >&6; }
5718    else
5719      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5720$as_echo "not found" >&6; }
5721      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5722$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5723      if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then
5724	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5725	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5726$as_echo "yes" >&6; }
5727      else
5728	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729$as_echo "no" >&6; }
5730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5731$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5732	if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then
5733	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5734$as_echo "yes" >&6; }
5735	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5736	else
5737	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
5739	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5740$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5741	  if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then
5742	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5743$as_echo "yes" >&6; }
5744	    SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5745	  else
5746	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747$as_echo "no" >&6; }
5748	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5749$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5750	    if test -f /usr/include/plt/scheme.h; then
5751	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5752$as_echo "yes" >&6; }
5753	      SCHEME_INC=/usr/include/plt
5754	    else
5755	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756$as_echo "no" >&6; }
5757	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5758$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5759	      if test -f /usr/include/racket/scheme.h; then
5760		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5761$as_echo "yes" >&6; }
5762		SCHEME_INC=/usr/include/racket
5763	      else
5764		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765$as_echo "no" >&6; }
5766		vi_cv_path_mzscheme_pfx=
5767	      fi
5768	    fi
5769	  fi
5770	fi
5771      fi
5772    fi
5773  fi
5774
5775  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5776
5777    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5
5778$as_echo_n "checking for racket lib directory... " >&6; }
5779    SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'`
5780    if test "X$SCHEME_LIB" != "X"; then
5781      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5
5782$as_echo "${SCHEME_LIB}" >&6; }
5783    else
5784      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5785$as_echo "not found" >&6; }
5786    fi
5787
5788    for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do
5789      if test "X$path" != "X"; then
5790	if test "x$MACOS_X" = "xyes"; then
5791	  MZSCHEME_LIBS="-framework Racket"
5792	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5793	elif test -f "${path}/libmzscheme3m.a"; then
5794	  MZSCHEME_LIBS="${path}/libmzscheme3m.a"
5795	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5796	elif test -f "${path}/libracket3m.a"; then
5797	  MZSCHEME_LIBS="${path}/libracket3m.a"
5798	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5799	elif test -f "${path}/libracket.a"; then
5800	  MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a"
5801	elif test -f "${path}/libmzscheme.a"; then
5802	  MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a"
5803	else
5804	  	  if test -f "${path}/libmzscheme3m.so"; then
5805	    MZSCHEME_LIBS="-L${path} -lmzscheme3m"
5806	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5807	  elif test -f "${path}/libracket3m.so"; then
5808	    MZSCHEME_LIBS="-L${path} -lracket3m"
5809	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5810	  elif test -f "${path}/libracket.so"; then
5811	    MZSCHEME_LIBS="-L${path} -lracket -lmzgc"
5812	  else
5813	    	    if test "$path" != "$SCHEME_LIB"; then
5814	      continue
5815	    fi
5816	    MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc"
5817	  fi
5818	  if test "$GCC" = yes; then
5819	    	    	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}"
5820	  elif test "`(uname) 2>/dev/null`" = SunOS &&
5821				   uname -r | grep '^5' >/dev/null; then
5822	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}"
5823	  fi
5824	fi
5825      fi
5826      if test "X$MZSCHEME_LIBS" != "X"; then
5827	break
5828      fi
5829    done
5830
5831    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5
5832$as_echo_n "checking if racket requires -pthread... " >&6; }
5833    if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then
5834      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5835$as_echo "yes" >&6; }
5836      MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread"
5837      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread"
5838    else
5839      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840$as_echo "no" >&6; }
5841    fi
5842
5843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5
5844$as_echo_n "checking for racket config directory... " >&6; }
5845    SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'`
5846    if test "X$SCHEME_CONFIGDIR" != "X"; then
5847      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'"
5848      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5
5849$as_echo "${SCHEME_CONFIGDIR}" >&6; }
5850    else
5851      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5852$as_echo "not found" >&6; }
5853    fi
5854
5855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5856$as_echo_n "checking for racket collects directory... " >&6; }
5857    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))))'`
5858    if test "X$SCHEME_COLLECTS" = "X"; then
5859      if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then
5860	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5861      else
5862	if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then
5863	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5864	else
5865	  if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then
5866	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5867	  else
5868	    if test -d "$vi_cv_path_mzscheme_pfx/collects"; then
5869	      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5870	    fi
5871	  fi
5872	fi
5873      fi
5874    fi
5875    if test "X$SCHEME_COLLECTS" != "X" ; then
5876      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5877$as_echo "${SCHEME_COLLECTS}" >&6; }
5878    else
5879      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5880$as_echo "not found" >&6; }
5881    fi
5882
5883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5884$as_echo_n "checking for mzscheme_base.c... " >&6; }
5885    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5886      MZSCHEME_EXTRA="mzscheme_base.c"
5887      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5888      MZSCHEME_MOD="++lib scheme/base"
5889    else
5890      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5891	MZSCHEME_EXTRA="mzscheme_base.c"
5892	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5893	MZSCHEME_MOD="++lib scheme/base"
5894      else
5895	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5896	  MZSCHEME_EXTRA="mzscheme_base.c"
5897	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5898	  MZSCHEME_MOD=""
5899	fi
5900      fi
5901    fi
5902    if test "X$MZSCHEME_EXTRA" != "X" ; then
5903            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5904      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5905$as_echo "needed" >&6; }
5906    else
5907      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5908$as_echo "not needed" >&6; }
5909    fi
5910
5911        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5912$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5913if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5914  $as_echo_n "(cached) " >&6
5915else
5916  ac_check_lib_save_LIBS=$LIBS
5917LIBS="-lffi  $LIBS"
5918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919/* end confdefs.h.  */
5920
5921/* Override any GCC internal prototype to avoid an error.
5922   Use char because int might match the return type of a GCC
5923   builtin and then its argument prototype would still apply.  */
5924#ifdef __cplusplus
5925extern "C"
5926#endif
5927char ffi_type_void ();
5928int
5929main ()
5930{
5931return ffi_type_void ();
5932  ;
5933  return 0;
5934}
5935_ACEOF
5936if ac_fn_c_try_link "$LINENO"; then :
5937  ac_cv_lib_ffi_ffi_type_void=yes
5938else
5939  ac_cv_lib_ffi_ffi_type_void=no
5940fi
5941rm -f core conftest.err conftest.$ac_objext \
5942    conftest$ac_exeext conftest.$ac_ext
5943LIBS=$ac_check_lib_save_LIBS
5944fi
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5946$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5947if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5948  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5949fi
5950
5951
5952    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5953      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5954
5955        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5956$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5957    cflags_save=$CFLAGS
5958    libs_save=$LIBS
5959    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5960    LIBS="$LIBS $MZSCHEME_LIBS"
5961    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962/* end confdefs.h.  */
5963
5964int
5965main ()
5966{
5967
5968  ;
5969  return 0;
5970}
5971_ACEOF
5972if ac_fn_c_try_link "$LINENO"; then :
5973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5974$as_echo "yes" >&6; }; mzs_ok=yes
5975else
5976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
5977$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
5978fi
5979rm -f core conftest.err conftest.$ac_objext \
5980    conftest$ac_exeext conftest.$ac_ext
5981    CFLAGS=$cflags_save
5982    LIBS=$libs_save
5983    if test $mzs_ok = yes; then
5984      MZSCHEME_SRC="if_mzsch.c"
5985      MZSCHEME_OBJ="objects/if_mzsch.o"
5986      MZSCHEME_PRO="if_mzsch.pro"
5987      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
5988
5989    else
5990      MZSCHEME_CFLAGS=
5991      MZSCHEME_LIBS=
5992      MZSCHEME_EXTRA=
5993      MZSCHEME_MZC=
5994    fi
5995  fi
5996
5997
5998
5999
6000
6001
6002
6003fi
6004
6005
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
6007$as_echo_n "checking --enable-perlinterp argument... " >&6; }
6008# Check whether --enable-perlinterp was given.
6009if test "${enable_perlinterp+set}" = set; then :
6010  enableval=$enable_perlinterp;
6011else
6012  enable_perlinterp="no"
6013fi
6014
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
6016$as_echo "$enable_perlinterp" >&6; }
6017if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
6018  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6019    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
6020  fi
6021
6022  # Extract the first word of "perl", so it can be a program name with args.
6023set dummy perl; ac_word=$2
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025$as_echo_n "checking for $ac_word... " >&6; }
6026if ${ac_cv_path_vi_cv_path_perl+:} false; then :
6027  $as_echo_n "(cached) " >&6
6028else
6029  case $vi_cv_path_perl in
6030  [\\/]* | ?:[\\/]*)
6031  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
6032  ;;
6033  *)
6034  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035for as_dir in $PATH
6036do
6037  IFS=$as_save_IFS
6038  test -z "$as_dir" && as_dir=.
6039    for ac_exec_ext in '' $ac_executable_extensions; do
6040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
6042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043    break 2
6044  fi
6045done
6046  done
6047IFS=$as_save_IFS
6048
6049  ;;
6050esac
6051fi
6052vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
6053if test -n "$vi_cv_path_perl"; then
6054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
6055$as_echo "$vi_cv_path_perl" >&6; }
6056else
6057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058$as_echo "no" >&6; }
6059fi
6060
6061
6062  if test "X$vi_cv_path_perl" != "X"; then
6063    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
6064$as_echo_n "checking Perl version... " >&6; }
6065    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
6066     eval `$vi_cv_path_perl -V:usethreads`
6067     eval `$vi_cv_path_perl -V:libperl`
6068     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
6069       badthreads=no
6070     else
6071       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
6072	 eval `$vi_cv_path_perl -V:use5005threads`
6073	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
6074	   badthreads=no
6075	 else
6076	   badthreads=yes
6077	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
6078$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
6079	 fi
6080       else
6081	 badthreads=yes
6082	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
6083$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
6084       fi
6085     fi
6086     if test $badthreads = no; then
6087      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
6088$as_echo "OK" >&6; }
6089      eval `$vi_cv_path_perl -V:shrpenv`
6090      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
6091	shrpenv=""
6092      fi
6093      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
6094
6095      vi_cv_perl_extutils=unknown_perl_extutils_path
6096      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
6097	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
6098	if test -f "$xsubpp_path"; then
6099	  vi_cv_perl_xsubpp="$xsubpp_path"
6100	fi
6101      done
6102
6103                              perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
6104		-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
6105		-e 's/-fdebug-prefix-map[^ ]*//g' \
6106		-e 's/-pipe //' \
6107		-e 's/-W[^ ]*//g' \
6108		-e 's/-D_FORTIFY_SOURCE=.//g'`
6109            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
6110		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
6111			-e 's/-bE:perl.exp//' -e 's/-lc //'`
6112                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
6113		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
6114
6115                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
6116$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
6117      cflags_save=$CFLAGS
6118      libs_save=$LIBS
6119      ldflags_save=$LDFLAGS
6120      CFLAGS="$CFLAGS $perlcppflags"
6121      LIBS="$LIBS $perllibs"
6122      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
6123      LDFLAGS="$perlldflags $LDFLAGS"
6124      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125/* end confdefs.h.  */
6126
6127int
6128main ()
6129{
6130
6131  ;
6132  return 0;
6133}
6134_ACEOF
6135if ac_fn_c_try_link "$LINENO"; then :
6136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6137$as_echo "yes" >&6; }; perl_ok=yes
6138else
6139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
6140$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
6141fi
6142rm -f core conftest.err conftest.$ac_objext \
6143    conftest$ac_exeext conftest.$ac_ext
6144      CFLAGS=$cflags_save
6145      LIBS=$libs_save
6146      LDFLAGS=$ldflags_save
6147      if test $perl_ok = yes; then
6148	if test "X$perlcppflags" != "X"; then
6149	  PERL_CFLAGS=$perlcppflags
6150	fi
6151	if test "X$perlldflags" != "X"; then
6152	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
6153	    LDFLAGS="$perlldflags $LDFLAGS"
6154	  fi
6155	fi
6156	PERL_LIBS=$perllibs
6157	PERL_SRC="auto/if_perl.c if_perlsfio.c"
6158	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
6159	PERL_PRO="if_perl.pro if_perlsfio.pro"
6160	$as_echo "#define FEAT_PERL 1" >>confdefs.h
6161
6162      fi
6163     fi
6164    else
6165      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
6166$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
6167    fi
6168  fi
6169
6170  if test "x$MACOS_X" = "xyes"; then
6171        dir=/System/Library/Perl
6172    darwindir=$dir/darwin
6173    if test -d $darwindir; then
6174      PERL=/usr/bin/perl
6175    else
6176            dir=/System/Library/Perl/5.8.1
6177      darwindir=$dir/darwin-thread-multi-2level
6178      if test -d $darwindir; then
6179	PERL=/usr/bin/perl
6180      fi
6181    fi
6182    if test -n "$PERL"; then
6183      PERL_DIR="$dir"
6184      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
6185      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
6186      PERL_LIBS="-L$darwindir/CORE -lperl"
6187    fi
6188                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6189    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6190  fi
6191  if test "$enable_perlinterp" = "dynamic"; then
6192    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
6193      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
6194
6195      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
6196    fi
6197  fi
6198
6199  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
6200    as_fn_error $? "could not configure perl" "$LINENO" 5
6201  fi
6202fi
6203
6204
6205
6206
6207
6208
6209
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
6211$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
6212# Check whether --enable-pythoninterp was given.
6213if test "${enable_pythoninterp+set}" = set; then :
6214  enableval=$enable_pythoninterp;
6215else
6216  enable_pythoninterp="no"
6217fi
6218
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
6220$as_echo "$enable_pythoninterp" >&6; }
6221if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
6222  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6223    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6224  fi
6225
6226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5
6227$as_echo_n "checking --with-python-command argument... " >&6; }
6228
6229
6230# Check whether --with-python-command was given.
6231if test "${with_python_command+set}" = set; then :
6232  withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6233$as_echo "$vi_cv_path_python" >&6; }
6234else
6235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236$as_echo "no" >&6; }
6237fi
6238
6239
6240  if test "X$vi_cv_path_python" = "X"; then
6241    for ac_prog in python2 python
6242do
6243  # Extract the first word of "$ac_prog", so it can be a program name with args.
6244set dummy $ac_prog; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if ${ac_cv_path_vi_cv_path_python+:} false; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  case $vi_cv_path_python in
6251  [\\/]* | ?:[\\/]*)
6252  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
6253  ;;
6254  *)
6255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258  IFS=$as_save_IFS
6259  test -z "$as_dir" && as_dir=.
6260    for ac_exec_ext in '' $ac_executable_extensions; do
6261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
6263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264    break 2
6265  fi
6266done
6267  done
6268IFS=$as_save_IFS
6269
6270  ;;
6271esac
6272fi
6273vi_cv_path_python=$ac_cv_path_vi_cv_path_python
6274if test -n "$vi_cv_path_python"; then
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6276$as_echo "$vi_cv_path_python" >&6; }
6277else
6278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279$as_echo "no" >&6; }
6280fi
6281
6282
6283  test -n "$vi_cv_path_python" && break
6284done
6285
6286  fi
6287  if test "X$vi_cv_path_python" != "X"; then
6288
6289        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6290$as_echo_n "checking Python version... " >&6; }
6291if ${vi_cv_var_python_version+:} false; then :
6292  $as_echo_n "(cached) " >&6
6293else
6294  vi_cv_var_python_version=`
6295	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
6296
6297fi
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
6299$as_echo "$vi_cv_var_python_version" >&6; }
6300
6301        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
6302$as_echo_n "checking Python is 2.3 or better... " >&6; }
6303    if ${vi_cv_path_python} -c \
6304	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
6305    then
6306      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6307$as_echo "yep" >&6; }
6308
6309            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6310$as_echo_n "checking Python's install prefix... " >&6; }
6311if ${vi_cv_path_python_pfx+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314   vi_cv_path_python_pfx=`
6315	    ${vi_cv_path_python} -c \
6316		"import sys; print sys.prefix"`
6317fi
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
6319$as_echo "$vi_cv_path_python_pfx" >&6; }
6320
6321            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6322$as_echo_n "checking Python's execution prefix... " >&6; }
6323if ${vi_cv_path_python_epfx+:} false; then :
6324  $as_echo_n "(cached) " >&6
6325else
6326   vi_cv_path_python_epfx=`
6327	    ${vi_cv_path_python} -c \
6328		"import sys; print sys.exec_prefix"`
6329fi
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
6331$as_echo "$vi_cv_path_python_epfx" >&6; }
6332
6333
6334      if ${vi_cv_path_pythonpath+:} false; then :
6335  $as_echo_n "(cached) " >&6
6336else
6337   vi_cv_path_pythonpath=`
6338	    unset PYTHONPATH;
6339	    ${vi_cv_path_python} -c \
6340		"import sys, string; print string.join(sys.path,':')"`
6341fi
6342
6343
6344
6345
6346# Check whether --with-python-config-dir was given.
6347if test "${with_python_config_dir+set}" = set; then :
6348  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"; have_python_config_dir=1
6349fi
6350
6351
6352      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6353$as_echo_n "checking Python's configuration directory... " >&6; }
6354if ${vi_cv_path_python_conf+:} false; then :
6355  $as_echo_n "(cached) " >&6
6356else
6357
6358	vi_cv_path_python_conf=
6359	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
6360	if test -d "$d" && test -f "$d/config.c"; then
6361	  vi_cv_path_python_conf="$d"
6362	else
6363	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
6364	    for subdir in lib64 lib share; do
6365	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
6366	      if test -d "$d" && test -f "$d/config.c"; then
6367		vi_cv_path_python_conf="$d"
6368	      fi
6369	    done
6370	  done
6371	fi
6372
6373fi
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
6375$as_echo "$vi_cv_path_python_conf" >&6; }
6376
6377      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
6378
6379      if test "X$PYTHON_CONFDIR" = "X"; then
6380	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6381$as_echo "can't find it!" >&6; }
6382      else
6383
6384			if ${vi_cv_path_python_plibs+:} false; then :
6385  $as_echo_n "(cached) " >&6
6386else
6387
6388	    pwd=`pwd`
6389	    tmp_mkf="$pwd/config-PyMake$$"
6390	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6391__:
6392	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
6393	@echo "python_LIBS='$(LIBS)'"
6394	@echo "python_SYSLIBS='$(SYSLIBS)'"
6395	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
6396	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
6397	@echo "python_INSTSONAME='$(INSTSONAME)'"
6398	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
6399	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
6400	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
6401eof
6402	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6403	    rm -f -- "${tmp_mkf}"
6404	    if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
6405		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
6406	      vi_cv_path_python_plibs="-framework Python"
6407	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6408		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
6409	      fi
6410	    else
6411	      vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
6412	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6413	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
6414		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
6415	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6416	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
6417		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6418		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
6419	            	            		  fi
6420	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
6421	        fi
6422	      fi
6423	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
6424	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
6425	    fi
6426
6427fi
6428
6429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
6430$as_echo_n "checking Python's dll name... " >&6; }
6431if ${vi_cv_dll_name_python+:} false; then :
6432  $as_echo_n "(cached) " >&6
6433else
6434
6435	  if test "X$python_DLLLIBRARY" != "X"; then
6436	    vi_cv_dll_name_python="$python_DLLLIBRARY"
6437	  else
6438	    vi_cv_dll_name_python="$python_INSTSONAME"
6439	  fi
6440
6441fi
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
6443$as_echo "$vi_cv_dll_name_python" >&6; }
6444
6445	PYTHON_LIBS="${vi_cv_path_python_plibs}"
6446	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
6447	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
6448	else
6449	  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}"
6450	fi
6451	if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then
6452	  	  PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6453
6454	fi
6455	PYTHON_SRC="if_python.c"
6456	PYTHON_OBJ="objects/if_python.o"
6457
6458								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6459$as_echo_n "checking if -pthread should be used... " >&6; }
6460	threadsafe_flag=
6461	thread_lib=
6462	        if test "`(uname) 2>/dev/null`" != Darwin; then
6463	  test "$GCC" = yes && threadsafe_flag="-pthread"
6464	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
6465	    threadsafe_flag="-D_THREAD_SAFE"
6466	    thread_lib="-pthread"
6467	  fi
6468	  if test "`(uname) 2>/dev/null`" = SunOS; then
6469	    threadsafe_flag="-pthreads"
6470	  fi
6471	fi
6472	libs_save_old=$LIBS
6473	if test -n "$threadsafe_flag"; then
6474	  cflags_save=$CFLAGS
6475	  CFLAGS="$CFLAGS $threadsafe_flag"
6476	  LIBS="$LIBS $thread_lib"
6477	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478/* end confdefs.h.  */
6479
6480int
6481main ()
6482{
6483
6484  ;
6485  return 0;
6486}
6487_ACEOF
6488if ac_fn_c_try_link "$LINENO"; then :
6489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6490$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
6491else
6492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493$as_echo "no" >&6; }; LIBS=$libs_save_old
6494
6495fi
6496rm -f core conftest.err conftest.$ac_objext \
6497    conftest$ac_exeext conftest.$ac_ext
6498	  CFLAGS=$cflags_save
6499	else
6500	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501$as_echo "no" >&6; }
6502	fi
6503
6504			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6505$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6506	cflags_save=$CFLAGS
6507	libs_save=$LIBS
6508	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6509	LIBS="$LIBS $PYTHON_LIBS"
6510	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511/* end confdefs.h.  */
6512
6513int
6514main ()
6515{
6516
6517  ;
6518  return 0;
6519}
6520_ACEOF
6521if ac_fn_c_try_link "$LINENO"; then :
6522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6523$as_echo "yes" >&6; }; python_ok=yes
6524else
6525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6526$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6527fi
6528rm -f core conftest.err conftest.$ac_objext \
6529    conftest$ac_exeext conftest.$ac_ext
6530	CFLAGS=$cflags_save
6531	LIBS=$libs_save
6532	if test $python_ok = yes; then
6533	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6534
6535	else
6536	  LIBS=$libs_save_old
6537	  PYTHON_SRC=
6538	  PYTHON_OBJ=
6539	  PYTHON_LIBS=
6540	  PYTHON_CFLAGS=
6541	fi
6542      fi
6543    else
6544      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6545$as_echo "too old" >&6; }
6546    fi
6547  fi
6548
6549  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6550    as_fn_error $? "could not configure python" "$LINENO" 5
6551  fi
6552fi
6553
6554
6555
6556
6557
6558
6559
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6561$as_echo_n "checking --enable-python3interp argument... " >&6; }
6562# Check whether --enable-python3interp was given.
6563if test "${enable_python3interp+set}" = set; then :
6564  enableval=$enable_python3interp;
6565else
6566  enable_python3interp="no"
6567fi
6568
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6570$as_echo "$enable_python3interp" >&6; }
6571if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6572  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6573    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6574  fi
6575
6576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5
6577$as_echo_n "checking --with-python3-command argument... " >&6; }
6578
6579
6580# Check whether --with-python3-command was given.
6581if test "${with_python3_command+set}" = set; then :
6582  withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6583$as_echo "$vi_cv_path_python3" >&6; }
6584else
6585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586$as_echo "no" >&6; }
6587fi
6588
6589
6590  if test "X$vi_cv_path_python3" = "X"; then
6591    for ac_prog in python3 python
6592do
6593  # Extract the first word of "$ac_prog", so it can be a program name with args.
6594set dummy $ac_prog; ac_word=$2
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596$as_echo_n "checking for $ac_word... " >&6; }
6597if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6598  $as_echo_n "(cached) " >&6
6599else
6600  case $vi_cv_path_python3 in
6601  [\\/]* | ?:[\\/]*)
6602  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6603  ;;
6604  *)
6605  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608  IFS=$as_save_IFS
6609  test -z "$as_dir" && as_dir=.
6610    for ac_exec_ext in '' $ac_executable_extensions; do
6611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614    break 2
6615  fi
6616done
6617  done
6618IFS=$as_save_IFS
6619
6620  ;;
6621esac
6622fi
6623vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6624if test -n "$vi_cv_path_python3"; then
6625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6626$as_echo "$vi_cv_path_python3" >&6; }
6627else
6628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629$as_echo "no" >&6; }
6630fi
6631
6632
6633  test -n "$vi_cv_path_python3" && break
6634done
6635
6636  fi
6637  if test "X$vi_cv_path_python3" != "X"; then
6638
6639        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6640$as_echo_n "checking Python version... " >&6; }
6641if ${vi_cv_var_python3_version+:} false; then :
6642  $as_echo_n "(cached) " >&6
6643else
6644  vi_cv_var_python3_version=`
6645          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6646
6647fi
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6649$as_echo "$vi_cv_var_python3_version" >&6; }
6650
6651        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6652$as_echo_n "checking Python is 3.0 or better... " >&6; }
6653    if ${vi_cv_path_python3} -c \
6654      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6655    then
6656      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6657$as_echo "yep" >&6; }
6658
6659            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6660$as_echo_n "checking Python's abiflags... " >&6; }
6661if ${vi_cv_var_python3_abiflags+:} false; then :
6662  $as_echo_n "(cached) " >&6
6663else
6664
6665       vi_cv_var_python3_abiflags=
6666       if ${vi_cv_path_python3} -c \
6667           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6668       then
6669         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6670           "import sys; print(sys.abiflags)"`
6671       fi
6672fi
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6674$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6675
6676            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6677$as_echo_n "checking Python's install prefix... " >&6; }
6678if ${vi_cv_path_python3_pfx+:} false; then :
6679  $as_echo_n "(cached) " >&6
6680else
6681   vi_cv_path_python3_pfx=`
6682       ${vi_cv_path_python3} -c \
6683       "import sys; print(sys.prefix)"`
6684fi
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6686$as_echo "$vi_cv_path_python3_pfx" >&6; }
6687
6688            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6689$as_echo_n "checking Python's execution prefix... " >&6; }
6690if ${vi_cv_path_python3_epfx+:} false; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693   vi_cv_path_python3_epfx=`
6694       ${vi_cv_path_python3} -c \
6695       "import sys; print(sys.exec_prefix)"`
6696fi
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6698$as_echo "$vi_cv_path_python3_epfx" >&6; }
6699
6700
6701      if ${vi_cv_path_python3path+:} false; then :
6702  $as_echo_n "(cached) " >&6
6703else
6704   vi_cv_path_python3path=`
6705       unset PYTHONPATH;
6706       ${vi_cv_path_python3} -c \
6707       "import sys, string; print(':'.join(sys.path))"`
6708fi
6709
6710
6711
6712
6713# Check whether --with-python3-config-dir was given.
6714if test "${with_python3_config_dir+set}" = set; then :
6715  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1
6716fi
6717
6718
6719      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6720$as_echo_n "checking Python's configuration directory... " >&6; }
6721if ${vi_cv_path_python3_conf+:} false; then :
6722  $as_echo_n "(cached) " >&6
6723else
6724
6725       vi_cv_path_python3_conf=
6726       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6727       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6728       if test -d "$d" && test -f "$d/config.c"; then
6729         vi_cv_path_python3_conf="$d"
6730       else
6731         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6732	   for subdir in lib64 lib share; do
6733	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6734	     if test -d "$d" && test -f "$d/config.c"; then
6735	       vi_cv_path_python3_conf="$d"
6736	     fi
6737	   done
6738         done
6739       fi
6740
6741fi
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6743$as_echo "$vi_cv_path_python3_conf" >&6; }
6744
6745      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6746
6747      if test "X$PYTHON3_CONFDIR" = "X"; then
6748        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6749$as_echo "can't find it!" >&6; }
6750      else
6751
6752                        if ${vi_cv_path_python3_plibs+:} false; then :
6753  $as_echo_n "(cached) " >&6
6754else
6755
6756            pwd=`pwd`
6757            tmp_mkf="$pwd/config-PyMake$$"
6758            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6759__:
6760	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6761	@echo "python3_LIBS='$(LIBS)'"
6762	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6763	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6764	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6765eof
6766	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6767	    rm -f -- "${tmp_mkf}"
6768	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6769	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6770	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6771	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6772
6773fi
6774
6775	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
6776$as_echo_n "checking Python3's dll name... " >&6; }
6777if ${vi_cv_dll_name_python3+:} false; then :
6778  $as_echo_n "(cached) " >&6
6779else
6780
6781	  if test "X$python3_DLLLIBRARY" != "X"; then
6782	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6783	  else
6784	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6785	  fi
6786
6787fi
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
6789$as_echo "$vi_cv_dll_name_python3" >&6; }
6790
6791        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6792        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6793          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6794        else
6795          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}"
6796        fi
6797	if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then
6798	  	  PYTHON3_CFLAGS="${PYTHON3_CFLAGS}  -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6799	fi
6800        PYTHON3_SRC="if_python3.c"
6801        PYTHON3_OBJ="objects/if_python3.o"
6802
6803                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6804$as_echo_n "checking if -pthread should be used... " >&6; }
6805        threadsafe_flag=
6806        thread_lib=
6807                if test "`(uname) 2>/dev/null`" != Darwin; then
6808          test "$GCC" = yes && threadsafe_flag="-pthread"
6809          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6810            threadsafe_flag="-D_THREAD_SAFE"
6811            thread_lib="-pthread"
6812          fi
6813          if test "`(uname) 2>/dev/null`" = SunOS; then
6814            threadsafe_flag="-pthreads"
6815          fi
6816        fi
6817        libs_save_old=$LIBS
6818        if test -n "$threadsafe_flag"; then
6819          cflags_save=$CFLAGS
6820          CFLAGS="$CFLAGS $threadsafe_flag"
6821          LIBS="$LIBS $thread_lib"
6822          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823/* end confdefs.h.  */
6824
6825int
6826main ()
6827{
6828
6829  ;
6830  return 0;
6831}
6832_ACEOF
6833if ac_fn_c_try_link "$LINENO"; then :
6834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6835$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6836else
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838$as_echo "no" >&6; }; LIBS=$libs_save_old
6839
6840fi
6841rm -f core conftest.err conftest.$ac_objext \
6842    conftest$ac_exeext conftest.$ac_ext
6843          CFLAGS=$cflags_save
6844        else
6845          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846$as_echo "no" >&6; }
6847        fi
6848
6849                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6850$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6851        cflags_save=$CFLAGS
6852        libs_save=$LIBS
6853        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6854        LIBS="$LIBS $PYTHON3_LIBS"
6855        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856/* end confdefs.h.  */
6857
6858int
6859main ()
6860{
6861
6862  ;
6863  return 0;
6864}
6865_ACEOF
6866if ac_fn_c_try_link "$LINENO"; then :
6867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6868$as_echo "yes" >&6; }; python3_ok=yes
6869else
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6871$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6872fi
6873rm -f core conftest.err conftest.$ac_objext \
6874    conftest$ac_exeext conftest.$ac_ext
6875        CFLAGS=$cflags_save
6876        LIBS=$libs_save
6877        if test "$python3_ok" = yes; then
6878          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6879
6880        else
6881          LIBS=$libs_save_old
6882          PYTHON3_SRC=
6883          PYTHON3_OBJ=
6884          PYTHON3_LIBS=
6885          PYTHON3_CFLAGS=
6886        fi
6887      fi
6888    else
6889      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6890$as_echo "too old" >&6; }
6891    fi
6892  fi
6893  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6894    as_fn_error $? "could not configure python3" "$LINENO" 5
6895  fi
6896fi
6897
6898
6899
6900
6901
6902
6903if test "$python_ok" = yes && test "$python3_ok" = yes; then
6904  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6905
6906  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6907
6908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6909$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6910  cflags_save=$CFLAGS
6911  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6912  libs_save=$LIBS
6913    LIBS="-ldl $LIBS"
6914  if test "$cross_compiling" = yes; then :
6915  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6917as_fn_error $? "cannot run test program while cross compiling
6918See \`config.log' for more details" "$LINENO" 5; }
6919else
6920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h.  */
6922
6923    #include <dlfcn.h>
6924    /* If this program fails, then RTLD_GLOBAL is needed.
6925     * RTLD_GLOBAL will be used and then it is not possible to
6926     * have both python versions enabled in the same vim instance.
6927     * Only the first python version used will be switched on.
6928     */
6929
6930    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6931    {
6932      int needed = 0;
6933      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6934      if (pylib != 0)
6935      {
6936          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6937          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6938          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6939          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6940          (*pfx)(prefix);
6941          (*init)();
6942          needed = (*simple)("import termios") == -1;
6943          (*final)();
6944          dlclose(pylib);
6945      }
6946      return !needed;
6947    }
6948
6949    int main(int argc, char** argv)
6950    {
6951      int not_needed = 0;
6952      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6953            not_needed = 1;
6954      return !not_needed;
6955    }
6956_ACEOF
6957if ac_fn_c_try_run "$LINENO"; then :
6958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6959$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6960
6961else
6962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963$as_echo "no" >&6; }
6964fi
6965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6966  conftest.$ac_objext conftest.beam conftest.$ac_ext
6967fi
6968
6969
6970  CFLAGS=$cflags_save
6971  LIBS=$libs_save
6972
6973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
6974$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
6975  cflags_save=$CFLAGS
6976  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6977  libs_save=$LIBS
6978    LIBS="-ldl $LIBS"
6979  if test "$cross_compiling" = yes; then :
6980  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6982as_fn_error $? "cannot run test program while cross compiling
6983See \`config.log' for more details" "$LINENO" 5; }
6984else
6985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986/* end confdefs.h.  */
6987
6988    #include <dlfcn.h>
6989    #include <wchar.h>
6990    /* If this program fails, then RTLD_GLOBAL is needed.
6991     * RTLD_GLOBAL will be used and then it is not possible to
6992     * have both python versions enabled in the same vim instance.
6993     * Only the first python version used will be switched on.
6994     */
6995
6996    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
6997    {
6998      int needed = 0;
6999      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
7000      if (pylib != 0)
7001      {
7002          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
7003          void (*init)(void) = dlsym(pylib, "Py_Initialize");
7004          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
7005          void (*final)(void) = dlsym(pylib, "Py_Finalize");
7006          (*pfx)(prefix);
7007          (*init)();
7008          needed = (*simple)("import termios") == -1;
7009          (*final)();
7010          dlclose(pylib);
7011      }
7012      return !needed;
7013    }
7014
7015    int main(int argc, char** argv)
7016    {
7017      int not_needed = 0;
7018      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
7019            not_needed = 1;
7020      return !not_needed;
7021    }
7022_ACEOF
7023if ac_fn_c_try_run "$LINENO"; then :
7024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7025$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
7026
7027else
7028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029$as_echo "no" >&6; }
7030fi
7031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7032  conftest.$ac_objext conftest.beam conftest.$ac_ext
7033fi
7034
7035
7036  CFLAGS=$cflags_save
7037  LIBS=$libs_save
7038
7039  PYTHON_SRC="if_python.c"
7040  PYTHON_OBJ="objects/if_python.o"
7041  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7042  PYTHON_LIBS=
7043  PYTHON3_SRC="if_python3.c"
7044  PYTHON3_OBJ="objects/if_python3.o"
7045  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7046  PYTHON3_LIBS=
7047elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
7048  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
7049
7050  PYTHON_SRC="if_python.c"
7051  PYTHON_OBJ="objects/if_python.o"
7052  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7053  PYTHON_LIBS=
7054elif test "$python_ok" = yes; then
7055      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
7056$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
7057  cflags_save=$CFLAGS
7058  libs_save=$LIBS
7059  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
7060  LIBS="$LIBS $PYTHON_LIBS"
7061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062/* end confdefs.h.  */
7063
7064int
7065main ()
7066{
7067
7068  ;
7069  return 0;
7070}
7071_ACEOF
7072if ac_fn_c_try_link "$LINENO"; then :
7073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7074$as_echo "yes" >&6; }; fpie_ok=yes
7075else
7076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077$as_echo "no" >&6; }; fpie_ok=no
7078fi
7079rm -f core conftest.err conftest.$ac_objext \
7080    conftest$ac_exeext conftest.$ac_ext
7081  CFLAGS=$cflags_save
7082  LIBS=$libs_save
7083  if test $fpie_ok = yes; then
7084    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
7085  fi
7086elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
7087  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
7088
7089  PYTHON3_SRC="if_python3.c"
7090  PYTHON3_OBJ="objects/if_python3.o"
7091  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7092  PYTHON3_LIBS=
7093elif test "$python3_ok" = yes; then
7094      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
7095$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
7096  cflags_save=$CFLAGS
7097  libs_save=$LIBS
7098  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
7099  LIBS="$LIBS $PYTHON3_LIBS"
7100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101/* end confdefs.h.  */
7102
7103int
7104main ()
7105{
7106
7107  ;
7108  return 0;
7109}
7110_ACEOF
7111if ac_fn_c_try_link "$LINENO"; then :
7112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113$as_echo "yes" >&6; }; fpie_ok=yes
7114else
7115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116$as_echo "no" >&6; }; fpie_ok=no
7117fi
7118rm -f core conftest.err conftest.$ac_objext \
7119    conftest$ac_exeext conftest.$ac_ext
7120  CFLAGS=$cflags_save
7121  LIBS=$libs_save
7122  if test $fpie_ok = yes; then
7123    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
7124  fi
7125fi
7126
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
7128$as_echo_n "checking --enable-tclinterp argument... " >&6; }
7129# Check whether --enable-tclinterp was given.
7130if test "${enable_tclinterp+set}" = set; then :
7131  enableval=$enable_tclinterp;
7132else
7133  enable_tclinterp="no"
7134fi
7135
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
7137$as_echo "$enable_tclinterp" >&6; }
7138
7139if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then
7140
7141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
7142$as_echo_n "checking --with-tclsh argument... " >&6; }
7143
7144# Check whether --with-tclsh was given.
7145if test "${with_tclsh+set}" = set; then :
7146  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
7147$as_echo "$tclsh_name" >&6; }
7148else
7149  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150$as_echo "no" >&6; }
7151fi
7152
7153  # Extract the first word of "$tclsh_name", so it can be a program name with args.
7154set dummy $tclsh_name; ac_word=$2
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156$as_echo_n "checking for $ac_word... " >&6; }
7157if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  case $vi_cv_path_tcl in
7161  [\\/]* | ?:[\\/]*)
7162  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7163  ;;
7164  *)
7165  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168  IFS=$as_save_IFS
7169  test -z "$as_dir" && as_dir=.
7170    for ac_exec_ext in '' $ac_executable_extensions; do
7171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7174    break 2
7175  fi
7176done
7177  done
7178IFS=$as_save_IFS
7179
7180  ;;
7181esac
7182fi
7183vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7184if test -n "$vi_cv_path_tcl"; then
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7186$as_echo "$vi_cv_path_tcl" >&6; }
7187else
7188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189$as_echo "no" >&6; }
7190fi
7191
7192
7193
7194
7195    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
7196    tclsh_name="tclsh8.4"
7197    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7198set dummy $tclsh_name; ac_word=$2
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200$as_echo_n "checking for $ac_word... " >&6; }
7201if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7202  $as_echo_n "(cached) " >&6
7203else
7204  case $vi_cv_path_tcl in
7205  [\\/]* | ?:[\\/]*)
7206  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7207  ;;
7208  *)
7209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212  IFS=$as_save_IFS
7213  test -z "$as_dir" && as_dir=.
7214    for ac_exec_ext in '' $ac_executable_extensions; do
7215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218    break 2
7219  fi
7220done
7221  done
7222IFS=$as_save_IFS
7223
7224  ;;
7225esac
7226fi
7227vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7228if test -n "$vi_cv_path_tcl"; then
7229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7230$as_echo "$vi_cv_path_tcl" >&6; }
7231else
7232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233$as_echo "no" >&6; }
7234fi
7235
7236
7237  fi
7238  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
7239    tclsh_name="tclsh8.2"
7240    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7241set dummy $tclsh_name; ac_word=$2
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243$as_echo_n "checking for $ac_word... " >&6; }
7244if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7245  $as_echo_n "(cached) " >&6
7246else
7247  case $vi_cv_path_tcl in
7248  [\\/]* | ?:[\\/]*)
7249  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7250  ;;
7251  *)
7252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255  IFS=$as_save_IFS
7256  test -z "$as_dir" && as_dir=.
7257    for ac_exec_ext in '' $ac_executable_extensions; do
7258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261    break 2
7262  fi
7263done
7264  done
7265IFS=$as_save_IFS
7266
7267  ;;
7268esac
7269fi
7270vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7271if test -n "$vi_cv_path_tcl"; then
7272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7273$as_echo "$vi_cv_path_tcl" >&6; }
7274else
7275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276$as_echo "no" >&6; }
7277fi
7278
7279
7280  fi
7281  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
7282    tclsh_name="tclsh8.0"
7283    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7284set dummy $tclsh_name; ac_word=$2
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286$as_echo_n "checking for $ac_word... " >&6; }
7287if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7288  $as_echo_n "(cached) " >&6
7289else
7290  case $vi_cv_path_tcl in
7291  [\\/]* | ?:[\\/]*)
7292  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7293  ;;
7294  *)
7295  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298  IFS=$as_save_IFS
7299  test -z "$as_dir" && as_dir=.
7300    for ac_exec_ext in '' $ac_executable_extensions; do
7301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304    break 2
7305  fi
7306done
7307  done
7308IFS=$as_save_IFS
7309
7310  ;;
7311esac
7312fi
7313vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7314if test -n "$vi_cv_path_tcl"; then
7315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7316$as_echo "$vi_cv_path_tcl" >&6; }
7317else
7318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319$as_echo "no" >&6; }
7320fi
7321
7322
7323  fi
7324    if test "X$vi_cv_path_tcl" = "X"; then
7325    tclsh_name="tclsh"
7326    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7327set dummy $tclsh_name; ac_word=$2
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329$as_echo_n "checking for $ac_word... " >&6; }
7330if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7331  $as_echo_n "(cached) " >&6
7332else
7333  case $vi_cv_path_tcl in
7334  [\\/]* | ?:[\\/]*)
7335  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7336  ;;
7337  *)
7338  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341  IFS=$as_save_IFS
7342  test -z "$as_dir" && as_dir=.
7343    for ac_exec_ext in '' $ac_executable_extensions; do
7344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347    break 2
7348  fi
7349done
7350  done
7351IFS=$as_save_IFS
7352
7353  ;;
7354esac
7355fi
7356vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7357if test -n "$vi_cv_path_tcl"; then
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7359$as_echo "$vi_cv_path_tcl" >&6; }
7360else
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362$as_echo "no" >&6; }
7363fi
7364
7365
7366  fi
7367  if test "X$vi_cv_path_tcl" != "X"; then
7368    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
7369$as_echo_n "checking Tcl version... " >&6; }
7370    if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then
7371      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
7372      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
7373$as_echo "$tclver - OK" >&6; };
7374      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 -`
7375      tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
7376
7377      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
7378$as_echo_n "checking for location of Tcl include... " >&6; }
7379      if test "x$MACOS_X" != "xyes"; then
7380	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
7381      else
7382		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
7383      fi
7384      TCL_INC=
7385      for try in $tclinc; do
7386	if test -f "$try/tcl.h"; then
7387	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
7388$as_echo "$try/tcl.h" >&6; }
7389	  TCL_INC=$try
7390	  break
7391	fi
7392      done
7393      if test -z "$TCL_INC"; then
7394	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7395$as_echo "<not found>" >&6; }
7396	SKIP_TCL=YES
7397      fi
7398      if test -z "$SKIP_TCL"; then
7399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
7400$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
7401	if test "x$MACOS_X" != "xyes"; then
7402	  tclcnf=`echo $tclinc | sed s/include/lib/g`
7403	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
7404	else
7405	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
7406	fi
7407	for try in $tclcnf; do
7408	  if test -f "$try/tclConfig.sh"; then
7409	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
7410$as_echo "$try/tclConfig.sh" >&6; }
7411	    . "$try/tclConfig.sh"
7412	    	    if test "$enable_tclinterp" = "dynamic"; then
7413	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7414	    else
7415	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7416	    fi
7417	    	    	    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'`
7418	    break
7419	  fi
7420	done
7421	if test -z "$TCL_LIBS"; then
7422	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7423$as_echo "<not found>" >&6; }
7424	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7425$as_echo_n "checking for Tcl library by myself... " >&6; }
7426	  tcllib=`echo $tclinc | sed s/include/lib/g`
7427	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7428	  for ext in .so .a ; do
7429	    for ver in "" $tclver ; do
7430	      for try in $tcllib ; do
7431		trylib=tcl$ver$ext
7432		if test -f "$try/lib$trylib" ; then
7433		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7434$as_echo "$try/lib$trylib" >&6; }
7435		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7436		  if test "`(uname) 2>/dev/null`" = SunOS &&
7437					 uname -r | grep '^5' >/dev/null; then
7438		    TCL_LIBS="$TCL_LIBS -R $try"
7439		  fi
7440		  break 3
7441		fi
7442	      done
7443	    done
7444	  done
7445	  if test -z "$TCL_LIBS"; then
7446	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7447$as_echo "<not found>" >&6; }
7448	    SKIP_TCL=YES
7449	  fi
7450	fi
7451	if test -z "$SKIP_TCL"; then
7452	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7453
7454	  TCL_SRC=if_tcl.c
7455	  TCL_OBJ=objects/if_tcl.o
7456	  TCL_PRO=if_tcl.pro
7457	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7458	fi
7459      fi
7460    else
7461      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7462$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7463    fi
7464  fi
7465  if test "$enable_tclinterp" = "dynamic"; then
7466    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7467      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7468
7469      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7470    fi
7471  fi
7472  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7473    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7474  fi
7475fi
7476
7477
7478
7479
7480
7481
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7483$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7484# Check whether --enable-rubyinterp was given.
7485if test "${enable_rubyinterp+set}" = set; then :
7486  enableval=$enable_rubyinterp;
7487else
7488  enable_rubyinterp="no"
7489fi
7490
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7492$as_echo "$enable_rubyinterp" >&6; }
7493if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7494  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7495    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7496  fi
7497
7498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7499$as_echo_n "checking --with-ruby-command argument... " >&6; }
7500
7501
7502# Check whether --with-ruby-command was given.
7503if test "${with_ruby_command+set}" = set; then :
7504  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7505$as_echo "$RUBY_CMD" >&6; }
7506else
7507  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7508$as_echo "defaulting to $RUBY_CMD" >&6; }
7509fi
7510
7511  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7512set dummy $RUBY_CMD; ac_word=$2
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514$as_echo_n "checking for $ac_word... " >&6; }
7515if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7516  $as_echo_n "(cached) " >&6
7517else
7518  case $vi_cv_path_ruby in
7519  [\\/]* | ?:[\\/]*)
7520  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7521  ;;
7522  *)
7523  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526  IFS=$as_save_IFS
7527  test -z "$as_dir" && as_dir=.
7528    for ac_exec_ext in '' $ac_executable_extensions; do
7529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532    break 2
7533  fi
7534done
7535  done
7536IFS=$as_save_IFS
7537
7538  ;;
7539esac
7540fi
7541vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7542if test -n "$vi_cv_path_ruby"; then
7543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7544$as_echo "$vi_cv_path_ruby" >&6; }
7545else
7546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547$as_echo "no" >&6; }
7548fi
7549
7550
7551  if test "X$vi_cv_path_ruby" != "X"; then
7552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7553$as_echo_n "checking Ruby version... " >&6; }
7554    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7555      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7556$as_echo "OK" >&6; }
7557      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7558$as_echo_n "checking Ruby rbconfig... " >&6; }
7559      ruby_rbconfig="RbConfig"
7560      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7561	ruby_rbconfig="Config"
7562      fi
7563      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7564$as_echo "$ruby_rbconfig" >&6; }
7565      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7566$as_echo_n "checking Ruby header files... " >&6; }
7567      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7568      if test "X$rubyhdrdir" != "X"; then
7569	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7570$as_echo "$rubyhdrdir" >&6; }
7571	RUBY_CFLAGS="-I$rubyhdrdir"
7572        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7573        if test -d "$rubyarchdir"; then
7574          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7575        fi
7576        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7577	if test "X$rubyversion" = "X"; then
7578	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7579	fi
7580        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7581	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7582	if test "X$rubylibs" != "X"; then
7583	  RUBY_LIBS="$rubylibs"
7584	fi
7585	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7586	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7587	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7588	if test -f "$rubylibdir/$librubya"; then
7589	  librubyarg="$librubyarg"
7590	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7591	elif test "$librubyarg" = "libruby.a"; then
7592	  	  librubyarg="-lruby"
7593	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7594	fi
7595
7596	if test "X$librubyarg" != "X"; then
7597	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7598	fi
7599	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7600	if test "X$rubyldflags" != "X"; then
7601	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7602	  if test "X$rubyldflags" != "X"; then
7603	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7604	      LDFLAGS="$rubyldflags $LDFLAGS"
7605	    fi
7606	  fi
7607	fi
7608	RUBY_SRC="if_ruby.c"
7609	RUBY_OBJ="objects/if_ruby.o"
7610	RUBY_PRO="if_ruby.pro"
7611	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7612
7613	if test "$enable_rubyinterp" = "dynamic"; then
7614	  libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"`
7615	  if test -z "$libruby_soname"; then
7616	    libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"`
7617	  fi
7618	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7619
7620	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
7621	  RUBY_LIBS=
7622	fi
7623      else
7624	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7625$as_echo "not found; disabling Ruby" >&6; }
7626      fi
7627    else
7628      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7629$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7630    fi
7631  fi
7632
7633  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7634    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7635  fi
7636fi
7637
7638
7639
7640
7641
7642
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7644$as_echo_n "checking --enable-cscope argument... " >&6; }
7645# Check whether --enable-cscope was given.
7646if test "${enable_cscope+set}" = set; then :
7647  enableval=$enable_cscope;
7648else
7649  enable_cscope="no"
7650fi
7651
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7653$as_echo "$enable_cscope" >&6; }
7654if test "$enable_cscope" = "yes"; then
7655  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7656
7657fi
7658
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
7660$as_echo_n "checking --enable-workshop argument... " >&6; }
7661# Check whether --enable-workshop was given.
7662if test "${enable_workshop+set}" = set; then :
7663  enableval=$enable_workshop;
7664else
7665  enable_workshop="no"
7666fi
7667
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
7669$as_echo "$enable_workshop" >&6; }
7670if test "$enable_workshop" = "yes"; then
7671  $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
7672
7673  WORKSHOP_SRC="workshop.c integration.c"
7674
7675  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
7676
7677  if test "${enable_gui-xxx}" = xxx; then
7678    enable_gui=motif
7679  fi
7680fi
7681
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7683$as_echo_n "checking --disable-netbeans argument... " >&6; }
7684# Check whether --enable-netbeans was given.
7685if test "${enable_netbeans+set}" = set; then :
7686  enableval=$enable_netbeans;
7687else
7688  enable_netbeans="yes"
7689fi
7690
7691if test "$enable_netbeans" = "yes"; then
7692  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7694$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7695    enable_netbeans="no"
7696  else
7697    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698$as_echo "no" >&6; }
7699  fi
7700else
7701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7702$as_echo "yes" >&6; }
7703fi
7704
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7706$as_echo_n "checking --disable-channel argument... " >&6; }
7707# Check whether --enable-channel was given.
7708if test "${enable_channel+set}" = set; then :
7709  enableval=$enable_channel;
7710else
7711  enable_channel="yes"
7712fi
7713
7714if test "$enable_channel" = "yes"; then
7715  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7716    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7717$as_echo "cannot use channels with tiny or small features" >&6; }
7718    enable_channel="no"
7719  else
7720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721$as_echo "no" >&6; }
7722  fi
7723else
7724  if test "$enable_netbeans" = "yes"; then
7725    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7726$as_echo "yes, netbeans also disabled" >&6; }
7727    enable_netbeans="no"
7728  else
7729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7730$as_echo "yes" >&6; }
7731  fi
7732fi
7733
7734if test "$enable_channel" = "yes"; then
7735    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7736$as_echo_n "checking for socket in -lsocket... " >&6; }
7737if ${ac_cv_lib_socket_socket+:} false; then :
7738  $as_echo_n "(cached) " >&6
7739else
7740  ac_check_lib_save_LIBS=$LIBS
7741LIBS="-lsocket  $LIBS"
7742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743/* end confdefs.h.  */
7744
7745/* Override any GCC internal prototype to avoid an error.
7746   Use char because int might match the return type of a GCC
7747   builtin and then its argument prototype would still apply.  */
7748#ifdef __cplusplus
7749extern "C"
7750#endif
7751char socket ();
7752int
7753main ()
7754{
7755return socket ();
7756  ;
7757  return 0;
7758}
7759_ACEOF
7760if ac_fn_c_try_link "$LINENO"; then :
7761  ac_cv_lib_socket_socket=yes
7762else
7763  ac_cv_lib_socket_socket=no
7764fi
7765rm -f core conftest.err conftest.$ac_objext \
7766    conftest$ac_exeext conftest.$ac_ext
7767LIBS=$ac_check_lib_save_LIBS
7768fi
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7770$as_echo "$ac_cv_lib_socket_socket" >&6; }
7771if test "x$ac_cv_lib_socket_socket" = xyes; then :
7772  cat >>confdefs.h <<_ACEOF
7773#define HAVE_LIBSOCKET 1
7774_ACEOF
7775
7776  LIBS="-lsocket $LIBS"
7777
7778fi
7779
7780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7781$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7782if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7783  $as_echo_n "(cached) " >&6
7784else
7785  ac_check_lib_save_LIBS=$LIBS
7786LIBS="-lnsl  $LIBS"
7787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788/* end confdefs.h.  */
7789
7790/* Override any GCC internal prototype to avoid an error.
7791   Use char because int might match the return type of a GCC
7792   builtin and then its argument prototype would still apply.  */
7793#ifdef __cplusplus
7794extern "C"
7795#endif
7796char gethostbyname ();
7797int
7798main ()
7799{
7800return gethostbyname ();
7801  ;
7802  return 0;
7803}
7804_ACEOF
7805if ac_fn_c_try_link "$LINENO"; then :
7806  ac_cv_lib_nsl_gethostbyname=yes
7807else
7808  ac_cv_lib_nsl_gethostbyname=no
7809fi
7810rm -f core conftest.err conftest.$ac_objext \
7811    conftest$ac_exeext conftest.$ac_ext
7812LIBS=$ac_check_lib_save_LIBS
7813fi
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7815$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7816if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7817  cat >>confdefs.h <<_ACEOF
7818#define HAVE_LIBNSL 1
7819_ACEOF
7820
7821  LIBS="-lnsl $LIBS"
7822
7823fi
7824
7825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5
7826$as_echo_n "checking whether compiling with process communication is possible... " >&6; }
7827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h.  */
7829
7830#include <stdio.h>
7831#include <stdlib.h>
7832#include <stdarg.h>
7833#include <fcntl.h>
7834#include <netdb.h>
7835#include <netinet/in.h>
7836#include <errno.h>
7837#include <sys/types.h>
7838#include <sys/socket.h>
7839	/* Check bitfields */
7840	struct nbbuf {
7841	unsigned int  initDone:1;
7842	unsigned short signmaplen;
7843	};
7844
7845int
7846main ()
7847{
7848
7849		/* Check creating a socket. */
7850		struct sockaddr_in server;
7851		(void)socket(AF_INET, SOCK_STREAM, 0);
7852		(void)htons(100);
7853		(void)gethostbyname("microsoft.com");
7854		if (errno == ECONNREFUSED)
7855		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7856
7857  ;
7858  return 0;
7859}
7860_ACEOF
7861if ac_fn_c_try_link "$LINENO"; then :
7862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7863$as_echo "yes" >&6; }
7864else
7865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no"
7867fi
7868rm -f core conftest.err conftest.$ac_objext \
7869    conftest$ac_exeext conftest.$ac_ext
7870fi
7871if test "$enable_netbeans" = "yes"; then
7872  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
7873
7874  NETBEANS_SRC="netbeans.c"
7875
7876  NETBEANS_OBJ="objects/netbeans.o"
7877
7878fi
7879if test "$enable_channel" = "yes"; then
7880  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
7881
7882  CHANNEL_SRC="channel.c"
7883
7884  CHANNEL_OBJ="objects/channel.o"
7885
7886fi
7887
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
7889$as_echo_n "checking --enable-terminal argument... " >&6; }
7890# Check whether --enable-terminal was given.
7891if test "${enable_terminal+set}" = set; then :
7892  enableval=$enable_terminal;
7893else
7894  enable_terminal="auto"
7895fi
7896
7897if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
7898  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
7900$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
7901    enable_terminal="no"
7902  else
7903    if test "$enable_terminal" = "auto"; then
7904      enable_terminal="yes"
7905      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
7906$as_echo "defaulting to yes" >&6; }
7907    else
7908      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7909$as_echo "yes" >&6; }
7910    fi
7911  fi
7912else
7913  if test "$enable_terminal" = "auto"; then
7914    enable_terminal="no"
7915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
7916$as_echo "defaulting to no" >&6; }
7917  else
7918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919$as_echo "no" >&6; }
7920  fi
7921fi
7922if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then
7923  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
7924
7925  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"
7926
7927  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"
7928
7929fi
7930
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5
7932$as_echo_n "checking --enable-autoservername argument... " >&6; }
7933# Check whether --enable-autoservername was given.
7934if test "${enable_autoservername+set}" = set; then :
7935  enableval=$enable_autoservername;
7936else
7937  enable_autoservername="no"
7938fi
7939
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5
7941$as_echo "$enable_autoservername" >&6; }
7942if test "$enable_autoservername" = "yes"; then
7943  $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h
7944
7945fi
7946
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
7948$as_echo_n "checking --enable-multibyte argument... " >&6; }
7949# Check whether --enable-multibyte was given.
7950if test "${enable_multibyte+set}" = set; then :
7951  enableval=$enable_multibyte;
7952else
7953  enable_multibyte="no"
7954fi
7955
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
7957$as_echo "$enable_multibyte" >&6; }
7958if test "$enable_multibyte" = "yes"; then
7959  $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
7960
7961fi
7962
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-rightleft argument" >&5
7964$as_echo_n "checking --disable-rightleft argument... " >&6; }
7965# Check whether --enable-rightleft was given.
7966if test "${enable_rightleft+set}" = set; then :
7967  enableval=$enable_rightleft;
7968else
7969  enable_rightleft="yes"
7970fi
7971
7972if test "$enable_rightleft" = "yes"; then
7973	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974$as_echo "no" >&6; }
7975else
7976	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7977$as_echo "yes" >&6; }
7978	$as_echo "#define DISABLE_RIGHTLEFT 1" >>confdefs.h
7979
7980fi
7981
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-arabic argument" >&5
7983$as_echo_n "checking --disable-arabic argument... " >&6; }
7984# Check whether --enable-arabic was given.
7985if test "${enable_arabic+set}" = set; then :
7986  enableval=$enable_arabic;
7987else
7988  enable_arabic="yes"
7989fi
7990
7991if test "$enable_arabic" = "yes"; then
7992	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993$as_echo "no" >&6; }
7994else
7995	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7996$as_echo "yes" >&6; }
7997	$as_echo "#define DISABLE_ARABIC 1" >>confdefs.h
7998
7999fi
8000
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-farsi argument" >&5
8002$as_echo_n "checking --disable-farsi argument... " >&6; }
8003# Check whether --enable-farsi was given.
8004if test "${enable_farsi+set}" = set; then :
8005  enableval=$enable_farsi;
8006else
8007  enable_farsi="yes"
8008fi
8009
8010if test "$enable_farsi" = "yes"; then
8011	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012$as_echo "no" >&6; }
8013else
8014	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8015$as_echo "yes" >&6; }
8016	$as_echo "#define DISABLE_FARSI 1" >>confdefs.h
8017
8018fi
8019
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
8021$as_echo_n "checking --enable-hangulinput argument... " >&6; }
8022# Check whether --enable-hangulinput was given.
8023if test "${enable_hangulinput+set}" = set; then :
8024  enableval=$enable_hangulinput;
8025else
8026  enable_hangulinput="no"
8027fi
8028
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
8030$as_echo "$enable_hangulinput" >&6; }
8031
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
8033$as_echo_n "checking --enable-xim argument... " >&6; }
8034# Check whether --enable-xim was given.
8035if test "${enable_xim+set}" = set; then :
8036  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
8037$as_echo "$enable_xim" >&6; }
8038else
8039  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
8040$as_echo "defaulting to auto" >&6; }
8041fi
8042
8043
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
8045$as_echo_n "checking --enable-fontset argument... " >&6; }
8046# Check whether --enable-fontset was given.
8047if test "${enable_fontset+set}" = set; then :
8048  enableval=$enable_fontset;
8049else
8050  enable_fontset="no"
8051fi
8052
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
8054$as_echo "$enable_fontset" >&6; }
8055
8056test -z "$with_x" && with_x=yes
8057test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
8058if test "$with_x" = no; then
8059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
8060$as_echo "defaulting to: don't HAVE_X11" >&6; }
8061else
8062
8063  # Extract the first word of "xmkmf", so it can be a program name with args.
8064set dummy xmkmf; ac_word=$2
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066$as_echo_n "checking for $ac_word... " >&6; }
8067if ${ac_cv_path_xmkmfpath+:} false; then :
8068  $as_echo_n "(cached) " >&6
8069else
8070  case $xmkmfpath in
8071  [\\/]* | ?:[\\/]*)
8072  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
8073  ;;
8074  *)
8075  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076for as_dir in $PATH
8077do
8078  IFS=$as_save_IFS
8079  test -z "$as_dir" && as_dir=.
8080    for ac_exec_ext in '' $ac_executable_extensions; do
8081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
8083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084    break 2
8085  fi
8086done
8087  done
8088IFS=$as_save_IFS
8089
8090  ;;
8091esac
8092fi
8093xmkmfpath=$ac_cv_path_xmkmfpath
8094if test -n "$xmkmfpath"; then
8095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
8096$as_echo "$xmkmfpath" >&6; }
8097else
8098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
8100fi
8101
8102
8103
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8105$as_echo_n "checking for X... " >&6; }
8106
8107
8108# Check whether --with-x was given.
8109if test "${with_x+set}" = set; then :
8110  withval=$with_x;
8111fi
8112
8113# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8114if test "x$with_x" = xno; then
8115  # The user explicitly disabled X.
8116  have_x=disabled
8117else
8118  case $x_includes,$x_libraries in #(
8119    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8120    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8121  $as_echo_n "(cached) " >&6
8122else
8123  # One or both of the vars are not set, and there is no cached value.
8124ac_x_includes=no ac_x_libraries=no
8125rm -f -r conftest.dir
8126if mkdir conftest.dir; then
8127  cd conftest.dir
8128  cat >Imakefile <<'_ACEOF'
8129incroot:
8130	@echo incroot='${INCROOT}'
8131usrlibdir:
8132	@echo usrlibdir='${USRLIBDIR}'
8133libdir:
8134	@echo libdir='${LIBDIR}'
8135_ACEOF
8136  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8137    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8138    for ac_var in incroot usrlibdir libdir; do
8139      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8140    done
8141    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8142    for ac_extension in a so sl dylib la dll; do
8143      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8144	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8145	ac_im_usrlibdir=$ac_im_libdir; break
8146      fi
8147    done
8148    # Screen out bogus values from the imake configuration.  They are
8149    # bogus both because they are the default anyway, and because
8150    # using them would break gcc on systems where it needs fixed includes.
8151    case $ac_im_incroot in
8152	/usr/include) ac_x_includes= ;;
8153	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8154    esac
8155    case $ac_im_usrlibdir in
8156	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
8157	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8158    esac
8159  fi
8160  cd ..
8161  rm -f -r conftest.dir
8162fi
8163
8164# Standard set of common directories for X headers.
8165# Check X11 before X11Rn because it is often a symlink to the current release.
8166ac_x_header_dirs='
8167/usr/X11/include
8168/usr/X11R7/include
8169/usr/X11R6/include
8170/usr/X11R5/include
8171/usr/X11R4/include
8172
8173/usr/include/X11
8174/usr/include/X11R7
8175/usr/include/X11R6
8176/usr/include/X11R5
8177/usr/include/X11R4
8178
8179/usr/local/X11/include
8180/usr/local/X11R7/include
8181/usr/local/X11R6/include
8182/usr/local/X11R5/include
8183/usr/local/X11R4/include
8184
8185/usr/local/include/X11
8186/usr/local/include/X11R7
8187/usr/local/include/X11R6
8188/usr/local/include/X11R5
8189/usr/local/include/X11R4
8190
8191/usr/X386/include
8192/usr/x386/include
8193/usr/XFree86/include/X11
8194
8195/usr/include
8196/usr/local/include
8197/usr/unsupported/include
8198/usr/athena/include
8199/usr/local/x11r5/include
8200/usr/lpp/Xamples/include
8201
8202/usr/openwin/include
8203/usr/openwin/share/include'
8204
8205if test "$ac_x_includes" = no; then
8206  # Guess where to find include files, by looking for Xlib.h.
8207  # First, try using that file with no special directory specified.
8208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209/* end confdefs.h.  */
8210#include <X11/Xlib.h>
8211_ACEOF
8212if ac_fn_c_try_cpp "$LINENO"; then :
8213  # We can compile using X headers with no special include directory.
8214ac_x_includes=
8215else
8216  for ac_dir in $ac_x_header_dirs; do
8217  if test -r "$ac_dir/X11/Xlib.h"; then
8218    ac_x_includes=$ac_dir
8219    break
8220  fi
8221done
8222fi
8223rm -f conftest.err conftest.i conftest.$ac_ext
8224fi # $ac_x_includes = no
8225
8226if test "$ac_x_libraries" = no; then
8227  # Check for the libraries.
8228  # See if we find them without any special options.
8229  # Don't add to $LIBS permanently.
8230  ac_save_LIBS=$LIBS
8231  LIBS="-lX11 $LIBS"
8232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233/* end confdefs.h.  */
8234#include <X11/Xlib.h>
8235int
8236main ()
8237{
8238XrmInitialize ()
8239  ;
8240  return 0;
8241}
8242_ACEOF
8243if ac_fn_c_try_link "$LINENO"; then :
8244  LIBS=$ac_save_LIBS
8245# We can link X programs with no special library path.
8246ac_x_libraries=
8247else
8248  LIBS=$ac_save_LIBS
8249for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8250do
8251  # Don't even attempt the hair of trying to link an X program!
8252  for ac_extension in a so sl dylib la dll; do
8253    if test -r "$ac_dir/libX11.$ac_extension"; then
8254      ac_x_libraries=$ac_dir
8255      break 2
8256    fi
8257  done
8258done
8259fi
8260rm -f core conftest.err conftest.$ac_objext \
8261    conftest$ac_exeext conftest.$ac_ext
8262fi # $ac_x_libraries = no
8263
8264case $ac_x_includes,$ac_x_libraries in #(
8265  no,* | *,no | *\'*)
8266    # Didn't find X, or a directory has "'" in its name.
8267    ac_cv_have_x="have_x=no";; #(
8268  *)
8269    # Record where we found X for the cache.
8270    ac_cv_have_x="have_x=yes\
8271	ac_x_includes='$ac_x_includes'\
8272	ac_x_libraries='$ac_x_libraries'"
8273esac
8274fi
8275;; #(
8276    *) have_x=yes;;
8277  esac
8278  eval "$ac_cv_have_x"
8279fi # $with_x != no
8280
8281if test "$have_x" != yes; then
8282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8283$as_echo "$have_x" >&6; }
8284  no_x=yes
8285else
8286  # If each of the values was on the command line, it overrides each guess.
8287  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8288  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8289  # Update the cache value to reflect the command line values.
8290  ac_cv_have_x="have_x=yes\
8291	ac_x_includes='$x_includes'\
8292	ac_x_libraries='$x_libraries'"
8293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8294$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8295fi
8296
8297if test "$no_x" = yes; then
8298  # Not all programs may use this symbol, but it does not hurt to define it.
8299
8300$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8301
8302  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8303else
8304  if test -n "$x_includes"; then
8305    X_CFLAGS="$X_CFLAGS -I$x_includes"
8306  fi
8307
8308  # It would also be nice to do this for all -L options, not just this one.
8309  if test -n "$x_libraries"; then
8310    X_LIBS="$X_LIBS -L$x_libraries"
8311    # For Solaris; some versions of Sun CC require a space after -R and
8312    # others require no space.  Words are not sufficient . . . .
8313    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8314$as_echo_n "checking whether -R must be followed by a space... " >&6; }
8315    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8316    ac_xsave_c_werror_flag=$ac_c_werror_flag
8317    ac_c_werror_flag=yes
8318    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319/* end confdefs.h.  */
8320
8321int
8322main ()
8323{
8324
8325  ;
8326  return 0;
8327}
8328_ACEOF
8329if ac_fn_c_try_link "$LINENO"; then :
8330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331$as_echo "no" >&6; }
8332       X_LIBS="$X_LIBS -R$x_libraries"
8333else
8334  LIBS="$ac_xsave_LIBS -R $x_libraries"
8335       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336/* end confdefs.h.  */
8337
8338int
8339main ()
8340{
8341
8342  ;
8343  return 0;
8344}
8345_ACEOF
8346if ac_fn_c_try_link "$LINENO"; then :
8347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8348$as_echo "yes" >&6; }
8349	  X_LIBS="$X_LIBS -R $x_libraries"
8350else
8351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8352$as_echo "neither works" >&6; }
8353fi
8354rm -f core conftest.err conftest.$ac_objext \
8355    conftest$ac_exeext conftest.$ac_ext
8356fi
8357rm -f core conftest.err conftest.$ac_objext \
8358    conftest$ac_exeext conftest.$ac_ext
8359    ac_c_werror_flag=$ac_xsave_c_werror_flag
8360    LIBS=$ac_xsave_LIBS
8361  fi
8362
8363  # Check for system-dependent libraries X programs must link with.
8364  # Do this before checking for the system-independent R6 libraries
8365  # (-lICE), since we may need -lsocket or whatever for X linking.
8366
8367  if test "$ISC" = yes; then
8368    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8369  else
8370    # Martyn Johnson says this is needed for Ultrix, if the X
8371    # libraries were built with DECnet support.  And Karl Berry says
8372    # the Alpha needs dnet_stub (dnet does not exist).
8373    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8374    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h.  */
8376
8377/* Override any GCC internal prototype to avoid an error.
8378   Use char because int might match the return type of a GCC
8379   builtin and then its argument prototype would still apply.  */
8380#ifdef __cplusplus
8381extern "C"
8382#endif
8383char XOpenDisplay ();
8384int
8385main ()
8386{
8387return XOpenDisplay ();
8388  ;
8389  return 0;
8390}
8391_ACEOF
8392if ac_fn_c_try_link "$LINENO"; then :
8393
8394else
8395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8396$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8397if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8398  $as_echo_n "(cached) " >&6
8399else
8400  ac_check_lib_save_LIBS=$LIBS
8401LIBS="-ldnet  $LIBS"
8402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403/* end confdefs.h.  */
8404
8405/* Override any GCC internal prototype to avoid an error.
8406   Use char because int might match the return type of a GCC
8407   builtin and then its argument prototype would still apply.  */
8408#ifdef __cplusplus
8409extern "C"
8410#endif
8411char dnet_ntoa ();
8412int
8413main ()
8414{
8415return dnet_ntoa ();
8416  ;
8417  return 0;
8418}
8419_ACEOF
8420if ac_fn_c_try_link "$LINENO"; then :
8421  ac_cv_lib_dnet_dnet_ntoa=yes
8422else
8423  ac_cv_lib_dnet_dnet_ntoa=no
8424fi
8425rm -f core conftest.err conftest.$ac_objext \
8426    conftest$ac_exeext conftest.$ac_ext
8427LIBS=$ac_check_lib_save_LIBS
8428fi
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8430$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8431if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8432  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8433fi
8434
8435    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8436      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8437$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8438if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8439  $as_echo_n "(cached) " >&6
8440else
8441  ac_check_lib_save_LIBS=$LIBS
8442LIBS="-ldnet_stub  $LIBS"
8443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h.  */
8445
8446/* Override any GCC internal prototype to avoid an error.
8447   Use char because int might match the return type of a GCC
8448   builtin and then its argument prototype would still apply.  */
8449#ifdef __cplusplus
8450extern "C"
8451#endif
8452char dnet_ntoa ();
8453int
8454main ()
8455{
8456return dnet_ntoa ();
8457  ;
8458  return 0;
8459}
8460_ACEOF
8461if ac_fn_c_try_link "$LINENO"; then :
8462  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8463else
8464  ac_cv_lib_dnet_stub_dnet_ntoa=no
8465fi
8466rm -f core conftest.err conftest.$ac_objext \
8467    conftest$ac_exeext conftest.$ac_ext
8468LIBS=$ac_check_lib_save_LIBS
8469fi
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8471$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8472if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8473  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8474fi
8475
8476    fi
8477fi
8478rm -f core conftest.err conftest.$ac_objext \
8479    conftest$ac_exeext conftest.$ac_ext
8480    LIBS="$ac_xsave_LIBS"
8481
8482    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
8483    # to get the SysV transport functions.
8484    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8485    # needs -lnsl.
8486    # The nsl library prevents programs from opening the X display
8487    # on Irix 5.2, according to T.E. Dickey.
8488    # The functions gethostbyname, getservbyname, and inet_addr are
8489    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8490    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8491if test "x$ac_cv_func_gethostbyname" = xyes; then :
8492
8493fi
8494
8495    if test $ac_cv_func_gethostbyname = no; then
8496      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8497$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8498if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8499  $as_echo_n "(cached) " >&6
8500else
8501  ac_check_lib_save_LIBS=$LIBS
8502LIBS="-lnsl  $LIBS"
8503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504/* end confdefs.h.  */
8505
8506/* Override any GCC internal prototype to avoid an error.
8507   Use char because int might match the return type of a GCC
8508   builtin and then its argument prototype would still apply.  */
8509#ifdef __cplusplus
8510extern "C"
8511#endif
8512char gethostbyname ();
8513int
8514main ()
8515{
8516return gethostbyname ();
8517  ;
8518  return 0;
8519}
8520_ACEOF
8521if ac_fn_c_try_link "$LINENO"; then :
8522  ac_cv_lib_nsl_gethostbyname=yes
8523else
8524  ac_cv_lib_nsl_gethostbyname=no
8525fi
8526rm -f core conftest.err conftest.$ac_objext \
8527    conftest$ac_exeext conftest.$ac_ext
8528LIBS=$ac_check_lib_save_LIBS
8529fi
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8531$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8532if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8533  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8534fi
8535
8536      if test $ac_cv_lib_nsl_gethostbyname = no; then
8537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8538$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8539if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8540  $as_echo_n "(cached) " >&6
8541else
8542  ac_check_lib_save_LIBS=$LIBS
8543LIBS="-lbsd  $LIBS"
8544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545/* end confdefs.h.  */
8546
8547/* Override any GCC internal prototype to avoid an error.
8548   Use char because int might match the return type of a GCC
8549   builtin and then its argument prototype would still apply.  */
8550#ifdef __cplusplus
8551extern "C"
8552#endif
8553char gethostbyname ();
8554int
8555main ()
8556{
8557return gethostbyname ();
8558  ;
8559  return 0;
8560}
8561_ACEOF
8562if ac_fn_c_try_link "$LINENO"; then :
8563  ac_cv_lib_bsd_gethostbyname=yes
8564else
8565  ac_cv_lib_bsd_gethostbyname=no
8566fi
8567rm -f core conftest.err conftest.$ac_objext \
8568    conftest$ac_exeext conftest.$ac_ext
8569LIBS=$ac_check_lib_save_LIBS
8570fi
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8572$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8573if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8574  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8575fi
8576
8577      fi
8578    fi
8579
8580    # [email protected] says without -lsocket,
8581    # socket/setsockopt and other routines are undefined under SCO ODT
8582    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8583    # on later versions), says Simon Leinen: it contains gethostby*
8584    # variants that don't use the name server (or something).  -lsocket
8585    # must be given before -lnsl if both are needed.  We assume that
8586    # if connect needs -lnsl, so does gethostbyname.
8587    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8588if test "x$ac_cv_func_connect" = xyes; then :
8589
8590fi
8591
8592    if test $ac_cv_func_connect = no; then
8593      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8594$as_echo_n "checking for connect in -lsocket... " >&6; }
8595if ${ac_cv_lib_socket_connect+:} false; then :
8596  $as_echo_n "(cached) " >&6
8597else
8598  ac_check_lib_save_LIBS=$LIBS
8599LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601/* end confdefs.h.  */
8602
8603/* Override any GCC internal prototype to avoid an error.
8604   Use char because int might match the return type of a GCC
8605   builtin and then its argument prototype would still apply.  */
8606#ifdef __cplusplus
8607extern "C"
8608#endif
8609char connect ();
8610int
8611main ()
8612{
8613return connect ();
8614  ;
8615  return 0;
8616}
8617_ACEOF
8618if ac_fn_c_try_link "$LINENO"; then :
8619  ac_cv_lib_socket_connect=yes
8620else
8621  ac_cv_lib_socket_connect=no
8622fi
8623rm -f core conftest.err conftest.$ac_objext \
8624    conftest$ac_exeext conftest.$ac_ext
8625LIBS=$ac_check_lib_save_LIBS
8626fi
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8628$as_echo "$ac_cv_lib_socket_connect" >&6; }
8629if test "x$ac_cv_lib_socket_connect" = xyes; then :
8630  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8631fi
8632
8633    fi
8634
8635    # Guillermo Gomez says -lposix is necessary on A/UX.
8636    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8637if test "x$ac_cv_func_remove" = xyes; then :
8638
8639fi
8640
8641    if test $ac_cv_func_remove = no; then
8642      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8643$as_echo_n "checking for remove in -lposix... " >&6; }
8644if ${ac_cv_lib_posix_remove+:} false; then :
8645  $as_echo_n "(cached) " >&6
8646else
8647  ac_check_lib_save_LIBS=$LIBS
8648LIBS="-lposix  $LIBS"
8649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650/* end confdefs.h.  */
8651
8652/* Override any GCC internal prototype to avoid an error.
8653   Use char because int might match the return type of a GCC
8654   builtin and then its argument prototype would still apply.  */
8655#ifdef __cplusplus
8656extern "C"
8657#endif
8658char remove ();
8659int
8660main ()
8661{
8662return remove ();
8663  ;
8664  return 0;
8665}
8666_ACEOF
8667if ac_fn_c_try_link "$LINENO"; then :
8668  ac_cv_lib_posix_remove=yes
8669else
8670  ac_cv_lib_posix_remove=no
8671fi
8672rm -f core conftest.err conftest.$ac_objext \
8673    conftest$ac_exeext conftest.$ac_ext
8674LIBS=$ac_check_lib_save_LIBS
8675fi
8676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8677$as_echo "$ac_cv_lib_posix_remove" >&6; }
8678if test "x$ac_cv_lib_posix_remove" = xyes; then :
8679  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8680fi
8681
8682    fi
8683
8684    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8685    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8686if test "x$ac_cv_func_shmat" = xyes; then :
8687
8688fi
8689
8690    if test $ac_cv_func_shmat = no; then
8691      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8692$as_echo_n "checking for shmat in -lipc... " >&6; }
8693if ${ac_cv_lib_ipc_shmat+:} false; then :
8694  $as_echo_n "(cached) " >&6
8695else
8696  ac_check_lib_save_LIBS=$LIBS
8697LIBS="-lipc  $LIBS"
8698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699/* end confdefs.h.  */
8700
8701/* Override any GCC internal prototype to avoid an error.
8702   Use char because int might match the return type of a GCC
8703   builtin and then its argument prototype would still apply.  */
8704#ifdef __cplusplus
8705extern "C"
8706#endif
8707char shmat ();
8708int
8709main ()
8710{
8711return shmat ();
8712  ;
8713  return 0;
8714}
8715_ACEOF
8716if ac_fn_c_try_link "$LINENO"; then :
8717  ac_cv_lib_ipc_shmat=yes
8718else
8719  ac_cv_lib_ipc_shmat=no
8720fi
8721rm -f core conftest.err conftest.$ac_objext \
8722    conftest$ac_exeext conftest.$ac_ext
8723LIBS=$ac_check_lib_save_LIBS
8724fi
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8726$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8727if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8728  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8729fi
8730
8731    fi
8732  fi
8733
8734  # Check for libraries that X11R6 Xt/Xaw programs need.
8735  ac_save_LDFLAGS=$LDFLAGS
8736  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8737  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8738  # check for ICE first), but we must link in the order -lSM -lICE or
8739  # we get undefined symbols.  So assume we have SM if we have ICE.
8740  # These have to be linked with before -lX11, unlike the other
8741  # libraries we check for below, so use a different variable.
8742  # John Interrante, Karl Berry
8743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8744$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8745if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8746  $as_echo_n "(cached) " >&6
8747else
8748  ac_check_lib_save_LIBS=$LIBS
8749LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751/* end confdefs.h.  */
8752
8753/* Override any GCC internal prototype to avoid an error.
8754   Use char because int might match the return type of a GCC
8755   builtin and then its argument prototype would still apply.  */
8756#ifdef __cplusplus
8757extern "C"
8758#endif
8759char IceConnectionNumber ();
8760int
8761main ()
8762{
8763return IceConnectionNumber ();
8764  ;
8765  return 0;
8766}
8767_ACEOF
8768if ac_fn_c_try_link "$LINENO"; then :
8769  ac_cv_lib_ICE_IceConnectionNumber=yes
8770else
8771  ac_cv_lib_ICE_IceConnectionNumber=no
8772fi
8773rm -f core conftest.err conftest.$ac_objext \
8774    conftest$ac_exeext conftest.$ac_ext
8775LIBS=$ac_check_lib_save_LIBS
8776fi
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8778$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8779if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8780  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8781fi
8782
8783  LDFLAGS=$ac_save_LDFLAGS
8784
8785fi
8786
8787
8788        if test "$zOSUnix" = "yes"; then
8789    CFLAGS="$CFLAGS -W c,dll"
8790    LDFLAGS="$LDFLAGS -W l,dll"
8791    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8792  fi
8793
8794
8795  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8796    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8797    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8798$as_echo "Corrected X libraries to $x_libraries" >&6; }
8799    X_LIBS="$X_LIBS -L$x_libraries"
8800    if test "`(uname) 2>/dev/null`" = SunOS &&
8801					 uname -r | grep '^5' >/dev/null; then
8802      X_LIBS="$X_LIBS -R $x_libraries"
8803    fi
8804  fi
8805
8806  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8807    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8808    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8809$as_echo "Corrected X includes to $x_includes" >&6; }
8810    X_CFLAGS="$X_CFLAGS -I$x_includes"
8811  fi
8812
8813    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8814    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8815    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8816
8817
8818        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8819$as_echo_n "checking if X11 header files can be found... " >&6; }
8820  cflags_save=$CFLAGS
8821  CFLAGS="$CFLAGS $X_CFLAGS"
8822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823/* end confdefs.h.  */
8824#include <X11/Xlib.h>
8825#include <X11/Intrinsic.h>
8826int
8827main ()
8828{
8829
8830  ;
8831  return 0;
8832}
8833_ACEOF
8834if ac_fn_c_try_compile "$LINENO"; then :
8835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8836$as_echo "yes" >&6; }
8837else
8838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839$as_echo "no" >&6; }; no_x=yes
8840fi
8841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842  CFLAGS=$cflags_save
8843
8844  if test "${no_x-no}" = yes; then
8845    with_x=no
8846  else
8847    $as_echo "#define HAVE_X11 1" >>confdefs.h
8848
8849    X_LIB="-lXt -lX11";
8850
8851
8852    ac_save_LDFLAGS="$LDFLAGS"
8853    LDFLAGS="-L$x_libraries $LDFLAGS"
8854
8855            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8856$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8857if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8858  $as_echo_n "(cached) " >&6
8859else
8860  ac_check_lib_save_LIBS=$LIBS
8861LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863/* end confdefs.h.  */
8864
8865/* Override any GCC internal prototype to avoid an error.
8866   Use char because int might match the return type of a GCC
8867   builtin and then its argument prototype would still apply.  */
8868#ifdef __cplusplus
8869extern "C"
8870#endif
8871char _XdmcpAuthDoIt ();
8872int
8873main ()
8874{
8875return _XdmcpAuthDoIt ();
8876  ;
8877  return 0;
8878}
8879_ACEOF
8880if ac_fn_c_try_link "$LINENO"; then :
8881  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8882else
8883  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8884fi
8885rm -f core conftest.err conftest.$ac_objext \
8886    conftest$ac_exeext conftest.$ac_ext
8887LIBS=$ac_check_lib_save_LIBS
8888fi
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8890$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8891if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8892  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8893fi
8894
8895
8896                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
8897$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8898if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
8899  $as_echo_n "(cached) " >&6
8900else
8901  ac_check_lib_save_LIBS=$LIBS
8902LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h.  */
8905
8906/* Override any GCC internal prototype to avoid an error.
8907   Use char because int might match the return type of a GCC
8908   builtin and then its argument prototype would still apply.  */
8909#ifdef __cplusplus
8910extern "C"
8911#endif
8912char IceOpenConnection ();
8913int
8914main ()
8915{
8916return IceOpenConnection ();
8917  ;
8918  return 0;
8919}
8920_ACEOF
8921if ac_fn_c_try_link "$LINENO"; then :
8922  ac_cv_lib_ICE_IceOpenConnection=yes
8923else
8924  ac_cv_lib_ICE_IceOpenConnection=no
8925fi
8926rm -f core conftest.err conftest.$ac_objext \
8927    conftest$ac_exeext conftest.$ac_ext
8928LIBS=$ac_check_lib_save_LIBS
8929fi
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8931$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8932if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
8933  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8934fi
8935
8936
8937        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8938    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
8939$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8940if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
8941  $as_echo_n "(cached) " >&6
8942else
8943  ac_check_lib_save_LIBS=$LIBS
8944LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946/* end confdefs.h.  */
8947
8948/* Override any GCC internal prototype to avoid an error.
8949   Use char because int might match the return type of a GCC
8950   builtin and then its argument prototype would still apply.  */
8951#ifdef __cplusplus
8952extern "C"
8953#endif
8954char XpmCreatePixmapFromData ();
8955int
8956main ()
8957{
8958return XpmCreatePixmapFromData ();
8959  ;
8960  return 0;
8961}
8962_ACEOF
8963if ac_fn_c_try_link "$LINENO"; then :
8964  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8965else
8966  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8967fi
8968rm -f core conftest.err conftest.$ac_objext \
8969    conftest$ac_exeext conftest.$ac_ext
8970LIBS=$ac_check_lib_save_LIBS
8971fi
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8973$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8974if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
8975  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8976fi
8977
8978
8979        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8980$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8981    cflags_save=$CFLAGS
8982        if test "$GCC" = yes; then
8983      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8984    else
8985      CFLAGS="$CFLAGS $X_CFLAGS"
8986    fi
8987    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988/* end confdefs.h.  */
8989#include <X11/Xlib.h>
8990int
8991main ()
8992{
8993
8994  ;
8995  return 0;
8996}
8997_ACEOF
8998if ac_fn_c_try_compile "$LINENO"; then :
8999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000$as_echo "no" >&6; }
9001else
9002  CFLAGS="$CFLAGS -Wno-implicit-int"
9003	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h.  */
9005#include <X11/Xlib.h>
9006int
9007main ()
9008{
9009
9010  ;
9011  return 0;
9012}
9013_ACEOF
9014if ac_fn_c_try_compile "$LINENO"; then :
9015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9016$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
9017else
9018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
9019$as_echo "test failed" >&6; }
9020
9021fi
9022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023
9024fi
9025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026    CFLAGS=$cflags_save
9027
9028    LDFLAGS="$ac_save_LDFLAGS"
9029
9030    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
9031$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
9032    if ${ac_cv_small_wchar_t+:} false; then :
9033  $as_echo_n "(cached) " >&6
9034else
9035  if test "$cross_compiling" = yes; then :
9036  as_fn_error $? "failed to compile test program" "$LINENO" 5
9037else
9038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039/* end confdefs.h.  */
9040
9041#include <X11/Xlib.h>
9042#if STDC_HEADERS
9043# include <stdlib.h>
9044# include <stddef.h>
9045#endif
9046		main()
9047		{
9048		  if (sizeof(wchar_t) <= 2)
9049		    exit(1);
9050		  exit(0);
9051		}
9052_ACEOF
9053if ac_fn_c_try_run "$LINENO"; then :
9054  ac_cv_small_wchar_t="no"
9055else
9056  ac_cv_small_wchar_t="yes"
9057fi
9058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9059  conftest.$ac_objext conftest.beam conftest.$ac_ext
9060fi
9061
9062fi
9063
9064    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
9065$as_echo "$ac_cv_small_wchar_t" >&6; }
9066    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
9067      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
9068
9069    fi
9070
9071  fi
9072fi
9073
9074if test "x$with_x" = xno -a "x$with_x_arg" = xyes; then
9075    as_fn_error $? "could not configure X" "$LINENO" 5
9076fi
9077
9078test "x$with_x" = xno -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
9079
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
9081$as_echo_n "checking --enable-gui argument... " >&6; }
9082# Check whether --enable-gui was given.
9083if test "${enable_gui+set}" = set; then :
9084  enableval=$enable_gui;
9085else
9086  enable_gui="auto"
9087fi
9088
9089
9090enable_gui_canon=`echo "_$enable_gui" | \
9091	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
9092
9093SKIP_GTK2=YES
9094SKIP_GTK3=YES
9095SKIP_GNOME=YES
9096SKIP_MOTIF=YES
9097SKIP_ATHENA=YES
9098SKIP_NEXTAW=YES
9099SKIP_PHOTON=YES
9100SKIP_CARBON=YES
9101GUITYPE=NONE
9102
9103if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
9104  SKIP_PHOTON=
9105  case "$enable_gui_canon" in
9106    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9107$as_echo "no GUI support" >&6; }
9108		SKIP_PHOTON=YES ;;
9109    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9110$as_echo "yes - automatic GUI support" >&6; } ;;
9111    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
9112$as_echo "auto - automatic GUI support" >&6; } ;;
9113    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
9114$as_echo "Photon GUI support" >&6; } ;;
9115    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9116$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9117		SKIP_PHOTON=YES ;;
9118  esac
9119
9120elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
9121  SKIP_CARBON=
9122  case "$enable_gui_canon" in
9123    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9124$as_echo "no GUI support" >&6; }
9125		SKIP_CARBON=YES ;;
9126    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9127$as_echo "yes - automatic GUI support" >&6; } ;;
9128    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
9129$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
9130		SKIP_CARBON=YES ;;
9131    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
9132$as_echo "Carbon GUI support" >&6; } ;;
9133    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9134$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9135		SKIP_CARBON=YES ;;
9136  esac
9137
9138else
9139
9140  case "$enable_gui_canon" in
9141    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9142$as_echo "no GUI support" >&6; } ;;
9143    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
9144$as_echo "yes/auto - automatic GUI support" >&6; }
9145		SKIP_GTK2=
9146		SKIP_GNOME=
9147		SKIP_MOTIF=
9148		SKIP_ATHENA=
9149		SKIP_NEXTAW=
9150		SKIP_CARBON=;;
9151    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
9152$as_echo "GTK+ 2.x GUI support" >&6; }
9153		SKIP_GTK2=;;
9154    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
9155$as_echo "GNOME 2.x GUI support" >&6; }
9156		SKIP_GNOME=
9157		SKIP_GTK2=;;
9158    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
9159$as_echo "GTK+ 3.x GUI support" >&6; }
9160		SKIP_GTK3=;;
9161    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
9162$as_echo "Motif GUI support" >&6; }
9163		SKIP_MOTIF=;;
9164    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
9165$as_echo "Athena GUI support" >&6; }
9166		SKIP_ATHENA=;;
9167    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
9168$as_echo "neXtaw GUI support" >&6; }
9169		SKIP_NEXTAW=;;
9170    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9171$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
9172  esac
9173
9174fi
9175
9176if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
9177				-a "$enable_gui_canon" != "gnome2"; then
9178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
9179$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
9180  # Check whether --enable-gtk2-check was given.
9181if test "${enable_gtk2_check+set}" = set; then :
9182  enableval=$enable_gtk2_check;
9183else
9184  enable_gtk2_check="yes"
9185fi
9186
9187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
9188$as_echo "$enable_gtk2_check" >&6; }
9189  if test "x$enable_gtk2_check" = "xno"; then
9190    SKIP_GTK2=YES
9191    SKIP_GNOME=YES
9192  fi
9193fi
9194
9195if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
9196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
9197$as_echo_n "checking whether or not to look for GNOME... " >&6; }
9198  # Check whether --enable-gnome-check was given.
9199if test "${enable_gnome_check+set}" = set; then :
9200  enableval=$enable_gnome_check;
9201else
9202  enable_gnome_check="no"
9203fi
9204
9205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
9206$as_echo "$enable_gnome_check" >&6; }
9207  if test "x$enable_gnome_check" = "xno"; then
9208    SKIP_GNOME=YES
9209  fi
9210fi
9211
9212if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
9213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
9214$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
9215  # Check whether --enable-gtk3-check was given.
9216if test "${enable_gtk3_check+set}" = set; then :
9217  enableval=$enable_gtk3_check;
9218else
9219  enable_gtk3_check="yes"
9220fi
9221
9222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
9223$as_echo "$enable_gtk3_check" >&6; }
9224  if test "x$enable_gtk3_check" = "xno"; then
9225    SKIP_GTK3=YES
9226  fi
9227fi
9228
9229if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
9230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
9231$as_echo_n "checking whether or not to look for Motif... " >&6; }
9232  # Check whether --enable-motif-check was given.
9233if test "${enable_motif_check+set}" = set; then :
9234  enableval=$enable_motif_check;
9235else
9236  enable_motif_check="yes"
9237fi
9238
9239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
9240$as_echo "$enable_motif_check" >&6; }
9241  if test "x$enable_motif_check" = "xno"; then
9242    SKIP_MOTIF=YES
9243  fi
9244fi
9245
9246if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
9247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
9248$as_echo_n "checking whether or not to look for Athena... " >&6; }
9249  # Check whether --enable-athena-check was given.
9250if test "${enable_athena_check+set}" = set; then :
9251  enableval=$enable_athena_check;
9252else
9253  enable_athena_check="yes"
9254fi
9255
9256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
9257$as_echo "$enable_athena_check" >&6; }
9258  if test "x$enable_athena_check" = "xno"; then
9259    SKIP_ATHENA=YES
9260  fi
9261fi
9262
9263if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
9264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
9265$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
9266  # Check whether --enable-nextaw-check was given.
9267if test "${enable_nextaw_check+set}" = set; then :
9268  enableval=$enable_nextaw_check;
9269else
9270  enable_nextaw_check="yes"
9271fi
9272
9273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
9274$as_echo "$enable_nextaw_check" >&6; };
9275  if test "x$enable_nextaw_check" = "xno"; then
9276    SKIP_NEXTAW=YES
9277  fi
9278fi
9279
9280if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
9281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
9282$as_echo_n "checking whether or not to look for Carbon... " >&6; }
9283  # Check whether --enable-carbon-check was given.
9284if test "${enable_carbon_check+set}" = set; then :
9285  enableval=$enable_carbon_check;
9286else
9287  enable_carbon_check="yes"
9288fi
9289
9290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
9291$as_echo "$enable_carbon_check" >&6; };
9292  if test "x$enable_carbon_check" = "xno"; then
9293    SKIP_CARBON=YES
9294  fi
9295fi
9296
9297
9298if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
9299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
9300$as_echo_n "checking for Carbon GUI... " >&6; }
9301    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9302$as_echo "yes" >&6; };
9303  GUITYPE=CARBONGUI
9304  if test "$VIMNAME" = "vim"; then
9305    VIMNAME=Vim
9306  fi
9307
9308  if test "x$MACARCH" = "xboth"; then
9309    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
9310  else
9311    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
9312  fi
9313
9314    if test x$prefix = xNONE; then
9315    prefix=/Applications
9316  fi
9317
9318    datadir='${prefix}/Vim.app/Contents/Resources'
9319
9320    SKIP_GTK2=YES;
9321  SKIP_GNOME=YES;
9322  SKIP_MOTIF=YES;
9323  SKIP_ATHENA=YES;
9324  SKIP_NEXTAW=YES;
9325  SKIP_PHOTON=YES;
9326  SKIP_CARBON=YES
9327fi
9328
9329
9330
9331
9332
9333
9334
9335
9336if test -z "$SKIP_GTK2"; then
9337
9338  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9339$as_echo_n "checking --disable-gtktest argument... " >&6; }
9340  # Check whether --enable-gtktest was given.
9341if test "${enable_gtktest+set}" = set; then :
9342  enableval=$enable_gtktest;
9343else
9344  enable_gtktest=yes
9345fi
9346
9347  if test "x$enable_gtktest" = "xyes" ; then
9348    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9349$as_echo "gtk test enabled" >&6; }
9350  else
9351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9352$as_echo "gtk test disabled" >&6; }
9353  fi
9354
9355  if test "X$PKG_CONFIG" = "X"; then
9356    if test -n "$ac_tool_prefix"; then
9357  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9358set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360$as_echo_n "checking for $ac_word... " >&6; }
9361if ${ac_cv_path_PKG_CONFIG+:} false; then :
9362  $as_echo_n "(cached) " >&6
9363else
9364  case $PKG_CONFIG in
9365  [\\/]* | ?:[\\/]*)
9366  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9367  ;;
9368  *)
9369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370for as_dir in $PATH
9371do
9372  IFS=$as_save_IFS
9373  test -z "$as_dir" && as_dir=.
9374    for ac_exec_ext in '' $ac_executable_extensions; do
9375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9376    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9378    break 2
9379  fi
9380done
9381  done
9382IFS=$as_save_IFS
9383
9384  ;;
9385esac
9386fi
9387PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9388if test -n "$PKG_CONFIG"; then
9389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9390$as_echo "$PKG_CONFIG" >&6; }
9391else
9392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393$as_echo "no" >&6; }
9394fi
9395
9396
9397fi
9398if test -z "$ac_cv_path_PKG_CONFIG"; then
9399  ac_pt_PKG_CONFIG=$PKG_CONFIG
9400  # Extract the first word of "pkg-config", so it can be a program name with args.
9401set dummy pkg-config; ac_word=$2
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9403$as_echo_n "checking for $ac_word... " >&6; }
9404if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9405  $as_echo_n "(cached) " >&6
9406else
9407  case $ac_pt_PKG_CONFIG in
9408  [\\/]* | ?:[\\/]*)
9409  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9410  ;;
9411  *)
9412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413for as_dir in $PATH
9414do
9415  IFS=$as_save_IFS
9416  test -z "$as_dir" && as_dir=.
9417    for ac_exec_ext in '' $ac_executable_extensions; do
9418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9419    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9421    break 2
9422  fi
9423done
9424  done
9425IFS=$as_save_IFS
9426
9427  ;;
9428esac
9429fi
9430ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9431if test -n "$ac_pt_PKG_CONFIG"; then
9432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9433$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9434else
9435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436$as_echo "no" >&6; }
9437fi
9438
9439  if test "x$ac_pt_PKG_CONFIG" = x; then
9440    PKG_CONFIG="no"
9441  else
9442    case $cross_compiling:$ac_tool_warned in
9443yes:)
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9446ac_tool_warned=yes ;;
9447esac
9448    PKG_CONFIG=$ac_pt_PKG_CONFIG
9449  fi
9450else
9451  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9452fi
9453
9454  fi
9455
9456  if test "x$PKG_CONFIG" != "xno"; then
9457
9458  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9459  {
9460    no_gtk=""
9461    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9462	  && $PKG_CONFIG --exists gtk+-2.0; then
9463    {
9464      min_gtk_version=2.2.0
9465      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9466$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9467                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9468      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9469      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9470      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9471	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9472      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9473	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9474      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9475	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9476    }
9477    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9478	  && $PKG_CONFIG --exists gtk+-3.0; then
9479    {
9480      min_gtk_version=2.2.0
9481      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9482$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9483
9484      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9485      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9486      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9487      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9488	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9489      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9490	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9491      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9492	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9493    }
9494    else
9495      no_gtk=yes
9496    fi
9497
9498    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9499    {
9500      ac_save_CFLAGS="$CFLAGS"
9501      ac_save_LIBS="$LIBS"
9502      CFLAGS="$CFLAGS $GTK_CFLAGS"
9503      LIBS="$LIBS $GTK_LIBS"
9504
9505                        rm -f conf.gtktest
9506      if test "$cross_compiling" = yes; then :
9507  echo $ac_n "cross compiling; assumed OK... $ac_c"
9508else
9509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510/* end confdefs.h.  */
9511
9512#include <gtk/gtk.h>
9513#include <stdio.h>
9514#if STDC_HEADERS
9515# include <stdlib.h>
9516# include <stddef.h>
9517#endif
9518
9519int
9520main ()
9521{
9522int major, minor, micro;
9523char *tmp_version;
9524
9525system ("touch conf.gtktest");
9526
9527/* HP/UX 9 (%@#!) writes to sscanf strings */
9528tmp_version = g_strdup("$min_gtk_version");
9529if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9530   printf("%s, bad version string\n", "$min_gtk_version");
9531   exit(1);
9532 }
9533
9534if ((gtk_major_version > major) ||
9535    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9536    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9537				     (gtk_micro_version >= micro)))
9538{
9539    return 0;
9540}
9541return 1;
9542}
9543
9544_ACEOF
9545if ac_fn_c_try_run "$LINENO"; then :
9546
9547else
9548  no_gtk=yes
9549fi
9550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9551  conftest.$ac_objext conftest.beam conftest.$ac_ext
9552fi
9553
9554      CFLAGS="$ac_save_CFLAGS"
9555      LIBS="$ac_save_LIBS"
9556    }
9557    fi
9558    if test "x$no_gtk" = x ; then
9559      if test "x$enable_gtktest" = "xyes"; then
9560	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9561$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9562      else
9563	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9564$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9565      fi
9566      GUI_LIB_LOC="$GTK_LIBDIR"
9567		 GTK_LIBNAME="$GTK_LIBS"
9568		GUI_INC_LOC="$GTK_CFLAGS"
9569    else
9570    {
9571      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572$as_echo "no" >&6; }
9573      GTK_CFLAGS=""
9574      GTK_LIBS=""
9575      :
9576    }
9577    fi
9578  }
9579  else
9580    GTK_CFLAGS=""
9581    GTK_LIBS=""
9582    :
9583  fi
9584
9585
9586  rm -f conf.gtktest
9587
9588    if test "x$GTK_CFLAGS" != "x"; then
9589      SKIP_GTK3=YES
9590      SKIP_ATHENA=YES
9591      SKIP_NEXTAW=YES
9592      SKIP_MOTIF=YES
9593      GUITYPE=GTK
9594
9595    fi
9596  fi
9597  if test "x$GUITYPE" = "xGTK"; then
9598                if test -z "$SKIP_GNOME"; then
9599    {
9600
9601
9602
9603
9604
9605
9606# Check whether --with-gnome-includes was given.
9607if test "${with_gnome_includes+set}" = set; then :
9608  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9609
9610fi
9611
9612
9613
9614# Check whether --with-gnome-libs was given.
9615if test "${with_gnome_libs+set}" = set; then :
9616  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9617
9618fi
9619
9620
9621
9622# Check whether --with-gnome was given.
9623if test "${with_gnome+set}" = set; then :
9624  withval=$with_gnome; if test x$withval = xyes; then
9625      want_gnome=yes
9626      have_gnome=yes
9627    else
9628      if test "x$withval" = xno; then
9629	want_gnome=no
9630      else
9631	want_gnome=yes
9632	LDFLAGS="$LDFLAGS -L$withval/lib"
9633	CFLAGS="$CFLAGS -I$withval/include"
9634	gnome_prefix=$withval/lib
9635      fi
9636    fi
9637else
9638  want_gnome=yes
9639fi
9640
9641
9642  if test "x$want_gnome" = xyes; then
9643  {
9644    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9645$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9646    if $PKG_CONFIG --exists libgnomeui-2.0; then
9647      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9648$as_echo "yes" >&6; }
9649      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9650      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9651      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9652
9653                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9654$as_echo_n "checking for FreeBSD... " >&6; }
9655      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9656	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9657$as_echo "yes" >&6; }
9658	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9659	GNOME_LIBS="$GNOME_LIBS -pthread"
9660      else
9661	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662$as_echo "no" >&6; }
9663      fi
9664      have_gnome=yes
9665    else
9666      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9667$as_echo "not found" >&6; }
9668      if test "x" = xfail; then
9669	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9670      fi
9671    fi
9672  }
9673  fi
9674
9675      if test "x$have_gnome" = xyes ; then
9676	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9677
9678	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9679	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9680      fi
9681    }
9682    fi
9683  fi
9684fi
9685
9686
9687if test -z "$SKIP_GTK3"; then
9688
9689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9690$as_echo_n "checking --disable-gtktest argument... " >&6; }
9691  # Check whether --enable-gtktest was given.
9692if test "${enable_gtktest+set}" = set; then :
9693  enableval=$enable_gtktest;
9694else
9695  enable_gtktest=yes
9696fi
9697
9698  if test "x$enable_gtktest" = "xyes" ; then
9699    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9700$as_echo "gtk test enabled" >&6; }
9701  else
9702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9703$as_echo "gtk test disabled" >&6; }
9704  fi
9705
9706  if test "X$PKG_CONFIG" = "X"; then
9707    if test -n "$ac_tool_prefix"; then
9708  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9709set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711$as_echo_n "checking for $ac_word... " >&6; }
9712if ${ac_cv_path_PKG_CONFIG+:} false; then :
9713  $as_echo_n "(cached) " >&6
9714else
9715  case $PKG_CONFIG in
9716  [\\/]* | ?:[\\/]*)
9717  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9718  ;;
9719  *)
9720  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721for as_dir in $PATH
9722do
9723  IFS=$as_save_IFS
9724  test -z "$as_dir" && as_dir=.
9725    for ac_exec_ext in '' $ac_executable_extensions; do
9726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9727    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729    break 2
9730  fi
9731done
9732  done
9733IFS=$as_save_IFS
9734
9735  ;;
9736esac
9737fi
9738PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9739if test -n "$PKG_CONFIG"; then
9740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9741$as_echo "$PKG_CONFIG" >&6; }
9742else
9743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744$as_echo "no" >&6; }
9745fi
9746
9747
9748fi
9749if test -z "$ac_cv_path_PKG_CONFIG"; then
9750  ac_pt_PKG_CONFIG=$PKG_CONFIG
9751  # Extract the first word of "pkg-config", so it can be a program name with args.
9752set dummy pkg-config; ac_word=$2
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9754$as_echo_n "checking for $ac_word... " >&6; }
9755if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9756  $as_echo_n "(cached) " >&6
9757else
9758  case $ac_pt_PKG_CONFIG in
9759  [\\/]* | ?:[\\/]*)
9760  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9761  ;;
9762  *)
9763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764for as_dir in $PATH
9765do
9766  IFS=$as_save_IFS
9767  test -z "$as_dir" && as_dir=.
9768    for ac_exec_ext in '' $ac_executable_extensions; do
9769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9770    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9772    break 2
9773  fi
9774done
9775  done
9776IFS=$as_save_IFS
9777
9778  ;;
9779esac
9780fi
9781ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9782if test -n "$ac_pt_PKG_CONFIG"; then
9783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9784$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9785else
9786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787$as_echo "no" >&6; }
9788fi
9789
9790  if test "x$ac_pt_PKG_CONFIG" = x; then
9791    PKG_CONFIG="no"
9792  else
9793    case $cross_compiling:$ac_tool_warned in
9794yes:)
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9797ac_tool_warned=yes ;;
9798esac
9799    PKG_CONFIG=$ac_pt_PKG_CONFIG
9800  fi
9801else
9802  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9803fi
9804
9805  fi
9806
9807  if test "x$PKG_CONFIG" != "xno"; then
9808
9809  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9810  {
9811    no_gtk=""
9812    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9813	  && $PKG_CONFIG --exists gtk+-2.0; then
9814    {
9815      min_gtk_version=3.0.0
9816      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9817$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9818                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9819      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9820      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9821      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9822	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9823      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9824	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9825      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9826	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9827    }
9828    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9829	  && $PKG_CONFIG --exists gtk+-3.0; then
9830    {
9831      min_gtk_version=3.0.0
9832      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9833$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9834
9835      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9836      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9837      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9838      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9839	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9840      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9841	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9842      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9843	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9844    }
9845    else
9846      no_gtk=yes
9847    fi
9848
9849    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9850    {
9851      ac_save_CFLAGS="$CFLAGS"
9852      ac_save_LIBS="$LIBS"
9853      CFLAGS="$CFLAGS $GTK_CFLAGS"
9854      LIBS="$LIBS $GTK_LIBS"
9855
9856                        rm -f conf.gtktest
9857      if test "$cross_compiling" = yes; then :
9858  echo $ac_n "cross compiling; assumed OK... $ac_c"
9859else
9860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861/* end confdefs.h.  */
9862
9863#include <gtk/gtk.h>
9864#include <stdio.h>
9865#if STDC_HEADERS
9866# include <stdlib.h>
9867# include <stddef.h>
9868#endif
9869
9870int
9871main ()
9872{
9873int major, minor, micro;
9874char *tmp_version;
9875
9876system ("touch conf.gtktest");
9877
9878/* HP/UX 9 (%@#!) writes to sscanf strings */
9879tmp_version = g_strdup("$min_gtk_version");
9880if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9881   printf("%s, bad version string\n", "$min_gtk_version");
9882   exit(1);
9883 }
9884
9885if ((gtk_major_version > major) ||
9886    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9887    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9888				     (gtk_micro_version >= micro)))
9889{
9890    return 0;
9891}
9892return 1;
9893}
9894
9895_ACEOF
9896if ac_fn_c_try_run "$LINENO"; then :
9897
9898else
9899  no_gtk=yes
9900fi
9901rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9902  conftest.$ac_objext conftest.beam conftest.$ac_ext
9903fi
9904
9905      CFLAGS="$ac_save_CFLAGS"
9906      LIBS="$ac_save_LIBS"
9907    }
9908    fi
9909    if test "x$no_gtk" = x ; then
9910      if test "x$enable_gtktest" = "xyes"; then
9911	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9912$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9913      else
9914	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9915$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9916      fi
9917      GUI_LIB_LOC="$GTK_LIBDIR"
9918		 GTK_LIBNAME="$GTK_LIBS"
9919		GUI_INC_LOC="$GTK_CFLAGS"
9920    else
9921    {
9922      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923$as_echo "no" >&6; }
9924      GTK_CFLAGS=""
9925      GTK_LIBS=""
9926      :
9927    }
9928    fi
9929  }
9930  else
9931    GTK_CFLAGS=""
9932    GTK_LIBS=""
9933    :
9934  fi
9935
9936
9937  rm -f conf.gtktest
9938
9939    if test "x$GTK_CFLAGS" != "x"; then
9940      SKIP_GTK2=YES
9941      SKIP_GNOME=YES
9942      SKIP_ATHENA=YES
9943      SKIP_NEXTAW=YES
9944      SKIP_MOTIF=YES
9945      GUITYPE=GTK
9946
9947      $as_echo "#define USE_GTK3 1" >>confdefs.h
9948
9949    fi
9950  fi
9951fi
9952
9953if test "x$GUITYPE" = "xGTK"; then
9954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9955$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9956  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9957  if test "x$gdk_pixbuf_version" != x ; then
9958    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9959      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9960    if test "x$gdk_pixbuf_version_minor" != x -a \
9961	$gdk_pixbuf_version_minor -ge 31 ; then
9962      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
9963$as_echo "OK." >&6; }
9964      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
9965set dummy glib-compile-resources; ac_word=$2
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967$as_echo_n "checking for $ac_word... " >&6; }
9968if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
9969  $as_echo_n "(cached) " >&6
9970else
9971  case $GLIB_COMPILE_RESOURCES in
9972  [\\/]* | ?:[\\/]*)
9973  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
9974  ;;
9975  *)
9976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977for as_dir in $PATH
9978do
9979  IFS=$as_save_IFS
9980  test -z "$as_dir" && as_dir=.
9981    for ac_exec_ext in '' $ac_executable_extensions; do
9982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9983    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
9984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985    break 2
9986  fi
9987done
9988  done
9989IFS=$as_save_IFS
9990
9991  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
9992  ;;
9993esac
9994fi
9995GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
9996if test -n "$GLIB_COMPILE_RESOURCES"; then
9997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
9998$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
9999else
10000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001$as_echo "no" >&6; }
10002fi
10003
10004
10005      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
10006$as_echo_n "checking glib-compile-resources... " >&6; }
10007      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
10008	GLIB_COMPILE_RESOURCES=""
10009	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
10010$as_echo "cannot be found in PATH." >&6; }
10011      else
10012	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
10013$as_echo "usable." >&6; }
10014	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
10015
10016	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
10017	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
10018      fi
10019    else
10020      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
10021$as_echo "not usable." >&6; }
10022    fi
10023  else
10024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
10025$as_echo "cannot obtain from pkg_config." >&6; }
10026  fi
10027
10028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
10029$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
10030  # Check whether --enable-icon_cache_update was given.
10031if test "${enable_icon_cache_update+set}" = set; then :
10032  enableval=$enable_icon_cache_update;
10033else
10034  enable_icon_cache_update="yes"
10035fi
10036
10037  if test "$enable_icon_cache_update" = "yes"; then
10038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10039$as_echo "not set" >&6; }
10040    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
10041set dummy gtk-update-icon-cache; ac_word=$2
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043$as_echo_n "checking for $ac_word... " >&6; }
10044if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
10045  $as_echo_n "(cached) " >&6
10046else
10047  case $GTK_UPDATE_ICON_CACHE in
10048  [\\/]* | ?:[\\/]*)
10049  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
10050  ;;
10051  *)
10052  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053for as_dir in $PATH
10054do
10055  IFS=$as_save_IFS
10056  test -z "$as_dir" && as_dir=.
10057    for ac_exec_ext in '' $ac_executable_extensions; do
10058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10059    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
10060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061    break 2
10062  fi
10063done
10064  done
10065IFS=$as_save_IFS
10066
10067  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
10068  ;;
10069esac
10070fi
10071GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
10072if test -n "$GTK_UPDATE_ICON_CACHE"; then
10073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
10074$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
10075else
10076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077$as_echo "no" >&6; }
10078fi
10079
10080
10081    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
10082      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10083$as_echo "not found in PATH." >&6; }
10084    fi
10085  else
10086    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10087$as_echo "update disabled" >&6; }
10088  fi
10089
10090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
10091$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
10092  # Check whether --enable-desktop_database_update was given.
10093if test "${enable_desktop_database_update+set}" = set; then :
10094  enableval=$enable_desktop_database_update;
10095else
10096  enable_desktop_database_update="yes"
10097fi
10098
10099  if test "$enable_desktop_database_update" = "yes"; then
10100    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10101$as_echo "not set" >&6; }
10102    # Extract the first word of "update-desktop-database", so it can be a program name with args.
10103set dummy update-desktop-database; ac_word=$2
10104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105$as_echo_n "checking for $ac_word... " >&6; }
10106if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
10107  $as_echo_n "(cached) " >&6
10108else
10109  case $UPDATE_DESKTOP_DATABASE in
10110  [\\/]* | ?:[\\/]*)
10111  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
10112  ;;
10113  *)
10114  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115for as_dir in $PATH
10116do
10117  IFS=$as_save_IFS
10118  test -z "$as_dir" && as_dir=.
10119    for ac_exec_ext in '' $ac_executable_extensions; do
10120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10121    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
10122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10123    break 2
10124  fi
10125done
10126  done
10127IFS=$as_save_IFS
10128
10129  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
10130  ;;
10131esac
10132fi
10133UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
10134if test -n "$UPDATE_DESKTOP_DATABASE"; then
10135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
10136$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
10137else
10138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10139$as_echo "no" >&6; }
10140fi
10141
10142
10143    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
10144      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10145$as_echo "not found in PATH." >&6; }
10146    fi
10147  else
10148    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10149$as_echo "update disabled" >&6; }
10150  fi
10151fi
10152
10153
10154
10155
10156
10157
10158
10159if test -z "$SKIP_MOTIF"; then
10160  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"
10161    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
10162
10163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
10164$as_echo_n "checking for location of Motif GUI includes... " >&6; }
10165  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
10166  GUI_INC_LOC=
10167  for try in $gui_includes; do
10168    if test -f "$try/Xm/Xm.h"; then
10169      GUI_INC_LOC=$try
10170    fi
10171  done
10172  if test -n "$GUI_INC_LOC"; then
10173    if test "$GUI_INC_LOC" = /usr/include; then
10174      GUI_INC_LOC=
10175      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10176$as_echo "in default path" >&6; }
10177    else
10178      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
10179$as_echo "$GUI_INC_LOC" >&6; }
10180    fi
10181  else
10182    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10183$as_echo "<not found>" >&6; }
10184    SKIP_MOTIF=YES
10185  fi
10186fi
10187
10188
10189if test -z "$SKIP_MOTIF"; then
10190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
10191$as_echo_n "checking --with-motif-lib argument... " >&6; }
10192
10193# Check whether --with-motif-lib was given.
10194if test "${with_motif_lib+set}" = set; then :
10195  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
10196fi
10197
10198
10199  if test -n "$MOTIF_LIBNAME"; then
10200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
10201$as_echo "$MOTIF_LIBNAME" >&6; }
10202    GUI_LIB_LOC=
10203  else
10204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205$as_echo "no" >&6; }
10206
10207        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
10208
10209            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
10210$as_echo_n "checking for location of Motif GUI libs... " >&6; }
10211    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"
10212    GUI_LIB_LOC=
10213    for try in $gui_libs; do
10214      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
10215	if test -f "$libtry"; then
10216	  GUI_LIB_LOC=$try
10217	fi
10218      done
10219    done
10220    if test -n "$GUI_LIB_LOC"; then
10221            if test "$GUI_LIB_LOC" = /usr/lib \
10222	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
10223	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
10224	GUI_LIB_LOC=
10225	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10226$as_echo "in default path" >&6; }
10227      else
10228	if test -n "$GUI_LIB_LOC"; then
10229	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
10230$as_echo "$GUI_LIB_LOC" >&6; }
10231	  if test "`(uname) 2>/dev/null`" = SunOS &&
10232					 uname -r | grep '^5' >/dev/null; then
10233	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
10234	  fi
10235	fi
10236      fi
10237      MOTIF_LIBNAME=-lXm
10238    else
10239      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10240$as_echo "<not found>" >&6; }
10241      SKIP_MOTIF=YES
10242    fi
10243  fi
10244fi
10245
10246if test -z "$SKIP_MOTIF"; then
10247  SKIP_ATHENA=YES
10248  SKIP_NEXTAW=YES
10249  GUITYPE=MOTIF
10250
10251fi
10252
10253
10254GUI_X_LIBS=
10255
10256if test -z "$SKIP_ATHENA"; then
10257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
10258$as_echo_n "checking if Athena header files can be found... " >&6; }
10259  cflags_save=$CFLAGS
10260  CFLAGS="$CFLAGS $X_CFLAGS"
10261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262/* end confdefs.h.  */
10263
10264#include <X11/Intrinsic.h>
10265#include <X11/Xaw/Paned.h>
10266int
10267main ()
10268{
10269
10270  ;
10271  return 0;
10272}
10273_ACEOF
10274if ac_fn_c_try_compile "$LINENO"; then :
10275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10276$as_echo "yes" >&6; }
10277else
10278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279$as_echo "no" >&6; }; SKIP_ATHENA=YES
10280fi
10281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10282  CFLAGS=$cflags_save
10283fi
10284
10285if test -z "$SKIP_ATHENA"; then
10286  GUITYPE=ATHENA
10287fi
10288
10289if test -z "$SKIP_NEXTAW"; then
10290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
10291$as_echo_n "checking if neXtaw header files can be found... " >&6; }
10292  cflags_save=$CFLAGS
10293  CFLAGS="$CFLAGS $X_CFLAGS"
10294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295/* end confdefs.h.  */
10296
10297#include <X11/Intrinsic.h>
10298#include <X11/neXtaw/Paned.h>
10299int
10300main ()
10301{
10302
10303  ;
10304  return 0;
10305}
10306_ACEOF
10307if ac_fn_c_try_compile "$LINENO"; then :
10308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10309$as_echo "yes" >&6; }
10310else
10311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312$as_echo "no" >&6; }; SKIP_NEXTAW=YES
10313fi
10314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10315  CFLAGS=$cflags_save
10316fi
10317
10318if test -z "$SKIP_NEXTAW"; then
10319  GUITYPE=NEXTAW
10320fi
10321
10322if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10323      if test -n "$GUI_INC_LOC"; then
10324    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
10325  fi
10326  if test -n "$GUI_LIB_LOC"; then
10327    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
10328  fi
10329
10330    ldflags_save=$LDFLAGS
10331  LDFLAGS="$X_LIBS $LDFLAGS"
10332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10333$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10334if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10335  $as_echo_n "(cached) " >&6
10336else
10337  ac_check_lib_save_LIBS=$LIBS
10338LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340/* end confdefs.h.  */
10341
10342/* Override any GCC internal prototype to avoid an error.
10343   Use char because int might match the return type of a GCC
10344   builtin and then its argument prototype would still apply.  */
10345#ifdef __cplusplus
10346extern "C"
10347#endif
10348char XShapeQueryExtension ();
10349int
10350main ()
10351{
10352return XShapeQueryExtension ();
10353  ;
10354  return 0;
10355}
10356_ACEOF
10357if ac_fn_c_try_link "$LINENO"; then :
10358  ac_cv_lib_Xext_XShapeQueryExtension=yes
10359else
10360  ac_cv_lib_Xext_XShapeQueryExtension=no
10361fi
10362rm -f core conftest.err conftest.$ac_objext \
10363    conftest$ac_exeext conftest.$ac_ext
10364LIBS=$ac_check_lib_save_LIBS
10365fi
10366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10367$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10368if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10369  GUI_X_LIBS="-lXext"
10370fi
10371
10372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
10373$as_echo_n "checking for wslen in -lw... " >&6; }
10374if ${ac_cv_lib_w_wslen+:} false; then :
10375  $as_echo_n "(cached) " >&6
10376else
10377  ac_check_lib_save_LIBS=$LIBS
10378LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380/* end confdefs.h.  */
10381
10382/* Override any GCC internal prototype to avoid an error.
10383   Use char because int might match the return type of a GCC
10384   builtin and then its argument prototype would still apply.  */
10385#ifdef __cplusplus
10386extern "C"
10387#endif
10388char wslen ();
10389int
10390main ()
10391{
10392return wslen ();
10393  ;
10394  return 0;
10395}
10396_ACEOF
10397if ac_fn_c_try_link "$LINENO"; then :
10398  ac_cv_lib_w_wslen=yes
10399else
10400  ac_cv_lib_w_wslen=no
10401fi
10402rm -f core conftest.err conftest.$ac_objext \
10403    conftest$ac_exeext conftest.$ac_ext
10404LIBS=$ac_check_lib_save_LIBS
10405fi
10406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
10407$as_echo "$ac_cv_lib_w_wslen" >&6; }
10408if test "x$ac_cv_lib_w_wslen" = xyes; then :
10409  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
10410fi
10411
10412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10413$as_echo_n "checking for dlsym in -ldl... " >&6; }
10414if ${ac_cv_lib_dl_dlsym+:} false; then :
10415  $as_echo_n "(cached) " >&6
10416else
10417  ac_check_lib_save_LIBS=$LIBS
10418LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421
10422/* Override any GCC internal prototype to avoid an error.
10423   Use char because int might match the return type of a GCC
10424   builtin and then its argument prototype would still apply.  */
10425#ifdef __cplusplus
10426extern "C"
10427#endif
10428char dlsym ();
10429int
10430main ()
10431{
10432return dlsym ();
10433  ;
10434  return 0;
10435}
10436_ACEOF
10437if ac_fn_c_try_link "$LINENO"; then :
10438  ac_cv_lib_dl_dlsym=yes
10439else
10440  ac_cv_lib_dl_dlsym=no
10441fi
10442rm -f core conftest.err conftest.$ac_objext \
10443    conftest$ac_exeext conftest.$ac_ext
10444LIBS=$ac_check_lib_save_LIBS
10445fi
10446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10447$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10448if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10449  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
10450fi
10451
10452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
10453$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
10454if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
10455  $as_echo_n "(cached) " >&6
10456else
10457  ac_check_lib_save_LIBS=$LIBS
10458LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460/* end confdefs.h.  */
10461
10462/* Override any GCC internal prototype to avoid an error.
10463   Use char because int might match the return type of a GCC
10464   builtin and then its argument prototype would still apply.  */
10465#ifdef __cplusplus
10466extern "C"
10467#endif
10468char XmuCreateStippledPixmap ();
10469int
10470main ()
10471{
10472return XmuCreateStippledPixmap ();
10473  ;
10474  return 0;
10475}
10476_ACEOF
10477if ac_fn_c_try_link "$LINENO"; then :
10478  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
10479else
10480  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
10481fi
10482rm -f core conftest.err conftest.$ac_objext \
10483    conftest$ac_exeext conftest.$ac_ext
10484LIBS=$ac_check_lib_save_LIBS
10485fi
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
10487$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
10488if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
10489  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
10490fi
10491
10492  if test -z "$SKIP_MOTIF"; then
10493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
10494$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
10495if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
10496  $as_echo_n "(cached) " >&6
10497else
10498  ac_check_lib_save_LIBS=$LIBS
10499LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501/* end confdefs.h.  */
10502
10503/* Override any GCC internal prototype to avoid an error.
10504   Use char because int might match the return type of a GCC
10505   builtin and then its argument prototype would still apply.  */
10506#ifdef __cplusplus
10507extern "C"
10508#endif
10509char XpEndJob ();
10510int
10511main ()
10512{
10513return XpEndJob ();
10514  ;
10515  return 0;
10516}
10517_ACEOF
10518if ac_fn_c_try_link "$LINENO"; then :
10519  ac_cv_lib_Xp_XpEndJob=yes
10520else
10521  ac_cv_lib_Xp_XpEndJob=no
10522fi
10523rm -f core conftest.err conftest.$ac_objext \
10524    conftest$ac_exeext conftest.$ac_ext
10525LIBS=$ac_check_lib_save_LIBS
10526fi
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
10528$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
10529if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
10530  GUI_X_LIBS="-lXp $GUI_X_LIBS"
10531fi
10532
10533  fi
10534  LDFLAGS=$ldflags_save
10535
10536    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
10537$as_echo_n "checking for extra X11 defines... " >&6; }
10538  NARROW_PROTO=
10539  rm -fr conftestdir
10540  if mkdir conftestdir; then
10541    cd conftestdir
10542    cat > Imakefile <<'EOF'
10543acfindx:
10544	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
10545EOF
10546    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10547      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10548    fi
10549    cd ..
10550    rm -fr conftestdir
10551  fi
10552  if test -z "$NARROW_PROTO"; then
10553    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554$as_echo "no" >&6; }
10555  else
10556    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
10557$as_echo "$NARROW_PROTO" >&6; }
10558  fi
10559
10560fi
10561
10562if test "$enable_xsmp" = "yes"; then
10563  cppflags_save=$CPPFLAGS
10564  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10565  for ac_header in X11/SM/SMlib.h
10566do :
10567  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10568if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
10569  cat >>confdefs.h <<_ACEOF
10570#define HAVE_X11_SM_SMLIB_H 1
10571_ACEOF
10572
10573fi
10574
10575done
10576
10577  CPPFLAGS=$cppflags_save
10578fi
10579
10580
10581if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
10582    cppflags_save=$CPPFLAGS
10583  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10584  for ac_header in X11/xpm.h X11/Sunkeysym.h
10585do :
10586  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10587ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10588if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10589  cat >>confdefs.h <<_ACEOF
10590#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10591_ACEOF
10592
10593fi
10594
10595done
10596
10597
10598    if test ! "$enable_xim" = "no"; then
10599    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
10600$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10601    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602/* end confdefs.h.  */
10603#include <X11/Xlib.h>
10604_ACEOF
10605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10606  $EGREP "XIMText" >/dev/null 2>&1; then :
10607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10608$as_echo "yes" >&6; }
10609else
10610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10611$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
10612fi
10613rm -f conftest*
10614
10615  fi
10616  CPPFLAGS=$cppflags_save
10617
10618    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10619		-a "x$GUITYPE" != "xNONE" ; then
10620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10621$as_echo "X GUI selected; xim has been enabled" >&6; }
10622    enable_xim="yes"
10623  fi
10624fi
10625
10626if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10627  cppflags_save=$CPPFLAGS
10628  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10630$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632/* end confdefs.h.  */
10633
10634#include <X11/Intrinsic.h>
10635#include <X11/Xmu/Editres.h>
10636int
10637main ()
10638{
10639int i; i = 0;
10640  ;
10641  return 0;
10642}
10643_ACEOF
10644if ac_fn_c_try_compile "$LINENO"; then :
10645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10646$as_echo "yes" >&6; }
10647		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10648
10649else
10650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651$as_echo "no" >&6; }
10652fi
10653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654  CPPFLAGS=$cppflags_save
10655fi
10656
10657if test -z "$SKIP_MOTIF"; then
10658  cppflags_save=$CPPFLAGS
10659  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10660  if test "$zOSUnix" = "yes"; then
10661	xmheader="Xm/Xm.h"
10662  else
10663	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10664	   Xm/UnhighlightT.h Xm/Notebook.h"
10665  fi
10666  for ac_header in $xmheader
10667do :
10668  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10669ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10670if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10671  cat >>confdefs.h <<_ACEOF
10672#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10673_ACEOF
10674
10675fi
10676
10677done
10678
10679
10680  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10681        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10682$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10683    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684/* end confdefs.h.  */
10685#include <Xm/XpmP.h>
10686int
10687main ()
10688{
10689XpmAttributes_21 attr;
10690  ;
10691  return 0;
10692}
10693_ACEOF
10694if ac_fn_c_try_compile "$LINENO"; then :
10695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10696$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10697
10698else
10699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10701
10702
10703fi
10704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10705  else
10706    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10707
10708  fi
10709  CPPFLAGS=$cppflags_save
10710fi
10711
10712if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10714$as_echo "no GUI selected; xim has been disabled" >&6; }
10715  enable_xim="no"
10716fi
10717if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10719$as_echo "no GUI selected; fontset has been disabled" >&6; }
10720  enable_fontset="no"
10721fi
10722if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10724$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10725  enable_fontset="no"
10726fi
10727
10728if test -z "$SKIP_PHOTON"; then
10729  GUITYPE=PHOTONGUI
10730fi
10731
10732
10733
10734
10735
10736
10737if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10738  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10739fi
10740
10741if test "$enable_xim" = "yes"; then
10742  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10743
10744fi
10745if test "$enable_fontset" = "yes"; then
10746  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10747
10748fi
10749
10750
10751
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10753$as_echo_n "checking for /proc link to executable... " >&6; }
10754if test -L "/proc/self/exe"; then
10755    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10756$as_echo "/proc/self/exe" >&6; }
10757  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10758
10759elif test -L "/proc/self/path/a.out"; then
10760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10761$as_echo "/proc/self/path/a.out" >&6; }
10762  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10763
10764elif test -L "/proc/curproc/file"; then
10765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10766$as_echo "/proc/curproc/file" >&6; }
10767  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10768
10769else
10770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771$as_echo "no" >&6; }
10772fi
10773
10774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10775$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10776case `uname` in
10777    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10778$as_echo "yes" >&6; }
10779                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10780$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10781                if test "x$with_x" = "xno" ; then
10782                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10783                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10784$as_echo "yes" >&6; }
10785                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10786
10787                else
10788                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10789$as_echo "no - using X11" >&6; }
10790                fi ;;
10791
10792    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793$as_echo "no" >&6; };;
10794esac
10795
10796if test "$enable_hangulinput" = "yes"; then
10797  if test "x$GUITYPE" = "xNONE"; then
10798    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
10799$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10800    enable_hangulinput=no
10801  else
10802    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
10803
10804    HANGULIN_SRC=hangulin.c
10805
10806    HANGULIN_OBJ=objects/hangulin.o
10807
10808  fi
10809fi
10810
10811
10812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10813$as_echo_n "checking whether toupper is broken... " >&6; }
10814if ${vim_cv_toupper_broken+:} false; then :
10815  $as_echo_n "(cached) " >&6
10816else
10817
10818    if test "$cross_compiling" = yes; then :
10819
10820    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10821
10822else
10823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824/* end confdefs.h.  */
10825
10826#include "confdefs.h"
10827#include <ctype.h>
10828#if STDC_HEADERS
10829# include <stdlib.h>
10830# include <stddef.h>
10831#endif
10832main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10833
10834_ACEOF
10835if ac_fn_c_try_run "$LINENO"; then :
10836
10837    vim_cv_toupper_broken=yes
10838
10839else
10840
10841    vim_cv_toupper_broken=no
10842
10843fi
10844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10845  conftest.$ac_objext conftest.beam conftest.$ac_ext
10846fi
10847
10848fi
10849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10850$as_echo "$vim_cv_toupper_broken" >&6; }
10851
10852if test "x$vim_cv_toupper_broken" = "xyes" ; then
10853  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10854
10855fi
10856
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10858$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860/* end confdefs.h.  */
10861#include <stdio.h>
10862int
10863main ()
10864{
10865printf("(" __DATE__ " " __TIME__ ")");
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_DATE_TIME 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
10880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10881$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883/* end confdefs.h.  */
10884#include <stdio.h>
10885int
10886main ()
10887{
10888int x __attribute__((unused));
10889  ;
10890  return 0;
10891}
10892_ACEOF
10893if ac_fn_c_try_compile "$LINENO"; then :
10894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10895$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10896
10897else
10898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899$as_echo "no" >&6; }
10900fi
10901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10902
10903ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10904if test "x$ac_cv_header_elf_h" = xyes; then :
10905  HAS_ELF=1
10906fi
10907
10908
10909if test "$HAS_ELF" = 1; then
10910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10911$as_echo_n "checking for main in -lelf... " >&6; }
10912if ${ac_cv_lib_elf_main+:} false; then :
10913  $as_echo_n "(cached) " >&6
10914else
10915  ac_check_lib_save_LIBS=$LIBS
10916LIBS="-lelf  $LIBS"
10917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918/* end confdefs.h.  */
10919
10920
10921int
10922main ()
10923{
10924return main ();
10925  ;
10926  return 0;
10927}
10928_ACEOF
10929if ac_fn_c_try_link "$LINENO"; then :
10930  ac_cv_lib_elf_main=yes
10931else
10932  ac_cv_lib_elf_main=no
10933fi
10934rm -f core conftest.err conftest.$ac_objext \
10935    conftest$ac_exeext conftest.$ac_ext
10936LIBS=$ac_check_lib_save_LIBS
10937fi
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10939$as_echo "$ac_cv_lib_elf_main" >&6; }
10940if test "x$ac_cv_lib_elf_main" = xyes; then :
10941  cat >>confdefs.h <<_ACEOF
10942#define HAVE_LIBELF 1
10943_ACEOF
10944
10945  LIBS="-lelf $LIBS"
10946
10947fi
10948
10949fi
10950
10951ac_header_dirent=no
10952for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10953  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10955$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10956if eval \${$as_ac_Header+:} false; then :
10957  $as_echo_n "(cached) " >&6
10958else
10959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960/* end confdefs.h.  */
10961#include <sys/types.h>
10962#include <$ac_hdr>
10963
10964int
10965main ()
10966{
10967if ((DIR *) 0)
10968return 0;
10969  ;
10970  return 0;
10971}
10972_ACEOF
10973if ac_fn_c_try_compile "$LINENO"; then :
10974  eval "$as_ac_Header=yes"
10975else
10976  eval "$as_ac_Header=no"
10977fi
10978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979fi
10980eval ac_res=\$$as_ac_Header
10981	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10982$as_echo "$ac_res" >&6; }
10983if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10984  cat >>confdefs.h <<_ACEOF
10985#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10986_ACEOF
10987
10988ac_header_dirent=$ac_hdr; break
10989fi
10990
10991done
10992# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10993if test $ac_header_dirent = dirent.h; then
10994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10995$as_echo_n "checking for library containing opendir... " >&6; }
10996if ${ac_cv_search_opendir+:} false; then :
10997  $as_echo_n "(cached) " >&6
10998else
10999  ac_func_search_save_LIBS=$LIBS
11000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001/* end confdefs.h.  */
11002
11003/* Override any GCC internal prototype to avoid an error.
11004   Use char because int might match the return type of a GCC
11005   builtin and then its argument prototype would still apply.  */
11006#ifdef __cplusplus
11007extern "C"
11008#endif
11009char opendir ();
11010int
11011main ()
11012{
11013return opendir ();
11014  ;
11015  return 0;
11016}
11017_ACEOF
11018for ac_lib in '' dir; do
11019  if test -z "$ac_lib"; then
11020    ac_res="none required"
11021  else
11022    ac_res=-l$ac_lib
11023    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11024  fi
11025  if ac_fn_c_try_link "$LINENO"; then :
11026  ac_cv_search_opendir=$ac_res
11027fi
11028rm -f core conftest.err conftest.$ac_objext \
11029    conftest$ac_exeext
11030  if ${ac_cv_search_opendir+:} false; then :
11031  break
11032fi
11033done
11034if ${ac_cv_search_opendir+:} false; then :
11035
11036else
11037  ac_cv_search_opendir=no
11038fi
11039rm conftest.$ac_ext
11040LIBS=$ac_func_search_save_LIBS
11041fi
11042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11043$as_echo "$ac_cv_search_opendir" >&6; }
11044ac_res=$ac_cv_search_opendir
11045if test "$ac_res" != no; then :
11046  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11047
11048fi
11049
11050else
11051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11052$as_echo_n "checking for library containing opendir... " >&6; }
11053if ${ac_cv_search_opendir+:} false; then :
11054  $as_echo_n "(cached) " >&6
11055else
11056  ac_func_search_save_LIBS=$LIBS
11057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058/* end confdefs.h.  */
11059
11060/* Override any GCC internal prototype to avoid an error.
11061   Use char because int might match the return type of a GCC
11062   builtin and then its argument prototype would still apply.  */
11063#ifdef __cplusplus
11064extern "C"
11065#endif
11066char opendir ();
11067int
11068main ()
11069{
11070return opendir ();
11071  ;
11072  return 0;
11073}
11074_ACEOF
11075for ac_lib in '' x; do
11076  if test -z "$ac_lib"; then
11077    ac_res="none required"
11078  else
11079    ac_res=-l$ac_lib
11080    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11081  fi
11082  if ac_fn_c_try_link "$LINENO"; then :
11083  ac_cv_search_opendir=$ac_res
11084fi
11085rm -f core conftest.err conftest.$ac_objext \
11086    conftest$ac_exeext
11087  if ${ac_cv_search_opendir+:} false; then :
11088  break
11089fi
11090done
11091if ${ac_cv_search_opendir+:} false; then :
11092
11093else
11094  ac_cv_search_opendir=no
11095fi
11096rm conftest.$ac_ext
11097LIBS=$ac_func_search_save_LIBS
11098fi
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11100$as_echo "$ac_cv_search_opendir" >&6; }
11101ac_res=$ac_cv_search_opendir
11102if test "$ac_res" != no; then :
11103  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11104
11105fi
11106
11107fi
11108
11109
11110if test $ac_cv_header_sys_wait_h = no; then
11111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
11112$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114/* end confdefs.h.  */
11115#include <sys/wait.h>
11116int
11117main ()
11118{
11119union wait xx, yy; xx = yy
11120  ;
11121  return 0;
11122}
11123_ACEOF
11124if ac_fn_c_try_compile "$LINENO"; then :
11125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11126$as_echo "yes" >&6; }
11127			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11128
11129			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
11130
11131else
11132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133$as_echo "no" >&6; }
11134fi
11135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11136fi
11137
11138for ac_header in stdint.h stdlib.h string.h \
11139	sys/select.h sys/utsname.h termcap.h fcntl.h \
11140	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
11141	termio.h iconv.h inttypes.h langinfo.h math.h \
11142	unistd.h stropts.h errno.h sys/resource.h \
11143	sys/systeminfo.h locale.h sys/stream.h termios.h \
11144	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
11145	utime.h sys/param.h libintl.h libgen.h \
11146	util/debug.h util/msg18n.h frame.h sys/acl.h \
11147	sys/access.h sys/sysinfo.h wchar.h wctype.h
11148do :
11149  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11150ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11151if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11152  cat >>confdefs.h <<_ACEOF
11153#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11154_ACEOF
11155
11156fi
11157
11158done
11159
11160
11161for ac_header in sys/ptem.h
11162do :
11163  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
11164#  include <sys/stream.h>
11165#endif
11166"
11167if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
11168  cat >>confdefs.h <<_ACEOF
11169#define HAVE_SYS_PTEM_H 1
11170_ACEOF
11171
11172fi
11173
11174done
11175
11176
11177for ac_header in sys/sysctl.h
11178do :
11179  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
11180#  include <sys/param.h>
11181#endif
11182"
11183if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
11184  cat >>confdefs.h <<_ACEOF
11185#define HAVE_SYS_SYSCTL_H 1
11186_ACEOF
11187
11188fi
11189
11190done
11191
11192
11193
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
11195$as_echo_n "checking for pthread_np.h... " >&6; }
11196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197/* end confdefs.h.  */
11198
11199#include <pthread.h>
11200#include <pthread_np.h>
11201int
11202main ()
11203{
11204int i; i = 0;
11205  ;
11206  return 0;
11207}
11208_ACEOF
11209if ac_fn_c_try_compile "$LINENO"; then :
11210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11211$as_echo "yes" >&6; }
11212		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
11213
11214else
11215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11216$as_echo "no" >&6; }
11217fi
11218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219
11220for ac_header in strings.h
11221do :
11222  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
11223if test "x$ac_cv_header_strings_h" = xyes; then :
11224  cat >>confdefs.h <<_ACEOF
11225#define HAVE_STRINGS_H 1
11226_ACEOF
11227
11228fi
11229
11230done
11231
11232if test "x$MACOS_X" = "xyes"; then
11233    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11234
11235else
11236
11237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
11238$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11239cppflags_save=$CPPFLAGS
11240CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242/* end confdefs.h.  */
11243
11244#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11245# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11246			/* but don't do it on AIX 5.1 (Uribarri) */
11247#endif
11248#ifdef HAVE_XM_XM_H
11249# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11250#endif
11251#ifdef HAVE_STRING_H
11252# include <string.h>
11253#endif
11254#if defined(HAVE_STRINGS_H)
11255# include <strings.h>
11256#endif
11257
11258int
11259main ()
11260{
11261int i; i = 0;
11262  ;
11263  return 0;
11264}
11265_ACEOF
11266if ac_fn_c_try_compile "$LINENO"; then :
11267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11268$as_echo "yes" >&6; }
11269else
11270  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11271
11272		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273$as_echo "no" >&6; }
11274fi
11275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11276CPPFLAGS=$cppflags_save
11277fi
11278
11279if test $ac_cv_c_compiler_gnu = yes; then
11280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11281$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11282if ${ac_cv_prog_gcc_traditional+:} false; then :
11283  $as_echo_n "(cached) " >&6
11284else
11285    ac_pattern="Autoconf.*'x'"
11286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287/* end confdefs.h.  */
11288#include <sgtty.h>
11289Autoconf TIOCGETP
11290_ACEOF
11291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11292  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11293  ac_cv_prog_gcc_traditional=yes
11294else
11295  ac_cv_prog_gcc_traditional=no
11296fi
11297rm -f conftest*
11298
11299
11300  if test $ac_cv_prog_gcc_traditional = no; then
11301    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302/* end confdefs.h.  */
11303#include <termio.h>
11304Autoconf TCGETA
11305_ACEOF
11306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11307  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11308  ac_cv_prog_gcc_traditional=yes
11309fi
11310rm -f conftest*
11311
11312  fi
11313fi
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11315$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11316  if test $ac_cv_prog_gcc_traditional = yes; then
11317    CC="$CC -traditional"
11318  fi
11319fi
11320
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11322$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11323if ${ac_cv_c_const+:} false; then :
11324  $as_echo_n "(cached) " >&6
11325else
11326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327/* end confdefs.h.  */
11328
11329int
11330main ()
11331{
11332
11333#ifndef __cplusplus
11334  /* Ultrix mips cc rejects this sort of thing.  */
11335  typedef int charset[2];
11336  const charset cs = { 0, 0 };
11337  /* SunOS 4.1.1 cc rejects this.  */
11338  char const *const *pcpcc;
11339  char **ppc;
11340  /* NEC SVR4.0.2 mips cc rejects this.  */
11341  struct point {int x, y;};
11342  static struct point const zero = {0,0};
11343  /* AIX XL C 1.02.0.0 rejects this.
11344     It does not let you subtract one const X* pointer from another in
11345     an arm of an if-expression whose if-part is not a constant
11346     expression */
11347  const char *g = "string";
11348  pcpcc = &g + (g ? g-g : 0);
11349  /* HPUX 7.0 cc rejects these. */
11350  ++pcpcc;
11351  ppc = (char**) pcpcc;
11352  pcpcc = (char const *const *) ppc;
11353  { /* SCO 3.2v4 cc rejects this sort of thing.  */
11354    char tx;
11355    char *t = &tx;
11356    char const *s = 0 ? (char *) 0 : (char const *) 0;
11357
11358    *t++ = 0;
11359    if (s) return 0;
11360  }
11361  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11362    int x[] = {25, 17};
11363    const int *foo = &x[0];
11364    ++foo;
11365  }
11366  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11367    typedef const int *iptr;
11368    iptr p = 0;
11369    ++p;
11370  }
11371  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11372       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11373    struct s { int j; const int *ap[3]; } bx;
11374    struct s *b = &bx; b->j = 5;
11375  }
11376  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11377    const int foo = 10;
11378    if (!foo) return 0;
11379  }
11380  return !cs[0] && !zero.x;
11381#endif
11382
11383  ;
11384  return 0;
11385}
11386_ACEOF
11387if ac_fn_c_try_compile "$LINENO"; then :
11388  ac_cv_c_const=yes
11389else
11390  ac_cv_c_const=no
11391fi
11392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11393fi
11394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11395$as_echo "$ac_cv_c_const" >&6; }
11396if test $ac_cv_c_const = no; then
11397
11398$as_echo "#define const /**/" >>confdefs.h
11399
11400fi
11401
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11403$as_echo_n "checking for working volatile... " >&6; }
11404if ${ac_cv_c_volatile+:} false; then :
11405  $as_echo_n "(cached) " >&6
11406else
11407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408/* end confdefs.h.  */
11409
11410int
11411main ()
11412{
11413
11414volatile int x;
11415int * volatile y = (int *) 0;
11416return !x && !y;
11417  ;
11418  return 0;
11419}
11420_ACEOF
11421if ac_fn_c_try_compile "$LINENO"; then :
11422  ac_cv_c_volatile=yes
11423else
11424  ac_cv_c_volatile=no
11425fi
11426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11427fi
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11429$as_echo "$ac_cv_c_volatile" >&6; }
11430if test $ac_cv_c_volatile = no; then
11431
11432$as_echo "#define volatile /**/" >>confdefs.h
11433
11434fi
11435
11436ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11437if test "x$ac_cv_type_mode_t" = xyes; then :
11438
11439else
11440
11441cat >>confdefs.h <<_ACEOF
11442#define mode_t int
11443_ACEOF
11444
11445fi
11446
11447ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11448if test "x$ac_cv_type_off_t" = xyes; then :
11449
11450else
11451
11452cat >>confdefs.h <<_ACEOF
11453#define off_t long int
11454_ACEOF
11455
11456fi
11457
11458ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11459if test "x$ac_cv_type_pid_t" = xyes; then :
11460
11461else
11462
11463cat >>confdefs.h <<_ACEOF
11464#define pid_t int
11465_ACEOF
11466
11467fi
11468
11469ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11470if test "x$ac_cv_type_size_t" = xyes; then :
11471
11472else
11473
11474cat >>confdefs.h <<_ACEOF
11475#define size_t unsigned int
11476_ACEOF
11477
11478fi
11479
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11481$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11482if ${ac_cv_type_uid_t+:} false; then :
11483  $as_echo_n "(cached) " >&6
11484else
11485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486/* end confdefs.h.  */
11487#include <sys/types.h>
11488
11489_ACEOF
11490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11491  $EGREP "uid_t" >/dev/null 2>&1; then :
11492  ac_cv_type_uid_t=yes
11493else
11494  ac_cv_type_uid_t=no
11495fi
11496rm -f conftest*
11497
11498fi
11499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11500$as_echo "$ac_cv_type_uid_t" >&6; }
11501if test $ac_cv_type_uid_t = no; then
11502
11503$as_echo "#define uid_t int" >>confdefs.h
11504
11505
11506$as_echo "#define gid_t int" >>confdefs.h
11507
11508fi
11509
11510ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
11511case $ac_cv_c_uint32_t in #(
11512  no|yes) ;; #(
11513  *)
11514
11515$as_echo "#define _UINT32_T 1" >>confdefs.h
11516
11517
11518cat >>confdefs.h <<_ACEOF
11519#define uint32_t $ac_cv_c_uint32_t
11520_ACEOF
11521;;
11522  esac
11523
11524
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11526$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11527if ${ac_cv_header_time+:} false; then :
11528  $as_echo_n "(cached) " >&6
11529else
11530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531/* end confdefs.h.  */
11532#include <sys/types.h>
11533#include <sys/time.h>
11534#include <time.h>
11535
11536int
11537main ()
11538{
11539if ((struct tm *) 0)
11540return 0;
11541  ;
11542  return 0;
11543}
11544_ACEOF
11545if ac_fn_c_try_compile "$LINENO"; then :
11546  ac_cv_header_time=yes
11547else
11548  ac_cv_header_time=no
11549fi
11550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11551fi
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11553$as_echo "$ac_cv_header_time" >&6; }
11554if test $ac_cv_header_time = yes; then
11555
11556$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11557
11558fi
11559
11560ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
11561if test "x$ac_cv_type_ino_t" = xyes; then :
11562
11563else
11564
11565cat >>confdefs.h <<_ACEOF
11566#define ino_t long
11567_ACEOF
11568
11569fi
11570
11571ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
11572if test "x$ac_cv_type_dev_t" = xyes; then :
11573
11574else
11575
11576cat >>confdefs.h <<_ACEOF
11577#define dev_t unsigned
11578_ACEOF
11579
11580fi
11581
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11583$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11584if ${ac_cv_c_bigendian+:} false; then :
11585  $as_echo_n "(cached) " >&6
11586else
11587  ac_cv_c_bigendian=unknown
11588    # See if we're dealing with a universal compiler.
11589    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590/* end confdefs.h.  */
11591#ifndef __APPLE_CC__
11592	       not a universal capable compiler
11593	     #endif
11594	     typedef int dummy;
11595
11596_ACEOF
11597if ac_fn_c_try_compile "$LINENO"; then :
11598
11599	# Check for potential -arch flags.  It is not universal unless
11600	# there are at least two -arch flags with different values.
11601	ac_arch=
11602	ac_prev=
11603	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11604	 if test -n "$ac_prev"; then
11605	   case $ac_word in
11606	     i?86 | x86_64 | ppc | ppc64)
11607	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11608		 ac_arch=$ac_word
11609	       else
11610		 ac_cv_c_bigendian=universal
11611		 break
11612	       fi
11613	       ;;
11614	   esac
11615	   ac_prev=
11616	 elif test "x$ac_word" = "x-arch"; then
11617	   ac_prev=arch
11618	 fi
11619       done
11620fi
11621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622    if test $ac_cv_c_bigendian = unknown; then
11623      # See if sys/param.h defines the BYTE_ORDER macro.
11624      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625/* end confdefs.h.  */
11626#include <sys/types.h>
11627	     #include <sys/param.h>
11628
11629int
11630main ()
11631{
11632#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11633		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11634		     && LITTLE_ENDIAN)
11635	      bogus endian macros
11636	     #endif
11637
11638  ;
11639  return 0;
11640}
11641_ACEOF
11642if ac_fn_c_try_compile "$LINENO"; then :
11643  # It does; now see whether it defined to BIG_ENDIAN or not.
11644	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645/* end confdefs.h.  */
11646#include <sys/types.h>
11647		#include <sys/param.h>
11648
11649int
11650main ()
11651{
11652#if BYTE_ORDER != BIG_ENDIAN
11653		 not big endian
11654		#endif
11655
11656  ;
11657  return 0;
11658}
11659_ACEOF
11660if ac_fn_c_try_compile "$LINENO"; then :
11661  ac_cv_c_bigendian=yes
11662else
11663  ac_cv_c_bigendian=no
11664fi
11665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666fi
11667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668    fi
11669    if test $ac_cv_c_bigendian = unknown; then
11670      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11671      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672/* end confdefs.h.  */
11673#include <limits.h>
11674
11675int
11676main ()
11677{
11678#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11679	      bogus endian macros
11680	     #endif
11681
11682  ;
11683  return 0;
11684}
11685_ACEOF
11686if ac_fn_c_try_compile "$LINENO"; then :
11687  # It does; now see whether it defined to _BIG_ENDIAN or not.
11688	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689/* end confdefs.h.  */
11690#include <limits.h>
11691
11692int
11693main ()
11694{
11695#ifndef _BIG_ENDIAN
11696		 not big endian
11697		#endif
11698
11699  ;
11700  return 0;
11701}
11702_ACEOF
11703if ac_fn_c_try_compile "$LINENO"; then :
11704  ac_cv_c_bigendian=yes
11705else
11706  ac_cv_c_bigendian=no
11707fi
11708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11709fi
11710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711    fi
11712    if test $ac_cv_c_bigendian = unknown; then
11713      # Compile a test program.
11714      if test "$cross_compiling" = yes; then :
11715  # Try to guess by grepping values from an object file.
11716	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717/* end confdefs.h.  */
11718short int ascii_mm[] =
11719		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11720		short int ascii_ii[] =
11721		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11722		int use_ascii (int i) {
11723		  return ascii_mm[i] + ascii_ii[i];
11724		}
11725		short int ebcdic_ii[] =
11726		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11727		short int ebcdic_mm[] =
11728		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11729		int use_ebcdic (int i) {
11730		  return ebcdic_mm[i] + ebcdic_ii[i];
11731		}
11732		extern int foo;
11733
11734int
11735main ()
11736{
11737return use_ascii (foo) == use_ebcdic (foo);
11738  ;
11739  return 0;
11740}
11741_ACEOF
11742if ac_fn_c_try_compile "$LINENO"; then :
11743  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11744	      ac_cv_c_bigendian=yes
11745	    fi
11746	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11747	      if test "$ac_cv_c_bigendian" = unknown; then
11748		ac_cv_c_bigendian=no
11749	      else
11750		# finding both strings is unlikely to happen, but who knows?
11751		ac_cv_c_bigendian=unknown
11752	      fi
11753	    fi
11754fi
11755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11756else
11757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758/* end confdefs.h.  */
11759$ac_includes_default
11760int
11761main ()
11762{
11763
11764	     /* Are we little or big endian?  From Harbison&Steele.  */
11765	     union
11766	     {
11767	       long int l;
11768	       char c[sizeof (long int)];
11769	     } u;
11770	     u.l = 1;
11771	     return u.c[sizeof (long int) - 1] == 1;
11772
11773  ;
11774  return 0;
11775}
11776_ACEOF
11777if ac_fn_c_try_run "$LINENO"; then :
11778  ac_cv_c_bigendian=no
11779else
11780  ac_cv_c_bigendian=yes
11781fi
11782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11783  conftest.$ac_objext conftest.beam conftest.$ac_ext
11784fi
11785
11786    fi
11787fi
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11789$as_echo "$ac_cv_c_bigendian" >&6; }
11790 case $ac_cv_c_bigendian in #(
11791   yes)
11792     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11793;; #(
11794   no)
11795      ;; #(
11796   universal)
11797
11798$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11799
11800     ;; #(
11801   *)
11802     as_fn_error $? "unknown endianness
11803 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11804 esac
11805
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11807$as_echo_n "checking for inline... " >&6; }
11808if ${ac_cv_c_inline+:} false; then :
11809  $as_echo_n "(cached) " >&6
11810else
11811  ac_cv_c_inline=no
11812for ac_kw in inline __inline__ __inline; do
11813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814/* end confdefs.h.  */
11815#ifndef __cplusplus
11816typedef int foo_t;
11817static $ac_kw foo_t static_foo () {return 0; }
11818$ac_kw foo_t foo () {return 0; }
11819#endif
11820
11821_ACEOF
11822if ac_fn_c_try_compile "$LINENO"; then :
11823  ac_cv_c_inline=$ac_kw
11824fi
11825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11826  test "$ac_cv_c_inline" != no && break
11827done
11828
11829fi
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11831$as_echo "$ac_cv_c_inline" >&6; }
11832
11833case $ac_cv_c_inline in
11834  inline | yes) ;;
11835  *)
11836    case $ac_cv_c_inline in
11837      no) ac_val=;;
11838      *) ac_val=$ac_cv_c_inline;;
11839    esac
11840    cat >>confdefs.h <<_ACEOF
11841#ifndef __cplusplus
11842#define inline $ac_val
11843#endif
11844_ACEOF
11845    ;;
11846esac
11847
11848
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11850$as_echo_n "checking for rlim_t... " >&6; }
11851if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11853$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11854else
11855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11856/* end confdefs.h.  */
11857
11858#include <sys/types.h>
11859#if STDC_HEADERS
11860# include <stdlib.h>
11861# include <stddef.h>
11862#endif
11863#ifdef HAVE_SYS_RESOURCE_H
11864# include <sys/resource.h>
11865#endif
11866
11867_ACEOF
11868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11869  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11870  ac_cv_type_rlim_t=yes
11871else
11872  ac_cv_type_rlim_t=no
11873fi
11874rm -f conftest*
11875
11876	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11877$as_echo "$ac_cv_type_rlim_t" >&6; }
11878fi
11879if test $ac_cv_type_rlim_t = no; then
11880  cat >> confdefs.h <<\EOF
11881#define rlim_t unsigned long
11882EOF
11883fi
11884
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11886$as_echo_n "checking for stack_t... " >&6; }
11887if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11889$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11890else
11891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892/* end confdefs.h.  */
11893
11894#include <sys/types.h>
11895#if STDC_HEADERS
11896# include <stdlib.h>
11897# include <stddef.h>
11898#endif
11899#include <signal.h>
11900
11901_ACEOF
11902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11903  $EGREP "stack_t" >/dev/null 2>&1; then :
11904  ac_cv_type_stack_t=yes
11905else
11906  ac_cv_type_stack_t=no
11907fi
11908rm -f conftest*
11909
11910	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11911$as_echo "$ac_cv_type_stack_t" >&6; }
11912fi
11913if test $ac_cv_type_stack_t = no; then
11914  cat >> confdefs.h <<\EOF
11915#define stack_t struct sigaltstack
11916EOF
11917fi
11918
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11920$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922/* end confdefs.h.  */
11923
11924#include <sys/types.h>
11925#if STDC_HEADERS
11926# include <stdlib.h>
11927# include <stddef.h>
11928#endif
11929#include <signal.h>
11930#include "confdefs.h"
11931
11932int
11933main ()
11934{
11935stack_t sigstk; sigstk.ss_base = 0;
11936  ;
11937  return 0;
11938}
11939_ACEOF
11940if ac_fn_c_try_compile "$LINENO"; then :
11941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11942$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11943
11944else
11945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946$as_echo "no" >&6; }
11947fi
11948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949
11950olibs="$LIBS"
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11952$as_echo_n "checking --with-tlib argument... " >&6; }
11953
11954# Check whether --with-tlib was given.
11955if test "${with_tlib+set}" = set; then :
11956  withval=$with_tlib;
11957fi
11958
11959if test -n "$with_tlib"; then
11960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11961$as_echo "$with_tlib" >&6; }
11962  LIBS="$LIBS -l$with_tlib"
11963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11964$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966/* end confdefs.h.  */
11967
11968int
11969main ()
11970{
11971
11972  ;
11973  return 0;
11974}
11975_ACEOF
11976if ac_fn_c_try_link "$LINENO"; then :
11977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
11978$as_echo "OK" >&6; }
11979else
11980  as_fn_error $? "FAILED" "$LINENO" 5
11981fi
11982rm -f core conftest.err conftest.$ac_objext \
11983    conftest$ac_exeext conftest.$ac_ext
11984    olibs="$LIBS"
11985else
11986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
11987$as_echo "empty: automatic terminal library selection" >&6; }
11988                case "`uname -s 2>/dev/null`" in
11989	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
11990	*)	tlibs="tinfo ncurses termlib termcap curses";;
11991  esac
11992  for libname in $tlibs; do
11993    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
11995$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
11996if eval \${$as_ac_Lib+:} false; then :
11997  $as_echo_n "(cached) " >&6
11998else
11999  ac_check_lib_save_LIBS=$LIBS
12000LIBS="-l${libname}  $LIBS"
12001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002/* end confdefs.h.  */
12003
12004/* Override any GCC internal prototype to avoid an error.
12005   Use char because int might match the return type of a GCC
12006   builtin and then its argument prototype would still apply.  */
12007#ifdef __cplusplus
12008extern "C"
12009#endif
12010char tgetent ();
12011int
12012main ()
12013{
12014return tgetent ();
12015  ;
12016  return 0;
12017}
12018_ACEOF
12019if ac_fn_c_try_link "$LINENO"; then :
12020  eval "$as_ac_Lib=yes"
12021else
12022  eval "$as_ac_Lib=no"
12023fi
12024rm -f core conftest.err conftest.$ac_objext \
12025    conftest$ac_exeext conftest.$ac_ext
12026LIBS=$ac_check_lib_save_LIBS
12027fi
12028eval ac_res=\$$as_ac_Lib
12029	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12030$as_echo "$ac_res" >&6; }
12031if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12032  cat >>confdefs.h <<_ACEOF
12033#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12034_ACEOF
12035
12036  LIBS="-l${libname} $LIBS"
12037
12038fi
12039
12040    if test "x$olibs" != "x$LIBS"; then
12041                        if test "$cross_compiling" = yes; then :
12042  res="FAIL"
12043else
12044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045/* end confdefs.h.  */
12046
12047#ifdef HAVE_TERMCAP_H
12048# include <termcap.h>
12049#endif
12050#if STDC_HEADERS
12051# include <stdlib.h>
12052# include <stddef.h>
12053#endif
12054main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12055_ACEOF
12056if ac_fn_c_try_run "$LINENO"; then :
12057  res="OK"
12058else
12059  res="FAIL"
12060fi
12061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12062  conftest.$ac_objext conftest.beam conftest.$ac_ext
12063fi
12064
12065      if test "$res" = "OK"; then
12066	break
12067      fi
12068      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
12069$as_echo "$libname library is not usable" >&6; }
12070      LIBS="$olibs"
12071    fi
12072  done
12073  if test "x$olibs" = "x$LIBS"; then
12074    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
12075$as_echo "no terminal library found" >&6; }
12076  fi
12077fi
12078
12079if test "x$olibs" = "x$LIBS"; then
12080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
12081$as_echo_n "checking for tgetent()... " >&6; }
12082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083/* end confdefs.h.  */
12084
12085int
12086main ()
12087{
12088char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12089  ;
12090  return 0;
12091}
12092_ACEOF
12093if ac_fn_c_try_link "$LINENO"; then :
12094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12095$as_echo "yes" >&6; }
12096else
12097  as_fn_error $? "NOT FOUND!
12098      You need to install a terminal library; for example ncurses.
12099      Or specify the name of the library with --with-tlib." "$LINENO" 5
12100fi
12101rm -f core conftest.err conftest.$ac_objext \
12102    conftest$ac_exeext conftest.$ac_ext
12103fi
12104
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
12106$as_echo_n "checking whether we talk terminfo... " >&6; }
12107if ${vim_cv_terminfo+:} false; then :
12108  $as_echo_n "(cached) " >&6
12109else
12110
12111    if test "$cross_compiling" = yes; then :
12112
12113      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
12114
12115else
12116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117/* end confdefs.h.  */
12118
12119#include "confdefs.h"
12120#ifdef HAVE_TERMCAP_H
12121# include <termcap.h>
12122#endif
12123#ifdef HAVE_STRING_H
12124# include <string.h>
12125#endif
12126#if STDC_HEADERS
12127# include <stdlib.h>
12128# include <stddef.h>
12129#endif
12130main()
12131{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12132
12133_ACEOF
12134if ac_fn_c_try_run "$LINENO"; then :
12135
12136      vim_cv_terminfo=no
12137
12138else
12139
12140      vim_cv_terminfo=yes
12141
12142fi
12143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12144  conftest.$ac_objext conftest.beam conftest.$ac_ext
12145fi
12146
12147
12148fi
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
12150$as_echo "$vim_cv_terminfo" >&6; }
12151
12152if test "x$vim_cv_terminfo" = "xyes" ; then
12153  $as_echo "#define TERMINFO 1" >>confdefs.h
12154
12155fi
12156
12157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
12158$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12159if ${vim_cv_tgetent+:} false; then :
12160  $as_echo_n "(cached) " >&6
12161else
12162
12163    if test "$cross_compiling" = yes; then :
12164
12165      as_fn_error $? "failed to compile test program." "$LINENO" 5
12166
12167else
12168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169/* end confdefs.h.  */
12170
12171#include "confdefs.h"
12172#ifdef HAVE_TERMCAP_H
12173# include <termcap.h>
12174#endif
12175#if STDC_HEADERS
12176# include <stdlib.h>
12177# include <stddef.h>
12178#endif
12179main()
12180{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12181
12182_ACEOF
12183if ac_fn_c_try_run "$LINENO"; then :
12184
12185      vim_cv_tgetent=zero
12186
12187else
12188
12189      vim_cv_tgetent=non-zero
12190
12191fi
12192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12193  conftest.$ac_objext conftest.beam conftest.$ac_ext
12194fi
12195
12196
12197fi
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5
12199$as_echo "$vim_cv_tgetent" >&6; }
12200
12201if test "x$vim_cv_tgetent" = "xzero" ; then
12202  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
12203
12204fi
12205
12206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
12207$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209/* end confdefs.h.  */
12210
12211#ifdef HAVE_TERMCAP_H
12212# include <termcap.h>
12213#endif
12214
12215int
12216main ()
12217{
12218ospeed = 20000
12219  ;
12220  return 0;
12221}
12222_ACEOF
12223if ac_fn_c_try_link "$LINENO"; then :
12224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12225$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
12226
12227else
12228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
12230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
12231$as_echo_n "checking whether ospeed can be extern... " >&6; }
12232	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233/* end confdefs.h.  */
12234
12235#ifdef HAVE_TERMCAP_H
12236# include <termcap.h>
12237#endif
12238extern short ospeed;
12239
12240int
12241main ()
12242{
12243ospeed = 20000
12244  ;
12245  return 0;
12246}
12247_ACEOF
12248if ac_fn_c_try_link "$LINENO"; then :
12249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12250$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
12251
12252else
12253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254$as_echo "no" >&6; }
12255fi
12256rm -f core conftest.err conftest.$ac_objext \
12257    conftest$ac_exeext conftest.$ac_ext
12258
12259fi
12260rm -f core conftest.err conftest.$ac_objext \
12261    conftest$ac_exeext conftest.$ac_ext
12262
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
12264$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266/* end confdefs.h.  */
12267
12268#ifdef HAVE_TERMCAP_H
12269# include <termcap.h>
12270#endif
12271
12272int
12273main ()
12274{
12275if (UP == 0 && BC == 0) PC = 1
12276  ;
12277  return 0;
12278}
12279_ACEOF
12280if ac_fn_c_try_link "$LINENO"; then :
12281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12282$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
12283
12284else
12285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286$as_echo "no" >&6; }
12287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
12288$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
12289	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290/* end confdefs.h.  */
12291
12292#ifdef HAVE_TERMCAP_H
12293# include <termcap.h>
12294#endif
12295extern char *UP, *BC, PC;
12296
12297int
12298main ()
12299{
12300if (UP == 0 && BC == 0) PC = 1
12301  ;
12302  return 0;
12303}
12304_ACEOF
12305if ac_fn_c_try_link "$LINENO"; then :
12306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12307$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
12308
12309else
12310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
12312fi
12313rm -f core conftest.err conftest.$ac_objext \
12314    conftest$ac_exeext conftest.$ac_ext
12315
12316fi
12317rm -f core conftest.err conftest.$ac_objext \
12318    conftest$ac_exeext conftest.$ac_ext
12319
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
12321$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
12322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323/* end confdefs.h.  */
12324
12325#ifdef HAVE_TERMCAP_H
12326# include <termcap.h>
12327#endif
12328
12329int
12330main ()
12331{
12332extern int xx(); tputs("test", 1, (outfuntype)xx)
12333  ;
12334  return 0;
12335}
12336_ACEOF
12337if ac_fn_c_try_compile "$LINENO"; then :
12338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12339$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
12340
12341else
12342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343$as_echo "no" >&6; }
12344fi
12345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12348$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350/* end confdefs.h.  */
12351
12352#include <sys/types.h>
12353#include <sys/time.h>
12354#include <sys/select.h>
12355int
12356main ()
12357{
12358
12359  ;
12360  return 0;
12361}
12362_ACEOF
12363if ac_fn_c_try_compile "$LINENO"; then :
12364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12365$as_echo "yes" >&6; }
12366			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12367
12368else
12369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370$as_echo "no" >&6; }
12371fi
12372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373
12374
12375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
12376$as_echo_n "checking for /dev/ptc... " >&6; }
12377if test -r /dev/ptc; then
12378  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
12379
12380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12381$as_echo "yes" >&6; }
12382else
12383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384$as_echo "no" >&6; }
12385fi
12386
12387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
12388$as_echo_n "checking for SVR4 ptys... " >&6; }
12389if test -c /dev/ptmx ; then
12390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391/* end confdefs.h.  */
12392
12393int
12394main ()
12395{
12396ptsname(0);grantpt(0);unlockpt(0);
12397  ;
12398  return 0;
12399}
12400_ACEOF
12401if ac_fn_c_try_link "$LINENO"; then :
12402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
12404
12405else
12406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407$as_echo "no" >&6; }
12408fi
12409rm -f core conftest.err conftest.$ac_objext \
12410    conftest$ac_exeext conftest.$ac_ext
12411else
12412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413$as_echo "no" >&6; }
12414fi
12415
12416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
12417$as_echo_n "checking for ptyranges... " >&6; }
12418if test -d /dev/ptym ; then
12419  pdir='/dev/ptym'
12420else
12421  pdir='/dev'
12422fi
12423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424/* end confdefs.h.  */
12425#ifdef M_UNIX
12426   yes;
12427#endif
12428
12429_ACEOF
12430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12431  $EGREP "yes" >/dev/null 2>&1; then :
12432  ptys=`echo /dev/ptyp??`
12433else
12434  ptys=`echo $pdir/pty??`
12435fi
12436rm -f conftest*
12437
12438if test "$ptys" != "$pdir/pty??" ; then
12439  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12440  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12441  cat >>confdefs.h <<_ACEOF
12442#define PTYRANGE0 "$p0"
12443_ACEOF
12444
12445  cat >>confdefs.h <<_ACEOF
12446#define PTYRANGE1 "$p1"
12447_ACEOF
12448
12449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
12450$as_echo "$p0 / $p1" >&6; }
12451else
12452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
12453$as_echo "don't know" >&6; }
12454fi
12455
12456rm -f conftest_grp
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
12458$as_echo_n "checking default tty permissions/group... " >&6; }
12459if ${vim_cv_tty_group+:} false; then :
12460  $as_echo_n "(cached) " >&6
12461else
12462
12463    if test "$cross_compiling" = yes; then :
12464
12465      as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
12466
12467else
12468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469/* end confdefs.h.  */
12470
12471#include "confdefs.h"
12472#include <sys/types.h>
12473#if STDC_HEADERS
12474# include <stdlib.h>
12475# include <stddef.h>
12476#endif
12477#ifdef HAVE_UNISTD_H
12478#include <unistd.h>
12479#endif
12480#include <sys/stat.h>
12481#include <stdio.h>
12482main()
12483{
12484  struct stat sb;
12485  char *x,*ttyname();
12486  int om, m;
12487  FILE *fp;
12488
12489  if (!(x = ttyname(0))) exit(1);
12490  if (stat(x, &sb)) exit(1);
12491  om = sb.st_mode;
12492  if (om & 002) exit(0);
12493  m = system("mesg y");
12494  if (m == -1 || m == 127) exit(1);
12495  if (stat(x, &sb)) exit(1);
12496  m = sb.st_mode;
12497  if (chmod(x, om)) exit(1);
12498  if (m & 002) exit(0);
12499  if (sb.st_gid == getgid()) exit(1);
12500  if (!(fp=fopen("conftest_grp", "w")))
12501    exit(1);
12502  fprintf(fp, "%d\n", sb.st_gid);
12503  fclose(fp);
12504  exit(0);
12505}
12506
12507_ACEOF
12508if ac_fn_c_try_run "$LINENO"; then :
12509
12510      if test -f conftest_grp; then
12511	vim_cv_tty_group=`cat conftest_grp`
12512	if test "x$vim_cv_tty_mode" = "x" ; then
12513	  vim_cv_tty_mode=0620
12514	fi
12515	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
12516$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
12517      else
12518	vim_cv_tty_group=world
12519	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
12520$as_echo "ptys are world accessible" >&6; }
12521      fi
12522
12523else
12524
12525      vim_cv_tty_group=world
12526      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
12527$as_echo "can't determine - assume ptys are world accessible" >&6; }
12528
12529fi
12530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12531  conftest.$ac_objext conftest.beam conftest.$ac_ext
12532fi
12533
12534
12535fi
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
12537$as_echo "$vim_cv_tty_group" >&6; }
12538rm -f conftest_grp
12539
12540if test "x$vim_cv_tty_group" != "xworld" ; then
12541  cat >>confdefs.h <<_ACEOF
12542#define PTYGROUP $vim_cv_tty_group
12543_ACEOF
12544
12545  if test "x$vim_cv_tty_mode" = "x" ; then
12546    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
12547  else
12548    $as_echo "#define PTYMODE 0620" >>confdefs.h
12549
12550  fi
12551fi
12552
12553
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12555$as_echo_n "checking return type of signal handlers... " >&6; }
12556if ${ac_cv_type_signal+:} false; then :
12557  $as_echo_n "(cached) " >&6
12558else
12559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560/* end confdefs.h.  */
12561#include <sys/types.h>
12562#include <signal.h>
12563
12564int
12565main ()
12566{
12567return *(signal (0, 0)) (0) == 1;
12568  ;
12569  return 0;
12570}
12571_ACEOF
12572if ac_fn_c_try_compile "$LINENO"; then :
12573  ac_cv_type_signal=int
12574else
12575  ac_cv_type_signal=void
12576fi
12577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578fi
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12580$as_echo "$ac_cv_type_signal" >&6; }
12581
12582cat >>confdefs.h <<_ACEOF
12583#define RETSIGTYPE $ac_cv_type_signal
12584_ACEOF
12585
12586
12587
12588if test $ac_cv_type_signal = void; then
12589  $as_echo "#define SIGRETURN return" >>confdefs.h
12590
12591else
12592  $as_echo "#define SIGRETURN return 0" >>confdefs.h
12593
12594fi
12595
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
12597$as_echo_n "checking for struct sigcontext... " >&6; }
12598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599/* end confdefs.h.  */
12600
12601#include <signal.h>
12602test_sig()
12603{
12604    struct sigcontext *scont;
12605    scont = (struct sigcontext *)0;
12606    return 1;
12607}
12608int
12609main ()
12610{
12611
12612  ;
12613  return 0;
12614}
12615_ACEOF
12616if ac_fn_c_try_compile "$LINENO"; then :
12617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12618$as_echo "yes" >&6; }
12619		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
12620
12621else
12622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
12624fi
12625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12626
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12628$as_echo_n "checking getcwd implementation is broken... " >&6; }
12629if ${vim_cv_getcwd_broken+:} false; then :
12630  $as_echo_n "(cached) " >&6
12631else
12632
12633    if test "$cross_compiling" = yes; then :
12634
12635      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12636
12637else
12638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639/* end confdefs.h.  */
12640
12641#include "confdefs.h"
12642#ifdef HAVE_UNISTD_H
12643#include <unistd.h>
12644#endif
12645char *dagger[] = { "IFS=pwd", 0 };
12646main()
12647{
12648  char buffer[500];
12649  extern char **environ;
12650  environ = dagger;
12651  return getcwd(buffer, 500) ? 0 : 1;
12652}
12653
12654_ACEOF
12655if ac_fn_c_try_run "$LINENO"; then :
12656
12657      vim_cv_getcwd_broken=no
12658
12659else
12660
12661      vim_cv_getcwd_broken=yes
12662
12663fi
12664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12665  conftest.$ac_objext conftest.beam conftest.$ac_ext
12666fi
12667
12668
12669fi
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12671$as_echo "$vim_cv_getcwd_broken" >&6; }
12672
12673if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12674  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12675
12676fi
12677
12678for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \
12679	getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \
12680	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12681	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12682	sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
12683	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12684	usleep utime utimes mblen ftruncate unsetenv
12685do :
12686  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12687ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12688if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12689  cat >>confdefs.h <<_ACEOF
12690#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12691_ACEOF
12692
12693fi
12694done
12695
12696for ac_header in sys/select.h sys/socket.h
12697do :
12698  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12699ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12700if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12701  cat >>confdefs.h <<_ACEOF
12702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12703_ACEOF
12704
12705fi
12706
12707done
12708
12709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
12710$as_echo_n "checking types of arguments for select... " >&6; }
12711if ${ac_cv_func_select_args+:} false; then :
12712  $as_echo_n "(cached) " >&6
12713else
12714  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12715 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12716  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718/* end confdefs.h.  */
12719$ac_includes_default
12720#ifdef HAVE_SYS_SELECT_H
12721# include <sys/select.h>
12722#endif
12723#ifdef HAVE_SYS_SOCKET_H
12724# include <sys/socket.h>
12725#endif
12726
12727int
12728main ()
12729{
12730extern int select ($ac_arg1,
12731					    $ac_arg234, $ac_arg234, $ac_arg234,
12732					    $ac_arg5);
12733  ;
12734  return 0;
12735}
12736_ACEOF
12737if ac_fn_c_try_compile "$LINENO"; then :
12738  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12739fi
12740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741  done
12742 done
12743done
12744# Provide a safe default value.
12745: "${ac_cv_func_select_args=int,int *,struct timeval *}"
12746
12747fi
12748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
12749$as_echo "$ac_cv_func_select_args" >&6; }
12750ac_save_IFS=$IFS; IFS=','
12751set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12752IFS=$ac_save_IFS
12753shift
12754
12755cat >>confdefs.h <<_ACEOF
12756#define SELECT_TYPE_ARG1 $1
12757_ACEOF
12758
12759
12760cat >>confdefs.h <<_ACEOF
12761#define SELECT_TYPE_ARG234 ($2)
12762_ACEOF
12763
12764
12765cat >>confdefs.h <<_ACEOF
12766#define SELECT_TYPE_ARG5 ($3)
12767_ACEOF
12768
12769rm -f conftest*
12770
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12772$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12773if ${ac_cv_sys_largefile_source+:} false; then :
12774  $as_echo_n "(cached) " >&6
12775else
12776  while :; do
12777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778/* end confdefs.h.  */
12779#include <sys/types.h> /* for off_t */
12780     #include <stdio.h>
12781int
12782main ()
12783{
12784int (*fp) (FILE *, off_t, int) = fseeko;
12785     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12786  ;
12787  return 0;
12788}
12789_ACEOF
12790if ac_fn_c_try_link "$LINENO"; then :
12791  ac_cv_sys_largefile_source=no; break
12792fi
12793rm -f core conftest.err conftest.$ac_objext \
12794    conftest$ac_exeext conftest.$ac_ext
12795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796/* end confdefs.h.  */
12797#define _LARGEFILE_SOURCE 1
12798#include <sys/types.h> /* for off_t */
12799     #include <stdio.h>
12800int
12801main ()
12802{
12803int (*fp) (FILE *, off_t, int) = fseeko;
12804     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12805  ;
12806  return 0;
12807}
12808_ACEOF
12809if ac_fn_c_try_link "$LINENO"; then :
12810  ac_cv_sys_largefile_source=1; break
12811fi
12812rm -f core conftest.err conftest.$ac_objext \
12813    conftest$ac_exeext conftest.$ac_ext
12814  ac_cv_sys_largefile_source=unknown
12815  break
12816done
12817fi
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12819$as_echo "$ac_cv_sys_largefile_source" >&6; }
12820case $ac_cv_sys_largefile_source in #(
12821  no | unknown) ;;
12822  *)
12823cat >>confdefs.h <<_ACEOF
12824#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12825_ACEOF
12826;;
12827esac
12828rm -rf conftest*
12829
12830# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12831# in glibc 2.1.3, but that breaks too many other things.
12832# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12833if test $ac_cv_sys_largefile_source != unknown; then
12834
12835$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12836
12837fi
12838
12839
12840# Check whether --enable-largefile was given.
12841if test "${enable_largefile+set}" = set; then :
12842  enableval=$enable_largefile;
12843fi
12844
12845if test "$enable_largefile" != no; then
12846
12847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12848$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12849if ${ac_cv_sys_largefile_CC+:} false; then :
12850  $as_echo_n "(cached) " >&6
12851else
12852  ac_cv_sys_largefile_CC=no
12853     if test "$GCC" != yes; then
12854       ac_save_CC=$CC
12855       while :; do
12856	 # IRIX 6.2 and later do not support large files by default,
12857	 # so use the C compiler's -n32 option if that helps.
12858	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859/* end confdefs.h.  */
12860#include <sys/types.h>
12861 /* Check that off_t can represent 2**63 - 1 correctly.
12862    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12863    since some C++ compilers masquerading as C compilers
12864    incorrectly reject 9223372036854775807.  */
12865#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12866  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12867		       && LARGE_OFF_T % 2147483647 == 1)
12868		      ? 1 : -1];
12869int
12870main ()
12871{
12872
12873  ;
12874  return 0;
12875}
12876_ACEOF
12877	 if ac_fn_c_try_compile "$LINENO"; then :
12878  break
12879fi
12880rm -f core conftest.err conftest.$ac_objext
12881	 CC="$CC -n32"
12882	 if ac_fn_c_try_compile "$LINENO"; then :
12883  ac_cv_sys_largefile_CC=' -n32'; break
12884fi
12885rm -f core conftest.err conftest.$ac_objext
12886	 break
12887       done
12888       CC=$ac_save_CC
12889       rm -f conftest.$ac_ext
12890    fi
12891fi
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12893$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12894  if test "$ac_cv_sys_largefile_CC" != no; then
12895    CC=$CC$ac_cv_sys_largefile_CC
12896  fi
12897
12898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12899$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12900if ${ac_cv_sys_file_offset_bits+:} false; then :
12901  $as_echo_n "(cached) " >&6
12902else
12903  while :; do
12904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905/* end confdefs.h.  */
12906#include <sys/types.h>
12907 /* Check that off_t can represent 2**63 - 1 correctly.
12908    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12909    since some C++ compilers masquerading as C compilers
12910    incorrectly reject 9223372036854775807.  */
12911#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12912  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12913		       && LARGE_OFF_T % 2147483647 == 1)
12914		      ? 1 : -1];
12915int
12916main ()
12917{
12918
12919  ;
12920  return 0;
12921}
12922_ACEOF
12923if ac_fn_c_try_compile "$LINENO"; then :
12924  ac_cv_sys_file_offset_bits=no; break
12925fi
12926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928/* end confdefs.h.  */
12929#define _FILE_OFFSET_BITS 64
12930#include <sys/types.h>
12931 /* Check that off_t can represent 2**63 - 1 correctly.
12932    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12933    since some C++ compilers masquerading as C compilers
12934    incorrectly reject 9223372036854775807.  */
12935#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12936  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12937		       && LARGE_OFF_T % 2147483647 == 1)
12938		      ? 1 : -1];
12939int
12940main ()
12941{
12942
12943  ;
12944  return 0;
12945}
12946_ACEOF
12947if ac_fn_c_try_compile "$LINENO"; then :
12948  ac_cv_sys_file_offset_bits=64; break
12949fi
12950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951  ac_cv_sys_file_offset_bits=unknown
12952  break
12953done
12954fi
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12956$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12957case $ac_cv_sys_file_offset_bits in #(
12958  no | unknown) ;;
12959  *)
12960cat >>confdefs.h <<_ACEOF
12961#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12962_ACEOF
12963;;
12964esac
12965rm -rf conftest*
12966  if test $ac_cv_sys_file_offset_bits = unknown; then
12967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12968$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12969if ${ac_cv_sys_large_files+:} false; then :
12970  $as_echo_n "(cached) " >&6
12971else
12972  while :; do
12973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974/* end confdefs.h.  */
12975#include <sys/types.h>
12976 /* Check that off_t can represent 2**63 - 1 correctly.
12977    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12978    since some C++ compilers masquerading as C compilers
12979    incorrectly reject 9223372036854775807.  */
12980#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12981  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12982		       && LARGE_OFF_T % 2147483647 == 1)
12983		      ? 1 : -1];
12984int
12985main ()
12986{
12987
12988  ;
12989  return 0;
12990}
12991_ACEOF
12992if ac_fn_c_try_compile "$LINENO"; then :
12993  ac_cv_sys_large_files=no; break
12994fi
12995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997/* end confdefs.h.  */
12998#define _LARGE_FILES 1
12999#include <sys/types.h>
13000 /* Check that off_t can represent 2**63 - 1 correctly.
13001    We can't simply define LARGE_OFF_T to be 9223372036854775807,
13002    since some C++ compilers masquerading as C compilers
13003    incorrectly reject 9223372036854775807.  */
13004#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13005  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13006		       && LARGE_OFF_T % 2147483647 == 1)
13007		      ? 1 : -1];
13008int
13009main ()
13010{
13011
13012  ;
13013  return 0;
13014}
13015_ACEOF
13016if ac_fn_c_try_compile "$LINENO"; then :
13017  ac_cv_sys_large_files=1; break
13018fi
13019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020  ac_cv_sys_large_files=unknown
13021  break
13022done
13023fi
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13025$as_echo "$ac_cv_sys_large_files" >&6; }
13026case $ac_cv_sys_large_files in #(
13027  no | unknown) ;;
13028  *)
13029cat >>confdefs.h <<_ACEOF
13030#define _LARGE_FILES $ac_cv_sys_large_files
13031_ACEOF
13032;;
13033esac
13034rm -rf conftest*
13035  fi
13036
13037
13038fi
13039
13040
13041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
13042$as_echo_n "checking for st_blksize... " >&6; }
13043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044/* end confdefs.h.  */
13045#include <sys/types.h>
13046#include <sys/stat.h>
13047int
13048main ()
13049{
13050	struct stat st;
13051	int n;
13052
13053	stat("/", &st);
13054	n = (int)st.st_blksize;
13055  ;
13056  return 0;
13057}
13058_ACEOF
13059if ac_fn_c_try_compile "$LINENO"; then :
13060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13061$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
13062
13063else
13064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065$as_echo "no" >&6; }
13066fi
13067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13068
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
13070$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13071if ${vim_cv_stat_ignores_slash+:} false; then :
13072  $as_echo_n "(cached) " >&6
13073else
13074
13075    if test "$cross_compiling" = yes; then :
13076
13077      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
13078
13079else
13080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081/* end confdefs.h.  */
13082
13083#include "confdefs.h"
13084#if STDC_HEADERS
13085# include <stdlib.h>
13086# include <stddef.h>
13087#endif
13088#include <sys/types.h>
13089#include <sys/stat.h>
13090main() {struct stat st;  exit(stat("configure/", &st) != 0); }
13091
13092_ACEOF
13093if ac_fn_c_try_run "$LINENO"; then :
13094
13095      vim_cv_stat_ignores_slash=yes
13096
13097else
13098
13099      vim_cv_stat_ignores_slash=no
13100
13101fi
13102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13103  conftest.$ac_objext conftest.beam conftest.$ac_ext
13104fi
13105
13106
13107fi
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
13109$as_echo "$vim_cv_stat_ignores_slash" >&6; }
13110
13111if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13112  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
13113
13114fi
13115
13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
13117$as_echo_n "checking for iconv_open()... " >&6; }
13118save_LIBS="$LIBS"
13119LIBS="$LIBS -liconv"
13120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121/* end confdefs.h.  */
13122
13123#ifdef HAVE_ICONV_H
13124# include <iconv.h>
13125#endif
13126
13127int
13128main ()
13129{
13130iconv_open("fr", "to");
13131  ;
13132  return 0;
13133}
13134_ACEOF
13135if ac_fn_c_try_link "$LINENO"; then :
13136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
13137$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13138
13139else
13140  LIBS="$save_LIBS"
13141    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142/* end confdefs.h.  */
13143
13144#ifdef HAVE_ICONV_H
13145# include <iconv.h>
13146#endif
13147
13148int
13149main ()
13150{
13151iconv_open("fr", "to");
13152  ;
13153  return 0;
13154}
13155_ACEOF
13156if ac_fn_c_try_link "$LINENO"; then :
13157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13158$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13159
13160else
13161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162$as_echo "no" >&6; }
13163fi
13164rm -f core conftest.err conftest.$ac_objext \
13165    conftest$ac_exeext conftest.$ac_ext
13166fi
13167rm -f core conftest.err conftest.$ac_objext \
13168    conftest$ac_exeext conftest.$ac_ext
13169
13170
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
13172$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
13173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174/* end confdefs.h.  */
13175
13176#ifdef HAVE_LANGINFO_H
13177# include <langinfo.h>
13178#endif
13179
13180int
13181main ()
13182{
13183char *cs = nl_langinfo(CODESET);
13184  ;
13185  return 0;
13186}
13187_ACEOF
13188if ac_fn_c_try_link "$LINENO"; then :
13189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13190$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
13191
13192else
13193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194$as_echo "no" >&6; }
13195fi
13196rm -f core conftest.err conftest.$ac_objext \
13197    conftest$ac_exeext conftest.$ac_ext
13198
13199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
13200$as_echo_n "checking for strtod in -lm... " >&6; }
13201if ${ac_cv_lib_m_strtod+:} false; then :
13202  $as_echo_n "(cached) " >&6
13203else
13204  ac_check_lib_save_LIBS=$LIBS
13205LIBS="-lm  $LIBS"
13206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207/* end confdefs.h.  */
13208
13209/* Override any GCC internal prototype to avoid an error.
13210   Use char because int might match the return type of a GCC
13211   builtin and then its argument prototype would still apply.  */
13212#ifdef __cplusplus
13213extern "C"
13214#endif
13215char strtod ();
13216int
13217main ()
13218{
13219return strtod ();
13220  ;
13221  return 0;
13222}
13223_ACEOF
13224if ac_fn_c_try_link "$LINENO"; then :
13225  ac_cv_lib_m_strtod=yes
13226else
13227  ac_cv_lib_m_strtod=no
13228fi
13229rm -f core conftest.err conftest.$ac_objext \
13230    conftest$ac_exeext conftest.$ac_ext
13231LIBS=$ac_check_lib_save_LIBS
13232fi
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
13234$as_echo "$ac_cv_lib_m_strtod" >&6; }
13235if test "x$ac_cv_lib_m_strtod" = xyes; then :
13236  cat >>confdefs.h <<_ACEOF
13237#define HAVE_LIBM 1
13238_ACEOF
13239
13240  LIBS="-lm $LIBS"
13241
13242fi
13243
13244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
13245$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
13246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247/* end confdefs.h.  */
13248
13249#ifdef HAVE_MATH_H
13250# include <math.h>
13251#endif
13252#if STDC_HEADERS
13253# include <stdlib.h>
13254# include <stddef.h>
13255#endif
13256
13257int
13258main ()
13259{
13260char *s; double d;
13261    d = strtod("1.1", &s);
13262    d = fabs(1.11);
13263    d = ceil(1.11);
13264    d = floor(1.11);
13265    d = log10(1.11);
13266    d = pow(1.11, 2.22);
13267    d = sqrt(1.11);
13268    d = sin(1.11);
13269    d = cos(1.11);
13270    d = atan(1.11);
13271
13272  ;
13273  return 0;
13274}
13275_ACEOF
13276if ac_fn_c_try_link "$LINENO"; then :
13277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13278$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
13279
13280else
13281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282$as_echo "no" >&6; }
13283fi
13284rm -f core conftest.err conftest.$ac_objext \
13285    conftest$ac_exeext conftest.$ac_ext
13286
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
13288$as_echo_n "checking for isinf()... " >&6; }
13289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290/* end confdefs.h.  */
13291
13292#ifdef HAVE_MATH_H
13293# include <math.h>
13294#endif
13295#if STDC_HEADERS
13296# include <stdlib.h>
13297# include <stddef.h>
13298#endif
13299
13300int
13301main ()
13302{
13303int r = isinf(1.11);
13304  ;
13305  return 0;
13306}
13307_ACEOF
13308if ac_fn_c_try_link "$LINENO"; then :
13309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13310$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13311
13312else
13313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314$as_echo "no" >&6; }
13315fi
13316rm -f core conftest.err conftest.$ac_objext \
13317    conftest$ac_exeext conftest.$ac_ext
13318
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
13320$as_echo_n "checking for isnan()... " >&6; }
13321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322/* end confdefs.h.  */
13323
13324#ifdef HAVE_MATH_H
13325# include <math.h>
13326#endif
13327#if STDC_HEADERS
13328# include <stdlib.h>
13329# include <stddef.h>
13330#endif
13331
13332int
13333main ()
13334{
13335int r = isnan(1.11);
13336  ;
13337  return 0;
13338}
13339_ACEOF
13340if ac_fn_c_try_link "$LINENO"; then :
13341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13342$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13343
13344else
13345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346$as_echo "no" >&6; }
13347fi
13348rm -f core conftest.err conftest.$ac_objext \
13349    conftest$ac_exeext conftest.$ac_ext
13350
13351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
13352$as_echo_n "checking --disable-acl argument... " >&6; }
13353# Check whether --enable-acl was given.
13354if test "${enable_acl+set}" = set; then :
13355  enableval=$enable_acl;
13356else
13357  enable_acl="yes"
13358fi
13359
13360if test "$enable_acl" = "yes"; then
13361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362$as_echo "no" >&6; }
13363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
13364$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
13365if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
13366  $as_echo_n "(cached) " >&6
13367else
13368  ac_check_lib_save_LIBS=$LIBS
13369LIBS="-lposix1e  $LIBS"
13370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371/* end confdefs.h.  */
13372
13373/* Override any GCC internal prototype to avoid an error.
13374   Use char because int might match the return type of a GCC
13375   builtin and then its argument prototype would still apply.  */
13376#ifdef __cplusplus
13377extern "C"
13378#endif
13379char acl_get_file ();
13380int
13381main ()
13382{
13383return acl_get_file ();
13384  ;
13385  return 0;
13386}
13387_ACEOF
13388if ac_fn_c_try_link "$LINENO"; then :
13389  ac_cv_lib_posix1e_acl_get_file=yes
13390else
13391  ac_cv_lib_posix1e_acl_get_file=no
13392fi
13393rm -f core conftest.err conftest.$ac_objext \
13394    conftest$ac_exeext conftest.$ac_ext
13395LIBS=$ac_check_lib_save_LIBS
13396fi
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13398$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
13399if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
13400  LIBS="$LIBS -lposix1e"
13401else
13402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
13403$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
13404if ${ac_cv_lib_acl_acl_get_file+:} false; then :
13405  $as_echo_n "(cached) " >&6
13406else
13407  ac_check_lib_save_LIBS=$LIBS
13408LIBS="-lacl  $LIBS"
13409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410/* end confdefs.h.  */
13411
13412/* Override any GCC internal prototype to avoid an error.
13413   Use char because int might match the return type of a GCC
13414   builtin and then its argument prototype would still apply.  */
13415#ifdef __cplusplus
13416extern "C"
13417#endif
13418char acl_get_file ();
13419int
13420main ()
13421{
13422return acl_get_file ();
13423  ;
13424  return 0;
13425}
13426_ACEOF
13427if ac_fn_c_try_link "$LINENO"; then :
13428  ac_cv_lib_acl_acl_get_file=yes
13429else
13430  ac_cv_lib_acl_acl_get_file=no
13431fi
13432rm -f core conftest.err conftest.$ac_objext \
13433    conftest$ac_exeext conftest.$ac_ext
13434LIBS=$ac_check_lib_save_LIBS
13435fi
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
13437$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
13438if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
13439  LIBS="$LIBS -lacl"
13440		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
13441$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
13442if ${ac_cv_lib_attr_fgetxattr+:} false; then :
13443  $as_echo_n "(cached) " >&6
13444else
13445  ac_check_lib_save_LIBS=$LIBS
13446LIBS="-lattr  $LIBS"
13447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448/* end confdefs.h.  */
13449
13450/* Override any GCC internal prototype to avoid an error.
13451   Use char because int might match the return type of a GCC
13452   builtin and then its argument prototype would still apply.  */
13453#ifdef __cplusplus
13454extern "C"
13455#endif
13456char fgetxattr ();
13457int
13458main ()
13459{
13460return fgetxattr ();
13461  ;
13462  return 0;
13463}
13464_ACEOF
13465if ac_fn_c_try_link "$LINENO"; then :
13466  ac_cv_lib_attr_fgetxattr=yes
13467else
13468  ac_cv_lib_attr_fgetxattr=no
13469fi
13470rm -f core conftest.err conftest.$ac_objext \
13471    conftest$ac_exeext conftest.$ac_ext
13472LIBS=$ac_check_lib_save_LIBS
13473fi
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
13475$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
13476if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
13477  LIBS="$LIBS -lattr"
13478fi
13479
13480fi
13481
13482fi
13483
13484
13485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
13486$as_echo_n "checking for POSIX ACL support... " >&6; }
13487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488/* end confdefs.h.  */
13489
13490#include <sys/types.h>
13491#ifdef HAVE_SYS_ACL_H
13492# include <sys/acl.h>
13493#endif
13494acl_t acl;
13495int
13496main ()
13497{
13498acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13499	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13500	acl_free(acl);
13501  ;
13502  return 0;
13503}
13504_ACEOF
13505if ac_fn_c_try_link "$LINENO"; then :
13506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13507$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
13508
13509else
13510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511$as_echo "no" >&6; }
13512fi
13513rm -f core conftest.err conftest.$ac_objext \
13514    conftest$ac_exeext conftest.$ac_ext
13515
13516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
13517$as_echo_n "checking for acl_get in -lsec... " >&6; }
13518if ${ac_cv_lib_sec_acl_get+:} false; then :
13519  $as_echo_n "(cached) " >&6
13520else
13521  ac_check_lib_save_LIBS=$LIBS
13522LIBS="-lsec  $LIBS"
13523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524/* end confdefs.h.  */
13525
13526/* Override any GCC internal prototype to avoid an error.
13527   Use char because int might match the return type of a GCC
13528   builtin and then its argument prototype would still apply.  */
13529#ifdef __cplusplus
13530extern "C"
13531#endif
13532char acl_get ();
13533int
13534main ()
13535{
13536return acl_get ();
13537  ;
13538  return 0;
13539}
13540_ACEOF
13541if ac_fn_c_try_link "$LINENO"; then :
13542  ac_cv_lib_sec_acl_get=yes
13543else
13544  ac_cv_lib_sec_acl_get=no
13545fi
13546rm -f core conftest.err conftest.$ac_objext \
13547    conftest$ac_exeext conftest.$ac_ext
13548LIBS=$ac_check_lib_save_LIBS
13549fi
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
13551$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
13552if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
13553  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
13554
13555else
13556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
13557$as_echo_n "checking for Solaris ACL support... " >&6; }
13558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559/* end confdefs.h.  */
13560
13561#ifdef HAVE_SYS_ACL_H
13562# include <sys/acl.h>
13563#endif
13564int
13565main ()
13566{
13567acl("foo", GETACLCNT, 0, NULL);
13568
13569  ;
13570  return 0;
13571}
13572_ACEOF
13573if ac_fn_c_try_link "$LINENO"; then :
13574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13575$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
13576
13577else
13578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579$as_echo "no" >&6; }
13580fi
13581rm -f core conftest.err conftest.$ac_objext \
13582    conftest$ac_exeext conftest.$ac_ext
13583fi
13584
13585
13586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
13587$as_echo_n "checking for AIX ACL support... " >&6; }
13588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589/* end confdefs.h.  */
13590
13591#if STDC_HEADERS
13592# include <stdlib.h>
13593# include <stddef.h>
13594#endif
13595#ifdef HAVE_SYS_ACL_H
13596# include <sys/acl.h>
13597#endif
13598#ifdef HAVE_SYS_ACCESS_H
13599# include <sys/access.h>
13600#endif
13601#define _ALL_SOURCE
13602
13603#include <sys/stat.h>
13604
13605int aclsize;
13606struct acl *aclent;
13607int
13608main ()
13609{
13610aclsize = sizeof(struct acl);
13611	aclent = (void *)malloc(aclsize);
13612	statacl("foo", STX_NORMAL, aclent, aclsize);
13613
13614  ;
13615  return 0;
13616}
13617_ACEOF
13618if ac_fn_c_try_link "$LINENO"; then :
13619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13620$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
13621
13622else
13623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624$as_echo "no" >&6; }
13625fi
13626rm -f core conftest.err conftest.$ac_objext \
13627    conftest$ac_exeext conftest.$ac_ext
13628else
13629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13630$as_echo "yes" >&6; }
13631fi
13632
13633if test "x$GTK_CFLAGS" != "x"; then
13634    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
13635$as_echo_n "checking for pango_shape_full... " >&6; }
13636  ac_save_CFLAGS="$CFLAGS"
13637  ac_save_LIBS="$LIBS"
13638  CFLAGS="$CFLAGS $GTK_CFLAGS"
13639  LIBS="$LIBS $GTK_LIBS"
13640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641/* end confdefs.h.  */
13642#include <gtk/gtk.h>
13643int
13644main ()
13645{
13646 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
13647  ;
13648  return 0;
13649}
13650_ACEOF
13651if ac_fn_c_try_link "$LINENO"; then :
13652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13653$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
13654
13655else
13656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657$as_echo "no" >&6; }
13658fi
13659rm -f core conftest.err conftest.$ac_objext \
13660    conftest$ac_exeext conftest.$ac_ext
13661  CFLAGS="$ac_save_CFLAGS"
13662  LIBS="$ac_save_LIBS"
13663fi
13664
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
13666$as_echo_n "checking --disable-gpm argument... " >&6; }
13667# Check whether --enable-gpm was given.
13668if test "${enable_gpm+set}" = set; then :
13669  enableval=$enable_gpm;
13670else
13671  enable_gpm="yes"
13672fi
13673
13674
13675if test "$enable_gpm" = "yes"; then
13676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677$as_echo "no" >&6; }
13678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
13679$as_echo_n "checking for gpm... " >&6; }
13680if ${vi_cv_have_gpm+:} false; then :
13681  $as_echo_n "(cached) " >&6
13682else
13683  olibs="$LIBS" ; LIBS="-lgpm"
13684	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685/* end confdefs.h.  */
13686#include <gpm.h>
13687	    #include <linux/keyboard.h>
13688int
13689main ()
13690{
13691Gpm_GetLibVersion(NULL);
13692  ;
13693  return 0;
13694}
13695_ACEOF
13696if ac_fn_c_try_link "$LINENO"; then :
13697  	    	    vi_cv_have_gpm=yes
13698else
13699  vi_cv_have_gpm=no
13700fi
13701rm -f core conftest.err conftest.$ac_objext \
13702    conftest$ac_exeext conftest.$ac_ext
13703	LIBS="$olibs"
13704
13705fi
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13707$as_echo "$vi_cv_have_gpm" >&6; }
13708  if test $vi_cv_have_gpm = yes; then
13709    LIBS="$LIBS -lgpm"
13710    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13711
13712  fi
13713else
13714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13715$as_echo "yes" >&6; }
13716fi
13717
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13719$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13720# Check whether --enable-sysmouse was given.
13721if test "${enable_sysmouse+set}" = set; then :
13722  enableval=$enable_sysmouse;
13723else
13724  enable_sysmouse="yes"
13725fi
13726
13727
13728if test "$enable_sysmouse" = "yes"; then
13729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730$as_echo "no" >&6; }
13731        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13732$as_echo_n "checking for sysmouse... " >&6; }
13733if ${vi_cv_have_sysmouse+:} false; then :
13734  $as_echo_n "(cached) " >&6
13735else
13736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737/* end confdefs.h.  */
13738#include <sys/consio.h>
13739	     #include <signal.h>
13740	     #include <sys/fbio.h>
13741int
13742main ()
13743{
13744struct mouse_info   mouse;
13745	     mouse.operation = MOUSE_MODE;
13746	     mouse.operation = MOUSE_SHOW;
13747	     mouse.u.mode.mode = 0;
13748	     mouse.u.mode.signal = SIGUSR2;
13749  ;
13750  return 0;
13751}
13752_ACEOF
13753if ac_fn_c_try_link "$LINENO"; then :
13754  vi_cv_have_sysmouse=yes
13755else
13756  vi_cv_have_sysmouse=no
13757fi
13758rm -f core conftest.err conftest.$ac_objext \
13759    conftest$ac_exeext conftest.$ac_ext
13760
13761fi
13762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13763$as_echo "$vi_cv_have_sysmouse" >&6; }
13764  if test $vi_cv_have_sysmouse = yes; then
13765    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13766
13767  fi
13768else
13769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13770$as_echo "yes" >&6; }
13771fi
13772
13773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13774$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776/* end confdefs.h.  */
13777#if HAVE_FCNTL_H
13778# include <fcntl.h>
13779#endif
13780int
13781main ()
13782{
13783	int flag = FD_CLOEXEC;
13784  ;
13785  return 0;
13786}
13787_ACEOF
13788if ac_fn_c_try_compile "$LINENO"; then :
13789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13790$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13791
13792else
13793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13794$as_echo "not usable" >&6; }
13795fi
13796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797
13798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13799$as_echo_n "checking for rename... " >&6; }
13800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801/* end confdefs.h.  */
13802#include <stdio.h>
13803int
13804main ()
13805{
13806rename("this", "that")
13807  ;
13808  return 0;
13809}
13810_ACEOF
13811if ac_fn_c_try_link "$LINENO"; then :
13812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13813$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13814
13815else
13816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13817$as_echo "no" >&6; }
13818fi
13819rm -f core conftest.err conftest.$ac_objext \
13820    conftest$ac_exeext conftest.$ac_ext
13821
13822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13823$as_echo_n "checking for sysctl... " >&6; }
13824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825/* end confdefs.h.  */
13826#include <sys/types.h>
13827#include <sys/sysctl.h>
13828int
13829main ()
13830{
13831	int mib[2], r;
13832	size_t len;
13833
13834	mib[0] = CTL_HW;
13835	mib[1] = HW_USERMEM;
13836	len = sizeof(r);
13837	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13838
13839  ;
13840  return 0;
13841}
13842_ACEOF
13843if ac_fn_c_try_compile "$LINENO"; then :
13844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13845$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13846
13847else
13848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13849$as_echo "not usable" >&6; }
13850fi
13851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13854$as_echo_n "checking for sysinfo... " >&6; }
13855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856/* end confdefs.h.  */
13857#include <sys/types.h>
13858#include <sys/sysinfo.h>
13859int
13860main ()
13861{
13862	struct sysinfo sinfo;
13863	int t;
13864
13865	(void)sysinfo(&sinfo);
13866	t = sinfo.totalram;
13867
13868  ;
13869  return 0;
13870}
13871_ACEOF
13872if ac_fn_c_try_compile "$LINENO"; then :
13873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13874$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13875
13876else
13877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13878$as_echo "not usable" >&6; }
13879fi
13880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13883$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13885/* end confdefs.h.  */
13886#include <sys/types.h>
13887#include <sys/sysinfo.h>
13888int
13889main ()
13890{
13891	struct sysinfo sinfo;
13892	sinfo.mem_unit = 1;
13893
13894  ;
13895  return 0;
13896}
13897_ACEOF
13898if ac_fn_c_try_compile "$LINENO"; then :
13899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13900$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13901
13902else
13903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13904$as_echo "no" >&6; }
13905fi
13906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13907
13908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13909$as_echo_n "checking for sysconf... " >&6; }
13910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911/* end confdefs.h.  */
13912#include <unistd.h>
13913int
13914main ()
13915{
13916	(void)sysconf(_SC_PAGESIZE);
13917	(void)sysconf(_SC_PHYS_PAGES);
13918
13919  ;
13920  return 0;
13921}
13922_ACEOF
13923if ac_fn_c_try_compile "$LINENO"; then :
13924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13925$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13926
13927else
13928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13929$as_echo "not usable" >&6; }
13930fi
13931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13932
13933# The cast to long int works around a bug in the HP C Compiler
13934# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13935# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13936# This bug is HP SR number 8606223364.
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13938$as_echo_n "checking size of int... " >&6; }
13939if ${ac_cv_sizeof_int+:} false; then :
13940  $as_echo_n "(cached) " >&6
13941else
13942  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13943
13944else
13945  if test "$ac_cv_type_int" = yes; then
13946     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13948as_fn_error 77 "cannot compute sizeof (int)
13949See \`config.log' for more details" "$LINENO" 5; }
13950   else
13951     ac_cv_sizeof_int=0
13952   fi
13953fi
13954
13955fi
13956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13957$as_echo "$ac_cv_sizeof_int" >&6; }
13958
13959
13960
13961cat >>confdefs.h <<_ACEOF
13962#define SIZEOF_INT $ac_cv_sizeof_int
13963_ACEOF
13964
13965
13966# The cast to long int works around a bug in the HP C Compiler
13967# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13968# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13969# This bug is HP SR number 8606223364.
13970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13971$as_echo_n "checking size of long... " >&6; }
13972if ${ac_cv_sizeof_long+:} false; then :
13973  $as_echo_n "(cached) " >&6
13974else
13975  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13976
13977else
13978  if test "$ac_cv_type_long" = yes; then
13979     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13981as_fn_error 77 "cannot compute sizeof (long)
13982See \`config.log' for more details" "$LINENO" 5; }
13983   else
13984     ac_cv_sizeof_long=0
13985   fi
13986fi
13987
13988fi
13989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13990$as_echo "$ac_cv_sizeof_long" >&6; }
13991
13992
13993
13994cat >>confdefs.h <<_ACEOF
13995#define SIZEOF_LONG $ac_cv_sizeof_long
13996_ACEOF
13997
13998
13999# The cast to long int works around a bug in the HP C Compiler
14000# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14001# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14002# This bug is HP SR number 8606223364.
14003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14004$as_echo_n "checking size of time_t... " >&6; }
14005if ${ac_cv_sizeof_time_t+:} false; then :
14006  $as_echo_n "(cached) " >&6
14007else
14008  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
14009
14010else
14011  if test "$ac_cv_type_time_t" = yes; then
14012     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14014as_fn_error 77 "cannot compute sizeof (time_t)
14015See \`config.log' for more details" "$LINENO" 5; }
14016   else
14017     ac_cv_sizeof_time_t=0
14018   fi
14019fi
14020
14021fi
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14023$as_echo "$ac_cv_sizeof_time_t" >&6; }
14024
14025
14026
14027cat >>confdefs.h <<_ACEOF
14028#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14029_ACEOF
14030
14031
14032# The cast to long int works around a bug in the HP C Compiler
14033# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14034# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14035# This bug is HP SR number 8606223364.
14036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14037$as_echo_n "checking size of off_t... " >&6; }
14038if ${ac_cv_sizeof_off_t+:} false; then :
14039  $as_echo_n "(cached) " >&6
14040else
14041  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14042
14043else
14044  if test "$ac_cv_type_off_t" = yes; then
14045     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14047as_fn_error 77 "cannot compute sizeof (off_t)
14048See \`config.log' for more details" "$LINENO" 5; }
14049   else
14050     ac_cv_sizeof_off_t=0
14051   fi
14052fi
14053
14054fi
14055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14056$as_echo "$ac_cv_sizeof_off_t" >&6; }
14057
14058
14059
14060cat >>confdefs.h <<_ACEOF
14061#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14062_ACEOF
14063
14064
14065
14066cat >>confdefs.h <<_ACEOF
14067#define VIM_SIZEOF_INT $ac_cv_sizeof_int
14068_ACEOF
14069
14070cat >>confdefs.h <<_ACEOF
14071#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
14072_ACEOF
14073
14074
14075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
14076$as_echo_n "checking uint32_t is 32 bits... " >&6; }
14077if test "$cross_compiling" = yes; then :
14078  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
14079$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
14080else
14081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082/* end confdefs.h.  */
14083
14084#ifdef HAVE_STDINT_H
14085# include <stdint.h>
14086#endif
14087#ifdef HAVE_INTTYPES_H
14088# include <inttypes.h>
14089#endif
14090main() {
14091  uint32_t nr1 = (uint32_t)-1;
14092  uint32_t nr2 = (uint32_t)0xffffffffUL;
14093  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
14094  exit(0);
14095}
14096_ACEOF
14097if ac_fn_c_try_run "$LINENO"; then :
14098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14099$as_echo "ok" >&6; }
14100else
14101  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
14102fi
14103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14104  conftest.$ac_objext conftest.beam conftest.$ac_ext
14105fi
14106
14107
14108
14109bcopy_test_prog='
14110#include "confdefs.h"
14111#ifdef HAVE_STRING_H
14112# include <string.h>
14113#endif
14114#if STDC_HEADERS
14115# include <stdlib.h>
14116# include <stddef.h>
14117#endif
14118main() {
14119  char buf[10];
14120  strcpy(buf, "abcdefghi");
14121  mch_memmove(buf, buf + 2, 3);
14122  if (strncmp(buf, "ababcf", 6))
14123    exit(1);
14124  strcpy(buf, "abcdefghi");
14125  mch_memmove(buf + 2, buf, 3);
14126  if (strncmp(buf, "cdedef", 6))
14127    exit(1);
14128  exit(0); /* libc version works properly.  */
14129}'
14130
14131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
14132$as_echo_n "checking whether memmove handles overlaps... " >&6; }
14133if ${vim_cv_memmove_handles_overlap+:} false; then :
14134  $as_echo_n "(cached) " >&6
14135else
14136
14137    if test "$cross_compiling" = yes; then :
14138
14139	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
14140
14141else
14142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143/* end confdefs.h.  */
14144#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
14145_ACEOF
14146if ac_fn_c_try_run "$LINENO"; then :
14147
14148	vim_cv_memmove_handles_overlap=yes
14149
14150else
14151
14152	vim_cv_memmove_handles_overlap=no
14153
14154fi
14155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14156  conftest.$ac_objext conftest.beam conftest.$ac_ext
14157fi
14158
14159
14160fi
14161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
14162$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
14163
14164if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
14165  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
14166
14167else
14168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
14169$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
14170if ${vim_cv_bcopy_handles_overlap+:} false; then :
14171  $as_echo_n "(cached) " >&6
14172else
14173
14174      if test "$cross_compiling" = yes; then :
14175
14176	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
14177
14178else
14179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14180/* end confdefs.h.  */
14181#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14182_ACEOF
14183if ac_fn_c_try_run "$LINENO"; then :
14184
14185	vim_cv_bcopy_handles_overlap=yes
14186
14187else
14188
14189	vim_cv_bcopy_handles_overlap=no
14190
14191fi
14192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14193  conftest.$ac_objext conftest.beam conftest.$ac_ext
14194fi
14195
14196
14197fi
14198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
14199$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
14200
14201  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
14202    $as_echo "#define USEBCOPY 1" >>confdefs.h
14203
14204  else
14205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
14206$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
14207if ${vim_cv_memcpy_handles_overlap+:} false; then :
14208  $as_echo_n "(cached) " >&6
14209else
14210
14211	if test "$cross_compiling" = yes; then :
14212
14213	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
14214
14215else
14216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217/* end confdefs.h.  */
14218#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14219_ACEOF
14220if ac_fn_c_try_run "$LINENO"; then :
14221
14222	    vim_cv_memcpy_handles_overlap=yes
14223
14224else
14225
14226	    vim_cv_memcpy_handles_overlap=no
14227
14228fi
14229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14230  conftest.$ac_objext conftest.beam conftest.$ac_ext
14231fi
14232
14233
14234fi
14235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
14236$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
14237
14238    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
14239      $as_echo "#define USEMEMCPY 1" >>confdefs.h
14240
14241    fi
14242  fi
14243fi
14244
14245
14246if test "x$with_x" = "xyes"; then
14247  cflags_save=$CFLAGS
14248  libs_save=$LIBS
14249  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
14250  CFLAGS="$CFLAGS $X_CFLAGS"
14251
14252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
14253$as_echo_n "checking whether X_LOCALE needed... " >&6; }
14254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255/* end confdefs.h.  */
14256#include <X11/Xlocale.h>
14257int
14258main ()
14259{
14260
14261  ;
14262  return 0;
14263}
14264_ACEOF
14265if ac_fn_c_try_compile "$LINENO"; then :
14266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14267/* end confdefs.h.  */
14268
14269/* Override any GCC internal prototype to avoid an error.
14270   Use char because int might match the return type of a GCC
14271   builtin and then its argument prototype would still apply.  */
14272#ifdef __cplusplus
14273extern "C"
14274#endif
14275char _Xsetlocale ();
14276int
14277main ()
14278{
14279return _Xsetlocale ();
14280  ;
14281  return 0;
14282}
14283_ACEOF
14284if ac_fn_c_try_link "$LINENO"; then :
14285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14286$as_echo "yes" >&6; }
14287	      $as_echo "#define X_LOCALE 1" >>confdefs.h
14288
14289else
14290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14291$as_echo "no" >&6; }
14292fi
14293rm -f core conftest.err conftest.$ac_objext \
14294    conftest$ac_exeext conftest.$ac_ext
14295else
14296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14297$as_echo "no" >&6; }
14298fi
14299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300
14301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
14302$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
14303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304/* end confdefs.h.  */
14305
14306/* Override any GCC internal prototype to avoid an error.
14307   Use char because int might match the return type of a GCC
14308   builtin and then its argument prototype would still apply.  */
14309#ifdef __cplusplus
14310extern "C"
14311#endif
14312char Xutf8SetWMProperties ();
14313int
14314main ()
14315{
14316return Xutf8SetWMProperties ();
14317  ;
14318  return 0;
14319}
14320_ACEOF
14321if ac_fn_c_try_link "$LINENO"; then :
14322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14323$as_echo "yes" >&6; }
14324	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
14325
14326else
14327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14328$as_echo "no" >&6; }
14329fi
14330rm -f core conftest.err conftest.$ac_objext \
14331    conftest$ac_exeext conftest.$ac_ext
14332
14333  CFLAGS=$cflags_save
14334  LIBS=$libs_save
14335fi
14336
14337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
14338$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
14339if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
14340  $as_echo_n "(cached) " >&6
14341else
14342  ac_check_lib_save_LIBS=$LIBS
14343LIBS="-lxpg4  $LIBS"
14344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345/* end confdefs.h.  */
14346
14347/* Override any GCC internal prototype to avoid an error.
14348   Use char because int might match the return type of a GCC
14349   builtin and then its argument prototype would still apply.  */
14350#ifdef __cplusplus
14351extern "C"
14352#endif
14353char _xpg4_setrunelocale ();
14354int
14355main ()
14356{
14357return _xpg4_setrunelocale ();
14358  ;
14359  return 0;
14360}
14361_ACEOF
14362if ac_fn_c_try_link "$LINENO"; then :
14363  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14364else
14365  ac_cv_lib_xpg4__xpg4_setrunelocale=no
14366fi
14367rm -f core conftest.err conftest.$ac_objext \
14368    conftest$ac_exeext conftest.$ac_ext
14369LIBS=$ac_check_lib_save_LIBS
14370fi
14371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14372$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
14373if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
14374  LIBS="$LIBS -lxpg4"
14375fi
14376
14377
14378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
14379$as_echo_n "checking how to create tags... " >&6; }
14380test -f tags && mv tags tags.save
14381if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14382  TAGPRG="ctags -I INIT+ --fields=+S"
14383elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14384  TAGPRG="exctags -I INIT+ --fields=+S"
14385elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14386  TAGPRG="exuberant-ctags -I INIT+ --fields=+S"
14387else
14388  TAGPRG="ctags"
14389  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14390  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14391  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14392  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14393  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14394  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14395  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14396fi
14397test -f tags.save && mv tags.save tags
14398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
14399$as_echo "$TAGPRG" >&6; }
14400
14401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
14402$as_echo_n "checking how to run man with a section nr... " >&6; }
14403MANDEF="man"
14404(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
14406$as_echo "$MANDEF" >&6; }
14407if test "$MANDEF" = "man -s"; then
14408  $as_echo "#define USEMAN_S 1" >>confdefs.h
14409
14410fi
14411
14412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
14413$as_echo_n "checking --disable-nls argument... " >&6; }
14414# Check whether --enable-nls was given.
14415if test "${enable_nls+set}" = set; then :
14416  enableval=$enable_nls;
14417else
14418  enable_nls="yes"
14419fi
14420
14421
14422if test "$enable_nls" = "yes"; then
14423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424$as_echo "no" >&6; }
14425
14426  INSTALL_LANGS=install-languages
14427
14428  INSTALL_TOOL_LANGS=install-tool-languages
14429
14430
14431  # Extract the first word of "msgfmt", so it can be a program name with args.
14432set dummy msgfmt; ac_word=$2
14433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14434$as_echo_n "checking for $ac_word... " >&6; }
14435if ${ac_cv_prog_MSGFMT+:} false; then :
14436  $as_echo_n "(cached) " >&6
14437else
14438  if test -n "$MSGFMT"; then
14439  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14440else
14441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442for as_dir in $PATH
14443do
14444  IFS=$as_save_IFS
14445  test -z "$as_dir" && as_dir=.
14446    for ac_exec_ext in '' $ac_executable_extensions; do
14447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14448    ac_cv_prog_MSGFMT="msgfmt"
14449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14450    break 2
14451  fi
14452done
14453  done
14454IFS=$as_save_IFS
14455
14456fi
14457fi
14458MSGFMT=$ac_cv_prog_MSGFMT
14459if test -n "$MSGFMT"; then
14460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14461$as_echo "$MSGFMT" >&6; }
14462else
14463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464$as_echo "no" >&6; }
14465fi
14466
14467
14468  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
14469$as_echo_n "checking for NLS... " >&6; }
14470  if test -f po/Makefile; then
14471    have_gettext="no"
14472    if test -n "$MSGFMT"; then
14473      olibs=$LIBS
14474      LIBS=""
14475      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476/* end confdefs.h.  */
14477#include <libintl.h>
14478int
14479main ()
14480{
14481gettext("Test");
14482  ;
14483  return 0;
14484}
14485_ACEOF
14486if ac_fn_c_try_link "$LINENO"; then :
14487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
14488$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
14489else
14490  LIBS="-lintl"
14491	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492/* end confdefs.h.  */
14493#include <libintl.h>
14494int
14495main ()
14496{
14497gettext("Test");
14498  ;
14499  return 0;
14500}
14501_ACEOF
14502if ac_fn_c_try_link "$LINENO"; then :
14503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
14504$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
14505	      LIBS="$olibs -lintl"
14506else
14507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
14508$as_echo "gettext() doesn't work" >&6; };
14509	      LIBS=$olibs
14510fi
14511rm -f core conftest.err conftest.$ac_objext \
14512    conftest$ac_exeext conftest.$ac_ext
14513fi
14514rm -f core conftest.err conftest.$ac_objext \
14515    conftest$ac_exeext conftest.$ac_ext
14516    else
14517      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
14518$as_echo "msgfmt not found - disabled" >&6; };
14519    fi
14520    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
14521      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14522
14523      MAKEMO=yes
14524
14525            for ac_func in bind_textdomain_codeset
14526do :
14527  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14528if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14529  cat >>confdefs.h <<_ACEOF
14530#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14531_ACEOF
14532
14533fi
14534done
14535
14536            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
14537$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
14538      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539/* end confdefs.h.  */
14540#include <libintl.h>
14541		extern int _nl_msg_cat_cntr;
14542int
14543main ()
14544{
14545++_nl_msg_cat_cntr;
14546  ;
14547  return 0;
14548}
14549_ACEOF
14550if ac_fn_c_try_link "$LINENO"; then :
14551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14552$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
14553
14554else
14555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14556$as_echo "no" >&6; }
14557fi
14558rm -f core conftest.err conftest.$ac_objext \
14559    conftest$ac_exeext conftest.$ac_ext
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      if test "$enable_multibyte" = "yes"; then
14801        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
14802$as_echo "yes, we need CoreServices" >&6; }
14803        LIBS="$LIBS -framework CoreServices"
14804      else
14805                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14806$as_echo "no" >&6; }
14807        OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_mac_conv.c++'`
14808        OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_mac_conv.o++'`
14809        CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's+-DMACOS_X_DARWIN++'`
14810      fi
14811    else
14812      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
14813$as_echo "yes, we need AppKit" >&6; }
14814      LIBS="$LIBS -framework AppKit"
14815      if test "$features" = "small" -a "$enable_multibyte" = "no"; then
14816                                { $as_echo "$as_me:${as_lineno-$LINENO}: +multi_byte will be set in favor of +clipboard" >&5
14817$as_echo "$as_me: +multi_byte will be set in favor of +clipboard" >&6;}
14818        enable_multibyte=yes
14819        $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
14820
14821      fi
14822    fi
14823  else
14824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825$as_echo "no" >&6; }
14826  fi
14827fi
14828if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
14829  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
14830fi
14831
14832DEPEND_CFLAGS_FILTER=
14833if test "$GCC" = yes; then
14834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14835$as_echo_n "checking for GCC 3 or later... " >&6; }
14836  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
14837  if test "$gccmajor" -gt "2"; then
14838    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14839    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14840$as_echo "yes" >&6; }
14841  else
14842    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14843$as_echo "no" >&6; }
14844  fi
14845          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14846$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14847  if test "$gccmajor" -gt "3"; then
14848    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/'`
14849    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14850$as_echo "yes" >&6; }
14851  else
14852    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853$as_echo "no" >&6; }
14854  fi
14855fi
14856
14857
14858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5
14859$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; }
14860if 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
14861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14862$as_echo "yes" >&6; }
14863  $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14864
14865else
14866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14867$as_echo "no" >&6; }
14868fi
14869
14870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14871$as_echo_n "checking linker --as-needed support... " >&6; }
14872LINK_AS_NEEDED=
14873# Check if linker supports --as-needed and --no-as-needed options
14874if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14875  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14876  LINK_AS_NEEDED=yes
14877fi
14878if test "$LINK_AS_NEEDED" = yes; then
14879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14880$as_echo "yes" >&6; }
14881else
14882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14883$as_echo "no" >&6; }
14884fi
14885
14886
14887# IBM z/OS reset CFLAGS for config.mk
14888if test "$zOSUnix" = "yes"; then
14889	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14890fi
14891
14892ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14893
14894cat >confcache <<\_ACEOF
14895# This file is a shell script that caches the results of configure
14896# tests run on this system so they can be shared between configure
14897# scripts and configure runs, see configure's option --config-cache.
14898# It is not useful on other systems.  If it contains results you don't
14899# want to keep, you may remove or edit it.
14900#
14901# config.status only pays attention to the cache file if you give it
14902# the --recheck option to rerun configure.
14903#
14904# `ac_cv_env_foo' variables (set or unset) will be overridden when
14905# loading this file, other *unset* `ac_cv_foo' will be assigned the
14906# following values.
14907
14908_ACEOF
14909
14910# The following way of writing the cache mishandles newlines in values,
14911# but we know of no workaround that is simple, portable, and efficient.
14912# So, we kill variables containing newlines.
14913# Ultrix sh set writes to stderr and can't be redirected directly,
14914# and sets the high bit in the cache file unless we assign to the vars.
14915(
14916  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14917    eval ac_val=\$$ac_var
14918    case $ac_val in #(
14919    *${as_nl}*)
14920      case $ac_var in #(
14921      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14922$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14923      esac
14924      case $ac_var in #(
14925      _ | IFS | as_nl) ;; #(
14926      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14927      *) { eval $ac_var=; unset $ac_var;} ;;
14928      esac ;;
14929    esac
14930  done
14931
14932  (set) 2>&1 |
14933    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14934    *${as_nl}ac_space=\ *)
14935      # `set' does not quote correctly, so add quotes: double-quote
14936      # substitution turns \\\\ into \\, and sed turns \\ into \.
14937      sed -n \
14938	"s/'/'\\\\''/g;
14939	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14940      ;; #(
14941    *)
14942      # `set' quotes correctly as required by POSIX, so do not add quotes.
14943      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14944      ;;
14945    esac |
14946    sort
14947) |
14948  sed '
14949     /^ac_cv_env_/b end
14950     t clear
14951     :clear
14952     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14953     t end
14954     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14955     :end' >>confcache
14956if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14957  if test -w "$cache_file"; then
14958    if test "x$cache_file" != "x/dev/null"; then
14959      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14960$as_echo "$as_me: updating cache $cache_file" >&6;}
14961      if test ! -f "$cache_file" || test -h "$cache_file"; then
14962	cat confcache >"$cache_file"
14963      else
14964        case $cache_file in #(
14965        */* | ?:*)
14966	  mv -f confcache "$cache_file"$$ &&
14967	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14968        *)
14969	  mv -f confcache "$cache_file" ;;
14970	esac
14971      fi
14972    fi
14973  else
14974    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14975$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14976  fi
14977fi
14978rm -f confcache
14979
14980test "x$prefix" = xNONE && prefix=$ac_default_prefix
14981# Let make expand exec_prefix.
14982test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14983
14984DEFS=-DHAVE_CONFIG_H
14985
14986ac_libobjs=
14987ac_ltlibobjs=
14988U=
14989for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14990  # 1. Remove the extension, and $U if already installed.
14991  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14992  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14993  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14994  #    will be set to the directory where LIBOBJS objects are built.
14995  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14996  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14997done
14998LIBOBJS=$ac_libobjs
14999
15000LTLIBOBJS=$ac_ltlibobjs
15001
15002
15003
15004
15005: "${CONFIG_STATUS=./config.status}"
15006ac_write_fail=0
15007ac_clean_files_save=$ac_clean_files
15008ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15009{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15010$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15011as_write_fail=0
15012cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15013#! $SHELL
15014# Generated by $as_me.
15015# Run this file to recreate the current configuration.
15016# Compiler output produced by configure, useful for debugging
15017# configure, is in config.log if it exists.
15018
15019debug=false
15020ac_cs_recheck=false
15021ac_cs_silent=false
15022
15023SHELL=\${CONFIG_SHELL-$SHELL}
15024export SHELL
15025_ASEOF
15026cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15027## -------------------- ##
15028## M4sh Initialization. ##
15029## -------------------- ##
15030
15031# Be more Bourne compatible
15032DUALCASE=1; export DUALCASE # for MKS sh
15033if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15034  emulate sh
15035  NULLCMD=:
15036  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15037  # is contrary to our usage.  Disable this feature.
15038  alias -g '${1+"$@"}'='"$@"'
15039  setopt NO_GLOB_SUBST
15040else
15041  case `(set -o) 2>/dev/null` in #(
15042  *posix*) :
15043    set -o posix ;; #(
15044  *) :
15045     ;;
15046esac
15047fi
15048
15049
15050as_nl='
15051'
15052export as_nl
15053# Printing a long string crashes Solaris 7 /usr/bin/printf.
15054as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15055as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15056as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15057# Prefer a ksh shell builtin over an external printf program on Solaris,
15058# but without wasting forks for bash or zsh.
15059if test -z "$BASH_VERSION$ZSH_VERSION" \
15060    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15061  as_echo='print -r --'
15062  as_echo_n='print -rn --'
15063elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15064  as_echo='printf %s\n'
15065  as_echo_n='printf %s'
15066else
15067  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15068    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15069    as_echo_n='/usr/ucb/echo -n'
15070  else
15071    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15072    as_echo_n_body='eval
15073      arg=$1;
15074      case $arg in #(
15075      *"$as_nl"*)
15076	expr "X$arg" : "X\\(.*\\)$as_nl";
15077	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15078      esac;
15079      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15080    '
15081    export as_echo_n_body
15082    as_echo_n='sh -c $as_echo_n_body as_echo'
15083  fi
15084  export as_echo_body
15085  as_echo='sh -c $as_echo_body as_echo'
15086fi
15087
15088# The user is always right.
15089if test "${PATH_SEPARATOR+set}" != set; then
15090  PATH_SEPARATOR=:
15091  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15092    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15093      PATH_SEPARATOR=';'
15094  }
15095fi
15096
15097
15098# IFS
15099# We need space, tab and new line, in precisely that order.  Quoting is
15100# there to prevent editors from complaining about space-tab.
15101# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15102# splitting by setting IFS to empty value.)
15103IFS=" ""	$as_nl"
15104
15105# Find who we are.  Look in the path if we contain no directory separator.
15106as_myself=
15107case $0 in #((
15108  *[\\/]* ) as_myself=$0 ;;
15109  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15110for as_dir in $PATH
15111do
15112  IFS=$as_save_IFS
15113  test -z "$as_dir" && as_dir=.
15114    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15115  done
15116IFS=$as_save_IFS
15117
15118     ;;
15119esac
15120# We did not find ourselves, most probably we were run as `sh COMMAND'
15121# in which case we are not to be found in the path.
15122if test "x$as_myself" = x; then
15123  as_myself=$0
15124fi
15125if test ! -f "$as_myself"; then
15126  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15127  exit 1
15128fi
15129
15130# Unset variables that we do not need and which cause bugs (e.g. in
15131# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15132# suppresses any "Segmentation fault" message there.  '((' could
15133# trigger a bug in pdksh 5.2.14.
15134for as_var in BASH_ENV ENV MAIL MAILPATH
15135do eval test x\${$as_var+set} = xset \
15136  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15137done
15138PS1='$ '
15139PS2='> '
15140PS4='+ '
15141
15142# NLS nuisances.
15143LC_ALL=C
15144export LC_ALL
15145LANGUAGE=C
15146export LANGUAGE
15147
15148# CDPATH.
15149(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15150
15151
15152# as_fn_error STATUS ERROR [LINENO LOG_FD]
15153# ----------------------------------------
15154# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15155# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15156# script with STATUS, using 1 if that was 0.
15157as_fn_error ()
15158{
15159  as_status=$1; test $as_status -eq 0 && as_status=1
15160  if test "$4"; then
15161    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15162    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15163  fi
15164  $as_echo "$as_me: error: $2" >&2
15165  as_fn_exit $as_status
15166} # as_fn_error
15167
15168
15169# as_fn_set_status STATUS
15170# -----------------------
15171# Set $? to STATUS, without forking.
15172as_fn_set_status ()
15173{
15174  return $1
15175} # as_fn_set_status
15176
15177# as_fn_exit STATUS
15178# -----------------
15179# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15180as_fn_exit ()
15181{
15182  set +e
15183  as_fn_set_status $1
15184  exit $1
15185} # as_fn_exit
15186
15187# as_fn_unset VAR
15188# ---------------
15189# Portably unset VAR.
15190as_fn_unset ()
15191{
15192  { eval $1=; unset $1;}
15193}
15194as_unset=as_fn_unset
15195# as_fn_append VAR VALUE
15196# ----------------------
15197# Append the text in VALUE to the end of the definition contained in VAR. Take
15198# advantage of any shell optimizations that allow amortized linear growth over
15199# repeated appends, instead of the typical quadratic growth present in naive
15200# implementations.
15201if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15202  eval 'as_fn_append ()
15203  {
15204    eval $1+=\$2
15205  }'
15206else
15207  as_fn_append ()
15208  {
15209    eval $1=\$$1\$2
15210  }
15211fi # as_fn_append
15212
15213# as_fn_arith ARG...
15214# ------------------
15215# Perform arithmetic evaluation on the ARGs, and store the result in the
15216# global $as_val. Take advantage of shells that can avoid forks. The arguments
15217# must be portable across $(()) and expr.
15218if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15219  eval 'as_fn_arith ()
15220  {
15221    as_val=$(( $* ))
15222  }'
15223else
15224  as_fn_arith ()
15225  {
15226    as_val=`expr "$@" || test $? -eq 1`
15227  }
15228fi # as_fn_arith
15229
15230
15231if expr a : '\(a\)' >/dev/null 2>&1 &&
15232   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15233  as_expr=expr
15234else
15235  as_expr=false
15236fi
15237
15238if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15239  as_basename=basename
15240else
15241  as_basename=false
15242fi
15243
15244if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15245  as_dirname=dirname
15246else
15247  as_dirname=false
15248fi
15249
15250as_me=`$as_basename -- "$0" ||
15251$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15252	 X"$0" : 'X\(//\)$' \| \
15253	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15254$as_echo X/"$0" |
15255    sed '/^.*\/\([^/][^/]*\)\/*$/{
15256	    s//\1/
15257	    q
15258	  }
15259	  /^X\/\(\/\/\)$/{
15260	    s//\1/
15261	    q
15262	  }
15263	  /^X\/\(\/\).*/{
15264	    s//\1/
15265	    q
15266	  }
15267	  s/.*/./; q'`
15268
15269# Avoid depending upon Character Ranges.
15270as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15271as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15272as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15273as_cr_digits='0123456789'
15274as_cr_alnum=$as_cr_Letters$as_cr_digits
15275
15276ECHO_C= ECHO_N= ECHO_T=
15277case `echo -n x` in #(((((
15278-n*)
15279  case `echo 'xy\c'` in
15280  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15281  xy)  ECHO_C='\c';;
15282  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15283       ECHO_T='	';;
15284  esac;;
15285*)
15286  ECHO_N='-n';;
15287esac
15288
15289rm -f conf$$ conf$$.exe conf$$.file
15290if test -d conf$$.dir; then
15291  rm -f conf$$.dir/conf$$.file
15292else
15293  rm -f conf$$.dir
15294  mkdir conf$$.dir 2>/dev/null
15295fi
15296if (echo >conf$$.file) 2>/dev/null; then
15297  if ln -s conf$$.file conf$$ 2>/dev/null; then
15298    as_ln_s='ln -s'
15299    # ... but there are two gotchas:
15300    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15301    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15302    # In both cases, we have to default to `cp -pR'.
15303    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15304      as_ln_s='cp -pR'
15305  elif ln conf$$.file conf$$ 2>/dev/null; then
15306    as_ln_s=ln
15307  else
15308    as_ln_s='cp -pR'
15309  fi
15310else
15311  as_ln_s='cp -pR'
15312fi
15313rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15314rmdir conf$$.dir 2>/dev/null
15315
15316
15317# as_fn_mkdir_p
15318# -------------
15319# Create "$as_dir" as a directory, including parents if necessary.
15320as_fn_mkdir_p ()
15321{
15322
15323  case $as_dir in #(
15324  -*) as_dir=./$as_dir;;
15325  esac
15326  test -d "$as_dir" || eval $as_mkdir_p || {
15327    as_dirs=
15328    while :; do
15329      case $as_dir in #(
15330      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15331      *) as_qdir=$as_dir;;
15332      esac
15333      as_dirs="'$as_qdir' $as_dirs"
15334      as_dir=`$as_dirname -- "$as_dir" ||
15335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15336	 X"$as_dir" : 'X\(//\)[^/]' \| \
15337	 X"$as_dir" : 'X\(//\)$' \| \
15338	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15339$as_echo X"$as_dir" |
15340    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15341	    s//\1/
15342	    q
15343	  }
15344	  /^X\(\/\/\)[^/].*/{
15345	    s//\1/
15346	    q
15347	  }
15348	  /^X\(\/\/\)$/{
15349	    s//\1/
15350	    q
15351	  }
15352	  /^X\(\/\).*/{
15353	    s//\1/
15354	    q
15355	  }
15356	  s/.*/./; q'`
15357      test -d "$as_dir" && break
15358    done
15359    test -z "$as_dirs" || eval "mkdir $as_dirs"
15360  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15361
15362
15363} # as_fn_mkdir_p
15364if mkdir -p . 2>/dev/null; then
15365  as_mkdir_p='mkdir -p "$as_dir"'
15366else
15367  test -d ./-p && rmdir ./-p
15368  as_mkdir_p=false
15369fi
15370
15371
15372# as_fn_executable_p FILE
15373# -----------------------
15374# Test if FILE is an executable regular file.
15375as_fn_executable_p ()
15376{
15377  test -f "$1" && test -x "$1"
15378} # as_fn_executable_p
15379as_test_x='test -x'
15380as_executable_p=as_fn_executable_p
15381
15382# Sed expression to map a string onto a valid CPP name.
15383as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15384
15385# Sed expression to map a string onto a valid variable name.
15386as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15387
15388
15389exec 6>&1
15390## ----------------------------------- ##
15391## Main body of $CONFIG_STATUS script. ##
15392## ----------------------------------- ##
15393_ASEOF
15394test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15395
15396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15397# Save the log message, to keep $0 and so on meaningful, and to
15398# report actual input values of CONFIG_FILES etc. instead of their
15399# values after options handling.
15400ac_log="
15401This file was extended by $as_me, which was
15402generated by GNU Autoconf 2.69.  Invocation command line was
15403
15404  CONFIG_FILES    = $CONFIG_FILES
15405  CONFIG_HEADERS  = $CONFIG_HEADERS
15406  CONFIG_LINKS    = $CONFIG_LINKS
15407  CONFIG_COMMANDS = $CONFIG_COMMANDS
15408  $ $0 $@
15409
15410on `(hostname || uname -n) 2>/dev/null | sed 1q`
15411"
15412
15413_ACEOF
15414
15415case $ac_config_files in *"
15416"*) set x $ac_config_files; shift; ac_config_files=$*;;
15417esac
15418
15419case $ac_config_headers in *"
15420"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15421esac
15422
15423
15424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15425# Files that config.status was made for.
15426config_files="$ac_config_files"
15427config_headers="$ac_config_headers"
15428
15429_ACEOF
15430
15431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15432ac_cs_usage="\
15433\`$as_me' instantiates files and other configuration actions
15434from templates according to the current configuration.  Unless the files
15435and actions are specified as TAGs, all are instantiated by default.
15436
15437Usage: $0 [OPTION]... [TAG]...
15438
15439  -h, --help       print this help, then exit
15440  -V, --version    print version number and configuration settings, then exit
15441      --config     print configuration, then exit
15442  -q, --quiet, --silent
15443                   do not print progress messages
15444  -d, --debug      don't remove temporary files
15445      --recheck    update $as_me by reconfiguring in the same conditions
15446      --file=FILE[:TEMPLATE]
15447                   instantiate the configuration file FILE
15448      --header=FILE[:TEMPLATE]
15449                   instantiate the configuration header FILE
15450
15451Configuration files:
15452$config_files
15453
15454Configuration headers:
15455$config_headers
15456
15457Report bugs to the package provider."
15458
15459_ACEOF
15460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15461ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15462ac_cs_version="\\
15463config.status
15464configured by $0, generated by GNU Autoconf 2.69,
15465  with options \\"\$ac_cs_config\\"
15466
15467Copyright (C) 2012 Free Software Foundation, Inc.
15468This config.status script is free software; the Free Software Foundation
15469gives unlimited permission to copy, distribute and modify it."
15470
15471ac_pwd='$ac_pwd'
15472srcdir='$srcdir'
15473AWK='$AWK'
15474test -n "\$AWK" || AWK=awk
15475_ACEOF
15476
15477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15478# The default lists apply if the user does not specify any file.
15479ac_need_defaults=:
15480while test $# != 0
15481do
15482  case $1 in
15483  --*=?*)
15484    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15485    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15486    ac_shift=:
15487    ;;
15488  --*=)
15489    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15490    ac_optarg=
15491    ac_shift=:
15492    ;;
15493  *)
15494    ac_option=$1
15495    ac_optarg=$2
15496    ac_shift=shift
15497    ;;
15498  esac
15499
15500  case $ac_option in
15501  # Handling of the options.
15502  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15503    ac_cs_recheck=: ;;
15504  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15505    $as_echo "$ac_cs_version"; exit ;;
15506  --config | --confi | --conf | --con | --co | --c )
15507    $as_echo "$ac_cs_config"; exit ;;
15508  --debug | --debu | --deb | --de | --d | -d )
15509    debug=: ;;
15510  --file | --fil | --fi | --f )
15511    $ac_shift
15512    case $ac_optarg in
15513    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15514    '') as_fn_error $? "missing file argument" ;;
15515    esac
15516    as_fn_append CONFIG_FILES " '$ac_optarg'"
15517    ac_need_defaults=false;;
15518  --header | --heade | --head | --hea )
15519    $ac_shift
15520    case $ac_optarg in
15521    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15522    esac
15523    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15524    ac_need_defaults=false;;
15525  --he | --h)
15526    # Conflict between --help and --header
15527    as_fn_error $? "ambiguous option: \`$1'
15528Try \`$0 --help' for more information.";;
15529  --help | --hel | -h )
15530    $as_echo "$ac_cs_usage"; exit ;;
15531  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15532  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15533    ac_cs_silent=: ;;
15534
15535  # This is an error.
15536  -*) as_fn_error $? "unrecognized option: \`$1'
15537Try \`$0 --help' for more information." ;;
15538
15539  *) as_fn_append ac_config_targets " $1"
15540     ac_need_defaults=false ;;
15541
15542  esac
15543  shift
15544done
15545
15546ac_configure_extra_args=
15547
15548if $ac_cs_silent; then
15549  exec 6>/dev/null
15550  ac_configure_extra_args="$ac_configure_extra_args --silent"
15551fi
15552
15553_ACEOF
15554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15555if \$ac_cs_recheck; then
15556  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15557  shift
15558  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15559  CONFIG_SHELL='$SHELL'
15560  export CONFIG_SHELL
15561  exec "\$@"
15562fi
15563
15564_ACEOF
15565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15566exec 5>>auto/config.log
15567{
15568  echo
15569  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15570## Running $as_me. ##
15571_ASBOX
15572  $as_echo "$ac_log"
15573} >&5
15574
15575_ACEOF
15576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15577_ACEOF
15578
15579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15580
15581# Handling of arguments.
15582for ac_config_target in $ac_config_targets
15583do
15584  case $ac_config_target in
15585    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15586    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15587
15588  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15589  esac
15590done
15591
15592
15593# If the user did not use the arguments to specify the items to instantiate,
15594# then the envvar interface is used.  Set only those that are not.
15595# We use the long form for the default assignment because of an extremely
15596# bizarre bug on SunOS 4.1.3.
15597if $ac_need_defaults; then
15598  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15599  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15600fi
15601
15602# Have a temporary directory for convenience.  Make it in the build tree
15603# simply because there is no reason against having it here, and in addition,
15604# creating and moving files from /tmp can sometimes cause problems.
15605# Hook for its removal unless debugging.
15606# Note that there is a small window in which the directory will not be cleaned:
15607# after its creation but before its name has been assigned to `$tmp'.
15608$debug ||
15609{
15610  tmp= ac_tmp=
15611  trap 'exit_status=$?
15612  : "${ac_tmp:=$tmp}"
15613  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15614' 0
15615  trap 'as_fn_exit 1' 1 2 13 15
15616}
15617# Create a (secure) tmp directory for tmp files.
15618
15619{
15620  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15621  test -d "$tmp"
15622}  ||
15623{
15624  tmp=./conf$$-$RANDOM
15625  (umask 077 && mkdir "$tmp")
15626} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15627ac_tmp=$tmp
15628
15629# Set up the scripts for CONFIG_FILES section.
15630# No need to generate them if there are no CONFIG_FILES.
15631# This happens for instance with `./config.status config.h'.
15632if test -n "$CONFIG_FILES"; then
15633
15634
15635ac_cr=`echo X | tr X '\015'`
15636# On cygwin, bash can eat \r inside `` if the user requested igncr.
15637# But we know of no other shell where ac_cr would be empty at this
15638# point, so we can use a bashism as a fallback.
15639if test "x$ac_cr" = x; then
15640  eval ac_cr=\$\'\\r\'
15641fi
15642ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15643if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15644  ac_cs_awk_cr='\\r'
15645else
15646  ac_cs_awk_cr=$ac_cr
15647fi
15648
15649echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15650_ACEOF
15651
15652
15653{
15654  echo "cat >conf$$subs.awk <<_ACEOF" &&
15655  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15656  echo "_ACEOF"
15657} >conf$$subs.sh ||
15658  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15659ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15660ac_delim='%!_!# '
15661for ac_last_try in false false false false false :; do
15662  . ./conf$$subs.sh ||
15663    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15664
15665  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15666  if test $ac_delim_n = $ac_delim_num; then
15667    break
15668  elif $ac_last_try; then
15669    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15670  else
15671    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15672  fi
15673done
15674rm -f conf$$subs.sh
15675
15676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15677cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15678_ACEOF
15679sed -n '
15680h
15681s/^/S["/; s/!.*/"]=/
15682p
15683g
15684s/^[^!]*!//
15685:repl
15686t repl
15687s/'"$ac_delim"'$//
15688t delim
15689:nl
15690h
15691s/\(.\{148\}\)..*/\1/
15692t more1
15693s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15694p
15695n
15696b repl
15697:more1
15698s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15699p
15700g
15701s/.\{148\}//
15702t nl
15703:delim
15704h
15705s/\(.\{148\}\)..*/\1/
15706t more2
15707s/["\\]/\\&/g; s/^/"/; s/$/"/
15708p
15709b
15710:more2
15711s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15712p
15713g
15714s/.\{148\}//
15715t delim
15716' <conf$$subs.awk | sed '
15717/^[^""]/{
15718  N
15719  s/\n//
15720}
15721' >>$CONFIG_STATUS || ac_write_fail=1
15722rm -f conf$$subs.awk
15723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15724_ACAWK
15725cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15726  for (key in S) S_is_set[key] = 1
15727  FS = ""
15728
15729}
15730{
15731  line = $ 0
15732  nfields = split(line, field, "@")
15733  substed = 0
15734  len = length(field[1])
15735  for (i = 2; i < nfields; i++) {
15736    key = field[i]
15737    keylen = length(key)
15738    if (S_is_set[key]) {
15739      value = S[key]
15740      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15741      len += length(value) + length(field[++i])
15742      substed = 1
15743    } else
15744      len += 1 + keylen
15745  }
15746
15747  print line
15748}
15749
15750_ACAWK
15751_ACEOF
15752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15753if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15754  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15755else
15756  cat
15757fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15758  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15759_ACEOF
15760
15761# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15762# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15763# trailing colons and then remove the whole line if VPATH becomes empty
15764# (actually we leave an empty line to preserve line numbers).
15765if test "x$srcdir" = x.; then
15766  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15767h
15768s///
15769s/^/:/
15770s/[	 ]*$/:/
15771s/:\$(srcdir):/:/g
15772s/:\${srcdir}:/:/g
15773s/:@srcdir@:/:/g
15774s/^:*//
15775s/:*$//
15776x
15777s/\(=[	 ]*\).*/\1/
15778G
15779s/\n//
15780s/^[^=]*=[	 ]*$//
15781}'
15782fi
15783
15784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15785fi # test -n "$CONFIG_FILES"
15786
15787# Set up the scripts for CONFIG_HEADERS section.
15788# No need to generate them if there are no CONFIG_HEADERS.
15789# This happens for instance with `./config.status Makefile'.
15790if test -n "$CONFIG_HEADERS"; then
15791cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15792BEGIN {
15793_ACEOF
15794
15795# Transform confdefs.h into an awk script `defines.awk', embedded as
15796# here-document in config.status, that substitutes the proper values into
15797# config.h.in to produce config.h.
15798
15799# Create a delimiter string that does not exist in confdefs.h, to ease
15800# handling of long lines.
15801ac_delim='%!_!# '
15802for ac_last_try in false false :; do
15803  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15804  if test -z "$ac_tt"; then
15805    break
15806  elif $ac_last_try; then
15807    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15808  else
15809    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15810  fi
15811done
15812
15813# For the awk script, D is an array of macro values keyed by name,
15814# likewise P contains macro parameters if any.  Preserve backslash
15815# newline sequences.
15816
15817ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15818sed -n '
15819s/.\{148\}/&'"$ac_delim"'/g
15820t rset
15821:rset
15822s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15823t def
15824d
15825:def
15826s/\\$//
15827t bsnl
15828s/["\\]/\\&/g
15829s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15830D["\1"]=" \3"/p
15831s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15832d
15833:bsnl
15834s/["\\]/\\&/g
15835s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15836D["\1"]=" \3\\\\\\n"\\/p
15837t cont
15838s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15839t cont
15840d
15841:cont
15842n
15843s/.\{148\}/&'"$ac_delim"'/g
15844t clear
15845:clear
15846s/\\$//
15847t bsnlc
15848s/["\\]/\\&/g; s/^/"/; s/$/"/p
15849d
15850:bsnlc
15851s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15852b cont
15853' <confdefs.h | sed '
15854s/'"$ac_delim"'/"\\\
15855"/g' >>$CONFIG_STATUS || ac_write_fail=1
15856
15857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15858  for (key in D) D_is_set[key] = 1
15859  FS = ""
15860}
15861/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15862  line = \$ 0
15863  split(line, arg, " ")
15864  if (arg[1] == "#") {
15865    defundef = arg[2]
15866    mac1 = arg[3]
15867  } else {
15868    defundef = substr(arg[1], 2)
15869    mac1 = arg[2]
15870  }
15871  split(mac1, mac2, "(") #)
15872  macro = mac2[1]
15873  prefix = substr(line, 1, index(line, defundef) - 1)
15874  if (D_is_set[macro]) {
15875    # Preserve the white space surrounding the "#".
15876    print prefix "define", macro P[macro] D[macro]
15877    next
15878  } else {
15879    # Replace #undef with comments.  This is necessary, for example,
15880    # in the case of _POSIX_SOURCE, which is predefined and required
15881    # on some systems where configure will not decide to define it.
15882    if (defundef == "undef") {
15883      print "/*", prefix defundef, macro, "*/"
15884      next
15885    }
15886  }
15887}
15888{ print }
15889_ACAWK
15890_ACEOF
15891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15892  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15893fi # test -n "$CONFIG_HEADERS"
15894
15895
15896eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15897shift
15898for ac_tag
15899do
15900  case $ac_tag in
15901  :[FHLC]) ac_mode=$ac_tag; continue;;
15902  esac
15903  case $ac_mode$ac_tag in
15904  :[FHL]*:*);;
15905  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15906  :[FH]-) ac_tag=-:-;;
15907  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15908  esac
15909  ac_save_IFS=$IFS
15910  IFS=:
15911  set x $ac_tag
15912  IFS=$ac_save_IFS
15913  shift
15914  ac_file=$1
15915  shift
15916
15917  case $ac_mode in
15918  :L) ac_source=$1;;
15919  :[FH])
15920    ac_file_inputs=
15921    for ac_f
15922    do
15923      case $ac_f in
15924      -) ac_f="$ac_tmp/stdin";;
15925      *) # Look for the file first in the build tree, then in the source tree
15926	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15927	 # because $ac_f cannot contain `:'.
15928	 test -f "$ac_f" ||
15929	   case $ac_f in
15930	   [\\/$]*) false;;
15931	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15932	   esac ||
15933	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15934      esac
15935      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15936      as_fn_append ac_file_inputs " '$ac_f'"
15937    done
15938
15939    # Let's still pretend it is `configure' which instantiates (i.e., don't
15940    # use $as_me), people would be surprised to read:
15941    #    /* config.h.  Generated by config.status.  */
15942    configure_input='Generated from '`
15943	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15944	`' by configure.'
15945    if test x"$ac_file" != x-; then
15946      configure_input="$ac_file.  $configure_input"
15947      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15948$as_echo "$as_me: creating $ac_file" >&6;}
15949    fi
15950    # Neutralize special characters interpreted by sed in replacement strings.
15951    case $configure_input in #(
15952    *\&* | *\|* | *\\* )
15953       ac_sed_conf_input=`$as_echo "$configure_input" |
15954       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15955    *) ac_sed_conf_input=$configure_input;;
15956    esac
15957
15958    case $ac_tag in
15959    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15960      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15961    esac
15962    ;;
15963  esac
15964
15965  ac_dir=`$as_dirname -- "$ac_file" ||
15966$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15967	 X"$ac_file" : 'X\(//\)[^/]' \| \
15968	 X"$ac_file" : 'X\(//\)$' \| \
15969	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15970$as_echo X"$ac_file" |
15971    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15972	    s//\1/
15973	    q
15974	  }
15975	  /^X\(\/\/\)[^/].*/{
15976	    s//\1/
15977	    q
15978	  }
15979	  /^X\(\/\/\)$/{
15980	    s//\1/
15981	    q
15982	  }
15983	  /^X\(\/\).*/{
15984	    s//\1/
15985	    q
15986	  }
15987	  s/.*/./; q'`
15988  as_dir="$ac_dir"; as_fn_mkdir_p
15989  ac_builddir=.
15990
15991case "$ac_dir" in
15992.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15993*)
15994  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15995  # A ".." for each directory in $ac_dir_suffix.
15996  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15997  case $ac_top_builddir_sub in
15998  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15999  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16000  esac ;;
16001esac
16002ac_abs_top_builddir=$ac_pwd
16003ac_abs_builddir=$ac_pwd$ac_dir_suffix
16004# for backward compatibility:
16005ac_top_builddir=$ac_top_build_prefix
16006
16007case $srcdir in
16008  .)  # We are building in place.
16009    ac_srcdir=.
16010    ac_top_srcdir=$ac_top_builddir_sub
16011    ac_abs_top_srcdir=$ac_pwd ;;
16012  [\\/]* | ?:[\\/]* )  # Absolute name.
16013    ac_srcdir=$srcdir$ac_dir_suffix;
16014    ac_top_srcdir=$srcdir
16015    ac_abs_top_srcdir=$srcdir ;;
16016  *) # Relative name.
16017    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16018    ac_top_srcdir=$ac_top_build_prefix$srcdir
16019    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16020esac
16021ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16022
16023
16024  case $ac_mode in
16025  :F)
16026  #
16027  # CONFIG_FILE
16028  #
16029
16030_ACEOF
16031
16032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16033# If the template does not know about datarootdir, expand it.
16034# FIXME: This hack should be removed a few years after 2.60.
16035ac_datarootdir_hack=; ac_datarootdir_seen=
16036ac_sed_dataroot='
16037/datarootdir/ {
16038  p
16039  q
16040}
16041/@datadir@/p
16042/@docdir@/p
16043/@infodir@/p
16044/@localedir@/p
16045/@mandir@/p'
16046case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16047*datarootdir*) ac_datarootdir_seen=yes;;
16048*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16049  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16050$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16051_ACEOF
16052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16053  ac_datarootdir_hack='
16054  s&@datadir@&$datadir&g
16055  s&@docdir@&$docdir&g
16056  s&@infodir@&$infodir&g
16057  s&@localedir@&$localedir&g
16058  s&@mandir@&$mandir&g
16059  s&\\\${datarootdir}&$datarootdir&g' ;;
16060esac
16061_ACEOF
16062
16063# Neutralize VPATH when `$srcdir' = `.'.
16064# Shell code in configure.ac might set extrasub.
16065# FIXME: do we really want to maintain this feature?
16066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16067ac_sed_extra="$ac_vpsub
16068$extrasub
16069_ACEOF
16070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16071:t
16072/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16073s|@configure_input@|$ac_sed_conf_input|;t t
16074s&@top_builddir@&$ac_top_builddir_sub&;t t
16075s&@top_build_prefix@&$ac_top_build_prefix&;t t
16076s&@srcdir@&$ac_srcdir&;t t
16077s&@abs_srcdir@&$ac_abs_srcdir&;t t
16078s&@top_srcdir@&$ac_top_srcdir&;t t
16079s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16080s&@builddir@&$ac_builddir&;t t
16081s&@abs_builddir@&$ac_abs_builddir&;t t
16082s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16083$ac_datarootdir_hack
16084"
16085eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16086  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16087
16088test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16089  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16090  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16091      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16092  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16093which seems to be undefined.  Please make sure it is defined" >&5
16094$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16095which seems to be undefined.  Please make sure it is defined" >&2;}
16096
16097  rm -f "$ac_tmp/stdin"
16098  case $ac_file in
16099  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16100  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16101  esac \
16102  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16103 ;;
16104  :H)
16105  #
16106  # CONFIG_HEADER
16107  #
16108  if test x"$ac_file" != x-; then
16109    {
16110      $as_echo "/* $configure_input  */" \
16111      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16112    } >"$ac_tmp/config.h" \
16113      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16114    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16115      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16116$as_echo "$as_me: $ac_file is unchanged" >&6;}
16117    else
16118      rm -f "$ac_file"
16119      mv "$ac_tmp/config.h" "$ac_file" \
16120	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16121    fi
16122  else
16123    $as_echo "/* $configure_input  */" \
16124      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16125      || as_fn_error $? "could not create -" "$LINENO" 5
16126  fi
16127 ;;
16128
16129
16130  esac
16131
16132done # for ac_tag
16133
16134
16135as_fn_exit 0
16136_ACEOF
16137ac_clean_files=$ac_clean_files_save
16138
16139test $ac_write_fail = 0 ||
16140  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16141
16142
16143# configure is writing to config.log, and then calls config.status.
16144# config.status does its own redirection, appending to config.log.
16145# Unfortunately, on DOS this fails, as config.log is still kept open
16146# by configure, so config.status won't be able to write to it; its
16147# output is simply discarded.  So we exec the FD to /dev/null,
16148# effectively closing config.log, so it can be properly (re)opened and
16149# appended to by config.status.  When coming back to configure, we
16150# need to make the FD available again.
16151if test "$no_create" != yes; then
16152  ac_cs_success=:
16153  ac_config_status_args=
16154  test "$silent" = yes &&
16155    ac_config_status_args="$ac_config_status_args --quiet"
16156  exec 5>/dev/null
16157  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16158  exec 5>>auto/config.log
16159  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16160  # would make configure fail if this is the last instruction.
16161  $ac_cs_success || as_fn_exit 1
16162fi
16163if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16164  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16165$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16166fi
16167
16168
16169