Subversion Repositories planix.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
96 7u83 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
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if 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
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32
 
33
 
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_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.
43
if 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 --'
47
elif (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'
50
else
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'
70
fi
71
 
72
# The user is always right.
73
if 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
  }
79
fi
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.)
87
IFS=" ""	$as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
as_myself=
91
case $0 in #((
92
  *[\\/]* ) as_myself=$0 ;;
93
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94
for as_dir in $PATH
95
do
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
100
IFS=$as_save_IFS
101
 
102
     ;;
103
esac
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.
106
if test "x$as_myself" = x; then
107
  as_myself=$0
108
fi
109
if test ! -f "$as_myself"; then
110
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111
  exit 1
112
fi
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.
118
for as_var in BASH_ENV ENV MAIL MAILPATH
119
do eval test x\${$as_var+set} = xset \
120
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121
done
122
PS1='$ '
123
PS2='> '
124
PS4='+ '
125
 
126
# NLS nuisances.
127
LC_ALL=C
128
export LC_ALL
129
LANGUAGE=C
130
export 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.
143
BASH_ENV=/dev/null
144
ENV=/dev/null
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146
case $- in # ((((
147
  *v*x* | *x*v* ) as_opts=-vx ;;
148
  *v* ) as_opts=-v ;;
149
  *x* ) as_opts=-x ;;
150
  * ) as_opts= ;;
151
esac
152
exec $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
156
as_fn_exit 255
157
  fi
158
  # We don't want this to propagate to other subprocesses.
159
          { _as_can_reexec=; unset _as_can_reexec;}
160
if 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
168
else
169
  case \`(set -o) 2>/dev/null\` in #(
170
  *posix*) :
171
    set -o posix ;; #(
172
  *) :
173
     ;;
174
esac
175
fi
176
"
177
  as_required="as_fn_return () { (exit \$1); }
178
as_fn_success () { as_fn_return 0; }
179
as_fn_failure () { as_fn_return 1; }
180
as_fn_ret_success () { return 0; }
181
as_fn_ret_failure () { return 1; }
182
 
183
exitcode=0
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
 
190
else
191
  exitcode=1; echo positional parameters were not saved.
192
fi
193
test x\$exitcode = x0 || exit 1
194
test -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
199
test \$(( 1 + 1 )) = 2 || exit 1"
200
  if (eval "$as_required") 2>/dev/null; then :
201
  as_have_required=yes
202
else
203
  as_have_required=no
204
fi
205
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
 
207
else
208
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209
as_found=false
210
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211
do
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
225
fi
226
fi
227
	   done;;
228
       esac
229
  as_found=false
230
done
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
234
fi; }
235
IFS=$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.
244
BASH_ENV=/dev/null
245
ENV=/dev/null
246
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247
case $- in # ((((
248
  *v*x* | *x*v* ) as_opts=-vx ;;
249
  *v* ) as_opts=-v ;;
250
  *x* ) as_opts=-x ;;
251
  * ) as_opts= ;;
252
esac
253
exec $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
257
exit 255
258
fi
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 bug-autoconf@gnu.org 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
273
fi
274
fi
275
fi
276
SHELL=${CONFIG_SHELL-/bin/sh}
277
export SHELL
278
# Unset more variables known to interfere with behavior of common tools.
279
CLICOLOR_FORCE= GREP_OPTIONS=
280
unset CLICOLOR_FORCE GREP_OPTIONS
281
 
282
## --------------------- ##
283
## M4sh Shell Functions. ##
284
## --------------------- ##
285
# as_fn_unset VAR
286
# ---------------
287
# Portably unset VAR.
288
as_fn_unset ()
289
{
290
  { eval $1=; unset $1;}
291
}
292
as_unset=as_fn_unset
293
 
294
# as_fn_set_status STATUS
295
# -----------------------
296
# Set $? to STATUS, without forking.
297
as_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.
305
as_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.
315
as_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.
363
as_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.
373
if (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
  }'
378
else
379
  as_fn_append ()
380
  {
381
    eval $1=\$$1\$2
382
  }
383
fi # 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.
390
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391
  eval 'as_fn_arith ()
392
  {
393
    as_val=$(( $* ))
394
  }'
395
else
396
  as_fn_arith ()
397
  {
398
    as_val=`expr "$@" || test $? -eq 1`
399
  }
400
fi # 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.
408
as_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
 
419
if expr a : '\(a\)' >/dev/null 2>&1 &&
420
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421
  as_expr=expr
422
else
423
  as_expr=false
424
fi
425
 
426
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427
  as_basename=basename
428
else
429
  as_basename=false
430
fi
431
 
432
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433
  as_dirname=dirname
434
else
435
  as_dirname=false
436
fi
437
 
438
as_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.
458
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461
as_cr_digits='0123456789'
462
as_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
 
500
ECHO_C= ECHO_N= ECHO_T=
501
case `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';;
511
esac
512
 
513
rm -f conf$$ conf$$.exe conf$$.file
514
if test -d conf$$.dir; then
515
  rm -f conf$$.dir/conf$$.file
516
else
517
  rm -f conf$$.dir
518
  mkdir conf$$.dir 2>/dev/null
519
fi
520
if (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
534
else
535
  as_ln_s='cp -pR'
536
fi
537
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538
rmdir conf$$.dir 2>/dev/null
539
 
540
if mkdir -p . 2>/dev/null; then
541
  as_mkdir_p='mkdir -p "$as_dir"'
542
else
543
  test -d ./-p && rmdir ./-p
544
  as_mkdir_p=false
545
fi
546
 
547
as_test_x='test -x'
548
as_executable_p=as_fn_executable_p
549
 
550
# Sed expression to map a string onto a valid CPP name.
551
as_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.
554
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
 
556
 
557
test -n "$DJDIR" || exec 7<&0 </dev/null
558
exec 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.
563
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
 
565
#
566
# Initializations.
567
#
568
ac_default_prefix=/usr/local
569
ac_clean_files=
570
ac_config_libobj_dir=.
571
LIBOBJS=
572
cross_compiling=no
573
subdirs=
574
MFLAGS=
575
MAKEFLAGS=
576
 
577
# Identity of this package.
578
PACKAGE_NAME=
579
PACKAGE_TARNAME=
580
PACKAGE_VERSION=
581
PACKAGE_STRING=
582
PACKAGE_BUGREPORT=
583
PACKAGE_URL=
584
 
585
ac_unique_file="vim.h"
586
# Factoring default headers for most tests.
587
ac_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
 
622
ac_subst_vars='LTLIBOBJS
623
LIBOBJS
624
LINK_AS_NEEDED
625
DEPEND_CFLAGS_FILTER
626
MAKEMO
627
MSGFMT
628
INSTALL_TOOL_LANGS
629
INSTALL_LANGS
630
TAGPRG
631
HANGULIN_OBJ
632
HANGULIN_SRC
633
GUI_X_LIBS
634
GUITYPE
635
GUI_LIB_LOC
636
GUI_INC_LOC
637
NARROW_PROTO
638
MOTIF_LIBNAME
639
GRESOURCE_OBJ
640
GRESOURCE_SRC
641
UPDATE_DESKTOP_DATABASE
642
GTK_UPDATE_ICON_CACHE
643
GLIB_COMPILE_RESOURCES
644
GNOME_INCLUDEDIR
645
GNOME_LIBDIR
646
GNOME_LIBS
647
GTK_LIBNAME
648
GTK_LIBS
649
GTK_CFLAGS
650
PKG_CONFIG
651
X_LIB
652
X_EXTRA_LIBS
653
X_LIBS
654
X_PRE_LIBS
655
X_CFLAGS
656
XMKMF
657
xmkmfpath
658
TERM_OBJ
659
TERM_SRC
660
CHANNEL_OBJ
661
CHANNEL_SRC
662
NETBEANS_OBJ
663
NETBEANS_SRC
664
WORKSHOP_OBJ
665
WORKSHOP_SRC
666
RUBY_LIBS
667
RUBY_CFLAGS
668
RUBY_PRO
669
RUBY_OBJ
670
RUBY_SRC
671
vi_cv_path_ruby
672
TCL_LIBS
673
TCL_CFLAGS
674
TCL_PRO
675
TCL_OBJ
676
TCL_SRC
677
vi_cv_path_tcl
678
PYTHON3_OBJ
679
PYTHON3_SRC
680
PYTHON3_CFLAGS
681
PYTHON3_LIBS
682
vi_cv_path_python3
683
PYTHON_OBJ
684
PYTHON_SRC
685
PYTHON_CFLAGS
686
PYTHON_LIBS
687
vi_cv_path_python
688
PERL_LIBS
689
PERL_CFLAGS
690
PERL_PRO
691
PERL_OBJ
692
PERL_SRC
693
shrpenv
694
vi_cv_perl_xsubpp
695
vi_cv_perllib
696
vi_cv_path_perl
697
MZSCHEME_MZC
698
MZSCHEME_EXTRA
699
MZSCHEME_CFLAGS
700
MZSCHEME_LIBS
701
MZSCHEME_PRO
702
MZSCHEME_OBJ
703
MZSCHEME_SRC
704
vi_cv_path_mzscheme
705
LUA_CFLAGS
706
LUA_LIBS
707
LUA_PRO
708
LUA_OBJ
709
LUA_SRC
710
vi_cv_path_plain_lua
711
vi_cv_path_luajit
712
vi_cv_path_lua
713
compiledby
714
dogvimdiff
715
dovimdiff
716
QUOTESED
717
line_break
718
VIEWNAME
719
EXNAME
720
VIMNAME
721
OS_EXTRA_OBJ
722
OS_EXTRA_SRC
723
XCODE_SELECT
724
CPP_MM
725
CROSS_COMPILING
726
STRIP
727
AWK
728
FGREP
729
EGREP
730
GREP
731
CPP
732
OBJEXT
733
EXEEXT
734
ac_ct_CC
735
CPPFLAGS
736
LDFLAGS
737
CFLAGS
738
CC
739
SET_MAKE
740
target_alias
741
host_alias
742
build_alias
743
LIBS
744
ECHO_T
745
ECHO_N
746
ECHO_C
747
DEFS
748
mandir
749
localedir
750
libdir
751
psdir
752
pdfdir
753
dvidir
754
htmldir
755
infodir
756
docdir
757
oldincludedir
758
includedir
759
runstatedir
760
localstatedir
761
sharedstatedir
762
sysconfdir
763
datadir
764
datarootdir
765
libexecdir
766
sbindir
767
bindir
768
program_transform_name
769
prefix
770
exec_prefix
771
PACKAGE_URL
772
PACKAGE_BUGREPORT
773
PACKAGE_STRING
774
PACKAGE_VERSION
775
PACKAGE_TARNAME
776
PACKAGE_NAME
777
PATH_SEPARATOR
778
SHELL'
779
ac_subst_files=''
780
ac_user_opts='
781
enable_option_checking
782
enable_fail_if_missing
783
enable_darwin
784
with_mac_arch
785
with_developer_dir
786
with_local_dir
787
with_vim_name
788
with_ex_name
789
with_view_name
790
with_global_runtime
791
with_modified_by
792
enable_smack
793
enable_selinux
794
with_features
795
with_compiledby
796
enable_xsmp
797
enable_xsmp_interact
798
enable_luainterp
799
with_lua_prefix
800
with_luajit
801
enable_mzschemeinterp
802
with_plthome
803
enable_perlinterp
804
enable_pythoninterp
805
with_python_command
806
with_python_config_dir
807
enable_python3interp
808
with_python3_command
809
with_python3_config_dir
810
enable_tclinterp
811
with_tclsh
812
enable_rubyinterp
813
with_ruby_command
814
enable_cscope
815
enable_workshop
816
enable_netbeans
817
enable_channel
818
enable_terminal
819
enable_autoservername
820
enable_multibyte
821
enable_hangulinput
822
enable_xim
823
enable_fontset
824
with_x
825
enable_gui
826
enable_gtk2_check
827
enable_gnome_check
828
enable_gtk3_check
829
enable_motif_check
830
enable_athena_check
831
enable_nextaw_check
832
enable_carbon_check
833
enable_gtktest
834
with_gnome_includes
835
with_gnome_libs
836
with_gnome
837
enable_icon_cache_update
838
enable_desktop_database_update
839
with_motif_lib
840
with_tlib
841
enable_largefile
842
enable_acl
843
enable_gpm
844
enable_sysmouse
845
enable_nls
846
'
847
      ac_precious_vars='build_alias
848
host_alias
849
target_alias
850
CC
851
CFLAGS
852
LDFLAGS
853
LIBS
854
CPPFLAGS
855
CPP
856
XMKMF'
857
 
858
 
859
# Initialize some variables set by options.
860
ac_init_help=
861
ac_init_version=false
862
ac_unrecognized_opts=
863
ac_unrecognized_sep=
864
# The variables have the same names as the options, with
865
# dashes changed to underlines.
866
cache_file=/dev/null
867
exec_prefix=NONE
868
no_create=
869
no_recursion=
870
prefix=NONE
871
program_prefix=NONE
872
program_suffix=NONE
873
program_transform_name=s,x,x,
874
silent=
875
site=
876
srcdir=
877
verbose=
878
x_includes=NONE
879
x_libraries=NONE
880
 
881
# Installation directory options.
882
# These are left unexpanded so users can "make install exec_prefix=/foo"
883
# and all the variables that are supposed to be based on exec_prefix
884
# by default will actually change.
885
# Use braces instead of parens because sh, perl, etc. also accept them.
886
# (The list follows the same order as the GNU Coding Standards.)
887
bindir='${exec_prefix}/bin'
888
sbindir='${exec_prefix}/sbin'
889
libexecdir='${exec_prefix}/libexec'
890
datarootdir='${prefix}/share'
891
datadir='${datarootdir}'
892
sysconfdir='${prefix}/etc'
893
sharedstatedir='${prefix}/com'
894
localstatedir='${prefix}/var'
895
runstatedir='${localstatedir}/run'
896
includedir='${prefix}/include'
897
oldincludedir='/usr/include'
898
docdir='${datarootdir}/doc/${PACKAGE}'
899
infodir='${datarootdir}/info'
900
htmldir='${docdir}'
901
dvidir='${docdir}'
902
pdfdir='${docdir}'
903
psdir='${docdir}'
904
libdir='${exec_prefix}/lib'
905
localedir='${datarootdir}/locale'
906
mandir='${datarootdir}/man'
907
 
908
ac_prev=
909
ac_dashdash=
910
for ac_option
911
do
912
  # If the previous option needs an argument, assign it.
913
  if test -n "$ac_prev"; then
914
    eval $ac_prev=\$ac_option
915
    ac_prev=
916
    continue
917
  fi
918
 
919
  case $ac_option in
920
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921
  *=)   ac_optarg= ;;
922
  *)    ac_optarg=yes ;;
923
  esac
924
 
925
  # Accept the important Cygnus configure options, so we can diagnose typos.
926
 
927
  case $ac_dashdash$ac_option in
928
  --)
929
    ac_dashdash=yes ;;
930
 
931
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
932
    ac_prev=bindir ;;
933
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934
    bindir=$ac_optarg ;;
935
 
936
  -build | --build | --buil | --bui | --bu)
937
    ac_prev=build_alias ;;
938
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939
    build_alias=$ac_optarg ;;
940
 
941
  -cache-file | --cache-file | --cache-fil | --cache-fi \
942
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943
    ac_prev=cache_file ;;
944
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946
    cache_file=$ac_optarg ;;
947
 
948
  --config-cache | -C)
949
    cache_file=config.cache ;;
950
 
951
  -datadir | --datadir | --datadi | --datad)
952
    ac_prev=datadir ;;
953
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
954
    datadir=$ac_optarg ;;
955
 
956
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957
  | --dataroo | --dataro | --datar)
958
    ac_prev=datarootdir ;;
959
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961
    datarootdir=$ac_optarg ;;
962
 
963
  -disable-* | --disable-*)
964
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965
    # Reject names that are not valid shell variable names.
966
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967
      as_fn_error $? "invalid feature name: $ac_useropt"
968
    ac_useropt_orig=$ac_useropt
969
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970
    case $ac_user_opts in
971
      *"
972
"enable_$ac_useropt"
973
"*) ;;
974
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975
	 ac_unrecognized_sep=', ';;
976
    esac
977
    eval enable_$ac_useropt=no ;;
978
 
979
  -docdir | --docdir | --docdi | --doc | --do)
980
    ac_prev=docdir ;;
981
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982
    docdir=$ac_optarg ;;
983
 
984
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985
    ac_prev=dvidir ;;
986
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987
    dvidir=$ac_optarg ;;
988
 
989
  -enable-* | --enable-*)
990
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991
    # Reject names that are not valid shell variable names.
992
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993
      as_fn_error $? "invalid feature name: $ac_useropt"
994
    ac_useropt_orig=$ac_useropt
995
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996
    case $ac_user_opts in
997
      *"
998
"enable_$ac_useropt"
999
"*) ;;
1000
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001
	 ac_unrecognized_sep=', ';;
1002
    esac
1003
    eval enable_$ac_useropt=\$ac_optarg ;;
1004
 
1005
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007
  | --exec | --exe | --ex)
1008
    ac_prev=exec_prefix ;;
1009
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011
  | --exec=* | --exe=* | --ex=*)
1012
    exec_prefix=$ac_optarg ;;
1013
 
1014
  -gas | --gas | --ga | --g)
1015
    # Obsolete; use --with-gas.
1016
    with_gas=yes ;;
1017
 
1018
  -help | --help | --hel | --he | -h)
1019
    ac_init_help=long ;;
1020
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021
    ac_init_help=recursive ;;
1022
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023
    ac_init_help=short ;;
1024
 
1025
  -host | --host | --hos | --ho)
1026
    ac_prev=host_alias ;;
1027
  -host=* | --host=* | --hos=* | --ho=*)
1028
    host_alias=$ac_optarg ;;
1029
 
1030
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031
    ac_prev=htmldir ;;
1032
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033
  | --ht=*)
1034
    htmldir=$ac_optarg ;;
1035
 
1036
  -includedir | --includedir | --includedi | --included | --include \
1037
  | --includ | --inclu | --incl | --inc)
1038
    ac_prev=includedir ;;
1039
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1041
    includedir=$ac_optarg ;;
1042
 
1043
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1044
    ac_prev=infodir ;;
1045
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046
    infodir=$ac_optarg ;;
1047
 
1048
  -libdir | --libdir | --libdi | --libd)
1049
    ac_prev=libdir ;;
1050
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051
    libdir=$ac_optarg ;;
1052
 
1053
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054
  | --libexe | --libex | --libe)
1055
    ac_prev=libexecdir ;;
1056
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057
  | --libexe=* | --libex=* | --libe=*)
1058
    libexecdir=$ac_optarg ;;
1059
 
1060
  -localedir | --localedir | --localedi | --localed | --locale)
1061
    ac_prev=localedir ;;
1062
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063
    localedir=$ac_optarg ;;
1064
 
1065
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1066
  | --localstate | --localstat | --localsta | --localst | --locals)
1067
    ac_prev=localstatedir ;;
1068
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070
    localstatedir=$ac_optarg ;;
1071
 
1072
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073
    ac_prev=mandir ;;
1074
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075
    mandir=$ac_optarg ;;
1076
 
1077
  -nfp | --nfp | --nf)
1078
    # Obsolete; use --without-fp.
1079
    with_fp=no ;;
1080
 
1081
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082
  | --no-cr | --no-c | -n)
1083
    no_create=yes ;;
1084
 
1085
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087
    no_recursion=yes ;;
1088
 
1089
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091
  | --oldin | --oldi | --old | --ol | --o)
1092
    ac_prev=oldincludedir ;;
1093
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096
    oldincludedir=$ac_optarg ;;
1097
 
1098
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099
    ac_prev=prefix ;;
1100
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101
    prefix=$ac_optarg ;;
1102
 
1103
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104
  | --program-pre | --program-pr | --program-p)
1105
    ac_prev=program_prefix ;;
1106
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108
    program_prefix=$ac_optarg ;;
1109
 
1110
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111
  | --program-suf | --program-su | --program-s)
1112
    ac_prev=program_suffix ;;
1113
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115
    program_suffix=$ac_optarg ;;
1116
 
1117
  -program-transform-name | --program-transform-name \
1118
  | --program-transform-nam | --program-transform-na \
1119
  | --program-transform-n | --program-transform- \
1120
  | --program-transform | --program-transfor \
1121
  | --program-transfo | --program-transf \
1122
  | --program-trans | --program-tran \
1123
  | --progr-tra | --program-tr | --program-t)
1124
    ac_prev=program_transform_name ;;
1125
  -program-transform-name=* | --program-transform-name=* \
1126
  | --program-transform-nam=* | --program-transform-na=* \
1127
  | --program-transform-n=* | --program-transform-=* \
1128
  | --program-transform=* | --program-transfor=* \
1129
  | --program-transfo=* | --program-transf=* \
1130
  | --program-trans=* | --program-tran=* \
1131
  | --progr-tra=* | --program-tr=* | --program-t=*)
1132
    program_transform_name=$ac_optarg ;;
1133
 
1134
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135
    ac_prev=pdfdir ;;
1136
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137
    pdfdir=$ac_optarg ;;
1138
 
1139
  -psdir | --psdir | --psdi | --psd | --ps)
1140
    ac_prev=psdir ;;
1141
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142
    psdir=$ac_optarg ;;
1143
 
1144
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145
  | -silent | --silent | --silen | --sile | --sil)
1146
    silent=yes ;;
1147
 
1148
  -runstatedir | --runstatedir | --runstatedi | --runstated \
1149
  | --runstate | --runstat | --runsta | --runst | --runs \
1150
  | --run | --ru | --r)
1151
    ac_prev=runstatedir ;;
1152
  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1153
  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1154
  | --run=* | --ru=* | --r=*)
1155
    runstatedir=$ac_optarg ;;
1156
 
1157
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158
    ac_prev=sbindir ;;
1159
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160
  | --sbi=* | --sb=*)
1161
    sbindir=$ac_optarg ;;
1162
 
1163
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165
  | --sharedst | --shareds | --shared | --share | --shar \
1166
  | --sha | --sh)
1167
    ac_prev=sharedstatedir ;;
1168
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171
  | --sha=* | --sh=*)
1172
    sharedstatedir=$ac_optarg ;;
1173
 
1174
  -site | --site | --sit)
1175
    ac_prev=site ;;
1176
  -site=* | --site=* | --sit=*)
1177
    site=$ac_optarg ;;
1178
 
1179
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180
    ac_prev=srcdir ;;
1181
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182
    srcdir=$ac_optarg ;;
1183
 
1184
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185
  | --syscon | --sysco | --sysc | --sys | --sy)
1186
    ac_prev=sysconfdir ;;
1187
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189
    sysconfdir=$ac_optarg ;;
1190
 
1191
  -target | --target | --targe | --targ | --tar | --ta | --t)
1192
    ac_prev=target_alias ;;
1193
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194
    target_alias=$ac_optarg ;;
1195
 
1196
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197
    verbose=yes ;;
1198
 
1199
  -version | --version | --versio | --versi | --vers | -V)
1200
    ac_init_version=: ;;
1201
 
1202
  -with-* | --with-*)
1203
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204
    # Reject names that are not valid shell variable names.
1205
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206
      as_fn_error $? "invalid package name: $ac_useropt"
1207
    ac_useropt_orig=$ac_useropt
1208
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209
    case $ac_user_opts in
1210
      *"
1211
"with_$ac_useropt"
1212
"*) ;;
1213
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214
	 ac_unrecognized_sep=', ';;
1215
    esac
1216
    eval with_$ac_useropt=\$ac_optarg ;;
1217
 
1218
  -without-* | --without-*)
1219
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220
    # Reject names that are not valid shell variable names.
1221
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222
      as_fn_error $? "invalid package name: $ac_useropt"
1223
    ac_useropt_orig=$ac_useropt
1224
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225
    case $ac_user_opts in
1226
      *"
1227
"with_$ac_useropt"
1228
"*) ;;
1229
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230
	 ac_unrecognized_sep=', ';;
1231
    esac
1232
    eval with_$ac_useropt=no ;;
1233
 
1234
  --x)
1235
    # Obsolete; use --with-x.
1236
    with_x=yes ;;
1237
 
1238
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239
  | --x-incl | --x-inc | --x-in | --x-i)
1240
    ac_prev=x_includes ;;
1241
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243
    x_includes=$ac_optarg ;;
1244
 
1245
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247
    ac_prev=x_libraries ;;
1248
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250
    x_libraries=$ac_optarg ;;
1251
 
1252
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1253
Try \`$0 --help' for more information"
1254
    ;;
1255
 
1256
  *=*)
1257
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258
    # Reject names that are not valid shell variable names.
1259
    case $ac_envvar in #(
1260
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1261
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1262
    esac
1263
    eval $ac_envvar=\$ac_optarg
1264
    export $ac_envvar ;;
1265
 
1266
  *)
1267
    # FIXME: should be removed in autoconf 3.0.
1268
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272
    ;;
1273
 
1274
  esac
1275
done
1276
 
1277
if test -n "$ac_prev"; then
1278
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279
  as_fn_error $? "missing argument to $ac_option"
1280
fi
1281
 
1282
if test -n "$ac_unrecognized_opts"; then
1283
  case $enable_option_checking in
1284
    no) ;;
1285
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1286
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287
  esac
1288
fi
1289
 
1290
# Check all directory arguments for consistency.
1291
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292
		datadir sysconfdir sharedstatedir localstatedir includedir \
1293
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294
		libdir localedir mandir runstatedir
1295
do
1296
  eval ac_val=\$$ac_var
1297
  # Remove trailing slashes.
1298
  case $ac_val in
1299
    */ )
1300
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301
      eval $ac_var=\$ac_val;;
1302
  esac
1303
  # Be sure to have absolute directory names.
1304
  case $ac_val in
1305
    [\\/$]* | ?:[\\/]* )  continue;;
1306
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307
  esac
1308
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1309
done
1310
 
1311
# There might be people who depend on the old broken behavior: `$host'
1312
# used to hold the argument of --host etc.
1313
# FIXME: To remove some day.
1314
build=$build_alias
1315
host=$host_alias
1316
target=$target_alias
1317
 
1318
# FIXME: To remove some day.
1319
if test "x$host_alias" != x; then
1320
  if test "x$build_alias" = x; then
1321
    cross_compiling=maybe
1322
  elif test "x$build_alias" != "x$host_alias"; then
1323
    cross_compiling=yes
1324
  fi
1325
fi
1326
 
1327
ac_tool_prefix=
1328
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
 
1330
test "$silent" = yes && exec 6>/dev/null
1331
 
1332
 
1333
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334
ac_ls_di=`ls -di .` &&
1335
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336
  as_fn_error $? "working directory cannot be determined"
1337
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338
  as_fn_error $? "pwd does not report name of working directory"
1339
 
1340
 
1341
# Find the source files, if location was not specified.
1342
if test -z "$srcdir"; then
1343
  ac_srcdir_defaulted=yes
1344
  # Try the directory containing this script, then the parent directory.
1345
  ac_confdir=`$as_dirname -- "$as_myself" ||
1346
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1348
	 X"$as_myself" : 'X\(//\)$' \| \
1349
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350
$as_echo X"$as_myself" |
1351
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352
	    s//\1/
1353
	    q
1354
	  }
1355
	  /^X\(\/\/\)[^/].*/{
1356
	    s//\1/
1357
	    q
1358
	  }
1359
	  /^X\(\/\/\)$/{
1360
	    s//\1/
1361
	    q
1362
	  }
1363
	  /^X\(\/\).*/{
1364
	    s//\1/
1365
	    q
1366
	  }
1367
	  s/.*/./; q'`
1368
  srcdir=$ac_confdir
1369
  if test ! -r "$srcdir/$ac_unique_file"; then
1370
    srcdir=..
1371
  fi
1372
else
1373
  ac_srcdir_defaulted=no
1374
fi
1375
if test ! -r "$srcdir/$ac_unique_file"; then
1376
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1378
fi
1379
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380
ac_abs_confdir=`(
1381
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382
	pwd)`
1383
# When building in place, set srcdir=.
1384
if test "$ac_abs_confdir" = "$ac_pwd"; then
1385
  srcdir=.
1386
fi
1387
# Remove unnecessary trailing slashes from srcdir.
1388
# Double slashes in file names in object file debugging info
1389
# mess up M-x gdb in Emacs.
1390
case $srcdir in
1391
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392
esac
1393
for ac_var in $ac_precious_vars; do
1394
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395
  eval ac_env_${ac_var}_value=\$${ac_var}
1396
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398
done
1399
 
1400
#
1401
# Report the --help message.
1402
#
1403
if test "$ac_init_help" = "long"; then
1404
  # Omit some internal or obsolete options to make the list less imposing.
1405
  # This message is too long to be a string in the A/UX 3.1 sh.
1406
  cat <<_ACEOF
1407
\`configure' configures this package to adapt to many kinds of systems.
1408
 
1409
Usage: $0 [OPTION]... [VAR=VALUE]...
1410
 
1411
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412
VAR=VALUE.  See below for descriptions of some of the useful variables.
1413
 
1414
Defaults for the options are specified in brackets.
1415
 
1416
Configuration:
1417
  -h, --help              display this help and exit
1418
      --help=short        display options specific to this package
1419
      --help=recursive    display the short help of all the included packages
1420
  -V, --version           display version information and exit
1421
  -q, --quiet, --silent   do not print \`checking ...' messages
1422
      --cache-file=FILE   cache test results in FILE [disabled]
1423
  -C, --config-cache      alias for \`--cache-file=config.cache'
1424
  -n, --no-create         do not create output files
1425
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1426
 
1427
Installation directories:
1428
  --prefix=PREFIX         install architecture-independent files in PREFIX
1429
                          [$ac_default_prefix]
1430
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1431
                          [PREFIX]
1432
 
1433
By default, \`make install' will install all the files in
1434
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1435
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436
for instance \`--prefix=\$HOME'.
1437
 
1438
For better control, use the options below.
1439
 
1440
Fine tuning of the installation directories:
1441
  --bindir=DIR            user executables [EPREFIX/bin]
1442
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1443
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1444
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1445
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1446
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1447
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1448
  --libdir=DIR            object code libraries [EPREFIX/lib]
1449
  --includedir=DIR        C header files [PREFIX/include]
1450
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1451
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1452
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1453
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1454
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1455
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1456
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1457
  --htmldir=DIR           html documentation [DOCDIR]
1458
  --dvidir=DIR            dvi documentation [DOCDIR]
1459
  --pdfdir=DIR            pdf documentation [DOCDIR]
1460
  --psdir=DIR             ps documentation [DOCDIR]
1461
_ACEOF
1462
 
1463
  cat <<\_ACEOF
1464
 
1465
X features:
1466
  --x-includes=DIR    X include files are in DIR
1467
  --x-libraries=DIR   X library files are in DIR
1468
_ACEOF
1469
fi
1470
 
1471
if test -n "$ac_init_help"; then
1472
 
1473
  cat <<\_ACEOF
1474
 
1475
Optional Features:
1476
  --disable-option-checking  ignore unrecognized --enable/--with options
1477
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1478
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1479
  --enable-fail-if-missing    Fail if dependencies on additional features
1480
     specified on the command line are missing.
1481
  --disable-darwin        Disable Darwin (Mac OS X) support.
1482
  --disable-smack	  Do not check for Smack support.
1483
  --disable-selinux	  Do not check for SELinux support.
1484
  --disable-xsmp          Disable XSMP session management
1485
  --disable-xsmp-interact Disable XSMP interaction
1486
  --enable-luainterp=OPTS      Include Lua interpreter.  default=no OPTS=no/yes/dynamic
1487
  --enable-mzschemeinterp      Include MzScheme interpreter.
1488
  --enable-perlinterp=OPTS     Include Perl interpreter.  default=no OPTS=no/yes/dynamic
1489
  --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
1490
  --enable-python3interp=OPTS  Include Python3 interpreter. default=no OPTS=no/yes/dynamic
1491
  --enable-tclinterp=OPTS      Include Tcl interpreter. default=no OPTS=no/yes/dynamic
1492
  --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
1493
  --enable-cscope         Include cscope interface.
1494
  --enable-workshop       Include Sun Visual Workshop support.
1495
  --disable-netbeans      Disable NetBeans integration support.
1496
  --disable-channel       Disable process communication support.
1497
  --enable-terminal       Enable terminal emulation support.
1498
  --enable-autoservername Automatically define servername at vim startup.
1499
  --enable-multibyte      Include multibyte editing support.
1500
  --enable-hangulinput    Include Hangul input support.
1501
  --enable-xim            Include XIM input support.
1502
  --enable-fontset        Include X fontset output support.
1503
  --enable-gui=OPTS       X11 GUI. default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon
1504
  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1505
  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1506
  --enable-gtk3-check     If auto-select GUI, check for GTK+ 3 default=yes
1507
  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1508
  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1509
  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1510
  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1511
  --disable-gtktest       Do not try to compile and run a test GTK program
1512
  --disable-icon-cache-update        update disabled
1513
  --disable-desktop-database-update  update disabled
1514
  --disable-largefile     omit support for large files
1515
  --disable-acl           No check for ACL support.
1516
  --disable-gpm           Don't use gpm (Linux mouse daemon).
1517
  --disable-sysmouse      Don't use sysmouse (mouse in *BSD console).
1518
  --disable-nls           Don't support NLS (gettext()).
1519
 
1520
Optional Packages:
1521
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1522
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1523
  --with-mac-arch=ARCH    current, intel, ppc or both
1524
  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1525
  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1526
  --without-local-dir     do not search /usr/local for local libraries.
1527
  --with-vim-name=NAME    what to call the Vim executable
1528
  --with-ex-name=NAME     what to call the Ex executable
1529
  --with-view-name=NAME   what to call the View executable
1530
  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1531
  --with-modified-by=NAME       name of who modified a release version
1532
  --with-features=TYPE    tiny, small, normal, big or huge (default: huge)
1533
  --with-compiledby=NAME  name to show in :version message
1534
  --with-lua-prefix=PFX   Prefix where Lua is installed.
1535
  --with-luajit           Link with LuaJIT instead of Lua.
1536
  --with-plthome=PLTHOME   Use PLTHOME.
1537
  --with-python-command=NAME  name of the Python 2 command (default: python2 or python)
1538
  --with-python-config-dir=PATH  Python's config directory (deprecated)
1539
  --with-python3-command=NAME  name of the Python 3 command (default: python3 or python)
1540
  --with-python3-config-dir=PATH  Python's config directory (deprecated)
1541
  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1542
  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1543
  --with-x                use the X Window System
1544
  --with-gnome-includes=DIR Specify location of GNOME headers
1545
  --with-gnome-libs=DIR   Specify location of GNOME libs
1546
  --with-gnome            Specify prefix for GNOME files
1547
  --with-motif-lib=STRING Library for Motif
1548
  --with-tlib=library     terminal library to be used
1549
 
1550
Some influential environment variables:
1551
  CC          C compiler command
1552
  CFLAGS      C compiler flags
1553
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1554
              nonstandard directory <lib dir>
1555
  LIBS        libraries to pass to the linker, e.g. -l<library>
1556
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557
              you have headers in a nonstandard directory <include dir>
1558
  CPP         C preprocessor
1559
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1560
 
1561
Use these variables to override the choices made by `configure' or to help
1562
it to find libraries and programs with nonstandard names/locations.
1563
 
1564
Report bugs to the package provider.
1565
_ACEOF
1566
ac_status=$?
1567
fi
1568
 
1569
if test "$ac_init_help" = "recursive"; then
1570
  # If there are subdirs, report their specific --help.
1571
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572
    test -d "$ac_dir" ||
1573
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574
      continue
1575
    ac_builddir=.
1576
 
1577
case "$ac_dir" in
1578
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579
*)
1580
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581
  # A ".." for each directory in $ac_dir_suffix.
1582
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583
  case $ac_top_builddir_sub in
1584
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586
  esac ;;
1587
esac
1588
ac_abs_top_builddir=$ac_pwd
1589
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590
# for backward compatibility:
1591
ac_top_builddir=$ac_top_build_prefix
1592
 
1593
case $srcdir in
1594
  .)  # We are building in place.
1595
    ac_srcdir=.
1596
    ac_top_srcdir=$ac_top_builddir_sub
1597
    ac_abs_top_srcdir=$ac_pwd ;;
1598
  [\\/]* | ?:[\\/]* )  # Absolute name.
1599
    ac_srcdir=$srcdir$ac_dir_suffix;
1600
    ac_top_srcdir=$srcdir
1601
    ac_abs_top_srcdir=$srcdir ;;
1602
  *) # Relative name.
1603
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1605
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606
esac
1607
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
 
1609
    cd "$ac_dir" || { ac_status=$?; continue; }
1610
    # Check for guested configure.
1611
    if test -f "$ac_srcdir/configure.gnu"; then
1612
      echo &&
1613
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614
    elif test -f "$ac_srcdir/configure"; then
1615
      echo &&
1616
      $SHELL "$ac_srcdir/configure" --help=recursive
1617
    else
1618
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619
    fi || ac_status=$?
1620
    cd "$ac_pwd" || { ac_status=$?; break; }
1621
  done
1622
fi
1623
 
1624
test -n "$ac_init_help" && exit $ac_status
1625
if $ac_init_version; then
1626
  cat <<\_ACEOF
1627
configure
1628
generated by GNU Autoconf 2.69
1629
 
1630
Copyright (C) 2012 Free Software Foundation, Inc.
1631
This configure script is free software; the Free Software Foundation
1632
gives unlimited permission to copy, distribute and modify it.
1633
_ACEOF
1634
  exit
1635
fi
1636
 
1637
## ------------------------ ##
1638
## Autoconf initialization. ##
1639
## ------------------------ ##
1640
 
1641
# ac_fn_c_try_compile LINENO
1642
# --------------------------
1643
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1644
ac_fn_c_try_compile ()
1645
{
1646
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647
  rm -f conftest.$ac_objext
1648
  if { { ac_try="$ac_compile"
1649
case "(($ac_try" in
1650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651
  *) ac_try_echo=$ac_try;;
1652
esac
1653
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654
$as_echo "$ac_try_echo"; } >&5
1655
  (eval "$ac_compile") 2>conftest.err
1656
  ac_status=$?
1657
  if test -s conftest.err; then
1658
    grep -v '^ *+' conftest.err >conftest.er1
1659
    cat conftest.er1 >&5
1660
    mv conftest.er1 conftest.err
1661
  fi
1662
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663
  test $ac_status = 0; } && {
1664
	 test -z "$ac_c_werror_flag" ||
1665
	 test ! -s conftest.err
1666
       } && test -s conftest.$ac_objext; then :
1667
  ac_retval=0
1668
else
1669
  $as_echo "$as_me: failed program was:" >&5
1670
sed 's/^/| /' conftest.$ac_ext >&5
1671
 
1672
	ac_retval=1
1673
fi
1674
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
  as_fn_set_status $ac_retval
1676
 
1677
} # ac_fn_c_try_compile
1678
 
1679
# ac_fn_c_try_cpp LINENO
1680
# ----------------------
1681
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682
ac_fn_c_try_cpp ()
1683
{
1684
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1686
case "(($ac_try" in
1687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688
  *) ac_try_echo=$ac_try;;
1689
esac
1690
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691
$as_echo "$ac_try_echo"; } >&5
1692
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693
  ac_status=$?
1694
  if test -s conftest.err; then
1695
    grep -v '^ *+' conftest.err >conftest.er1
1696
    cat conftest.er1 >&5
1697
    mv conftest.er1 conftest.err
1698
  fi
1699
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700
  test $ac_status = 0; } > conftest.i && {
1701
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702
	 test ! -s conftest.err
1703
       }; then :
1704
  ac_retval=0
1705
else
1706
  $as_echo "$as_me: failed program was:" >&5
1707
sed 's/^/| /' conftest.$ac_ext >&5
1708
 
1709
    ac_retval=1
1710
fi
1711
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
  as_fn_set_status $ac_retval
1713
 
1714
} # ac_fn_c_try_cpp
1715
 
1716
# ac_fn_c_try_link LINENO
1717
# -----------------------
1718
# Try to link conftest.$ac_ext, and return whether this succeeded.
1719
ac_fn_c_try_link ()
1720
{
1721
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722
  rm -f conftest.$ac_objext conftest$ac_exeext
1723
  if { { ac_try="$ac_link"
1724
case "(($ac_try" in
1725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726
  *) ac_try_echo=$ac_try;;
1727
esac
1728
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729
$as_echo "$ac_try_echo"; } >&5
1730
  (eval "$ac_link") 2>conftest.err
1731
  ac_status=$?
1732
  if test -s conftest.err; then
1733
    grep -v '^ *+' conftest.err >conftest.er1
1734
    cat conftest.er1 >&5
1735
    mv conftest.er1 conftest.err
1736
  fi
1737
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738
  test $ac_status = 0; } && {
1739
	 test -z "$ac_c_werror_flag" ||
1740
	 test ! -s conftest.err
1741
       } && test -s conftest$ac_exeext && {
1742
	 test "$cross_compiling" = yes ||
1743
	 test -x conftest$ac_exeext
1744
       }; then :
1745
  ac_retval=0
1746
else
1747
  $as_echo "$as_me: failed program was:" >&5
1748
sed 's/^/| /' conftest.$ac_ext >&5
1749
 
1750
	ac_retval=1
1751
fi
1752
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754
  # interfere with the next link command; also delete a directory that is
1755
  # left behind by Apple's compiler.  We do this before executing the actions.
1756
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758
  as_fn_set_status $ac_retval
1759
 
1760
} # ac_fn_c_try_link
1761
 
1762
# ac_fn_c_try_run LINENO
1763
# ----------------------
1764
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765
# that executables *can* be run.
1766
ac_fn_c_try_run ()
1767
{
1768
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769
  if { { ac_try="$ac_link"
1770
case "(($ac_try" in
1771
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772
  *) ac_try_echo=$ac_try;;
1773
esac
1774
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775
$as_echo "$ac_try_echo"; } >&5
1776
  (eval "$ac_link") 2>&5
1777
  ac_status=$?
1778
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780
  { { case "(($ac_try" in
1781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782
  *) ac_try_echo=$ac_try;;
1783
esac
1784
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785
$as_echo "$ac_try_echo"; } >&5
1786
  (eval "$ac_try") 2>&5
1787
  ac_status=$?
1788
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789
  test $ac_status = 0; }; }; then :
1790
  ac_retval=0
1791
else
1792
  $as_echo "$as_me: program exited with status $ac_status" >&5
1793
       $as_echo "$as_me: failed program was:" >&5
1794
sed 's/^/| /' conftest.$ac_ext >&5
1795
 
1796
       ac_retval=$ac_status
1797
fi
1798
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
  as_fn_set_status $ac_retval
1801
 
1802
} # ac_fn_c_try_run
1803
 
1804
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805
# -------------------------------------------------------
1806
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807
# the include files in INCLUDES and setting the cache variable VAR
1808
# accordingly.
1809
ac_fn_c_check_header_mongrel ()
1810
{
1811
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812
  if eval \${$3+:} false; then :
1813
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814
$as_echo_n "checking for $2... " >&6; }
1815
if eval \${$3+:} false; then :
1816
  $as_echo_n "(cached) " >&6
1817
fi
1818
eval ac_res=\$$3
1819
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820
$as_echo "$ac_res" >&6; }
1821
else
1822
  # Is the header compilable?
1823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824
$as_echo_n "checking $2 usability... " >&6; }
1825
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826
/* end confdefs.h.  */
1827
$4
1828
#include <$2>
1829
_ACEOF
1830
if ac_fn_c_try_compile "$LINENO"; then :
1831
  ac_header_compiler=yes
1832
else
1833
  ac_header_compiler=no
1834
fi
1835
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837
$as_echo "$ac_header_compiler" >&6; }
1838
 
1839
# Is the header present?
1840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841
$as_echo_n "checking $2 presence... " >&6; }
1842
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843
/* end confdefs.h.  */
1844
#include <$2>
1845
_ACEOF
1846
if ac_fn_c_try_cpp "$LINENO"; then :
1847
  ac_header_preproc=yes
1848
else
1849
  ac_header_preproc=no
1850
fi
1851
rm -f conftest.err conftest.i conftest.$ac_ext
1852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853
$as_echo "$ac_header_preproc" >&6; }
1854
 
1855
# So?  What about this header?
1856
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1857
  yes:no: )
1858
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862
    ;;
1863
  no:yes:* )
1864
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1867
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1868
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1871
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1872
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874
    ;;
1875
esac
1876
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877
$as_echo_n "checking for $2... " >&6; }
1878
if eval \${$3+:} false; then :
1879
  $as_echo_n "(cached) " >&6
1880
else
1881
  eval "$3=\$ac_header_compiler"
1882
fi
1883
eval ac_res=\$$3
1884
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885
$as_echo "$ac_res" >&6; }
1886
fi
1887
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
 
1889
} # ac_fn_c_check_header_mongrel
1890
 
1891
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892
# -------------------------------------------------------
1893
# Tests whether HEADER exists and can be compiled using the include files in
1894
# INCLUDES, setting the cache variable VAR accordingly.
1895
ac_fn_c_check_header_compile ()
1896
{
1897
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899
$as_echo_n "checking for $2... " >&6; }
1900
if eval \${$3+:} false; then :
1901
  $as_echo_n "(cached) " >&6
1902
else
1903
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904
/* end confdefs.h.  */
1905
$4
1906
#include <$2>
1907
_ACEOF
1908
if ac_fn_c_try_compile "$LINENO"; then :
1909
  eval "$3=yes"
1910
else
1911
  eval "$3=no"
1912
fi
1913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914
fi
1915
eval ac_res=\$$3
1916
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917
$as_echo "$ac_res" >&6; }
1918
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
 
1920
} # ac_fn_c_check_header_compile
1921
 
1922
# ac_fn_c_check_func LINENO FUNC VAR
1923
# ----------------------------------
1924
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1925
ac_fn_c_check_func ()
1926
{
1927
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929
$as_echo_n "checking for $2... " >&6; }
1930
if eval \${$3+:} false; then :
1931
  $as_echo_n "(cached) " >&6
1932
else
1933
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934
/* end confdefs.h.  */
1935
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1936
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1937
#define $2 innocuous_$2
1938
 
1939
/* System header to define __stub macros and hopefully few prototypes,
1940
    which can conflict with char $2 (); below.
1941
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1942
    <limits.h> exists even on freestanding compilers.  */
1943
 
1944
#ifdef __STDC__
1945
# include <limits.h>
1946
#else
1947
# include <assert.h>
1948
#endif
1949
 
1950
#undef $2
1951
 
1952
/* Override any GCC internal prototype to avoid an error.
1953
   Use char because int might match the return type of a GCC
1954
   builtin and then its argument prototype would still apply.  */
1955
#ifdef __cplusplus
1956
extern "C"
1957
#endif
1958
char $2 ();
1959
/* The GNU C library defines this for functions which it implements
1960
    to always fail with ENOSYS.  Some functions are actually named
1961
    something starting with __ and the normal name is an alias.  */
1962
#if defined __stub_$2 || defined __stub___$2
1963
choke me
1964
#endif
1965
 
1966
int
1967
main ()
1968
{
1969
return $2 ();
1970
  ;
1971
  return 0;
1972
}
1973
_ACEOF
1974
if ac_fn_c_try_link "$LINENO"; then :
1975
  eval "$3=yes"
1976
else
1977
  eval "$3=no"
1978
fi
1979
rm -f core conftest.err conftest.$ac_objext \
1980
    conftest$ac_exeext conftest.$ac_ext
1981
fi
1982
eval ac_res=\$$3
1983
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984
$as_echo "$ac_res" >&6; }
1985
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
 
1987
} # ac_fn_c_check_func
1988
 
1989
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1990
# -------------------------------------------
1991
# Tests whether TYPE exists after having included INCLUDES, setting cache
1992
# variable VAR accordingly.
1993
ac_fn_c_check_type ()
1994
{
1995
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997
$as_echo_n "checking for $2... " >&6; }
1998
if eval \${$3+:} false; then :
1999
  $as_echo_n "(cached) " >&6
2000
else
2001
  eval "$3=no"
2002
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003
/* end confdefs.h.  */
2004
$4
2005
int
2006
main ()
2007
{
2008
if (sizeof ($2))
2009
	 return 0;
2010
  ;
2011
  return 0;
2012
}
2013
_ACEOF
2014
if ac_fn_c_try_compile "$LINENO"; then :
2015
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016
/* end confdefs.h.  */
2017
$4
2018
int
2019
main ()
2020
{
2021
if (sizeof (($2)))
2022
	    return 0;
2023
  ;
2024
  return 0;
2025
}
2026
_ACEOF
2027
if ac_fn_c_try_compile "$LINENO"; then :
2028
 
2029
else
2030
  eval "$3=yes"
2031
fi
2032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033
fi
2034
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035
fi
2036
eval ac_res=\$$3
2037
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038
$as_echo "$ac_res" >&6; }
2039
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040
 
2041
} # ac_fn_c_check_type
2042
 
2043
# ac_fn_c_find_uintX_t LINENO BITS VAR
2044
# ------------------------------------
2045
# Finds an unsigned integer type with width BITS, setting cache variable VAR
2046
# accordingly.
2047
ac_fn_c_find_uintX_t ()
2048
{
2049
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2051
$as_echo_n "checking for uint$2_t... " >&6; }
2052
if eval \${$3+:} false; then :
2053
  $as_echo_n "(cached) " >&6
2054
else
2055
  eval "$3=no"
2056
     # Order is important - never check a type that is potentially smaller
2057
     # than half of the expected target width.
2058
     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2059
	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2060
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061
/* end confdefs.h.  */
2062
$ac_includes_default
2063
int
2064
main ()
2065
{
2066
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2067
test_array [0] = 0;
2068
return test_array [0];
2069
 
2070
  ;
2071
  return 0;
2072
}
2073
_ACEOF
2074
if ac_fn_c_try_compile "$LINENO"; then :
2075
  case $ac_type in #(
2076
  uint$2_t) :
2077
    eval "$3=yes" ;; #(
2078
  *) :
2079
    eval "$3=\$ac_type" ;;
2080
esac
2081
fi
2082
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083
       if eval test \"x\$"$3"\" = x"no"; then :
2084
 
2085
else
2086
  break
2087
fi
2088
     done
2089
fi
2090
eval ac_res=\$$3
2091
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092
$as_echo "$ac_res" >&6; }
2093
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094
 
2095
} # ac_fn_c_find_uintX_t
2096
 
2097
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098
# --------------------------------------------
2099
# Tries to find the compile-time value of EXPR in a program that includes
2100
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2101
# computed
2102
ac_fn_c_compute_int ()
2103
{
2104
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105
  if test "$cross_compiling" = yes; then
2106
    # Depending upon the size, compute the lo and hi bounds.
2107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108
/* end confdefs.h.  */
2109
$4
2110
int
2111
main ()
2112
{
2113
static int test_array [1 - 2 * !(($2) >= 0)];
2114
test_array [0] = 0;
2115
return test_array [0];
2116
 
2117
  ;
2118
  return 0;
2119
}
2120
_ACEOF
2121
if ac_fn_c_try_compile "$LINENO"; then :
2122
  ac_lo=0 ac_mid=0
2123
  while :; do
2124
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125
/* end confdefs.h.  */
2126
$4
2127
int
2128
main ()
2129
{
2130
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2131
test_array [0] = 0;
2132
return test_array [0];
2133
 
2134
  ;
2135
  return 0;
2136
}
2137
_ACEOF
2138
if ac_fn_c_try_compile "$LINENO"; then :
2139
  ac_hi=$ac_mid; break
2140
else
2141
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2142
			if test $ac_lo -le $ac_mid; then
2143
			  ac_lo= ac_hi=
2144
			  break
2145
			fi
2146
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2147
fi
2148
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149
  done
2150
else
2151
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152
/* end confdefs.h.  */
2153
$4
2154
int
2155
main ()
2156
{
2157
static int test_array [1 - 2 * !(($2) < 0)];
2158
test_array [0] = 0;
2159
return test_array [0];
2160
 
2161
  ;
2162
  return 0;
2163
}
2164
_ACEOF
2165
if ac_fn_c_try_compile "$LINENO"; then :
2166
  ac_hi=-1 ac_mid=-1
2167
  while :; do
2168
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169
/* end confdefs.h.  */
2170
$4
2171
int
2172
main ()
2173
{
2174
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2175
test_array [0] = 0;
2176
return test_array [0];
2177
 
2178
  ;
2179
  return 0;
2180
}
2181
_ACEOF
2182
if ac_fn_c_try_compile "$LINENO"; then :
2183
  ac_lo=$ac_mid; break
2184
else
2185
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2186
			if test $ac_mid -le $ac_hi; then
2187
			  ac_lo= ac_hi=
2188
			  break
2189
			fi
2190
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2191
fi
2192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193
  done
2194
else
2195
  ac_lo= ac_hi=
2196
fi
2197
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198
fi
2199
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200
# Binary search between lo and hi bounds.
2201
while test "x$ac_lo" != "x$ac_hi"; do
2202
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2203
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204
/* end confdefs.h.  */
2205
$4
2206
int
2207
main ()
2208
{
2209
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210
test_array [0] = 0;
2211
return test_array [0];
2212
 
2213
  ;
2214
  return 0;
2215
}
2216
_ACEOF
2217
if ac_fn_c_try_compile "$LINENO"; then :
2218
  ac_hi=$ac_mid
2219
else
2220
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2221
fi
2222
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223
done
2224
case $ac_lo in #((
2225
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2226
'') ac_retval=1 ;;
2227
esac
2228
  else
2229
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230
/* end confdefs.h.  */
2231
$4
2232
static long int longval () { return $2; }
2233
static unsigned long int ulongval () { return $2; }
2234
#include <stdio.h>
2235
#include <stdlib.h>
2236
int
2237
main ()
2238
{
2239
 
2240
  FILE *f = fopen ("conftest.val", "w");
2241
  if (! f)
2242
    return 1;
2243
  if (($2) < 0)
2244
    {
2245
      long int i = longval ();
2246
      if (i != ($2))
2247
	return 1;
2248
      fprintf (f, "%ld", i);
2249
    }
2250
  else
2251
    {
2252
      unsigned long int i = ulongval ();
2253
      if (i != ($2))
2254
	return 1;
2255
      fprintf (f, "%lu", i);
2256
    }
2257
  /* Do not output a trailing newline, as this causes \r\n confusion
2258
     on some platforms.  */
2259
  return ferror (f) || fclose (f) != 0;
2260
 
2261
  ;
2262
  return 0;
2263
}
2264
_ACEOF
2265
if ac_fn_c_try_run "$LINENO"; then :
2266
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2267
else
2268
  ac_retval=1
2269
fi
2270
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2271
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2272
rm -f conftest.val
2273
 
2274
  fi
2275
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276
  as_fn_set_status $ac_retval
2277
 
2278
} # ac_fn_c_compute_int
2279
cat >auto/config.log <<_ACEOF
2280
This file contains any messages produced by compilers while
2281
running configure, to aid debugging if configure makes a mistake.
2282
 
2283
It was created by $as_me, which was
2284
generated by GNU Autoconf 2.69.  Invocation command line was
2285
 
2286
  $ $0 $@
2287
 
2288
_ACEOF
2289
exec 5>>auto/config.log
2290
{
2291
cat <<_ASUNAME
2292
## --------- ##
2293
## Platform. ##
2294
## --------- ##
2295
 
2296
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2297
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2298
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2299
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2300
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2301
 
2302
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2303
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2304
 
2305
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2306
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2307
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2308
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2309
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2310
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2311
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2312
 
2313
_ASUNAME
2314
 
2315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316
for as_dir in $PATH
2317
do
2318
  IFS=$as_save_IFS
2319
  test -z "$as_dir" && as_dir=.
2320
    $as_echo "PATH: $as_dir"
2321
  done
2322
IFS=$as_save_IFS
2323
 
2324
} >&5
2325
 
2326
cat >&5 <<_ACEOF
2327
 
2328
 
2329
## ----------- ##
2330
## Core tests. ##
2331
## ----------- ##
2332
 
2333
_ACEOF
2334
 
2335
 
2336
# Keep a trace of the command line.
2337
# Strip out --no-create and --no-recursion so they do not pile up.
2338
# Strip out --silent because we don't want to record it for future runs.
2339
# Also quote any args containing shell meta-characters.
2340
# Make two passes to allow for proper duplicate-argument suppression.
2341
ac_configure_args=
2342
ac_configure_args0=
2343
ac_configure_args1=
2344
ac_must_keep_next=false
2345
for ac_pass in 1 2
2346
do
2347
  for ac_arg
2348
  do
2349
    case $ac_arg in
2350
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2351
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2352
    | -silent | --silent | --silen | --sile | --sil)
2353
      continue ;;
2354
    *\'*)
2355
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2356
    esac
2357
    case $ac_pass in
2358
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2359
    2)
2360
      as_fn_append ac_configure_args1 " '$ac_arg'"
2361
      if test $ac_must_keep_next = true; then
2362
	ac_must_keep_next=false # Got value, back to normal.
2363
      else
2364
	case $ac_arg in
2365
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2366
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2367
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2368
	  | -with-* | --with-* | -without-* | --without-* | --x)
2369
	    case "$ac_configure_args0 " in
2370
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2371
	    esac
2372
	    ;;
2373
	  -* ) ac_must_keep_next=true ;;
2374
	esac
2375
      fi
2376
      as_fn_append ac_configure_args " '$ac_arg'"
2377
      ;;
2378
    esac
2379
  done
2380
done
2381
{ ac_configure_args0=; unset ac_configure_args0;}
2382
{ ac_configure_args1=; unset ac_configure_args1;}
2383
 
2384
# When interrupted or exit'd, cleanup temporary files, and complete
2385
# config.log.  We remove comments because anyway the quotes in there
2386
# would cause problems or look ugly.
2387
# WARNING: Use '\'' to represent an apostrophe within the trap.
2388
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2389
trap 'exit_status=$?
2390
  # Save into config.log some information that might help in debugging.
2391
  {
2392
    echo
2393
 
2394
    $as_echo "## ---------------- ##
2395
## Cache variables. ##
2396
## ---------------- ##"
2397
    echo
2398
    # The following way of writing the cache mishandles newlines in values,
2399
(
2400
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2401
    eval ac_val=\$$ac_var
2402
    case $ac_val in #(
2403
    *${as_nl}*)
2404
      case $ac_var in #(
2405
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2406
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2407
      esac
2408
      case $ac_var in #(
2409
      _ | IFS | as_nl) ;; #(
2410
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2411
      *) { eval $ac_var=; unset $ac_var;} ;;
2412
      esac ;;
2413
    esac
2414
  done
2415
  (set) 2>&1 |
2416
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2417
    *${as_nl}ac_space=\ *)
2418
      sed -n \
2419
	"s/'\''/'\''\\\\'\'''\''/g;
2420
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2421
      ;; #(
2422
    *)
2423
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2424
      ;;
2425
    esac |
2426
    sort
2427
)
2428
    echo
2429
 
2430
    $as_echo "## ----------------- ##
2431
## Output variables. ##
2432
## ----------------- ##"
2433
    echo
2434
    for ac_var in $ac_subst_vars
2435
    do
2436
      eval ac_val=\$$ac_var
2437
      case $ac_val in
2438
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2439
      esac
2440
      $as_echo "$ac_var='\''$ac_val'\''"
2441
    done | sort
2442
    echo
2443
 
2444
    if test -n "$ac_subst_files"; then
2445
      $as_echo "## ------------------- ##
2446
## File substitutions. ##
2447
## ------------------- ##"
2448
      echo
2449
      for ac_var in $ac_subst_files
2450
      do
2451
	eval ac_val=\$$ac_var
2452
	case $ac_val in
2453
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454
	esac
2455
	$as_echo "$ac_var='\''$ac_val'\''"
2456
      done | sort
2457
      echo
2458
    fi
2459
 
2460
    if test -s confdefs.h; then
2461
      $as_echo "## ----------- ##
2462
## confdefs.h. ##
2463
## ----------- ##"
2464
      echo
2465
      cat confdefs.h
2466
      echo
2467
    fi
2468
    test "$ac_signal" != 0 &&
2469
      $as_echo "$as_me: caught signal $ac_signal"
2470
    $as_echo "$as_me: exit $exit_status"
2471
  } >&5
2472
  rm -f core *.core core.conftest.* &&
2473
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2474
    exit $exit_status
2475
' 0
2476
for ac_signal in 1 2 13 15; do
2477
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2478
done
2479
ac_signal=0
2480
 
2481
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2482
rm -f -r conftest* confdefs.h
2483
 
2484
$as_echo "/* confdefs.h */" > confdefs.h
2485
 
2486
# Predefined preprocessor variables.
2487
 
2488
cat >>confdefs.h <<_ACEOF
2489
#define PACKAGE_NAME "$PACKAGE_NAME"
2490
_ACEOF
2491
 
2492
cat >>confdefs.h <<_ACEOF
2493
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2494
_ACEOF
2495
 
2496
cat >>confdefs.h <<_ACEOF
2497
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2498
_ACEOF
2499
 
2500
cat >>confdefs.h <<_ACEOF
2501
#define PACKAGE_STRING "$PACKAGE_STRING"
2502
_ACEOF
2503
 
2504
cat >>confdefs.h <<_ACEOF
2505
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2506
_ACEOF
2507
 
2508
cat >>confdefs.h <<_ACEOF
2509
#define PACKAGE_URL "$PACKAGE_URL"
2510
_ACEOF
2511
 
2512
 
2513
# Let the site file select an alternate cache file if it wants to.
2514
# Prefer an explicitly selected file to automatically selected ones.
2515
ac_site_file1=NONE
2516
ac_site_file2=NONE
2517
if test -n "$CONFIG_SITE"; then
2518
  # We do not want a PATH search for config.site.
2519
  case $CONFIG_SITE in #((
2520
    -*)  ac_site_file1=./$CONFIG_SITE;;
2521
    */*) ac_site_file1=$CONFIG_SITE;;
2522
    *)   ac_site_file1=./$CONFIG_SITE;;
2523
  esac
2524
elif test "x$prefix" != xNONE; then
2525
  ac_site_file1=$prefix/share/config.site
2526
  ac_site_file2=$prefix/etc/config.site
2527
else
2528
  ac_site_file1=$ac_default_prefix/share/config.site
2529
  ac_site_file2=$ac_default_prefix/etc/config.site
2530
fi
2531
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2532
do
2533
  test "x$ac_site_file" = xNONE && continue
2534
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2535
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2536
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2537
    sed 's/^/| /' "$ac_site_file" >&5
2538
    . "$ac_site_file" \
2539
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2540
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2541
as_fn_error $? "failed to load site script $ac_site_file
2542
See \`config.log' for more details" "$LINENO" 5; }
2543
  fi
2544
done
2545
 
2546
if test -r "$cache_file"; then
2547
  # Some versions of bash will fail to source /dev/null (special files
2548
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2549
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2550
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2551
$as_echo "$as_me: loading cache $cache_file" >&6;}
2552
    case $cache_file in
2553
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2554
      *)                      . "./$cache_file";;
2555
    esac
2556
  fi
2557
else
2558
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2559
$as_echo "$as_me: creating cache $cache_file" >&6;}
2560
  >$cache_file
2561
fi
2562
 
2563
# Check that the precious variables saved in the cache have kept the same
2564
# value.
2565
ac_cache_corrupted=false
2566
for ac_var in $ac_precious_vars; do
2567
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2568
  eval ac_new_set=\$ac_env_${ac_var}_set
2569
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2570
  eval ac_new_val=\$ac_env_${ac_var}_value
2571
  case $ac_old_set,$ac_new_set in
2572
    set,)
2573
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2574
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2575
      ac_cache_corrupted=: ;;
2576
    ,set)
2577
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2578
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2579
      ac_cache_corrupted=: ;;
2580
    ,);;
2581
    *)
2582
      if test "x$ac_old_val" != "x$ac_new_val"; then
2583
	# differences in whitespace do not lead to failure.
2584
	ac_old_val_w=`echo x $ac_old_val`
2585
	ac_new_val_w=`echo x $ac_new_val`
2586
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2587
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2588
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2589
	  ac_cache_corrupted=:
2590
	else
2591
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2592
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2593
	  eval $ac_var=\$ac_old_val
2594
	fi
2595
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2596
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2597
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2598
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2599
      fi;;
2600
  esac
2601
  # Pass precious variables to config.status.
2602
  if test "$ac_new_set" = set; then
2603
    case $ac_new_val in
2604
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2605
    *) ac_arg=$ac_var=$ac_new_val ;;
2606
    esac
2607
    case " $ac_configure_args " in
2608
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2609
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2610
    esac
2611
  fi
2612
done
2613
if $ac_cache_corrupted; then
2614
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2617
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2618
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2619
fi
2620
## -------------------- ##
2621
## Main body of script. ##
2622
## -------------------- ##
2623
 
2624
ac_ext=c
2625
ac_cpp='$CPP $CPPFLAGS'
2626
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629
 
2630
 
2631
ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2632
 
2633
 
2634
$as_echo "#define UNIX 1" >>confdefs.h
2635
 
2636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2637
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2638
set x ${MAKE-make}
2639
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2640
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2641
  $as_echo_n "(cached) " >&6
2642
else
2643
  cat >conftest.make <<\_ACEOF
2644
SHELL = /bin/sh
2645
all:
2646
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2647
_ACEOF
2648
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2649
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2650
  *@@@%%%=?*=@@@%%%*)
2651
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2652
  *)
2653
    eval ac_cv_prog_make_${ac_make}_set=no;;
2654
esac
2655
rm -f conftest.make
2656
fi
2657
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2658
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659
$as_echo "yes" >&6; }
2660
  SET_MAKE=
2661
else
2662
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663
$as_echo "no" >&6; }
2664
  SET_MAKE="MAKE=${MAKE-make}"
2665
fi
2666
 
2667
 
2668
ac_ext=c
2669
ac_cpp='$CPP $CPPFLAGS'
2670
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673
if test -n "$ac_tool_prefix"; then
2674
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2675
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2676
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677
$as_echo_n "checking for $ac_word... " >&6; }
2678
if ${ac_cv_prog_CC+:} false; then :
2679
  $as_echo_n "(cached) " >&6
2680
else
2681
  if test -n "$CC"; then
2682
  ac_cv_prog_CC="$CC" # Let the user override the test.
2683
else
2684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685
for as_dir in $PATH
2686
do
2687
  IFS=$as_save_IFS
2688
  test -z "$as_dir" && as_dir=.
2689
    for ac_exec_ext in '' $ac_executable_extensions; do
2690
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2692
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693
    break 2
2694
  fi
2695
done
2696
  done
2697
IFS=$as_save_IFS
2698
 
2699
fi
2700
fi
2701
CC=$ac_cv_prog_CC
2702
if test -n "$CC"; then
2703
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704
$as_echo "$CC" >&6; }
2705
else
2706
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707
$as_echo "no" >&6; }
2708
fi
2709
 
2710
 
2711
fi
2712
if test -z "$ac_cv_prog_CC"; then
2713
  ac_ct_CC=$CC
2714
  # Extract the first word of "gcc", so it can be a program name with args.
2715
set dummy gcc; ac_word=$2
2716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717
$as_echo_n "checking for $ac_word... " >&6; }
2718
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2719
  $as_echo_n "(cached) " >&6
2720
else
2721
  if test -n "$ac_ct_CC"; then
2722
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723
else
2724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725
for as_dir in $PATH
2726
do
2727
  IFS=$as_save_IFS
2728
  test -z "$as_dir" && as_dir=.
2729
    for ac_exec_ext in '' $ac_executable_extensions; do
2730
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731
    ac_cv_prog_ac_ct_CC="gcc"
2732
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733
    break 2
2734
  fi
2735
done
2736
  done
2737
IFS=$as_save_IFS
2738
 
2739
fi
2740
fi
2741
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742
if test -n "$ac_ct_CC"; then
2743
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2744
$as_echo "$ac_ct_CC" >&6; }
2745
else
2746
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747
$as_echo "no" >&6; }
2748
fi
2749
 
2750
  if test "x$ac_ct_CC" = x; then
2751
    CC=""
2752
  else
2753
    case $cross_compiling:$ac_tool_warned in
2754
yes:)
2755
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757
ac_tool_warned=yes ;;
2758
esac
2759
    CC=$ac_ct_CC
2760
  fi
2761
else
2762
  CC="$ac_cv_prog_CC"
2763
fi
2764
 
2765
if test -z "$CC"; then
2766
          if test -n "$ac_tool_prefix"; then
2767
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2768
set dummy ${ac_tool_prefix}cc; ac_word=$2
2769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770
$as_echo_n "checking for $ac_word... " >&6; }
2771
if ${ac_cv_prog_CC+:} false; then :
2772
  $as_echo_n "(cached) " >&6
2773
else
2774
  if test -n "$CC"; then
2775
  ac_cv_prog_CC="$CC" # Let the user override the test.
2776
else
2777
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778
for as_dir in $PATH
2779
do
2780
  IFS=$as_save_IFS
2781
  test -z "$as_dir" && as_dir=.
2782
    for ac_exec_ext in '' $ac_executable_extensions; do
2783
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2785
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786
    break 2
2787
  fi
2788
done
2789
  done
2790
IFS=$as_save_IFS
2791
 
2792
fi
2793
fi
2794
CC=$ac_cv_prog_CC
2795
if test -n "$CC"; then
2796
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2797
$as_echo "$CC" >&6; }
2798
else
2799
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800
$as_echo "no" >&6; }
2801
fi
2802
 
2803
 
2804
  fi
2805
fi
2806
if test -z "$CC"; then
2807
  # Extract the first word of "cc", so it can be a program name with args.
2808
set dummy cc; ac_word=$2
2809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810
$as_echo_n "checking for $ac_word... " >&6; }
2811
if ${ac_cv_prog_CC+:} false; then :
2812
  $as_echo_n "(cached) " >&6
2813
else
2814
  if test -n "$CC"; then
2815
  ac_cv_prog_CC="$CC" # Let the user override the test.
2816
else
2817
  ac_prog_rejected=no
2818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819
for as_dir in $PATH
2820
do
2821
  IFS=$as_save_IFS
2822
  test -z "$as_dir" && as_dir=.
2823
    for ac_exec_ext in '' $ac_executable_extensions; do
2824
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2826
       ac_prog_rejected=yes
2827
       continue
2828
     fi
2829
    ac_cv_prog_CC="cc"
2830
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831
    break 2
2832
  fi
2833
done
2834
  done
2835
IFS=$as_save_IFS
2836
 
2837
if test $ac_prog_rejected = yes; then
2838
  # We found a bogon in the path, so make sure we never use it.
2839
  set dummy $ac_cv_prog_CC
2840
  shift
2841
  if test $# != 0; then
2842
    # We chose a different compiler from the bogus one.
2843
    # However, it has the same basename, so the bogon will be chosen
2844
    # first if we set CC to just the basename; use the full file name.
2845
    shift
2846
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2847
  fi
2848
fi
2849
fi
2850
fi
2851
CC=$ac_cv_prog_CC
2852
if test -n "$CC"; then
2853
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854
$as_echo "$CC" >&6; }
2855
else
2856
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857
$as_echo "no" >&6; }
2858
fi
2859
 
2860
 
2861
fi
2862
if test -z "$CC"; then
2863
  if test -n "$ac_tool_prefix"; then
2864
  for ac_prog in cl.exe
2865
  do
2866
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2867
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2868
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869
$as_echo_n "checking for $ac_word... " >&6; }
2870
if ${ac_cv_prog_CC+:} false; then :
2871
  $as_echo_n "(cached) " >&6
2872
else
2873
  if test -n "$CC"; then
2874
  ac_cv_prog_CC="$CC" # Let the user override the test.
2875
else
2876
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877
for as_dir in $PATH
2878
do
2879
  IFS=$as_save_IFS
2880
  test -z "$as_dir" && as_dir=.
2881
    for ac_exec_ext in '' $ac_executable_extensions; do
2882
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2884
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885
    break 2
2886
  fi
2887
done
2888
  done
2889
IFS=$as_save_IFS
2890
 
2891
fi
2892
fi
2893
CC=$ac_cv_prog_CC
2894
if test -n "$CC"; then
2895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896
$as_echo "$CC" >&6; }
2897
else
2898
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899
$as_echo "no" >&6; }
2900
fi
2901
 
2902
 
2903
    test -n "$CC" && break
2904
  done
2905
fi
2906
if test -z "$CC"; then
2907
  ac_ct_CC=$CC
2908
  for ac_prog in cl.exe
2909
do
2910
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2911
set dummy $ac_prog; ac_word=$2
2912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913
$as_echo_n "checking for $ac_word... " >&6; }
2914
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2915
  $as_echo_n "(cached) " >&6
2916
else
2917
  if test -n "$ac_ct_CC"; then
2918
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919
else
2920
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921
for as_dir in $PATH
2922
do
2923
  IFS=$as_save_IFS
2924
  test -z "$as_dir" && as_dir=.
2925
    for ac_exec_ext in '' $ac_executable_extensions; do
2926
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927
    ac_cv_prog_ac_ct_CC="$ac_prog"
2928
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929
    break 2
2930
  fi
2931
done
2932
  done
2933
IFS=$as_save_IFS
2934
 
2935
fi
2936
fi
2937
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2938
if test -n "$ac_ct_CC"; then
2939
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2940
$as_echo "$ac_ct_CC" >&6; }
2941
else
2942
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943
$as_echo "no" >&6; }
2944
fi
2945
 
2946
 
2947
  test -n "$ac_ct_CC" && break
2948
done
2949
 
2950
  if test "x$ac_ct_CC" = x; then
2951
    CC=""
2952
  else
2953
    case $cross_compiling:$ac_tool_warned in
2954
yes:)
2955
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957
ac_tool_warned=yes ;;
2958
esac
2959
    CC=$ac_ct_CC
2960
  fi
2961
fi
2962
 
2963
fi
2964
 
2965
 
2966
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968
as_fn_error $? "no acceptable C compiler found in \$PATH
2969
See \`config.log' for more details" "$LINENO" 5; }
2970
 
2971
# Provide some information about the compiler.
2972
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2973
set X $ac_compile
2974
ac_compiler=$2
2975
for ac_option in --version -v -V -qversion; do
2976
  { { ac_try="$ac_compiler $ac_option >&5"
2977
case "(($ac_try" in
2978
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979
  *) ac_try_echo=$ac_try;;
2980
esac
2981
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982
$as_echo "$ac_try_echo"; } >&5
2983
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2984
  ac_status=$?
2985
  if test -s conftest.err; then
2986
    sed '10a\
2987
... rest of stderr output deleted ...
2988
         10q' conftest.err >conftest.er1
2989
    cat conftest.er1 >&5
2990
  fi
2991
  rm -f conftest.er1 conftest.err
2992
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2993
  test $ac_status = 0; }
2994
done
2995
 
2996
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2997
/* end confdefs.h.  */
2998
 
2999
int
3000
main ()
3001
{
3002
 
3003
  ;
3004
  return 0;
3005
}
3006
_ACEOF
3007
ac_clean_files_save=$ac_clean_files
3008
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3009
# Try to create an executable without -o first, disregard a.out.
3010
# It will help us diagnose broken compilers, and finding out an intuition
3011
# of exeext.
3012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3013
$as_echo_n "checking whether the C compiler works... " >&6; }
3014
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3015
 
3016
# The possible output files:
3017
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3018
 
3019
ac_rmfiles=
3020
for ac_file in $ac_files
3021
do
3022
  case $ac_file in
3023
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3024
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3025
  esac
3026
done
3027
rm -f $ac_rmfiles
3028
 
3029
if { { ac_try="$ac_link_default"
3030
case "(($ac_try" in
3031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032
  *) ac_try_echo=$ac_try;;
3033
esac
3034
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035
$as_echo "$ac_try_echo"; } >&5
3036
  (eval "$ac_link_default") 2>&5
3037
  ac_status=$?
3038
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039
  test $ac_status = 0; }; then :
3040
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3041
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3042
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3043
# so that the user can short-circuit this test for compilers unknown to
3044
# Autoconf.
3045
for ac_file in $ac_files ''
3046
do
3047
  test -f "$ac_file" || continue
3048
  case $ac_file in
3049
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3050
	;;
3051
    [ab].out )
3052
	# We found the default executable, but exeext='' is most
3053
	# certainly right.
3054
	break;;
3055
    *.* )
3056
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3057
	then :; else
3058
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059
	fi
3060
	# We set ac_cv_exeext here because the later test for it is not
3061
	# safe: cross compilers may not add the suffix if given an `-o'
3062
	# argument, so we may need to know it at that point already.
3063
	# Even if this section looks crufty: it has the advantage of
3064
	# actually working.
3065
	break;;
3066
    * )
3067
	break;;
3068
  esac
3069
done
3070
test "$ac_cv_exeext" = no && ac_cv_exeext=
3071
 
3072
else
3073
  ac_file=''
3074
fi
3075
if test -z "$ac_file"; then :
3076
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077
$as_echo "no" >&6; }
3078
$as_echo "$as_me: failed program was:" >&5
3079
sed 's/^/| /' conftest.$ac_ext >&5
3080
 
3081
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083
as_fn_error 77 "C compiler cannot create executables
3084
See \`config.log' for more details" "$LINENO" 5; }
3085
else
3086
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3087
$as_echo "yes" >&6; }
3088
fi
3089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3090
$as_echo_n "checking for C compiler default output file name... " >&6; }
3091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3092
$as_echo "$ac_file" >&6; }
3093
ac_exeext=$ac_cv_exeext
3094
 
3095
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3096
ac_clean_files=$ac_clean_files_save
3097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3098
$as_echo_n "checking for suffix of executables... " >&6; }
3099
if { { ac_try="$ac_link"
3100
case "(($ac_try" in
3101
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102
  *) ac_try_echo=$ac_try;;
3103
esac
3104
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105
$as_echo "$ac_try_echo"; } >&5
3106
  (eval "$ac_link") 2>&5
3107
  ac_status=$?
3108
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109
  test $ac_status = 0; }; then :
3110
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3111
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3112
# work properly (i.e., refer to `conftest.exe'), while it won't with
3113
# `rm'.
3114
for ac_file in conftest.exe conftest conftest.*; do
3115
  test -f "$ac_file" || continue
3116
  case $ac_file in
3117
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3118
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119
	  break;;
3120
    * ) break;;
3121
  esac
3122
done
3123
else
3124
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3127
See \`config.log' for more details" "$LINENO" 5; }
3128
fi
3129
rm -f conftest conftest$ac_cv_exeext
3130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3131
$as_echo "$ac_cv_exeext" >&6; }
3132
 
3133
rm -f conftest.$ac_ext
3134
EXEEXT=$ac_cv_exeext
3135
ac_exeext=$EXEEXT
3136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137
/* end confdefs.h.  */
3138
#include <stdio.h>
3139
int
3140
main ()
3141
{
3142
FILE *f = fopen ("conftest.out", "w");
3143
 return ferror (f) || fclose (f) != 0;
3144
 
3145
  ;
3146
  return 0;
3147
}
3148
_ACEOF
3149
ac_clean_files="$ac_clean_files conftest.out"
3150
# Check that the compiler produces executables we can run.  If not, either
3151
# the compiler is broken, or we cross compile.
3152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3153
$as_echo_n "checking whether we are cross compiling... " >&6; }
3154
if test "$cross_compiling" != yes; then
3155
  { { ac_try="$ac_link"
3156
case "(($ac_try" in
3157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158
  *) ac_try_echo=$ac_try;;
3159
esac
3160
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161
$as_echo "$ac_try_echo"; } >&5
3162
  (eval "$ac_link") 2>&5
3163
  ac_status=$?
3164
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165
  test $ac_status = 0; }
3166
  if { ac_try='./conftest$ac_cv_exeext'
3167
  { { case "(($ac_try" in
3168
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169
  *) ac_try_echo=$ac_try;;
3170
esac
3171
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172
$as_echo "$ac_try_echo"; } >&5
3173
  (eval "$ac_try") 2>&5
3174
  ac_status=$?
3175
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176
  test $ac_status = 0; }; }; then
3177
    cross_compiling=no
3178
  else
3179
    if test "$cross_compiling" = maybe; then
3180
	cross_compiling=yes
3181
    else
3182
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184
as_fn_error $? "cannot run C compiled programs.
3185
If you meant to cross compile, use \`--host'.
3186
See \`config.log' for more details" "$LINENO" 5; }
3187
    fi
3188
  fi
3189
fi
3190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3191
$as_echo "$cross_compiling" >&6; }
3192
 
3193
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3194
ac_clean_files=$ac_clean_files_save
3195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3196
$as_echo_n "checking for suffix of object files... " >&6; }
3197
if ${ac_cv_objext+:} false; then :
3198
  $as_echo_n "(cached) " >&6
3199
else
3200
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201
/* end confdefs.h.  */
3202
 
3203
int
3204
main ()
3205
{
3206
 
3207
  ;
3208
  return 0;
3209
}
3210
_ACEOF
3211
rm -f conftest.o conftest.obj
3212
if { { ac_try="$ac_compile"
3213
case "(($ac_try" in
3214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215
  *) ac_try_echo=$ac_try;;
3216
esac
3217
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218
$as_echo "$ac_try_echo"; } >&5
3219
  (eval "$ac_compile") 2>&5
3220
  ac_status=$?
3221
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222
  test $ac_status = 0; }; then :
3223
  for ac_file in conftest.o conftest.obj conftest.*; do
3224
  test -f "$ac_file" || continue;
3225
  case $ac_file in
3226
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3227
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3228
       break;;
3229
  esac
3230
done
3231
else
3232
  $as_echo "$as_me: failed program was:" >&5
3233
sed 's/^/| /' conftest.$ac_ext >&5
3234
 
3235
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237
as_fn_error $? "cannot compute suffix of object files: cannot compile
3238
See \`config.log' for more details" "$LINENO" 5; }
3239
fi
3240
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3241
fi
3242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3243
$as_echo "$ac_cv_objext" >&6; }
3244
OBJEXT=$ac_cv_objext
3245
ac_objext=$OBJEXT
3246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3247
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3248
if ${ac_cv_c_compiler_gnu+:} false; then :
3249
  $as_echo_n "(cached) " >&6
3250
else
3251
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252
/* end confdefs.h.  */
3253
 
3254
int
3255
main ()
3256
{
3257
#ifndef __GNUC__
3258
       choke me
3259
#endif
3260
 
3261
  ;
3262
  return 0;
3263
}
3264
_ACEOF
3265
if ac_fn_c_try_compile "$LINENO"; then :
3266
  ac_compiler_gnu=yes
3267
else
3268
  ac_compiler_gnu=no
3269
fi
3270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3272
 
3273
fi
3274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3275
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3276
if test $ac_compiler_gnu = yes; then
3277
  GCC=yes
3278
else
3279
  GCC=
3280
fi
3281
ac_test_CFLAGS=${CFLAGS+set}
3282
ac_save_CFLAGS=$CFLAGS
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3284
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3285
if ${ac_cv_prog_cc_g+:} false; then :
3286
  $as_echo_n "(cached) " >&6
3287
else
3288
  ac_save_c_werror_flag=$ac_c_werror_flag
3289
   ac_c_werror_flag=yes
3290
   ac_cv_prog_cc_g=no
3291
   CFLAGS="-g"
3292
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293
/* end confdefs.h.  */
3294
 
3295
int
3296
main ()
3297
{
3298
 
3299
  ;
3300
  return 0;
3301
}
3302
_ACEOF
3303
if ac_fn_c_try_compile "$LINENO"; then :
3304
  ac_cv_prog_cc_g=yes
3305
else
3306
  CFLAGS=""
3307
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308
/* end confdefs.h.  */
3309
 
3310
int
3311
main ()
3312
{
3313
 
3314
  ;
3315
  return 0;
3316
}
3317
_ACEOF
3318
if ac_fn_c_try_compile "$LINENO"; then :
3319
 
3320
else
3321
  ac_c_werror_flag=$ac_save_c_werror_flag
3322
	 CFLAGS="-g"
3323
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324
/* end confdefs.h.  */
3325
 
3326
int
3327
main ()
3328
{
3329
 
3330
  ;
3331
  return 0;
3332
}
3333
_ACEOF
3334
if ac_fn_c_try_compile "$LINENO"; then :
3335
  ac_cv_prog_cc_g=yes
3336
fi
3337
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338
fi
3339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340
fi
3341
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342
   ac_c_werror_flag=$ac_save_c_werror_flag
3343
fi
3344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3345
$as_echo "$ac_cv_prog_cc_g" >&6; }
3346
if test "$ac_test_CFLAGS" = set; then
3347
  CFLAGS=$ac_save_CFLAGS
3348
elif test $ac_cv_prog_cc_g = yes; then
3349
  if test "$GCC" = yes; then
3350
    CFLAGS="-g -O2"
3351
  else
3352
    CFLAGS="-g"
3353
  fi
3354
else
3355
  if test "$GCC" = yes; then
3356
    CFLAGS="-O2"
3357
  else
3358
    CFLAGS=
3359
  fi
3360
fi
3361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3362
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3363
if ${ac_cv_prog_cc_c89+:} false; then :
3364
  $as_echo_n "(cached) " >&6
3365
else
3366
  ac_cv_prog_cc_c89=no
3367
ac_save_CC=$CC
3368
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369
/* end confdefs.h.  */
3370
#include <stdarg.h>
3371
#include <stdio.h>
3372
struct stat;
3373
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3374
struct buf { int x; };
3375
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376
static char *e (p, i)
3377
     char **p;
3378
     int i;
3379
{
3380
  return p[i];
3381
}
3382
static char *f (char * (*g) (char **, int), char **p, ...)
3383
{
3384
  char *s;
3385
  va_list v;
3386
  va_start (v,p);
3387
  s = g (p, va_arg (v,int));
3388
  va_end (v);
3389
  return s;
3390
}
3391
 
3392
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3393
   function prototypes and stuff, but not '\xHH' hex character constants.
3394
   These don't provoke an error unfortunately, instead are silently treated
3395
   as 'x'.  The following induces an error, until -std is added to get
3396
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3397
   array size at least.  It's necessary to write '\x00'==0 to get something
3398
   that's true only with -std.  */
3399
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400
 
3401
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402
   inside strings and character constants.  */
3403
#define FOO(x) 'x'
3404
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3405
 
3406
int test (int i, double x);
3407
struct s1 {int (*f) (int a);};
3408
struct s2 {int (*f) (double a);};
3409
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3410
int argc;
3411
char **argv;
3412
int
3413
main ()
3414
{
3415
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3416
  ;
3417
  return 0;
3418
}
3419
_ACEOF
3420
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422
do
3423
  CC="$ac_save_CC $ac_arg"
3424
  if ac_fn_c_try_compile "$LINENO"; then :
3425
  ac_cv_prog_cc_c89=$ac_arg
3426
fi
3427
rm -f core conftest.err conftest.$ac_objext
3428
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3429
done
3430
rm -f conftest.$ac_ext
3431
CC=$ac_save_CC
3432
 
3433
fi
3434
# AC_CACHE_VAL
3435
case "x$ac_cv_prog_cc_c89" in
3436
  x)
3437
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3438
$as_echo "none needed" >&6; } ;;
3439
  xno)
3440
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3441
$as_echo "unsupported" >&6; } ;;
3442
  *)
3443
    CC="$CC $ac_cv_prog_cc_c89"
3444
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3445
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3446
esac
3447
if test "x$ac_cv_prog_cc_c89" != xno; then :
3448
 
3449
fi
3450
 
3451
ac_ext=c
3452
ac_cpp='$CPP $CPPFLAGS'
3453
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
 
3457
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3458
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3459
if ${ac_cv_prog_cc_c99+:} false; then :
3460
  $as_echo_n "(cached) " >&6
3461
else
3462
  ac_cv_prog_cc_c99=no
3463
ac_save_CC=$CC
3464
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465
/* end confdefs.h.  */
3466
#include <stdarg.h>
3467
#include <stdbool.h>
3468
#include <stdlib.h>
3469
#include <wchar.h>
3470
#include <stdio.h>
3471
 
3472
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3473
#define debug(...) fprintf (stderr, __VA_ARGS__)
3474
#define showlist(...) puts (#__VA_ARGS__)
3475
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3476
static void
3477
test_varargs_macros (void)
3478
{
3479
  int x = 1234;
3480
  int y = 5678;
3481
  debug ("Flag");
3482
  debug ("X = %d\n", x);
3483
  showlist (The first, second, and third items.);
3484
  report (x>y, "x is %d but y is %d", x, y);
3485
}
3486
 
3487
// Check long long types.
3488
#define BIG64 18446744073709551615ull
3489
#define BIG32 4294967295ul
3490
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3491
#if !BIG_OK
3492
  your preprocessor is broken;
3493
#endif
3494
#if BIG_OK
3495
#else
3496
  your preprocessor is broken;
3497
#endif
3498
static long long int bignum = -9223372036854775807LL;
3499
static unsigned long long int ubignum = BIG64;
3500
 
3501
struct incomplete_array
3502
{
3503
  int datasize;
3504
  double data[];
3505
};
3506
 
3507
struct named_init {
3508
  int number;
3509
  const wchar_t *name;
3510
  double average;
3511
};
3512
 
3513
typedef const char *ccp;
3514
 
3515
static inline int
3516
test_restrict (ccp restrict text)
3517
{
3518
  // See if C++-style comments work.
3519
  // Iterate through items via the restricted pointer.
3520
  // Also check for declarations in for loops.
3521
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3522
    continue;
3523
  return 0;
3524
}
3525
 
3526
// Check varargs and va_copy.
3527
static void
3528
test_varargs (const char *format, ...)
3529
{
3530
  va_list args;
3531
  va_start (args, format);
3532
  va_list args_copy;
3533
  va_copy (args_copy, args);
3534
 
3535
  const char *str;
3536
  int number;
3537
  float fnumber;
3538
 
3539
  while (*format)
3540
    {
3541
      switch (*format++)
3542
	{
3543
	case 's': // string
3544
	  str = va_arg (args_copy, const char *);
3545
	  break;
3546
	case 'd': // int
3547
	  number = va_arg (args_copy, int);
3548
	  break;
3549
	case 'f': // float
3550
	  fnumber = va_arg (args_copy, double);
3551
	  break;
3552
	default:
3553
	  break;
3554
	}
3555
    }
3556
  va_end (args_copy);
3557
  va_end (args);
3558
}
3559
 
3560
int
3561
main ()
3562
{
3563
 
3564
  // Check bool.
3565
  _Bool success = false;
3566
 
3567
  // Check restrict.
3568
  if (test_restrict ("String literal") == 0)
3569
    success = true;
3570
  char *restrict newvar = "Another string";
3571
 
3572
  // Check varargs.
3573
  test_varargs ("s, d' f .", "string", 65, 34.234);
3574
  test_varargs_macros ();
3575
 
3576
  // Check flexible array members.
3577
  struct incomplete_array *ia =
3578
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3579
  ia->datasize = 10;
3580
  for (int i = 0; i < ia->datasize; ++i)
3581
    ia->data[i] = i * 1.234;
3582
 
3583
  // Check named initializers.
3584
  struct named_init ni = {
3585
    .number = 34,
3586
    .name = L"Test wide string",
3587
    .average = 543.34343,
3588
  };
3589
 
3590
  ni.number = 58;
3591
 
3592
  int dynamic_array[ni.number];
3593
  dynamic_array[ni.number - 1] = 543;
3594
 
3595
  // work around unused variable warnings
3596
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3597
	  || dynamic_array[ni.number - 1] != 543);
3598
 
3599
  ;
3600
  return 0;
3601
}
3602
_ACEOF
3603
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3604
do
3605
  CC="$ac_save_CC $ac_arg"
3606
  if ac_fn_c_try_compile "$LINENO"; then :
3607
  ac_cv_prog_cc_c99=$ac_arg
3608
fi
3609
rm -f core conftest.err conftest.$ac_objext
3610
  test "x$ac_cv_prog_cc_c99" != "xno" && break
3611
done
3612
rm -f conftest.$ac_ext
3613
CC=$ac_save_CC
3614
 
3615
fi
3616
# AC_CACHE_VAL
3617
case "x$ac_cv_prog_cc_c99" in
3618
  x)
3619
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3620
$as_echo "none needed" >&6; } ;;
3621
  xno)
3622
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3623
$as_echo "unsupported" >&6; } ;;
3624
  *)
3625
    CC="$CC $ac_cv_prog_cc_c99"
3626
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3627
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3628
esac
3629
if test "x$ac_cv_prog_cc_c99" != xno; then :
3630
 
3631
fi
3632
 
3633
		ac_ext=c
3634
ac_cpp='$CPP $CPPFLAGS'
3635
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3639
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3640
# On Suns, sometimes $CPP names a directory.
3641
if test -n "$CPP" && test -d "$CPP"; then
3642
  CPP=
3643
fi
3644
if test -z "$CPP"; then
3645
  if ${ac_cv_prog_CPP+:} false; then :
3646
  $as_echo_n "(cached) " >&6
3647
else
3648
      # Double quotes because CPP needs to be expanded
3649
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3650
    do
3651
      ac_preproc_ok=false
3652
for ac_c_preproc_warn_flag in '' yes
3653
do
3654
  # Use a header file that comes with gcc, so configuring glibc
3655
  # with a fresh cross-compiler works.
3656
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3657
  # <limits.h> exists even on freestanding compilers.
3658
  # On the NeXT, cc -E runs the code through the compiler's parser,
3659
  # not just through cpp. "Syntax error" is here to catch this case.
3660
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661
/* end confdefs.h.  */
3662
#ifdef __STDC__
3663
# include <limits.h>
3664
#else
3665
# include <assert.h>
3666
#endif
3667
		     Syntax error
3668
_ACEOF
3669
if ac_fn_c_try_cpp "$LINENO"; then :
3670
 
3671
else
3672
  # Broken: fails on valid input.
3673
continue
3674
fi
3675
rm -f conftest.err conftest.i conftest.$ac_ext
3676
 
3677
  # OK, works on sane cases.  Now check whether nonexistent headers
3678
  # can be detected and how.
3679
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680
/* end confdefs.h.  */
3681
#include <ac_nonexistent.h>
3682
_ACEOF
3683
if ac_fn_c_try_cpp "$LINENO"; then :
3684
  # Broken: success on invalid input.
3685
continue
3686
else
3687
  # Passes both tests.
3688
ac_preproc_ok=:
3689
break
3690
fi
3691
rm -f conftest.err conftest.i conftest.$ac_ext
3692
 
3693
done
3694
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3695
rm -f conftest.i conftest.err conftest.$ac_ext
3696
if $ac_preproc_ok; then :
3697
  break
3698
fi
3699
 
3700
    done
3701
    ac_cv_prog_CPP=$CPP
3702
 
3703
fi
3704
  CPP=$ac_cv_prog_CPP
3705
else
3706
  ac_cv_prog_CPP=$CPP
3707
fi
3708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3709
$as_echo "$CPP" >&6; }
3710
ac_preproc_ok=false
3711
for ac_c_preproc_warn_flag in '' yes
3712
do
3713
  # Use a header file that comes with gcc, so configuring glibc
3714
  # with a fresh cross-compiler works.
3715
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3716
  # <limits.h> exists even on freestanding compilers.
3717
  # On the NeXT, cc -E runs the code through the compiler's parser,
3718
  # not just through cpp. "Syntax error" is here to catch this case.
3719
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720
/* end confdefs.h.  */
3721
#ifdef __STDC__
3722
# include <limits.h>
3723
#else
3724
# include <assert.h>
3725
#endif
3726
		     Syntax error
3727
_ACEOF
3728
if ac_fn_c_try_cpp "$LINENO"; then :
3729
 
3730
else
3731
  # Broken: fails on valid input.
3732
continue
3733
fi
3734
rm -f conftest.err conftest.i conftest.$ac_ext
3735
 
3736
  # OK, works on sane cases.  Now check whether nonexistent headers
3737
  # can be detected and how.
3738
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739
/* end confdefs.h.  */
3740
#include <ac_nonexistent.h>
3741
_ACEOF
3742
if ac_fn_c_try_cpp "$LINENO"; then :
3743
  # Broken: success on invalid input.
3744
continue
3745
else
3746
  # Passes both tests.
3747
ac_preproc_ok=:
3748
break
3749
fi
3750
rm -f conftest.err conftest.i conftest.$ac_ext
3751
 
3752
done
3753
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754
rm -f conftest.i conftest.err conftest.$ac_ext
3755
if $ac_preproc_ok; then :
3756
 
3757
else
3758
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3760
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3761
See \`config.log' for more details" "$LINENO" 5; }
3762
fi
3763
 
3764
ac_ext=c
3765
ac_cpp='$CPP $CPPFLAGS'
3766
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769
 
3770
 
3771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3772
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3773
if ${ac_cv_path_GREP+:} false; then :
3774
  $as_echo_n "(cached) " >&6
3775
else
3776
  if test -z "$GREP"; then
3777
  ac_path_GREP_found=false
3778
  # Loop through the user's path and test for each of PROGNAME-LIST
3779
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3781
do
3782
  IFS=$as_save_IFS
3783
  test -z "$as_dir" && as_dir=.
3784
    for ac_prog in grep ggrep; do
3785
    for ac_exec_ext in '' $ac_executable_extensions; do
3786
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3787
      as_fn_executable_p "$ac_path_GREP" || continue
3788
# Check for GNU ac_path_GREP and select it if it is found.
3789
  # Check for GNU $ac_path_GREP
3790
case `"$ac_path_GREP" --version 2>&1` in
3791
*GNU*)
3792
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3793
*)
3794
  ac_count=0
3795
  $as_echo_n 0123456789 >"conftest.in"
3796
  while :
3797
  do
3798
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3799
    mv "conftest.tmp" "conftest.in"
3800
    cp "conftest.in" "conftest.nl"
3801
    $as_echo 'GREP' >> "conftest.nl"
3802
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3805
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3806
      # Best one so far, save it but keep looking for a better one
3807
      ac_cv_path_GREP="$ac_path_GREP"
3808
      ac_path_GREP_max=$ac_count
3809
    fi
3810
    # 10*(2^10) chars as input seems more than enough
3811
    test $ac_count -gt 10 && break
3812
  done
3813
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3814
esac
3815
 
3816
      $ac_path_GREP_found && break 3
3817
    done
3818
  done
3819
  done
3820
IFS=$as_save_IFS
3821
  if test -z "$ac_cv_path_GREP"; then
3822
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3823
  fi
3824
else
3825
  ac_cv_path_GREP=$GREP
3826
fi
3827
 
3828
fi
3829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3830
$as_echo "$ac_cv_path_GREP" >&6; }
3831
 GREP="$ac_cv_path_GREP"
3832
 
3833
 
3834
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3835
$as_echo_n "checking for egrep... " >&6; }
3836
if ${ac_cv_path_EGREP+:} false; then :
3837
  $as_echo_n "(cached) " >&6
3838
else
3839
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3840
   then ac_cv_path_EGREP="$GREP -E"
3841
   else
3842
     if test -z "$EGREP"; then
3843
  ac_path_EGREP_found=false
3844
  # Loop through the user's path and test for each of PROGNAME-LIST
3845
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847
do
3848
  IFS=$as_save_IFS
3849
  test -z "$as_dir" && as_dir=.
3850
    for ac_prog in egrep; do
3851
    for ac_exec_ext in '' $ac_executable_extensions; do
3852
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3853
      as_fn_executable_p "$ac_path_EGREP" || continue
3854
# Check for GNU ac_path_EGREP and select it if it is found.
3855
  # Check for GNU $ac_path_EGREP
3856
case `"$ac_path_EGREP" --version 2>&1` in
3857
*GNU*)
3858
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3859
*)
3860
  ac_count=0
3861
  $as_echo_n 0123456789 >"conftest.in"
3862
  while :
3863
  do
3864
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3865
    mv "conftest.tmp" "conftest.in"
3866
    cp "conftest.in" "conftest.nl"
3867
    $as_echo 'EGREP' >> "conftest.nl"
3868
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3871
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3872
      # Best one so far, save it but keep looking for a better one
3873
      ac_cv_path_EGREP="$ac_path_EGREP"
3874
      ac_path_EGREP_max=$ac_count
3875
    fi
3876
    # 10*(2^10) chars as input seems more than enough
3877
    test $ac_count -gt 10 && break
3878
  done
3879
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880
esac
3881
 
3882
      $ac_path_EGREP_found && break 3
3883
    done
3884
  done
3885
  done
3886
IFS=$as_save_IFS
3887
  if test -z "$ac_cv_path_EGREP"; then
3888
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3889
  fi
3890
else
3891
  ac_cv_path_EGREP=$EGREP
3892
fi
3893
 
3894
   fi
3895
fi
3896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3897
$as_echo "$ac_cv_path_EGREP" >&6; }
3898
 EGREP="$ac_cv_path_EGREP"
3899
 
3900
 
3901
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902
/* end confdefs.h.  */
3903
 
3904
_ACEOF
3905
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3906
  $EGREP "" >/dev/null 2>&1; then :
3907
 
3908
fi
3909
rm -f conftest*
3910
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3911
$as_echo_n "checking for fgrep... " >&6; }
3912
if ${ac_cv_path_FGREP+:} false; then :
3913
  $as_echo_n "(cached) " >&6
3914
else
3915
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3916
   then ac_cv_path_FGREP="$GREP -F"
3917
   else
3918
     if test -z "$FGREP"; then
3919
  ac_path_FGREP_found=false
3920
  # Loop through the user's path and test for each of PROGNAME-LIST
3921
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3923
do
3924
  IFS=$as_save_IFS
3925
  test -z "$as_dir" && as_dir=.
3926
    for ac_prog in fgrep; do
3927
    for ac_exec_ext in '' $ac_executable_extensions; do
3928
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3929
      as_fn_executable_p "$ac_path_FGREP" || continue
3930
# Check for GNU ac_path_FGREP and select it if it is found.
3931
  # Check for GNU $ac_path_FGREP
3932
case `"$ac_path_FGREP" --version 2>&1` in
3933
*GNU*)
3934
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3935
*)
3936
  ac_count=0
3937
  $as_echo_n 0123456789 >"conftest.in"
3938
  while :
3939
  do
3940
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3941
    mv "conftest.tmp" "conftest.in"
3942
    cp "conftest.in" "conftest.nl"
3943
    $as_echo 'FGREP' >> "conftest.nl"
3944
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3947
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3948
      # Best one so far, save it but keep looking for a better one
3949
      ac_cv_path_FGREP="$ac_path_FGREP"
3950
      ac_path_FGREP_max=$ac_count
3951
    fi
3952
    # 10*(2^10) chars as input seems more than enough
3953
    test $ac_count -gt 10 && break
3954
  done
3955
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956
esac
3957
 
3958
      $ac_path_FGREP_found && break 3
3959
    done
3960
  done
3961
  done
3962
IFS=$as_save_IFS
3963
  if test -z "$ac_cv_path_FGREP"; then
3964
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3965
  fi
3966
else
3967
  ac_cv_path_FGREP=$FGREP
3968
fi
3969
 
3970
   fi
3971
fi
3972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3973
$as_echo "$ac_cv_path_FGREP" >&6; }
3974
 FGREP="$ac_cv_path_FGREP"
3975
 
3976
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3977
$as_echo_n "checking for library containing strerror... " >&6; }
3978
if ${ac_cv_search_strerror+:} false; then :
3979
  $as_echo_n "(cached) " >&6
3980
else
3981
  ac_func_search_save_LIBS=$LIBS
3982
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983
/* end confdefs.h.  */
3984
 
3985
/* Override any GCC internal prototype to avoid an error.
3986
   Use char because int might match the return type of a GCC
3987
   builtin and then its argument prototype would still apply.  */
3988
#ifdef __cplusplus
3989
extern "C"
3990
#endif
3991
char strerror ();
3992
int
3993
main ()
3994
{
3995
return strerror ();
3996
  ;
3997
  return 0;
3998
}
3999
_ACEOF
4000
for ac_lib in '' cposix; do
4001
  if test -z "$ac_lib"; then
4002
    ac_res="none required"
4003
  else
4004
    ac_res=-l$ac_lib
4005
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4006
  fi
4007
  if ac_fn_c_try_link "$LINENO"; then :
4008
  ac_cv_search_strerror=$ac_res
4009
fi
4010
rm -f core conftest.err conftest.$ac_objext \
4011
    conftest$ac_exeext
4012
  if ${ac_cv_search_strerror+:} false; then :
4013
  break
4014
fi
4015
done
4016
if ${ac_cv_search_strerror+:} false; then :
4017
 
4018
else
4019
  ac_cv_search_strerror=no
4020
fi
4021
rm conftest.$ac_ext
4022
LIBS=$ac_func_search_save_LIBS
4023
fi
4024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4025
$as_echo "$ac_cv_search_strerror" >&6; }
4026
ac_res=$ac_cv_search_strerror
4027
if test "$ac_res" != no; then :
4028
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4029
 
4030
fi
4031
		for ac_prog in gawk mawk nawk awk
4032
do
4033
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4034
set dummy $ac_prog; ac_word=$2
4035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036
$as_echo_n "checking for $ac_word... " >&6; }
4037
if ${ac_cv_prog_AWK+:} false; then :
4038
  $as_echo_n "(cached) " >&6
4039
else
4040
  if test -n "$AWK"; then
4041
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4042
else
4043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044
for as_dir in $PATH
4045
do
4046
  IFS=$as_save_IFS
4047
  test -z "$as_dir" && as_dir=.
4048
    for ac_exec_ext in '' $ac_executable_extensions; do
4049
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4050
    ac_cv_prog_AWK="$ac_prog"
4051
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052
    break 2
4053
  fi
4054
done
4055
  done
4056
IFS=$as_save_IFS
4057
 
4058
fi
4059
fi
4060
AWK=$ac_cv_prog_AWK
4061
if test -n "$AWK"; then
4062
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4063
$as_echo "$AWK" >&6; }
4064
else
4065
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066
$as_echo "no" >&6; }
4067
fi
4068
 
4069
 
4070
  test -n "$AWK" && break
4071
done
4072
 
4073
# Extract the first word of "strip", so it can be a program name with args.
4074
set dummy strip; ac_word=$2
4075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076
$as_echo_n "checking for $ac_word... " >&6; }
4077
if ${ac_cv_prog_STRIP+:} false; then :
4078
  $as_echo_n "(cached) " >&6
4079
else
4080
  if test -n "$STRIP"; then
4081
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4082
else
4083
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084
for as_dir in $PATH
4085
do
4086
  IFS=$as_save_IFS
4087
  test -z "$as_dir" && as_dir=.
4088
    for ac_exec_ext in '' $ac_executable_extensions; do
4089
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090
    ac_cv_prog_STRIP="strip"
4091
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092
    break 2
4093
  fi
4094
done
4095
  done
4096
IFS=$as_save_IFS
4097
 
4098
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4099
fi
4100
fi
4101
STRIP=$ac_cv_prog_STRIP
4102
if test -n "$STRIP"; then
4103
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4104
$as_echo "$STRIP" >&6; }
4105
else
4106
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107
$as_echo "no" >&6; }
4108
fi
4109
 
4110
 
4111
 
4112
 
4113
 
4114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4115
$as_echo_n "checking for ANSI C header files... " >&6; }
4116
if ${ac_cv_header_stdc+:} false; then :
4117
  $as_echo_n "(cached) " >&6
4118
else
4119
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120
/* end confdefs.h.  */
4121
#include <stdlib.h>
4122
#include <stdarg.h>
4123
#include <string.h>
4124
#include <float.h>
4125
 
4126
int
4127
main ()
4128
{
4129
 
4130
  ;
4131
  return 0;
4132
}
4133
_ACEOF
4134
if ac_fn_c_try_compile "$LINENO"; then :
4135
  ac_cv_header_stdc=yes
4136
else
4137
  ac_cv_header_stdc=no
4138
fi
4139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140
 
4141
if test $ac_cv_header_stdc = yes; then
4142
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4143
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144
/* end confdefs.h.  */
4145
#include <string.h>
4146
 
4147
_ACEOF
4148
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149
  $EGREP "memchr" >/dev/null 2>&1; then :
4150
 
4151
else
4152
  ac_cv_header_stdc=no
4153
fi
4154
rm -f conftest*
4155
 
4156
fi
4157
 
4158
if test $ac_cv_header_stdc = yes; then
4159
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4160
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161
/* end confdefs.h.  */
4162
#include <stdlib.h>
4163
 
4164
_ACEOF
4165
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166
  $EGREP "free" >/dev/null 2>&1; then :
4167
 
4168
else
4169
  ac_cv_header_stdc=no
4170
fi
4171
rm -f conftest*
4172
 
4173
fi
4174
 
4175
if test $ac_cv_header_stdc = yes; then
4176
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4177
  if test "$cross_compiling" = yes; then :
4178
  :
4179
else
4180
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181
/* end confdefs.h.  */
4182
#include <ctype.h>
4183
#include <stdlib.h>
4184
#if ((' ' & 0x0FF) == 0x020)
4185
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4186
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4187
#else
4188
# define ISLOWER(c) \
4189
		   (('a' <= (c) && (c) <= 'i') \
4190
		     || ('j' <= (c) && (c) <= 'r') \
4191
		     || ('s' <= (c) && (c) <= 'z'))
4192
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4193
#endif
4194
 
4195
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4196
int
4197
main ()
4198
{
4199
  int i;
4200
  for (i = 0; i < 256; i++)
4201
    if (XOR (islower (i), ISLOWER (i))
4202
	|| toupper (i) != TOUPPER (i))
4203
      return 2;
4204
  return 0;
4205
}
4206
_ACEOF
4207
if ac_fn_c_try_run "$LINENO"; then :
4208
 
4209
else
4210
  ac_cv_header_stdc=no
4211
fi
4212
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4213
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4214
fi
4215
 
4216
fi
4217
fi
4218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4219
$as_echo "$ac_cv_header_stdc" >&6; }
4220
if test $ac_cv_header_stdc = yes; then
4221
 
4222
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4223
 
4224
fi
4225
 
4226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4227
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4228
if ${ac_cv_header_sys_wait_h+:} false; then :
4229
  $as_echo_n "(cached) " >&6
4230
else
4231
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232
/* end confdefs.h.  */
4233
#include <sys/types.h>
4234
#include <sys/wait.h>
4235
#ifndef WEXITSTATUS
4236
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4237
#endif
4238
#ifndef WIFEXITED
4239
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4240
#endif
4241
 
4242
int
4243
main ()
4244
{
4245
  int s;
4246
  wait (&s);
4247
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4248
  ;
4249
  return 0;
4250
}
4251
_ACEOF
4252
if ac_fn_c_try_compile "$LINENO"; then :
4253
  ac_cv_header_sys_wait_h=yes
4254
else
4255
  ac_cv_header_sys_wait_h=no
4256
fi
4257
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258
fi
4259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4260
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4261
if test $ac_cv_header_sys_wait_h = yes; then
4262
 
4263
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4264
 
4265
fi
4266
 
4267
 
4268
if test x"$ac_cv_prog_cc_c99" != xno; then
4269
 
4270
 
4271
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4272
$as_echo_n "checking for unsigned long long int... " >&6; }
4273
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
4274
  $as_echo_n "(cached) " >&6
4275
else
4276
  ac_cv_type_unsigned_long_long_int=yes
4277
     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4278
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279
/* end confdefs.h.  */
4280
 
4281
  /* For now, do not test the preprocessor; as of 2007 there are too many
4282
	 implementations with broken preprocessors.  Perhaps this can
4283
	 be revisited in 2012.  In the meantime, code should not expect
4284
	 #if to work with literals wider than 32 bits.  */
4285
      /* Test literals.  */
4286
      long long int ll = 9223372036854775807ll;
4287
      long long int nll = -9223372036854775807LL;
4288
      unsigned long long int ull = 18446744073709551615ULL;
4289
      /* Test constant expressions.   */
4290
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4291
		     ? 1 : -1)];
4292
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4293
		     ? 1 : -1)];
4294
      int i = 63;
4295
int
4296
main ()
4297
{
4298
/* Test availability of runtime routines for shift and division.  */
4299
      long long int llmax = 9223372036854775807ll;
4300
      unsigned long long int ullmax = 18446744073709551615ull;
4301
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4302
	      | (llmax / ll) | (llmax % ll)
4303
	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4304
	      | (ullmax / ull) | (ullmax % ull));
4305
  ;
4306
  return 0;
4307
}
4308
 
4309
_ACEOF
4310
if ac_fn_c_try_link "$LINENO"; then :
4311
 
4312
else
4313
  ac_cv_type_unsigned_long_long_int=no
4314
fi
4315
rm -f core conftest.err conftest.$ac_objext \
4316
    conftest$ac_exeext conftest.$ac_ext
4317
     fi
4318
fi
4319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4320
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4321
  if test $ac_cv_type_unsigned_long_long_int = yes; then
4322
 
4323
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4324
 
4325
  fi
4326
 
4327
 
4328
 
4329
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4330
$as_echo_n "checking for long long int... " >&6; }
4331
if ${ac_cv_type_long_long_int+:} false; then :
4332
  $as_echo_n "(cached) " >&6
4333
else
4334
  ac_cv_type_long_long_int=yes
4335
      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4336
	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
4337
	if test $ac_cv_type_long_long_int = yes; then
4338
	  	  	  	  if test "$cross_compiling" = yes; then :
4339
  :
4340
else
4341
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342
/* end confdefs.h.  */
4343
#include <limits.h>
4344
		 #ifndef LLONG_MAX
4345
		 # define HALF \
4346
			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4347
		 # define LLONG_MAX (HALF - 1 + HALF)
4348
		 #endif
4349
int
4350
main ()
4351
{
4352
long long int n = 1;
4353
		 int i;
4354
		 for (i = 0; ; i++)
4355
		   {
4356
		     long long int m = n << i;
4357
		     if (m >> i != n)
4358
		       return 1;
4359
		     if (LLONG_MAX / 2 < m)
4360
		       break;
4361
		   }
4362
		 return 0;
4363
  ;
4364
  return 0;
4365
}
4366
_ACEOF
4367
if ac_fn_c_try_run "$LINENO"; then :
4368
 
4369
else
4370
  ac_cv_type_long_long_int=no
4371
fi
4372
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4373
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4374
fi
4375
 
4376
	fi
4377
      fi
4378
fi
4379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4380
$as_echo "$ac_cv_type_long_long_int" >&6; }
4381
  if test $ac_cv_type_long_long_int = yes; then
4382
 
4383
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4384
 
4385
  fi
4386
 
4387
  if test "$ac_cv_type_long_long_int" = no; then
4388
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4389
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4390
as_fn_error $? "Compiler does not support long long int
4391
See \`config.log' for more details" "$LINENO" 5; }
4392
  fi
4393
 
4394
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports trailing commas" >&5
4395
$as_echo_n "checking if the compiler supports trailing commas... " >&6; }
4396
  trailing_commas=no
4397
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398
/* end confdefs.h.  */
4399
 
4400
int
4401
main ()
4402
{
4403
 
4404
    enum {
4405
      one,
4406
    };
4407
  ;
4408
  return 0;
4409
}
4410
_ACEOF
4411
if ac_fn_c_try_compile "$LINENO"; then :
4412
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4413
$as_echo "yes" >&6; }; trailing_commas=yes
4414
else
4415
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416
$as_echo "no" >&6; }
4417
fi
4418
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419
  if test "$trailing_commas" = no; then
4420
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4422
as_fn_error $? "Compiler does not support trailing comma in enum
4423
See \`config.log' for more details" "$LINENO" 5; }
4424
  fi
4425
 
4426
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports C++ comments" >&5
4427
$as_echo_n "checking if the compiler supports C++ comments... " >&6; }
4428
  slash_comments=no
4429
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430
/* end confdefs.h.  */
4431
 
4432
int
4433
main ()
4434
{
4435
// C++ comments?
4436
  ;
4437
  return 0;
4438
}
4439
_ACEOF
4440
if ac_fn_c_try_compile "$LINENO"; then :
4441
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442
$as_echo "yes" >&6; }; slash_comments=yes
4443
else
4444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445
$as_echo "no" >&6; }
4446
fi
4447
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448
  if test "$slash_comments" = no; then
4449
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451
as_fn_error $? "Compiler does not support C++ comments
4452
See \`config.log' for more details" "$LINENO" 5; }
4453
  fi
4454
fi
4455
 
4456
 
4457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5
4458
$as_echo_n "checking --enable-fail-if-missing argument... " >&6; }
4459
# Check whether --enable-fail_if_missing was given.
4460
if test "${enable_fail_if_missing+set}" = set; then :
4461
  enableval=$enable_fail_if_missing; fail_if_missing="yes"
4462
else
4463
  fail_if_missing="no"
4464
fi
4465
 
4466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5
4467
$as_echo "$fail_if_missing" >&6; }
4468
 
4469
if test -z "$CFLAGS"; then
4470
  CFLAGS="-O"
4471
  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
4472
fi
4473
if test "$GCC" = yes; then
4474
    gccversion=`$CC -dumpversion`
4475
  if test "x$gccversion" = "x"; then
4476
        gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
4477
  fi
4478
    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
4479
    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
4480
    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
4481
  else
4482
    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
4483
      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
4484
      CFLAGS="$CFLAGS -fno-strength-reduce"
4485
    fi
4486
  fi
4487
fi
4488
 
4489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5
4490
$as_echo_n "checking for clang version... " >&6; }
4491
CLANG_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'`
4492
if test x"$CLANG_VERSION_STRING" != x"" ; then
4493
  CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'`
4494
  CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'`
4495
  CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'`
4496
  CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION`
4497
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5
4498
$as_echo "$CLANG_VERSION" >&6; }
4499
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5
4500
$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; }
4501
  if test "$CLANG_VERSION" -ge 500002075 ; then
4502
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503
$as_echo "no" >&6; }
4504
    CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
4505
  else
4506
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507
$as_echo "yes" >&6; }
4508
  fi
4509
else
4510
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5
4511
$as_echo "N/A" >&6; }
4512
fi
4513
 
4514
CROSS_COMPILING=
4515
if test "$cross_compiling" = yes; then
4516
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
4517
$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
4518
  CROSS_COMPILING=1
4519
fi
4520
 
4521
 
4522
test "$GCC" = yes && CPP_MM=M;
4523
 
4524
if test -f ./toolcheck; then
4525
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
4526
$as_echo "$as_me: checking for buggy tools..." >&6;}
4527
  sh ./toolcheck 1>&6
4528
fi
4529
 
4530
OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
4531
 
4532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
4533
$as_echo_n "checking for BeOS... " >&6; }
4534
case `uname` in
4535
    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
4536
		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537
$as_echo "yes" >&6; };;
4538
    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539
$as_echo "no" >&6; };;
4540
esac
4541
 
4542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
4543
$as_echo_n "checking for QNX... " >&6; }
4544
case `uname` in
4545
    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
4546
		test -z "$with_x" && with_x=no
4547
		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4548
$as_echo "yes" >&6; };;
4549
    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550
$as_echo "no" >&6; };;
4551
esac
4552
 
4553
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
4554
$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
4555
if test "`(uname) 2>/dev/null`" = Darwin; then
4556
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4557
$as_echo "yes" >&6; }
4558
  MACOS_X=yes
4559
  CPPFLAGS="$CPPFLAGS -DMACOS_X"
4560
 
4561
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
4562
$as_echo_n "checking --disable-darwin argument... " >&6; }
4563
  # Check whether --enable-darwin was given.
4564
if test "${enable_darwin+set}" = set; then :
4565
  enableval=$enable_darwin;
4566
else
4567
  enable_darwin="yes"
4568
fi
4569
 
4570
  if test "$enable_darwin" = "yes"; then
4571
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572
$as_echo "no" >&6; }
4573
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4574
$as_echo_n "checking if Darwin files are there... " >&6; }
4575
    if test -f os_macosx.m; then
4576
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4577
$as_echo "yes" >&6; }
4578
    else
4579
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4580
$as_echo "no, Darwin support disabled" >&6; }
4581
      enable_darwin=no
4582
    fi
4583
  else
4584
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4585
$as_echo "yes, Darwin support excluded" >&6; }
4586
  fi
4587
 
4588
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4589
$as_echo_n "checking --with-mac-arch argument... " >&6; }
4590
 
4591
# Check whether --with-mac-arch was given.
4592
if test "${with_mac_arch+set}" = set; then :
4593
  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4594
$as_echo "$MACARCH" >&6; }
4595
else
4596
  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4597
$as_echo "defaulting to $MACARCH" >&6; }
4598
fi
4599
 
4600
 
4601
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4602
$as_echo_n "checking --with-developer-dir argument... " >&6; }
4603
 
4604
# Check whether --with-developer-dir was given.
4605
if test "${with_developer_dir+set}" = set; then :
4606
  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4607
$as_echo "$DEVELOPER_DIR" >&6; }
4608
else
4609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4610
$as_echo "not present" >&6; }
4611
fi
4612
 
4613
 
4614
  if test "x$DEVELOPER_DIR" = "x"; then
4615
    # Extract the first word of "xcode-select", so it can be a program name with args.
4616
set dummy xcode-select; ac_word=$2
4617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618
$as_echo_n "checking for $ac_word... " >&6; }
4619
if ${ac_cv_path_XCODE_SELECT+:} false; then :
4620
  $as_echo_n "(cached) " >&6
4621
else
4622
  case $XCODE_SELECT in
4623
  [\\/]* | ?:[\\/]*)
4624
  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4625
  ;;
4626
  *)
4627
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628
for as_dir in $PATH
4629
do
4630
  IFS=$as_save_IFS
4631
  test -z "$as_dir" && as_dir=.
4632
    for ac_exec_ext in '' $ac_executable_extensions; do
4633
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634
    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4635
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636
    break 2
4637
  fi
4638
done
4639
  done
4640
IFS=$as_save_IFS
4641
 
4642
  ;;
4643
esac
4644
fi
4645
XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4646
if test -n "$XCODE_SELECT"; then
4647
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4648
$as_echo "$XCODE_SELECT" >&6; }
4649
else
4650
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651
$as_echo "no" >&6; }
4652
fi
4653
 
4654
 
4655
    if test "x$XCODE_SELECT" != "x"; then
4656
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4657
$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4658
      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4659
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4660
$as_echo "$DEVELOPER_DIR" >&6; }
4661
    else
4662
      DEVELOPER_DIR=/Developer
4663
    fi
4664
  fi
4665
 
4666
  if test "x$MACARCH" = "xboth"; then
4667
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4668
$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4669
                            save_cppflags="$CPPFLAGS"
4670
    save_cflags="$CFLAGS"
4671
    save_ldflags="$LDFLAGS"
4672
    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4673
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674
/* end confdefs.h.  */
4675
 
4676
int
4677
main ()
4678
{
4679
 
4680
  ;
4681
  return 0;
4682
}
4683
_ACEOF
4684
if ac_fn_c_try_link "$LINENO"; then :
4685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4686
$as_echo "found" >&6; }
4687
else
4688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4689
$as_echo "not found" >&6; }
4690
	CFLAGS="$save_cflags"
4691
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4692
$as_echo_n "checking if Intel architecture is supported... " >&6; }
4693
	CPPFLAGS="$CPPFLAGS -arch i386"
4694
	LDFLAGS="$save_ldflags -arch i386"
4695
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696
/* end confdefs.h.  */
4697
 
4698
int
4699
main ()
4700
{
4701
 
4702
  ;
4703
  return 0;
4704
}
4705
_ACEOF
4706
if ac_fn_c_try_link "$LINENO"; then :
4707
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4708
$as_echo "yes" >&6; }; MACARCH="intel"
4709
else
4710
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711
$as_echo "no" >&6; }
4712
		MACARCH="ppc"
4713
		CPPFLAGS="$save_cppflags -arch ppc"
4714
		LDFLAGS="$save_ldflags -arch ppc"
4715
fi
4716
rm -f core conftest.err conftest.$ac_objext \
4717
    conftest$ac_exeext conftest.$ac_ext
4718
fi
4719
rm -f core conftest.err conftest.$ac_objext \
4720
    conftest$ac_exeext conftest.$ac_ext
4721
  elif test "x$MACARCH" = "xintel"; then
4722
    CPPFLAGS="$CPPFLAGS -arch intel"
4723
    LDFLAGS="$LDFLAGS -arch intel"
4724
  elif test "x$MACARCH" = "xppc"; then
4725
    CPPFLAGS="$CPPFLAGS -arch ppc"
4726
    LDFLAGS="$LDFLAGS -arch ppc"
4727
  fi
4728
 
4729
  if test "$enable_darwin" = "yes"; then
4730
    MACOS_X_DARWIN=yes
4731
    OS_EXTRA_SRC="os_macosx.m os_mac_conv.c";
4732
    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4733
            CPPFLAGS="$CPPFLAGS -DMACOS_X_DARWIN"
4734
 
4735
                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4736
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4737
		  inttypes.h stdint.h unistd.h
4738
do :
4739
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4740
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4741
"
4742
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4743
  cat >>confdefs.h <<_ACEOF
4744
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4745
_ACEOF
4746
 
4747
fi
4748
 
4749
done
4750
 
4751
 
4752
ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4753
if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then :
4754
  CARBON=yes
4755
fi
4756
 
4757
 
4758
    if test "x$CARBON" = "xyes"; then
4759
      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
4760
	with_x=no
4761
      fi
4762
    fi
4763
  fi
4764
 
4765
        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4766
    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4767
  fi
4768
 
4769
else
4770
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771
$as_echo "no" >&6; }
4772
fi
4773
 
4774
for ac_header in AvailabilityMacros.h
4775
do :
4776
  ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default"
4777
if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then :
4778
  cat >>confdefs.h <<_ACEOF
4779
#define HAVE_AVAILABILITYMACROS_H 1
4780
_ACEOF
4781
 
4782
fi
4783
 
4784
done
4785
 
4786
 
4787
 
4788
 
4789
 
4790
if test "$cross_compiling" = no; then
4791
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4792
$as_echo_n "checking --with-local-dir argument... " >&6; }
4793
  have_local_include=''
4794
  have_local_lib=''
4795
 
4796
# Check whether --with-local-dir was given.
4797
if test "${with_local_dir+set}" = set; then :
4798
  withval=$with_local_dir;
4799
    local_dir="$withval"
4800
    case "$withval" in
4801
    */*) ;;
4802
    no)
4803
      # avoid adding local dir to LDFLAGS and CPPFLAGS
4804
      have_local_include=yes
4805
      have_local_lib=yes
4806
      ;;
4807
    *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4808
    esac
4809
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4810
$as_echo "$local_dir" >&6; }
4811
 
4812
else
4813
 
4814
    local_dir=/usr/local
4815
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4816
$as_echo "Defaulting to $local_dir" >&6; }
4817
 
4818
fi
4819
 
4820
  if test "$GCC" = yes -a "$local_dir" != no; then
4821
    echo 'void f(){}' > conftest.c
4822
        have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4823
    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4824
    rm -f conftest.c conftest.o
4825
  fi
4826
  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4827
    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4828
    if test "$tt" = "$LDFLAGS"; then
4829
      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4830
    fi
4831
  fi
4832
  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4833
    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4834
    if test "$tt" = "$CPPFLAGS"; then
4835
      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4836
    fi
4837
  fi
4838
fi
4839
 
4840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4841
$as_echo_n "checking --with-vim-name argument... " >&6; }
4842
 
4843
# Check whether --with-vim-name was given.
4844
if test "${with_vim_name+set}" = set; then :
4845
  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4846
$as_echo "$VIMNAME" >&6; }
4847
else
4848
  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4849
$as_echo "Defaulting to $VIMNAME" >&6; }
4850
fi
4851
 
4852
 
4853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4854
$as_echo_n "checking --with-ex-name argument... " >&6; }
4855
 
4856
# Check whether --with-ex-name was given.
4857
if test "${with_ex_name+set}" = set; then :
4858
  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4859
$as_echo "$EXNAME" >&6; }
4860
else
4861
  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4862
$as_echo "Defaulting to ex" >&6; }
4863
fi
4864
 
4865
 
4866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4867
$as_echo_n "checking --with-view-name argument... " >&6; }
4868
 
4869
# Check whether --with-view-name was given.
4870
if test "${with_view_name+set}" = set; then :
4871
  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4872
$as_echo "$VIEWNAME" >&6; }
4873
else
4874
  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4875
$as_echo "Defaulting to view" >&6; }
4876
fi
4877
 
4878
 
4879
 
4880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4881
$as_echo_n "checking --with-global-runtime argument... " >&6; }
4882
 
4883
# Check whether --with-global-runtime was given.
4884
if test "${with_global_runtime+set}" = set; then :
4885
  withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4886
$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4887
#define RUNTIME_GLOBAL "$withval"
4888
_ACEOF
4889
 
4890
else
4891
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892
$as_echo "no" >&6; }
4893
fi
4894
 
4895
 
4896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4897
$as_echo_n "checking --with-modified-by argument... " >&6; }
4898
 
4899
# Check whether --with-modified-by was given.
4900
if test "${with_modified_by+set}" = set; then :
4901
  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4902
$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4903
#define MODIFIED_BY "$withval"
4904
_ACEOF
4905
 
4906
else
4907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908
$as_echo "no" >&6; }
4909
fi
4910
 
4911
 
4912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4913
$as_echo_n "checking if character set is EBCDIC... " >&6; }
4914
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915
/* end confdefs.h.  */
4916
 
4917
int
4918
main ()
4919
{
4920
 /* TryCompile function for CharSet.
4921
   Treat any failure as ASCII for compatibility with existing art.
4922
   Use compile-time rather than run-time tests for cross-compiler
4923
   tolerance.  */
4924
#if '0'!=240
4925
make an error "Character set is not EBCDIC"
4926
#endif
4927
  ;
4928
  return 0;
4929
}
4930
_ACEOF
4931
if ac_fn_c_try_compile "$LINENO"; then :
4932
   # TryCompile action if true
4933
cf_cv_ebcdic=yes
4934
else
4935
   # TryCompile action if false
4936
cf_cv_ebcdic=no
4937
fi
4938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939
# end of TryCompile ])
4940
# end of CacheVal CvEbcdic
4941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4942
$as_echo "$cf_cv_ebcdic" >&6; }
4943
case "$cf_cv_ebcdic" in  #(vi
4944
    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4945
 
4946
		line_break='"\\n"'
4947
		;;
4948
    *)		line_break='"\\012"';;
4949
esac
4950
 
4951
 
4952
if test "$cf_cv_ebcdic" = "yes"; then
4953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4954
$as_echo_n "checking for z/OS Unix... " >&6; }
4955
case `uname` in
4956
    OS/390)	zOSUnix="yes";
4957
										if test "$CC" = "cc"; then
4958
		  ccm="$_CC_CCMODE"
4959
		  ccn="CC"
4960
		else
4961
		  if test "$CC" = "c89"; then
4962
		    ccm="$_CC_C89MODE"
4963
		    ccn="C89"
4964
		  else
4965
		    ccm=1
4966
		  fi
4967
		fi
4968
		if test "$ccm" != "1"; then
4969
		  echo ""
4970
		  echo "------------------------------------------"
4971
		  echo " On z/OS Unix, the environment variable"
4972
		  echo " _CC_${ccn}MODE must be set to \"1\"!"
4973
		  echo " Do:"
4974
		  echo "    export _CC_${ccn}MODE=1"
4975
		  echo " and then call configure again."
4976
		  echo "------------------------------------------"
4977
		  exit 1
4978
		fi
4979
		# Set CFLAGS for configure process.
4980
		# This will be reset later for config.mk.
4981
		# Use haltonmsg to force error for missing H files.
4982
		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
4983
		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4984
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4985
$as_echo "yes" >&6; }
4986
		;;
4987
    *)		zOSUnix="no";
4988
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989
$as_echo "no" >&6; }
4990
		;;
4991
esac
4992
fi
4993
 
4994
if test "$zOSUnix" = "yes"; then
4995
    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
4996
else
4997
    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
4998
fi
4999
 
5000
 
5001
 
5002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
5003
$as_echo_n "checking --disable-smack argument... " >&6; }
5004
# Check whether --enable-smack was given.
5005
if test "${enable_smack+set}" = set; then :
5006
  enableval=$enable_smack;
5007
else
5008
  enable_smack="yes"
5009
fi
5010
 
5011
if test "$enable_smack" = "yes"; then
5012
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013
$as_echo "no" >&6; }
5014
  ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
5015
if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
5016
  true
5017
else
5018
  enable_smack="no"
5019
fi
5020
 
5021
 
5022
else
5023
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5024
$as_echo "yes" >&6; }
5025
fi
5026
if test "$enable_smack" = "yes"; then
5027
  ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
5028
if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
5029
  true
5030
else
5031
  enable_smack="no"
5032
fi
5033
 
5034
 
5035
fi
5036
if test "$enable_smack" = "yes"; then
5037
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5
5038
$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; }
5039
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040
/* end confdefs.h.  */
5041
#include <linux/xattr.h>
5042
_ACEOF
5043
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5044
  $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then :
5045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5046
$as_echo "yes" >&6; }
5047
else
5048
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049
$as_echo "no" >&6; }; enable_smack="no"
5050
fi
5051
rm -f conftest*
5052
 
5053
fi
5054
if test "$enable_smack" = "yes"; then
5055
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
5056
$as_echo_n "checking for setxattr in -lattr... " >&6; }
5057
if ${ac_cv_lib_attr_setxattr+:} false; then :
5058
  $as_echo_n "(cached) " >&6
5059
else
5060
  ac_check_lib_save_LIBS=$LIBS
5061
LIBS="-lattr  $LIBS"
5062
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063
/* end confdefs.h.  */
5064
 
5065
/* Override any GCC internal prototype to avoid an error.
5066
   Use char because int might match the return type of a GCC
5067
   builtin and then its argument prototype would still apply.  */
5068
#ifdef __cplusplus
5069
extern "C"
5070
#endif
5071
char setxattr ();
5072
int
5073
main ()
5074
{
5075
return setxattr ();
5076
  ;
5077
  return 0;
5078
}
5079
_ACEOF
5080
if ac_fn_c_try_link "$LINENO"; then :
5081
  ac_cv_lib_attr_setxattr=yes
5082
else
5083
  ac_cv_lib_attr_setxattr=no
5084
fi
5085
rm -f core conftest.err conftest.$ac_objext \
5086
    conftest$ac_exeext conftest.$ac_ext
5087
LIBS=$ac_check_lib_save_LIBS
5088
fi
5089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
5090
$as_echo "$ac_cv_lib_attr_setxattr" >&6; }
5091
if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
5092
  LIBS="$LIBS -lattr"
5093
	   found_smack="yes"
5094
	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
5095
 
5096
fi
5097
 
5098
fi
5099
 
5100
if test "x$found_smack" = "x"; then
5101
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
5102
$as_echo_n "checking --disable-selinux argument... " >&6; }
5103
  # Check whether --enable-selinux was given.
5104
if test "${enable_selinux+set}" = set; then :
5105
  enableval=$enable_selinux;
5106
else
5107
  enable_selinux="yes"
5108
fi
5109
 
5110
  if test "$enable_selinux" = "yes"; then
5111
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112
$as_echo "no" >&6; }
5113
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
5114
$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
5115
if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
5116
  $as_echo_n "(cached) " >&6
5117
else
5118
  ac_check_lib_save_LIBS=$LIBS
5119
LIBS="-lselinux  $LIBS"
5120
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121
/* end confdefs.h.  */
5122
 
5123
/* Override any GCC internal prototype to avoid an error.
5124
   Use char because int might match the return type of a GCC
5125
   builtin and then its argument prototype would still apply.  */
5126
#ifdef __cplusplus
5127
extern "C"
5128
#endif
5129
char is_selinux_enabled ();
5130
int
5131
main ()
5132
{
5133
return is_selinux_enabled ();
5134
  ;
5135
  return 0;
5136
}
5137
_ACEOF
5138
if ac_fn_c_try_link "$LINENO"; then :
5139
  ac_cv_lib_selinux_is_selinux_enabled=yes
5140
else
5141
  ac_cv_lib_selinux_is_selinux_enabled=no
5142
fi
5143
rm -f core conftest.err conftest.$ac_objext \
5144
    conftest$ac_exeext conftest.$ac_ext
5145
LIBS=$ac_check_lib_save_LIBS
5146
fi
5147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
5148
$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
5149
if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
5150
  ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
5151
if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
5152
  LIBS="$LIBS -lselinux"
5153
	    $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5154
 
5155
fi
5156
 
5157
 
5158
fi
5159
 
5160
  else
5161
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5162
$as_echo "yes" >&6; }
5163
  fi
5164
fi
5165
 
5166
 
5167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
5168
$as_echo_n "checking --with-features argument... " >&6; }
5169
 
5170
# Check whether --with-features was given.
5171
if test "${with_features+set}" = set; then :
5172
  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
5173
$as_echo "$features" >&6; }
5174
else
5175
  features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5
5176
$as_echo "Defaulting to huge" >&6; }
5177
fi
5178
 
5179
 
5180
dovimdiff=""
5181
dogvimdiff=""
5182
case "$features" in
5183
  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
5184
 ;;
5185
  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
5186
 ;;
5187
  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
5188
 dovimdiff="installvimdiff";
5189
			dogvimdiff="installgvimdiff" ;;
5190
  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
5191
 dovimdiff="installvimdiff";
5192
			dogvimdiff="installgvimdiff" ;;
5193
  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
5194
 dovimdiff="installvimdiff";
5195
			dogvimdiff="installgvimdiff" ;;
5196
  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
5197
$as_echo "Sorry, $features is not supported" >&6; } ;;
5198
esac
5199
 
5200
 
5201
 
5202
 
5203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
5204
$as_echo_n "checking --with-compiledby argument... " >&6; }
5205
 
5206
# Check whether --with-compiledby was given.
5207
if test "${with_compiledby+set}" = set; then :
5208
  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5209
$as_echo "$withval" >&6; }
5210
else
5211
  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212
$as_echo "no" >&6; }
5213
fi
5214
 
5215
 
5216
 
5217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
5218
$as_echo_n "checking --disable-xsmp argument... " >&6; }
5219
# Check whether --enable-xsmp was given.
5220
if test "${enable_xsmp+set}" = set; then :
5221
  enableval=$enable_xsmp;
5222
else
5223
  enable_xsmp="yes"
5224
fi
5225
 
5226
 
5227
if test "$enable_xsmp" = "yes"; then
5228
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229
$as_echo "no" >&6; }
5230
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
5231
$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
5232
  # Check whether --enable-xsmp-interact was given.
5233
if test "${enable_xsmp_interact+set}" = set; then :
5234
  enableval=$enable_xsmp_interact;
5235
else
5236
  enable_xsmp_interact="yes"
5237
fi
5238
 
5239
  if test "$enable_xsmp_interact" = "yes"; then
5240
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241
$as_echo "no" >&6; }
5242
    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
5243
 
5244
  else
5245
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5246
$as_echo "yes" >&6; }
5247
  fi
5248
else
5249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5250
$as_echo "yes" >&6; }
5251
fi
5252
 
5253
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5
5254
$as_echo_n "checking --enable-luainterp argument... " >&6; }
5255
# Check whether --enable-luainterp was given.
5256
if test "${enable_luainterp+set}" = set; then :
5257
  enableval=$enable_luainterp;
5258
else
5259
  enable_luainterp="no"
5260
fi
5261
 
5262
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5
5263
$as_echo "$enable_luainterp" >&6; }
5264
 
5265
if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
5266
  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
5267
    as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5
5268
  fi
5269
 
5270
 
5271
 
5272
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5
5273
$as_echo_n "checking --with-lua-prefix argument... " >&6; }
5274
 
5275
# Check whether --with-lua_prefix was given.
5276
if test "${with_lua_prefix+set}" = set; then :
5277
  withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5
5278
$as_echo "$with_lua_prefix" >&6; }
5279
else
5280
  with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281
$as_echo "no" >&6; }
5282
fi
5283
 
5284
 
5285
  if test "X$with_lua_prefix" != "X"; then
5286
       vi_cv_path_lua_pfx="$with_lua_prefix"
5287
  else
5288
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5
5289
$as_echo_n "checking LUA_PREFIX environment var... " >&6; }
5290
    if test "X$LUA_PREFIX" != "X"; then
5291
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5
5292
$as_echo "\"$LUA_PREFIX\"" >&6; }
5293
	vi_cv_path_lua_pfx="$LUA_PREFIX"
5294
    else
5295
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5
5296
$as_echo "not set, default to /usr" >&6; }
5297
	vi_cv_path_lua_pfx="/usr"
5298
    fi
5299
  fi
5300
 
5301
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5
5302
$as_echo_n "checking --with-luajit... " >&6; }
5303
 
5304
# Check whether --with-luajit was given.
5305
if test "${with_luajit+set}" = set; then :
5306
  withval=$with_luajit; vi_cv_with_luajit="$withval"
5307
else
5308
  vi_cv_with_luajit="no"
5309
fi
5310
 
5311
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5
5312
$as_echo "$vi_cv_with_luajit" >&6; }
5313
 
5314
  LUA_INC=
5315
  if test "X$vi_cv_path_lua_pfx" != "X"; then
5316
    if test "x$vi_cv_with_luajit" != "xno"; then
5317
            # Extract the first word of "luajit", so it can be a program name with args.
5318
set dummy luajit; ac_word=$2
5319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320
$as_echo_n "checking for $ac_word... " >&6; }
5321
if ${ac_cv_path_vi_cv_path_luajit+:} false; then :
5322
  $as_echo_n "(cached) " >&6
5323
else
5324
  case $vi_cv_path_luajit in
5325
  [\\/]* | ?:[\\/]*)
5326
  ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path.
5327
  ;;
5328
  *)
5329
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330
for as_dir in $PATH
5331
do
5332
  IFS=$as_save_IFS
5333
  test -z "$as_dir" && as_dir=.
5334
    for ac_exec_ext in '' $ac_executable_extensions; do
5335
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336
    ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext"
5337
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338
    break 2
5339
  fi
5340
done
5341
  done
5342
IFS=$as_save_IFS
5343
 
5344
  ;;
5345
esac
5346
fi
5347
vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit
5348
if test -n "$vi_cv_path_luajit"; then
5349
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5
5350
$as_echo "$vi_cv_path_luajit" >&6; }
5351
else
5352
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353
$as_echo "no" >&6; }
5354
fi
5355
 
5356
 
5357
      if test "X$vi_cv_path_luajit" != "X"; then
5358
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5
5359
$as_echo_n "checking LuaJIT version... " >&6; }
5360
if ${vi_cv_version_luajit+:} false; then :
5361
  $as_echo_n "(cached) " >&6
5362
else
5363
   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
5364
fi
5365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
5366
$as_echo "$vi_cv_version_luajit" >&6; }
5367
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5
5368
$as_echo_n "checking Lua version of LuaJIT... " >&6; }
5369
if ${vi_cv_version_lua_luajit+:} false; then :
5370
  $as_echo_n "(cached) " >&6
5371
else
5372
   vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'`
5373
fi
5374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5
5375
$as_echo "$vi_cv_version_lua_luajit" >&6; }
5376
	vi_cv_path_lua="$vi_cv_path_luajit"
5377
	vi_cv_version_lua="$vi_cv_version_lua_luajit"
5378
      fi
5379
    else
5380
            # Extract the first word of "lua", so it can be a program name with args.
5381
set dummy lua; ac_word=$2
5382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383
$as_echo_n "checking for $ac_word... " >&6; }
5384
if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then :
5385
  $as_echo_n "(cached) " >&6
5386
else
5387
  case $vi_cv_path_plain_lua in
5388
  [\\/]* | ?:[\\/]*)
5389
  ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path.
5390
  ;;
5391
  *)
5392
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393
for as_dir in $PATH
5394
do
5395
  IFS=$as_save_IFS
5396
  test -z "$as_dir" && as_dir=.
5397
    for ac_exec_ext in '' $ac_executable_extensions; do
5398
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399
    ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext"
5400
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401
    break 2
5402
  fi
5403
done
5404
  done
5405
IFS=$as_save_IFS
5406
 
5407
  ;;
5408
esac
5409
fi
5410
vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua
5411
if test -n "$vi_cv_path_plain_lua"; then
5412
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5
5413
$as_echo "$vi_cv_path_plain_lua" >&6; }
5414
else
5415
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416
$as_echo "no" >&6; }
5417
fi
5418
 
5419
 
5420
      if test "X$vi_cv_path_plain_lua" != "X"; then
5421
		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
5422
$as_echo_n "checking Lua version... " >&6; }
5423
if ${vi_cv_version_plain_lua+:} false; then :
5424
  $as_echo_n "(cached) " >&6
5425
else
5426
   vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'`
5427
fi
5428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5
5429
$as_echo "$vi_cv_version_plain_lua" >&6; }
5430
      fi
5431
      vi_cv_path_lua="$vi_cv_path_plain_lua"
5432
      vi_cv_version_lua="$vi_cv_version_plain_lua"
5433
    fi
5434
    if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then
5435
      { $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
5436
$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; }
5437
      if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then
5438
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5439
$as_echo "yes" >&6; }
5440
	LUA_INC=/luajit-$vi_cv_version_luajit
5441
      fi
5442
    fi
5443
    if test "X$LUA_INC" = "X"; then
5444
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
5445
$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
5446
      if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then
5447
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448
$as_echo "yes" >&6; }
5449
      else
5450
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451
$as_echo "no" >&6; }
5452
	{ $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
5453
$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
5454
	if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
5455
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5456
$as_echo "yes" >&6; }
5457
	  LUA_INC=/lua$vi_cv_version_lua
5458
	else
5459
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460
$as_echo "no" >&6; }
5461
	  vi_cv_path_lua_pfx=
5462
	fi
5463
      fi
5464
    fi
5465
  fi
5466
 
5467
  if test "X$vi_cv_path_lua_pfx" != "X"; then
5468
    if test "x$vi_cv_with_luajit" != "xno"; then
5469
      multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5470
      if test "X$multiarch" != "X"; then
5471
	lib_multiarch="lib/${multiarch}"
5472
      else
5473
	lib_multiarch="lib"
5474
      fi
5475
      if test "X$vi_cv_version_lua" = "X"; then
5476
	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit"
5477
      else
5478
	LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua"
5479
      fi
5480
    else
5481
      if test "X$LUA_INC" != "X"; then
5482
		LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
5483
      else
5484
	LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
5485
      fi
5486
    fi
5487
    if test "$enable_luainterp" = "dynamic"; then
5488
      lua_ok="yes"
5489
    else
5490
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5
5491
$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; }
5492
      libs_save=$LIBS
5493
      LIBS="$LIBS $LUA_LIBS"
5494
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495
/* end confdefs.h.  */
5496
 
5497
int
5498
main ()
5499
{
5500
 
5501
  ;
5502
  return 0;
5503
}
5504
_ACEOF
5505
if ac_fn_c_try_link "$LINENO"; then :
5506
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5507
$as_echo "yes" >&6; }; lua_ok="yes"
5508
else
5509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510
$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS=""
5511
fi
5512
rm -f core conftest.err conftest.$ac_objext \
5513
    conftest$ac_exeext conftest.$ac_ext
5514
      LIBS=$libs_save
5515
    fi
5516
    if test "x$lua_ok" = "xyes"; then
5517
      LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
5518
      LUA_SRC="if_lua.c"
5519
      LUA_OBJ="objects/if_lua.o"
5520
      LUA_PRO="if_lua.pro"
5521
      $as_echo "#define FEAT_LUA 1" >>confdefs.h
5522
 
5523
    fi
5524
    if test "$enable_luainterp" = "dynamic"; then
5525
      if test "x$vi_cv_with_luajit" != "xno"; then
5526
	luajit="jit"
5527
      fi
5528
      if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
5529
	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
5530
      else
5531
	if test "x$MACOS_X" = "xyes"; then
5532
	  ext="dylib"
5533
	  indexes=""
5534
	else
5535
	  ext="so"
5536
	  indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9"
5537
	  multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
5538
	  if test "X$multiarch" != "X"; then
5539
	    lib_multiarch="lib/${multiarch}"
5540
	  fi
5541
	fi
5542
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5
5543
$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; }
5544
	for subdir in "${lib_multiarch}" lib64 lib; do
5545
	  if test -z "$subdir"; then
5546
	    continue
5547
	  fi
5548
	  for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \
5549
	    ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do
5550
	    for i in $indexes ""; do
5551
	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then
5552
		sover2="$i"
5553
		break 3
5554
	      fi
5555
	    done
5556
	  done
5557
	  sover=""
5558
	done
5559
	if test "X$sover" = "X"; then
5560
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561
$as_echo "no" >&6; }
5562
	  lua_ok="no"
5563
	  vi_cv_dll_name_lua="liblua${luajit}.${ext}"
5564
	else
5565
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5566
$as_echo "yes" >&6; }
5567
	  lua_ok="yes"
5568
	  vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2"
5569
	fi
5570
      fi
5571
      $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
5572
 
5573
      LUA_LIBS=""
5574
      LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS"
5575
    fi
5576
    if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \
5577
       test "x$MACOS_X" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \
5578
       test "`(uname -m) 2>/dev/null`" = "x86_64"; then
5579
            LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS"
5580
    fi
5581
  fi
5582
  if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then
5583
    as_fn_error $? "could not configure lua" "$LINENO" 5
5584
  fi
5585
 
5586
 
5587
 
5588
 
5589
 
5590
fi
5591
 
5592
 
5593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
5594
$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
5595
# Check whether --enable-mzschemeinterp was given.
5596
if test "${enable_mzschemeinterp+set}" = set; then :
5597
  enableval=$enable_mzschemeinterp;
5598
else
5599
  enable_mzschemeinterp="no"
5600
fi
5601
 
5602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
5603
$as_echo "$enable_mzschemeinterp" >&6; }
5604
 
5605
if test "$enable_mzschemeinterp" = "yes"; then
5606
 
5607
 
5608
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
5609
$as_echo_n "checking --with-plthome argument... " >&6; }
5610
 
5611
# Check whether --with-plthome was given.
5612
if test "${with_plthome+set}" = set; then :
5613
  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
5614
$as_echo "$with_plthome" >&6; }
5615
else
5616
  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5617
$as_echo "\"no\"" >&6; }
5618
fi
5619
 
5620
 
5621
  if test "X$with_plthome" != "X"; then
5622
       vi_cv_path_mzscheme_pfx="$with_plthome"
5623
       vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5624
  else
5625
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
5626
$as_echo_n "checking PLTHOME environment var... " >&6; }
5627
    if test "X$PLTHOME" != "X"; then
5628
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
5629
$as_echo "\"$PLTHOME\"" >&6; }
5630
	vi_cv_path_mzscheme_pfx="$PLTHOME"
5631
	vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme"
5632
    else
5633
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
5634
$as_echo "not set" >&6; }
5635
		# Extract the first word of "mzscheme", so it can be a program name with args.
5636
set dummy mzscheme; ac_word=$2
5637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638
$as_echo_n "checking for $ac_word... " >&6; }
5639
if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then :
5640
  $as_echo_n "(cached) " >&6
5641
else
5642
  case $vi_cv_path_mzscheme in
5643
  [\\/]* | ?:[\\/]*)
5644
  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
5645
  ;;
5646
  *)
5647
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648
for as_dir in $PATH
5649
do
5650
  IFS=$as_save_IFS
5651
  test -z "$as_dir" && as_dir=.
5652
    for ac_exec_ext in '' $ac_executable_extensions; do
5653
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654
    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
5655
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656
    break 2
5657
  fi
5658
done
5659
  done
5660
IFS=$as_save_IFS
5661
 
5662
  ;;
5663
esac
5664
fi
5665
vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
5666
if test -n "$vi_cv_path_mzscheme"; then
5667
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
5668
$as_echo "$vi_cv_path_mzscheme" >&6; }
5669
else
5670
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671
$as_echo "no" >&6; }
5672
fi
5673
 
5674
 
5675
 
5676
			if test "X$vi_cv_path_mzscheme" != "X"; then
5677
	  lsout=`ls -l $vi_cv_path_mzscheme`
5678
	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
5679
	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
5680
	  fi
5681
	fi
5682
 
5683
	if test "X$vi_cv_path_mzscheme" != "X"; then
5684
	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
5685
$as_echo_n "checking MzScheme install prefix... " >&6; }
5686
if ${vi_cv_path_mzscheme_pfx+:} false; then :
5687
  $as_echo_n "(cached) " >&6
5688
else
5689
  	    	    echo "(display (simplify-path		\
5690
	       (build-path (call-with-values	\
5691
		(lambda () (split-path (find-system-path (quote exec-file)))) \
5692
		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
5693
	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
5694
		sed -e 's+/$++'`
5695
fi
5696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
5697
$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
5698
	    rm -f mzdirs.scm
5699
	fi
5700
    fi
5701
  fi
5702
 
5703
  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5704
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5
5705
$as_echo_n "checking for racket include directory... " >&6; }
5706
    SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'`
5707
    if test "X$SCHEME_INC" != "X"; then
5708
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5
5709
$as_echo "${SCHEME_INC}" >&6; }
5710
    else
5711
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5712
$as_echo "not found" >&6; }
5713
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
5714
$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
5715
      if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then
5716
	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
5717
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5718
$as_echo "yes" >&6; }
5719
      else
5720
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721
$as_echo "no" >&6; }
5722
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
5723
$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
5724
	if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then
5725
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5726
$as_echo "yes" >&6; }
5727
	  SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
5728
	else
5729
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730
$as_echo "no" >&6; }
5731
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5
5732
$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; }
5733
	  if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then
5734
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735
$as_echo "yes" >&6; }
5736
	    SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket
5737
	  else
5738
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739
$as_echo "no" >&6; }
5740
	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
5741
$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
5742
	    if test -f /usr/include/plt/scheme.h; then
5743
	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5744
$as_echo "yes" >&6; }
5745
	      SCHEME_INC=/usr/include/plt
5746
	    else
5747
	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748
$as_echo "no" >&6; }
5749
	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5
5750
$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; }
5751
	      if test -f /usr/include/racket/scheme.h; then
5752
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5753
$as_echo "yes" >&6; }
5754
		SCHEME_INC=/usr/include/racket
5755
	      else
5756
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757
$as_echo "no" >&6; }
5758
		vi_cv_path_mzscheme_pfx=
5759
	      fi
5760
	    fi
5761
	  fi
5762
	fi
5763
      fi
5764
    fi
5765
  fi
5766
 
5767
  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
5768
 
5769
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5
5770
$as_echo_n "checking for racket lib directory... " >&6; }
5771
    SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'`
5772
    if test "X$SCHEME_LIB" != "X"; then
5773
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5
5774
$as_echo "${SCHEME_LIB}" >&6; }
5775
    else
5776
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5777
$as_echo "not found" >&6; }
5778
    fi
5779
 
5780
    for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do
5781
      if test "X$path" != "X"; then
5782
	if test "x$MACOS_X" = "xyes"; then
5783
	  MZSCHEME_LIBS="-framework Racket"
5784
	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5785
	elif test -f "${path}/libmzscheme3m.a"; then
5786
	  MZSCHEME_LIBS="${path}/libmzscheme3m.a"
5787
	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5788
	elif test -f "${path}/libracket3m.a"; then
5789
	  MZSCHEME_LIBS="${path}/libracket3m.a"
5790
	  MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5791
	elif test -f "${path}/libracket.a"; then
5792
	  MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a"
5793
	elif test -f "${path}/libmzscheme.a"; then
5794
	  MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a"
5795
	else
5796
	  	  if test -f "${path}/libmzscheme3m.so"; then
5797
	    MZSCHEME_LIBS="-L${path} -lmzscheme3m"
5798
	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5799
	  elif test -f "${path}/libracket3m.so"; then
5800
	    MZSCHEME_LIBS="-L${path} -lracket3m"
5801
	    MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
5802
	  elif test -f "${path}/libracket.so"; then
5803
	    MZSCHEME_LIBS="-L${path} -lracket -lmzgc"
5804
	  else
5805
	    	    if test "$path" != "$SCHEME_LIB"; then
5806
	      continue
5807
	    fi
5808
	    MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc"
5809
	  fi
5810
	  if test "$GCC" = yes; then
5811
	    	    	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}"
5812
	  elif test "`(uname) 2>/dev/null`" = SunOS &&
5813
				   uname -r | grep '^5' >/dev/null; then
5814
	    MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}"
5815
	  fi
5816
	fi
5817
      fi
5818
      if test "X$MZSCHEME_LIBS" != "X"; then
5819
	break
5820
      fi
5821
    done
5822
 
5823
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5
5824
$as_echo_n "checking if racket requires -pthread... " >&6; }
5825
    if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then
5826
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5827
$as_echo "yes" >&6; }
5828
      MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread"
5829
      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread"
5830
    else
5831
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832
$as_echo "no" >&6; }
5833
    fi
5834
 
5835
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5
5836
$as_echo_n "checking for racket config directory... " >&6; }
5837
    SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'`
5838
    if test "X$SCHEME_CONFIGDIR" != "X"; then
5839
      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'"
5840
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5
5841
$as_echo "${SCHEME_CONFIGDIR}" >&6; }
5842
    else
5843
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5844
$as_echo "not found" >&6; }
5845
    fi
5846
 
5847
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5
5848
$as_echo_n "checking for racket collects directory... " >&6; }
5849
    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))))'`
5850
    if test "X$SCHEME_COLLECTS" = "X"; then
5851
      if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then
5852
	SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/
5853
      else
5854
	if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then
5855
	  SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/
5856
	else
5857
	  if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then
5858
	    SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/
5859
	  else
5860
	    if test -d "$vi_cv_path_mzscheme_pfx/collects"; then
5861
	      SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/
5862
	    fi
5863
	  fi
5864
	fi
5865
      fi
5866
    fi
5867
    if test "X$SCHEME_COLLECTS" != "X" ; then
5868
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5
5869
$as_echo "${SCHEME_COLLECTS}" >&6; }
5870
    else
5871
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5872
$as_echo "not found" >&6; }
5873
    fi
5874
 
5875
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5
5876
$as_echo_n "checking for mzscheme_base.c... " >&6; }
5877
    if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5878
      MZSCHEME_EXTRA="mzscheme_base.c"
5879
      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5880
      MZSCHEME_MOD="++lib scheme/base"
5881
    else
5882
      if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then
5883
	MZSCHEME_EXTRA="mzscheme_base.c"
5884
	MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5885
	MZSCHEME_MOD="++lib scheme/base"
5886
      else
5887
	if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then
5888
	  MZSCHEME_EXTRA="mzscheme_base.c"
5889
	  MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool"
5890
	  MZSCHEME_MOD=""
5891
	fi
5892
      fi
5893
    fi
5894
    if test "X$MZSCHEME_EXTRA" != "X" ; then
5895
            MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5896
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5
5897
$as_echo "needed" >&6; }
5898
    else
5899
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5900
$as_echo "not needed" >&6; }
5901
    fi
5902
 
5903
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5
5904
$as_echo_n "checking for ffi_type_void in -lffi... " >&6; }
5905
if ${ac_cv_lib_ffi_ffi_type_void+:} false; then :
5906
  $as_echo_n "(cached) " >&6
5907
else
5908
  ac_check_lib_save_LIBS=$LIBS
5909
LIBS="-lffi  $LIBS"
5910
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911
/* end confdefs.h.  */
5912
 
5913
/* Override any GCC internal prototype to avoid an error.
5914
   Use char because int might match the return type of a GCC
5915
   builtin and then its argument prototype would still apply.  */
5916
#ifdef __cplusplus
5917
extern "C"
5918
#endif
5919
char ffi_type_void ();
5920
int
5921
main ()
5922
{
5923
return ffi_type_void ();
5924
  ;
5925
  return 0;
5926
}
5927
_ACEOF
5928
if ac_fn_c_try_link "$LINENO"; then :
5929
  ac_cv_lib_ffi_ffi_type_void=yes
5930
else
5931
  ac_cv_lib_ffi_ffi_type_void=no
5932
fi
5933
rm -f core conftest.err conftest.$ac_objext \
5934
    conftest$ac_exeext conftest.$ac_ext
5935
LIBS=$ac_check_lib_save_LIBS
5936
fi
5937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5
5938
$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; }
5939
if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then :
5940
  MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi"
5941
fi
5942
 
5943
 
5944
    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5945
      -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'"
5946
 
5947
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5
5948
$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; }
5949
    cflags_save=$CFLAGS
5950
    libs_save=$LIBS
5951
    CFLAGS="$CFLAGS $MZSCHEME_CFLAGS"
5952
    LIBS="$LIBS $MZSCHEME_LIBS"
5953
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954
/* end confdefs.h.  */
5955
 
5956
int
5957
main ()
5958
{
5959
 
5960
  ;
5961
  return 0;
5962
}
5963
_ACEOF
5964
if ac_fn_c_try_link "$LINENO"; then :
5965
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5966
$as_echo "yes" >&6; }; mzs_ok=yes
5967
else
5968
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5
5969
$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no
5970
fi
5971
rm -f core conftest.err conftest.$ac_objext \
5972
    conftest$ac_exeext conftest.$ac_ext
5973
    CFLAGS=$cflags_save
5974
    LIBS=$libs_save
5975
    if test $mzs_ok = yes; then
5976
      MZSCHEME_SRC="if_mzsch.c"
5977
      MZSCHEME_OBJ="objects/if_mzsch.o"
5978
      MZSCHEME_PRO="if_mzsch.pro"
5979
      $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
5980
 
5981
    else
5982
      MZSCHEME_CFLAGS=
5983
      MZSCHEME_LIBS=
5984
      MZSCHEME_EXTRA=
5985
      MZSCHEME_MZC=
5986
    fi
5987
  fi
5988
 
5989
 
5990
 
5991
 
5992
 
5993
 
5994
 
5995
fi
5996
 
5997
 
5998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
5999
$as_echo_n "checking --enable-perlinterp argument... " >&6; }
6000
# Check whether --enable-perlinterp was given.
6001
if test "${enable_perlinterp+set}" = set; then :
6002
  enableval=$enable_perlinterp;
6003
else
6004
  enable_perlinterp="no"
6005
fi
6006
 
6007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
6008
$as_echo "$enable_perlinterp" >&6; }
6009
if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
6010
  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6011
    as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5
6012
  fi
6013
 
6014
  # Extract the first word of "perl", so it can be a program name with args.
6015
set dummy perl; ac_word=$2
6016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017
$as_echo_n "checking for $ac_word... " >&6; }
6018
if ${ac_cv_path_vi_cv_path_perl+:} false; then :
6019
  $as_echo_n "(cached) " >&6
6020
else
6021
  case $vi_cv_path_perl in
6022
  [\\/]* | ?:[\\/]*)
6023
  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
6024
  ;;
6025
  *)
6026
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027
for as_dir in $PATH
6028
do
6029
  IFS=$as_save_IFS
6030
  test -z "$as_dir" && as_dir=.
6031
    for ac_exec_ext in '' $ac_executable_extensions; do
6032
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033
    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
6034
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035
    break 2
6036
  fi
6037
done
6038
  done
6039
IFS=$as_save_IFS
6040
 
6041
  ;;
6042
esac
6043
fi
6044
vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
6045
if test -n "$vi_cv_path_perl"; then
6046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
6047
$as_echo "$vi_cv_path_perl" >&6; }
6048
else
6049
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050
$as_echo "no" >&6; }
6051
fi
6052
 
6053
 
6054
  if test "X$vi_cv_path_perl" != "X"; then
6055
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
6056
$as_echo_n "checking Perl version... " >&6; }
6057
    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
6058
     eval `$vi_cv_path_perl -V:usethreads`
6059
     eval `$vi_cv_path_perl -V:libperl`
6060
     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
6061
       badthreads=no
6062
     else
6063
       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
6064
	 eval `$vi_cv_path_perl -V:use5005threads`
6065
	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
6066
	   badthreads=no
6067
	 else
6068
	   badthreads=yes
6069
	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
6070
$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
6071
	 fi
6072
       else
6073
	 badthreads=yes
6074
	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
6075
$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
6076
       fi
6077
     fi
6078
     if test $badthreads = no; then
6079
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
6080
$as_echo "OK" >&6; }
6081
      eval `$vi_cv_path_perl -V:shrpenv`
6082
      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
6083
	shrpenv=""
6084
      fi
6085
      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
6086
 
6087
      vi_cv_perl_extutils=unknown_perl_extutils_path
6088
      for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do
6089
	xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp"
6090
	if test -f "$xsubpp_path"; then
6091
	  vi_cv_perl_xsubpp="$xsubpp_path"
6092
	fi
6093
      done
6094
 
6095
                              perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
6096
		-e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \
6097
		-e 's/-fdebug-prefix-map[^ ]*//g' \
6098
		-e 's/-pipe //' \
6099
		-e 's/-W[^ ]*//g' \
6100
		-e 's/-D_FORTIFY_SOURCE=.//g'`
6101
            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
6102
		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
6103
			-e 's/-bE:perl.exp//' -e 's/-lc //'`
6104
                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
6105
		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
6106
 
6107
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
6108
$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
6109
      cflags_save=$CFLAGS
6110
      libs_save=$LIBS
6111
      ldflags_save=$LDFLAGS
6112
      CFLAGS="$CFLAGS $perlcppflags"
6113
      LIBS="$LIBS $perllibs"
6114
      perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
6115
      LDFLAGS="$perlldflags $LDFLAGS"
6116
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117
/* end confdefs.h.  */
6118
 
6119
int
6120
main ()
6121
{
6122
 
6123
  ;
6124
  return 0;
6125
}
6126
_ACEOF
6127
if ac_fn_c_try_link "$LINENO"; then :
6128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6129
$as_echo "yes" >&6; }; perl_ok=yes
6130
else
6131
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
6132
$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
6133
fi
6134
rm -f core conftest.err conftest.$ac_objext \
6135
    conftest$ac_exeext conftest.$ac_ext
6136
      CFLAGS=$cflags_save
6137
      LIBS=$libs_save
6138
      LDFLAGS=$ldflags_save
6139
      if test $perl_ok = yes; then
6140
	if test "X$perlcppflags" != "X"; then
6141
	  PERL_CFLAGS=$perlcppflags
6142
	fi
6143
	if test "X$perlldflags" != "X"; then
6144
	  if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then
6145
	    LDFLAGS="$perlldflags $LDFLAGS"
6146
	  fi
6147
	fi
6148
	PERL_LIBS=$perllibs
6149
	PERL_SRC="auto/if_perl.c if_perlsfio.c"
6150
	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
6151
	PERL_PRO="if_perl.pro if_perlsfio.pro"
6152
	$as_echo "#define FEAT_PERL 1" >>confdefs.h
6153
 
6154
      fi
6155
     fi
6156
    else
6157
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
6158
$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
6159
    fi
6160
  fi
6161
 
6162
  if test "x$MACOS_X" = "xyes"; then
6163
        dir=/System/Library/Perl
6164
    darwindir=$dir/darwin
6165
    if test -d $darwindir; then
6166
      PERL=/usr/bin/perl
6167
    else
6168
            dir=/System/Library/Perl/5.8.1
6169
      darwindir=$dir/darwin-thread-multi-2level
6170
      if test -d $darwindir; then
6171
	PERL=/usr/bin/perl
6172
      fi
6173
    fi
6174
    if test -n "$PERL"; then
6175
      PERL_DIR="$dir"
6176
      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
6177
      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
6178
      PERL_LIBS="-L$darwindir/CORE -lperl"
6179
    fi
6180
                PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6181
    PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
6182
  fi
6183
  if test "$enable_perlinterp" = "dynamic"; then
6184
    if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then
6185
      $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h
6186
 
6187
      PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS"
6188
    fi
6189
  fi
6190
 
6191
  if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then
6192
    as_fn_error $? "could not configure perl" "$LINENO" 5
6193
  fi
6194
fi
6195
 
6196
 
6197
 
6198
 
6199
 
6200
 
6201
 
6202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
6203
$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
6204
# Check whether --enable-pythoninterp was given.
6205
if test "${enable_pythoninterp+set}" = set; then :
6206
  enableval=$enable_pythoninterp;
6207
else
6208
  enable_pythoninterp="no"
6209
fi
6210
 
6211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
6212
$as_echo "$enable_pythoninterp" >&6; }
6213
if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then
6214
  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6215
    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6216
  fi
6217
 
6218
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python-command argument" >&5
6219
$as_echo_n "checking --with-python-command argument... " >&6; }
6220
 
6221
 
6222
# Check whether --with-python-command was given.
6223
if test "${with_python_command+set}" = set; then :
6224
  withval=$with_python_command; vi_cv_path_python="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6225
$as_echo "$vi_cv_path_python" >&6; }
6226
else
6227
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228
$as_echo "no" >&6; }
6229
fi
6230
 
6231
 
6232
  if test "X$vi_cv_path_python" = "X"; then
6233
    for ac_prog in python2 python
6234
do
6235
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6236
set dummy $ac_prog; ac_word=$2
6237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238
$as_echo_n "checking for $ac_word... " >&6; }
6239
if ${ac_cv_path_vi_cv_path_python+:} false; then :
6240
  $as_echo_n "(cached) " >&6
6241
else
6242
  case $vi_cv_path_python in
6243
  [\\/]* | ?:[\\/]*)
6244
  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
6245
  ;;
6246
  *)
6247
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248
for as_dir in $PATH
6249
do
6250
  IFS=$as_save_IFS
6251
  test -z "$as_dir" && as_dir=.
6252
    for ac_exec_ext in '' $ac_executable_extensions; do
6253
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254
    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
6255
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256
    break 2
6257
  fi
6258
done
6259
  done
6260
IFS=$as_save_IFS
6261
 
6262
  ;;
6263
esac
6264
fi
6265
vi_cv_path_python=$ac_cv_path_vi_cv_path_python
6266
if test -n "$vi_cv_path_python"; then
6267
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
6268
$as_echo "$vi_cv_path_python" >&6; }
6269
else
6270
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271
$as_echo "no" >&6; }
6272
fi
6273
 
6274
 
6275
  test -n "$vi_cv_path_python" && break
6276
done
6277
 
6278
  fi
6279
  if test "X$vi_cv_path_python" != "X"; then
6280
 
6281
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6282
$as_echo_n "checking Python version... " >&6; }
6283
if ${vi_cv_var_python_version+:} false; then :
6284
  $as_echo_n "(cached) " >&6
6285
else
6286
  vi_cv_var_python_version=`
6287
	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
6288
 
6289
fi
6290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
6291
$as_echo "$vi_cv_var_python_version" >&6; }
6292
 
6293
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5
6294
$as_echo_n "checking Python is 2.3 or better... " >&6; }
6295
    if ${vi_cv_path_python} -c \
6296
	"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"
6297
    then
6298
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6299
$as_echo "yep" >&6; }
6300
 
6301
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6302
$as_echo_n "checking Python's install prefix... " >&6; }
6303
if ${vi_cv_path_python_pfx+:} false; then :
6304
  $as_echo_n "(cached) " >&6
6305
else
6306
   vi_cv_path_python_pfx=`
6307
	    ${vi_cv_path_python} -c \
6308
		"import sys; print sys.prefix"`
6309
fi
6310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
6311
$as_echo "$vi_cv_path_python_pfx" >&6; }
6312
 
6313
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6314
$as_echo_n "checking Python's execution prefix... " >&6; }
6315
if ${vi_cv_path_python_epfx+:} false; then :
6316
  $as_echo_n "(cached) " >&6
6317
else
6318
   vi_cv_path_python_epfx=`
6319
	    ${vi_cv_path_python} -c \
6320
		"import sys; print sys.exec_prefix"`
6321
fi
6322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
6323
$as_echo "$vi_cv_path_python_epfx" >&6; }
6324
 
6325
 
6326
      if ${vi_cv_path_pythonpath+:} false; then :
6327
  $as_echo_n "(cached) " >&6
6328
else
6329
   vi_cv_path_pythonpath=`
6330
	    unset PYTHONPATH;
6331
	    ${vi_cv_path_python} -c \
6332
		"import sys, string; print string.join(sys.path,':')"`
6333
fi
6334
 
6335
 
6336
 
6337
 
6338
# Check whether --with-python-config-dir was given.
6339
if test "${with_python_config_dir+set}" = set; then :
6340
  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"; have_python_config_dir=1
6341
fi
6342
 
6343
 
6344
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6345
$as_echo_n "checking Python's configuration directory... " >&6; }
6346
if ${vi_cv_path_python_conf+:} false; then :
6347
  $as_echo_n "(cached) " >&6
6348
else
6349
 
6350
	vi_cv_path_python_conf=
6351
	d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
6352
	if test -d "$d" && test -f "$d/config.c"; then
6353
	  vi_cv_path_python_conf="$d"
6354
	else
6355
	  for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
6356
	    for subdir in lib64 lib share; do
6357
	      d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
6358
	      if test -d "$d" && test -f "$d/config.c"; then
6359
		vi_cv_path_python_conf="$d"
6360
	      fi
6361
	    done
6362
	  done
6363
	fi
6364
 
6365
fi
6366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
6367
$as_echo "$vi_cv_path_python_conf" >&6; }
6368
 
6369
      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
6370
 
6371
      if test "X$PYTHON_CONFDIR" = "X"; then
6372
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6373
$as_echo "can't find it!" >&6; }
6374
      else
6375
 
6376
			if ${vi_cv_path_python_plibs+:} false; then :
6377
  $as_echo_n "(cached) " >&6
6378
else
6379
 
6380
	    pwd=`pwd`
6381
	    tmp_mkf="$pwd/config-PyMake$$"
6382
	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6383
__:
6384
	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
6385
	@echo "python_LIBS='$(LIBS)'"
6386
	@echo "python_SYSLIBS='$(SYSLIBS)'"
6387
	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
6388
	@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
6389
	@echo "python_INSTSONAME='$(INSTSONAME)'"
6390
	@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
6391
	@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
6392
	@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
6393
eof
6394
	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6395
	    rm -f -- "${tmp_mkf}"
6396
	    if test "x$MACOS_X" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \
6397
		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
6398
	      vi_cv_path_python_plibs="-framework Python"
6399
	      if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6400
		  vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
6401
	      fi
6402
	    else
6403
	      vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
6404
	      	      	      	      if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
6405
	        python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
6406
		python_link_path=`echo ${python_LINKFORSHARED} |   sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
6407
	        if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6408
	          		  	          python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
6409
		  if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
6410
		    		    python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
6411
	            	            		  fi
6412
	          python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
6413
	        fi
6414
	      fi
6415
	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
6416
	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
6417
	    fi
6418
 
6419
fi
6420
 
6421
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5
6422
$as_echo_n "checking Python's dll name... " >&6; }
6423
if ${vi_cv_dll_name_python+:} false; then :
6424
  $as_echo_n "(cached) " >&6
6425
else
6426
 
6427
	  if test "X$python_DLLLIBRARY" != "X"; then
6428
	    vi_cv_dll_name_python="$python_DLLLIBRARY"
6429
	  else
6430
	    vi_cv_dll_name_python="$python_INSTSONAME"
6431
	  fi
6432
 
6433
fi
6434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5
6435
$as_echo "$vi_cv_dll_name_python" >&6; }
6436
 
6437
	PYTHON_LIBS="${vi_cv_path_python_plibs}"
6438
	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
6439
	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
6440
	else
6441
	  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}"
6442
	fi
6443
	if test "X$have_python_config_dir" = "X1" -a "$enable_pythoninterp" = "dynamic"; then
6444
	  	  PYTHON_CFLAGS="${PYTHON_CFLAGS} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'"
6445
 
6446
	fi
6447
	PYTHON_SRC="if_python.c"
6448
	PYTHON_OBJ="objects/if_python.o"
6449
 
6450
								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6451
$as_echo_n "checking if -pthread should be used... " >&6; }
6452
	threadsafe_flag=
6453
	thread_lib=
6454
	        if test "`(uname) 2>/dev/null`" != Darwin; then
6455
	  test "$GCC" = yes && threadsafe_flag="-pthread"
6456
	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
6457
	    threadsafe_flag="-D_THREAD_SAFE"
6458
	    thread_lib="-pthread"
6459
	  fi
6460
	  if test "`(uname) 2>/dev/null`" = SunOS; then
6461
	    threadsafe_flag="-pthreads"
6462
	  fi
6463
	fi
6464
	libs_save_old=$LIBS
6465
	if test -n "$threadsafe_flag"; then
6466
	  cflags_save=$CFLAGS
6467
	  CFLAGS="$CFLAGS $threadsafe_flag"
6468
	  LIBS="$LIBS $thread_lib"
6469
	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470
/* end confdefs.h.  */
6471
 
6472
int
6473
main ()
6474
{
6475
 
6476
  ;
6477
  return 0;
6478
}
6479
_ACEOF
6480
if ac_fn_c_try_link "$LINENO"; then :
6481
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6482
$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
6483
else
6484
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485
$as_echo "no" >&6; }; LIBS=$libs_save_old
6486
 
6487
fi
6488
rm -f core conftest.err conftest.$ac_objext \
6489
    conftest$ac_exeext conftest.$ac_ext
6490
	  CFLAGS=$cflags_save
6491
	else
6492
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493
$as_echo "no" >&6; }
6494
	fi
6495
 
6496
			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
6497
$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
6498
	cflags_save=$CFLAGS
6499
	libs_save=$LIBS
6500
	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6501
	LIBS="$LIBS $PYTHON_LIBS"
6502
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503
/* end confdefs.h.  */
6504
 
6505
int
6506
main ()
6507
{
6508
 
6509
  ;
6510
  return 0;
6511
}
6512
_ACEOF
6513
if ac_fn_c_try_link "$LINENO"; then :
6514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6515
$as_echo "yes" >&6; }; python_ok=yes
6516
else
6517
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
6518
$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
6519
fi
6520
rm -f core conftest.err conftest.$ac_objext \
6521
    conftest$ac_exeext conftest.$ac_ext
6522
	CFLAGS=$cflags_save
6523
	LIBS=$libs_save
6524
	if test $python_ok = yes; then
6525
	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
6526
 
6527
	else
6528
	  LIBS=$libs_save_old
6529
	  PYTHON_SRC=
6530
	  PYTHON_OBJ=
6531
	  PYTHON_LIBS=
6532
	  PYTHON_CFLAGS=
6533
	fi
6534
      fi
6535
    else
6536
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6537
$as_echo "too old" >&6; }
6538
    fi
6539
  fi
6540
 
6541
  if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then
6542
    as_fn_error $? "could not configure python" "$LINENO" 5
6543
  fi
6544
fi
6545
 
6546
 
6547
 
6548
 
6549
 
6550
 
6551
 
6552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5
6553
$as_echo_n "checking --enable-python3interp argument... " >&6; }
6554
# Check whether --enable-python3interp was given.
6555
if test "${enable_python3interp+set}" = set; then :
6556
  enableval=$enable_python3interp;
6557
else
6558
  enable_python3interp="no"
6559
fi
6560
 
6561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
6562
$as_echo "$enable_python3interp" >&6; }
6563
if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
6564
  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
6565
    as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5
6566
  fi
6567
 
6568
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3-command argument" >&5
6569
$as_echo_n "checking --with-python3-command argument... " >&6; }
6570
 
6571
 
6572
# Check whether --with-python3-command was given.
6573
if test "${with_python3_command+set}" = set; then :
6574
  withval=$with_python3_command; vi_cv_path_python3="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6575
$as_echo "$vi_cv_path_python3" >&6; }
6576
else
6577
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578
$as_echo "no" >&6; }
6579
fi
6580
 
6581
 
6582
  if test "X$vi_cv_path_python3" = "X"; then
6583
    for ac_prog in python3 python
6584
do
6585
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6586
set dummy $ac_prog; ac_word=$2
6587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588
$as_echo_n "checking for $ac_word... " >&6; }
6589
if ${ac_cv_path_vi_cv_path_python3+:} false; then :
6590
  $as_echo_n "(cached) " >&6
6591
else
6592
  case $vi_cv_path_python3 in
6593
  [\\/]* | ?:[\\/]*)
6594
  ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
6595
  ;;
6596
  *)
6597
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598
for as_dir in $PATH
6599
do
6600
  IFS=$as_save_IFS
6601
  test -z "$as_dir" && as_dir=.
6602
    for ac_exec_ext in '' $ac_executable_extensions; do
6603
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604
    ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
6605
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606
    break 2
6607
  fi
6608
done
6609
  done
6610
IFS=$as_save_IFS
6611
 
6612
  ;;
6613
esac
6614
fi
6615
vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
6616
if test -n "$vi_cv_path_python3"; then
6617
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
6618
$as_echo "$vi_cv_path_python3" >&6; }
6619
else
6620
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621
$as_echo "no" >&6; }
6622
fi
6623
 
6624
 
6625
  test -n "$vi_cv_path_python3" && break
6626
done
6627
 
6628
  fi
6629
  if test "X$vi_cv_path_python3" != "X"; then
6630
 
6631
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
6632
$as_echo_n "checking Python version... " >&6; }
6633
if ${vi_cv_var_python3_version+:} false; then :
6634
  $as_echo_n "(cached) " >&6
6635
else
6636
  vi_cv_var_python3_version=`
6637
          ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'`
6638
 
6639
fi
6640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5
6641
$as_echo "$vi_cv_var_python3_version" >&6; }
6642
 
6643
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5
6644
$as_echo_n "checking Python is 3.0 or better... " >&6; }
6645
    if ${vi_cv_path_python3} -c \
6646
      "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)"
6647
    then
6648
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
6649
$as_echo "yep" >&6; }
6650
 
6651
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5
6652
$as_echo_n "checking Python's abiflags... " >&6; }
6653
if ${vi_cv_var_python3_abiflags+:} false; then :
6654
  $as_echo_n "(cached) " >&6
6655
else
6656
 
6657
       vi_cv_var_python3_abiflags=
6658
       if ${vi_cv_path_python3} -c \
6659
           "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)"
6660
       then
6661
         vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \
6662
           "import sys; print(sys.abiflags)"`
6663
       fi
6664
fi
6665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5
6666
$as_echo "$vi_cv_var_python3_abiflags" >&6; }
6667
 
6668
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
6669
$as_echo_n "checking Python's install prefix... " >&6; }
6670
if ${vi_cv_path_python3_pfx+:} false; then :
6671
  $as_echo_n "(cached) " >&6
6672
else
6673
   vi_cv_path_python3_pfx=`
6674
       ${vi_cv_path_python3} -c \
6675
       "import sys; print(sys.prefix)"`
6676
fi
6677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5
6678
$as_echo "$vi_cv_path_python3_pfx" >&6; }
6679
 
6680
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
6681
$as_echo_n "checking Python's execution prefix... " >&6; }
6682
if ${vi_cv_path_python3_epfx+:} false; then :
6683
  $as_echo_n "(cached) " >&6
6684
else
6685
   vi_cv_path_python3_epfx=`
6686
       ${vi_cv_path_python3} -c \
6687
       "import sys; print(sys.exec_prefix)"`
6688
fi
6689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5
6690
$as_echo "$vi_cv_path_python3_epfx" >&6; }
6691
 
6692
 
6693
      if ${vi_cv_path_python3path+:} false; then :
6694
  $as_echo_n "(cached) " >&6
6695
else
6696
   vi_cv_path_python3path=`
6697
       unset PYTHONPATH;
6698
       ${vi_cv_path_python3} -c \
6699
       "import sys, string; print(':'.join(sys.path))"`
6700
fi
6701
 
6702
 
6703
 
6704
 
6705
# Check whether --with-python3-config-dir was given.
6706
if test "${with_python3_config_dir+set}" = set; then :
6707
  withval=$with_python3_config_dir;  vi_cv_path_python3_conf="${withval}"; have_python3_config_dir=1
6708
fi
6709
 
6710
 
6711
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
6712
$as_echo_n "checking Python's configuration directory... " >&6; }
6713
if ${vi_cv_path_python3_conf+:} false; then :
6714
  $as_echo_n "(cached) " >&6
6715
else
6716
 
6717
       vi_cv_path_python3_conf=
6718
       config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6719
       d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"`
6720
       if test -d "$d" && test -f "$d/config.c"; then
6721
         vi_cv_path_python3_conf="$d"
6722
       else
6723
         for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do
6724
	   for subdir in lib64 lib share; do
6725
	     d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}"
6726
	     if test -d "$d" && test -f "$d/config.c"; then
6727
	       vi_cv_path_python3_conf="$d"
6728
	     fi
6729
	   done
6730
         done
6731
       fi
6732
 
6733
fi
6734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5
6735
$as_echo "$vi_cv_path_python3_conf" >&6; }
6736
 
6737
      PYTHON3_CONFDIR="${vi_cv_path_python3_conf}"
6738
 
6739
      if test "X$PYTHON3_CONFDIR" = "X"; then
6740
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
6741
$as_echo "can't find it!" >&6; }
6742
      else
6743
 
6744
                        if ${vi_cv_path_python3_plibs+:} false; then :
6745
  $as_echo_n "(cached) " >&6
6746
else
6747
 
6748
            pwd=`pwd`
6749
            tmp_mkf="$pwd/config-PyMake$$"
6750
            cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
6751
__:
6752
	@echo "python3_BASEMODLIBS='$(BASEMODLIBS)'"
6753
	@echo "python3_LIBS='$(LIBS)'"
6754
	@echo "python3_SYSLIBS='$(SYSLIBS)'"
6755
	@echo "python3_DLLLIBRARY='$(DLLLIBRARY)'"
6756
	@echo "python3_INSTSONAME='$(INSTSONAME)'"
6757
eof
6758
	    	    eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
6759
	    rm -f -- "${tmp_mkf}"
6760
	    vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6761
	    vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}"
6762
	    	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//`
6763
	    vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//`
6764
 
6765
fi
6766
 
6767
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5
6768
$as_echo_n "checking Python3's dll name... " >&6; }
6769
if ${vi_cv_dll_name_python3+:} false; then :
6770
  $as_echo_n "(cached) " >&6
6771
else
6772
 
6773
	  if test "X$python3_DLLLIBRARY" != "X"; then
6774
	    vi_cv_dll_name_python3="$python3_DLLLIBRARY"
6775
	  else
6776
	    vi_cv_dll_name_python3="$python3_INSTSONAME"
6777
	  fi
6778
 
6779
fi
6780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5
6781
$as_echo "$vi_cv_dll_name_python3" >&6; }
6782
 
6783
        PYTHON3_LIBS="${vi_cv_path_python3_plibs}"
6784
        if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then
6785
          PYTHON3_CFLAGS="-I${vi_cv_path_python3_pfx}/include/python${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}"
6786
        else
6787
          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}"
6788
        fi
6789
	if test "X$have_python3_config_dir" = "X1" -a "$enable_python3interp" = "dynamic"; then
6790
	  	  PYTHON3_CFLAGS="${PYTHON3_CFLAGS}  -DPYTHON3_HOME='L\"${vi_cv_path_python3_pfx}\"'"
6791
	fi
6792
        PYTHON3_SRC="if_python3.c"
6793
        PYTHON3_OBJ="objects/if_python3.o"
6794
 
6795
                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
6796
$as_echo_n "checking if -pthread should be used... " >&6; }
6797
        threadsafe_flag=
6798
        thread_lib=
6799
                if test "`(uname) 2>/dev/null`" != Darwin; then
6800
          test "$GCC" = yes && threadsafe_flag="-pthread"
6801
          if test "`(uname) 2>/dev/null`" = FreeBSD; then
6802
            threadsafe_flag="-D_THREAD_SAFE"
6803
            thread_lib="-pthread"
6804
          fi
6805
          if test "`(uname) 2>/dev/null`" = SunOS; then
6806
            threadsafe_flag="-pthreads"
6807
          fi
6808
        fi
6809
        libs_save_old=$LIBS
6810
        if test -n "$threadsafe_flag"; then
6811
          cflags_save=$CFLAGS
6812
          CFLAGS="$CFLAGS $threadsafe_flag"
6813
          LIBS="$LIBS $thread_lib"
6814
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815
/* end confdefs.h.  */
6816
 
6817
int
6818
main ()
6819
{
6820
 
6821
  ;
6822
  return 0;
6823
}
6824
_ACEOF
6825
if ac_fn_c_try_link "$LINENO"; then :
6826
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6827
$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag"
6828
else
6829
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830
$as_echo "no" >&6; }; LIBS=$libs_save_old
6831
 
6832
fi
6833
rm -f core conftest.err conftest.$ac_objext \
6834
    conftest$ac_exeext conftest.$ac_ext
6835
          CFLAGS=$cflags_save
6836
        else
6837
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838
$as_echo "no" >&6; }
6839
        fi
6840
 
6841
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5
6842
$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; }
6843
        cflags_save=$CFLAGS
6844
        libs_save=$LIBS
6845
        CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6846
        LIBS="$LIBS $PYTHON3_LIBS"
6847
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848
/* end confdefs.h.  */
6849
 
6850
int
6851
main ()
6852
{
6853
 
6854
  ;
6855
  return 0;
6856
}
6857
_ACEOF
6858
if ac_fn_c_try_link "$LINENO"; then :
6859
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6860
$as_echo "yes" >&6; }; python3_ok=yes
6861
else
6862
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5
6863
$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no
6864
fi
6865
rm -f core conftest.err conftest.$ac_objext \
6866
    conftest$ac_exeext conftest.$ac_ext
6867
        CFLAGS=$cflags_save
6868
        LIBS=$libs_save
6869
        if test "$python3_ok" = yes; then
6870
          $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h
6871
 
6872
        else
6873
          LIBS=$libs_save_old
6874
          PYTHON3_SRC=
6875
          PYTHON3_OBJ=
6876
          PYTHON3_LIBS=
6877
          PYTHON3_CFLAGS=
6878
        fi
6879
      fi
6880
    else
6881
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
6882
$as_echo "too old" >&6; }
6883
    fi
6884
  fi
6885
  if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then
6886
    as_fn_error $? "could not configure python3" "$LINENO" 5
6887
  fi
6888
fi
6889
 
6890
 
6891
 
6892
 
6893
 
6894
 
6895
if test "$python_ok" = yes && test "$python3_ok" = yes; then
6896
  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
6897
 
6898
  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
6899
 
6900
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5
6901
$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
6902
  cflags_save=$CFLAGS
6903
  CFLAGS="$CFLAGS $PYTHON_CFLAGS"
6904
  libs_save=$LIBS
6905
    LIBS="-ldl $LIBS"
6906
  if test "$cross_compiling" = yes; then :
6907
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6908
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6909
as_fn_error $? "cannot run test program while cross compiling
6910
See \`config.log' for more details" "$LINENO" 5; }
6911
else
6912
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913
/* end confdefs.h.  */
6914
 
6915
    #include <dlfcn.h>
6916
    /* If this program fails, then RTLD_GLOBAL is needed.
6917
     * RTLD_GLOBAL will be used and then it is not possible to
6918
     * have both python versions enabled in the same vim instance.
6919
     * Only the first python version used will be switched on.
6920
     */
6921
 
6922
    int no_rtl_global_needed_for(char *python_instsoname, char *prefix)
6923
    {
6924
      int needed = 0;
6925
      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6926
      if (pylib != 0)
6927
      {
6928
          void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome");
6929
          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6930
          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6931
          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6932
          (*pfx)(prefix);
6933
          (*init)();
6934
          needed = (*simple)("import termios") == -1;
6935
          (*final)();
6936
          dlclose(pylib);
6937
      }
6938
      return !needed;
6939
    }
6940
 
6941
    int main(int argc, char** argv)
6942
    {
6943
      int not_needed = 0;
6944
      if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}"))
6945
            not_needed = 1;
6946
      return !not_needed;
6947
    }
6948
_ACEOF
6949
if ac_fn_c_try_run "$LINENO"; then :
6950
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6951
$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h
6952
 
6953
else
6954
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955
$as_echo "no" >&6; }
6956
fi
6957
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6958
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6959
fi
6960
 
6961
 
6962
  CFLAGS=$cflags_save
6963
  LIBS=$libs_save
6964
 
6965
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
6966
$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
6967
  cflags_save=$CFLAGS
6968
  CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
6969
  libs_save=$LIBS
6970
    LIBS="-ldl $LIBS"
6971
  if test "$cross_compiling" = yes; then :
6972
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6973
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6974
as_fn_error $? "cannot run test program while cross compiling
6975
See \`config.log' for more details" "$LINENO" 5; }
6976
else
6977
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978
/* end confdefs.h.  */
6979
 
6980
    #include <dlfcn.h>
6981
    #include <wchar.h>
6982
    /* If this program fails, then RTLD_GLOBAL is needed.
6983
     * RTLD_GLOBAL will be used and then it is not possible to
6984
     * have both python versions enabled in the same vim instance.
6985
     * Only the first python version used will be switched on.
6986
     */
6987
 
6988
    int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix)
6989
    {
6990
      int needed = 0;
6991
      void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL);
6992
      if (pylib != 0)
6993
      {
6994
          void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome");
6995
          void (*init)(void) = dlsym(pylib, "Py_Initialize");
6996
          int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString");
6997
          void (*final)(void) = dlsym(pylib, "Py_Finalize");
6998
          (*pfx)(prefix);
6999
          (*init)();
7000
          needed = (*simple)("import termios") == -1;
7001
          (*final)();
7002
          dlclose(pylib);
7003
      }
7004
      return !needed;
7005
    }
7006
 
7007
    int main(int argc, char** argv)
7008
    {
7009
      int not_needed = 0;
7010
      if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}"))
7011
            not_needed = 1;
7012
      return !not_needed;
7013
    }
7014
_ACEOF
7015
if ac_fn_c_try_run "$LINENO"; then :
7016
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7017
$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h
7018
 
7019
else
7020
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021
$as_echo "no" >&6; }
7022
fi
7023
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7024
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7025
fi
7026
 
7027
 
7028
  CFLAGS=$cflags_save
7029
  LIBS=$libs_save
7030
 
7031
  PYTHON_SRC="if_python.c"
7032
  PYTHON_OBJ="objects/if_python.o"
7033
  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7034
  PYTHON_LIBS=
7035
  PYTHON3_SRC="if_python3.c"
7036
  PYTHON3_OBJ="objects/if_python3.o"
7037
  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7038
  PYTHON3_LIBS=
7039
elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then
7040
  $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h
7041
 
7042
  PYTHON_SRC="if_python.c"
7043
  PYTHON_OBJ="objects/if_python.o"
7044
  PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\""
7045
  PYTHON_LIBS=
7046
elif test "$python_ok" = yes; then
7047
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5
7048
$as_echo_n "checking if -fPIE can be added for Python... " >&6; }
7049
  cflags_save=$CFLAGS
7050
  libs_save=$LIBS
7051
  CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE"
7052
  LIBS="$LIBS $PYTHON_LIBS"
7053
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054
/* end confdefs.h.  */
7055
 
7056
int
7057
main ()
7058
{
7059
 
7060
  ;
7061
  return 0;
7062
}
7063
_ACEOF
7064
if ac_fn_c_try_link "$LINENO"; then :
7065
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7066
$as_echo "yes" >&6; }; fpie_ok=yes
7067
else
7068
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069
$as_echo "no" >&6; }; fpie_ok=no
7070
fi
7071
rm -f core conftest.err conftest.$ac_objext \
7072
    conftest$ac_exeext conftest.$ac_ext
7073
  CFLAGS=$cflags_save
7074
  LIBS=$libs_save
7075
  if test $fpie_ok = yes; then
7076
    PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE"
7077
  fi
7078
elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then
7079
  $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h
7080
 
7081
  PYTHON3_SRC="if_python3.c"
7082
  PYTHON3_OBJ="objects/if_python3.o"
7083
  PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\""
7084
  PYTHON3_LIBS=
7085
elif test "$python3_ok" = yes; then
7086
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5
7087
$as_echo_n "checking if -fPIE can be added for Python3... " >&6; }
7088
  cflags_save=$CFLAGS
7089
  libs_save=$LIBS
7090
  CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE"
7091
  LIBS="$LIBS $PYTHON3_LIBS"
7092
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093
/* end confdefs.h.  */
7094
 
7095
int
7096
main ()
7097
{
7098
 
7099
  ;
7100
  return 0;
7101
}
7102
_ACEOF
7103
if ac_fn_c_try_link "$LINENO"; then :
7104
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7105
$as_echo "yes" >&6; }; fpie_ok=yes
7106
else
7107
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108
$as_echo "no" >&6; }; fpie_ok=no
7109
fi
7110
rm -f core conftest.err conftest.$ac_objext \
7111
    conftest$ac_exeext conftest.$ac_ext
7112
  CFLAGS=$cflags_save
7113
  LIBS=$libs_save
7114
  if test $fpie_ok = yes; then
7115
    PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE"
7116
  fi
7117
fi
7118
 
7119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
7120
$as_echo_n "checking --enable-tclinterp argument... " >&6; }
7121
# Check whether --enable-tclinterp was given.
7122
if test "${enable_tclinterp+set}" = set; then :
7123
  enableval=$enable_tclinterp;
7124
else
7125
  enable_tclinterp="no"
7126
fi
7127
 
7128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
7129
$as_echo "$enable_tclinterp" >&6; }
7130
 
7131
if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then
7132
 
7133
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
7134
$as_echo_n "checking --with-tclsh argument... " >&6; }
7135
 
7136
# Check whether --with-tclsh was given.
7137
if test "${with_tclsh+set}" = set; then :
7138
  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
7139
$as_echo "$tclsh_name" >&6; }
7140
else
7141
  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142
$as_echo "no" >&6; }
7143
fi
7144
 
7145
  # Extract the first word of "$tclsh_name", so it can be a program name with args.
7146
set dummy $tclsh_name; ac_word=$2
7147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148
$as_echo_n "checking for $ac_word... " >&6; }
7149
if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7150
  $as_echo_n "(cached) " >&6
7151
else
7152
  case $vi_cv_path_tcl in
7153
  [\\/]* | ?:[\\/]*)
7154
  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7155
  ;;
7156
  *)
7157
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158
for as_dir in $PATH
7159
do
7160
  IFS=$as_save_IFS
7161
  test -z "$as_dir" && as_dir=.
7162
    for ac_exec_ext in '' $ac_executable_extensions; do
7163
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164
    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7165
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166
    break 2
7167
  fi
7168
done
7169
  done
7170
IFS=$as_save_IFS
7171
 
7172
  ;;
7173
esac
7174
fi
7175
vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7176
if test -n "$vi_cv_path_tcl"; then
7177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7178
$as_echo "$vi_cv_path_tcl" >&6; }
7179
else
7180
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181
$as_echo "no" >&6; }
7182
fi
7183
 
7184
 
7185
 
7186
 
7187
    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
7188
    tclsh_name="tclsh8.4"
7189
    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7190
set dummy $tclsh_name; ac_word=$2
7191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192
$as_echo_n "checking for $ac_word... " >&6; }
7193
if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7194
  $as_echo_n "(cached) " >&6
7195
else
7196
  case $vi_cv_path_tcl in
7197
  [\\/]* | ?:[\\/]*)
7198
  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7199
  ;;
7200
  *)
7201
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202
for as_dir in $PATH
7203
do
7204
  IFS=$as_save_IFS
7205
  test -z "$as_dir" && as_dir=.
7206
    for ac_exec_ext in '' $ac_executable_extensions; do
7207
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208
    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7209
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210
    break 2
7211
  fi
7212
done
7213
  done
7214
IFS=$as_save_IFS
7215
 
7216
  ;;
7217
esac
7218
fi
7219
vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7220
if test -n "$vi_cv_path_tcl"; then
7221
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7222
$as_echo "$vi_cv_path_tcl" >&6; }
7223
else
7224
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225
$as_echo "no" >&6; }
7226
fi
7227
 
7228
 
7229
  fi
7230
  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
7231
    tclsh_name="tclsh8.2"
7232
    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7233
set dummy $tclsh_name; ac_word=$2
7234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235
$as_echo_n "checking for $ac_word... " >&6; }
7236
if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7237
  $as_echo_n "(cached) " >&6
7238
else
7239
  case $vi_cv_path_tcl in
7240
  [\\/]* | ?:[\\/]*)
7241
  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7242
  ;;
7243
  *)
7244
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245
for as_dir in $PATH
7246
do
7247
  IFS=$as_save_IFS
7248
  test -z "$as_dir" && as_dir=.
7249
    for ac_exec_ext in '' $ac_executable_extensions; do
7250
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251
    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7252
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253
    break 2
7254
  fi
7255
done
7256
  done
7257
IFS=$as_save_IFS
7258
 
7259
  ;;
7260
esac
7261
fi
7262
vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7263
if test -n "$vi_cv_path_tcl"; then
7264
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7265
$as_echo "$vi_cv_path_tcl" >&6; }
7266
else
7267
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268
$as_echo "no" >&6; }
7269
fi
7270
 
7271
 
7272
  fi
7273
  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
7274
    tclsh_name="tclsh8.0"
7275
    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7276
set dummy $tclsh_name; ac_word=$2
7277
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278
$as_echo_n "checking for $ac_word... " >&6; }
7279
if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7280
  $as_echo_n "(cached) " >&6
7281
else
7282
  case $vi_cv_path_tcl in
7283
  [\\/]* | ?:[\\/]*)
7284
  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7285
  ;;
7286
  *)
7287
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288
for as_dir in $PATH
7289
do
7290
  IFS=$as_save_IFS
7291
  test -z "$as_dir" && as_dir=.
7292
    for ac_exec_ext in '' $ac_executable_extensions; do
7293
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294
    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7295
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296
    break 2
7297
  fi
7298
done
7299
  done
7300
IFS=$as_save_IFS
7301
 
7302
  ;;
7303
esac
7304
fi
7305
vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7306
if test -n "$vi_cv_path_tcl"; then
7307
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7308
$as_echo "$vi_cv_path_tcl" >&6; }
7309
else
7310
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311
$as_echo "no" >&6; }
7312
fi
7313
 
7314
 
7315
  fi
7316
    if test "X$vi_cv_path_tcl" = "X"; then
7317
    tclsh_name="tclsh"
7318
    # Extract the first word of "$tclsh_name", so it can be a program name with args.
7319
set dummy $tclsh_name; ac_word=$2
7320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321
$as_echo_n "checking for $ac_word... " >&6; }
7322
if ${ac_cv_path_vi_cv_path_tcl+:} false; then :
7323
  $as_echo_n "(cached) " >&6
7324
else
7325
  case $vi_cv_path_tcl in
7326
  [\\/]* | ?:[\\/]*)
7327
  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
7328
  ;;
7329
  *)
7330
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331
for as_dir in $PATH
7332
do
7333
  IFS=$as_save_IFS
7334
  test -z "$as_dir" && as_dir=.
7335
    for ac_exec_ext in '' $ac_executable_extensions; do
7336
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337
    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
7338
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339
    break 2
7340
  fi
7341
done
7342
  done
7343
IFS=$as_save_IFS
7344
 
7345
  ;;
7346
esac
7347
fi
7348
vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
7349
if test -n "$vi_cv_path_tcl"; then
7350
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
7351
$as_echo "$vi_cv_path_tcl" >&6; }
7352
else
7353
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354
$as_echo "no" >&6; }
7355
fi
7356
 
7357
 
7358
  fi
7359
  if test "X$vi_cv_path_tcl" != "X"; then
7360
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
7361
$as_echo_n "checking Tcl version... " >&6; }
7362
    if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then
7363
      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
7364
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
7365
$as_echo "$tclver - OK" >&6; };
7366
      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 -`
7367
      tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -`
7368
 
7369
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
7370
$as_echo_n "checking for location of Tcl include... " >&6; }
7371
      if test "x$MACOS_X" != "xyes"; then
7372
	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
7373
      else
7374
		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
7375
      fi
7376
      TCL_INC=
7377
      for try in $tclinc; do
7378
	if test -f "$try/tcl.h"; then
7379
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
7380
$as_echo "$try/tcl.h" >&6; }
7381
	  TCL_INC=$try
7382
	  break
7383
	fi
7384
      done
7385
      if test -z "$TCL_INC"; then
7386
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7387
$as_echo "<not found>" >&6; }
7388
	SKIP_TCL=YES
7389
      fi
7390
      if test -z "$SKIP_TCL"; then
7391
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
7392
$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
7393
	if test "x$MACOS_X" != "xyes"; then
7394
	  tclcnf=`echo $tclinc | sed s/include/lib/g`
7395
	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
7396
	else
7397
	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
7398
	fi
7399
	for try in $tclcnf; do
7400
	  if test -f "$try/tclConfig.sh"; then
7401
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
7402
$as_echo "$try/tclConfig.sh" >&6; }
7403
	    . "$try/tclConfig.sh"
7404
	    	    if test "$enable_tclinterp" = "dynamic"; then
7405
	      TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"`
7406
	    else
7407
	      TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
7408
	    fi
7409
	    	    	    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'`
7410
	    break
7411
	  fi
7412
	done
7413
	if test -z "$TCL_LIBS"; then
7414
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7415
$as_echo "<not found>" >&6; }
7416
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
7417
$as_echo_n "checking for Tcl library by myself... " >&6; }
7418
	  tcllib=`echo $tclinc | sed s/include/lib/g`
7419
	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
7420
	  for ext in .so .a ; do
7421
	    for ver in "" $tclver ; do
7422
	      for try in $tcllib ; do
7423
		trylib=tcl$ver$ext
7424
		if test -f "$try/lib$trylib" ; then
7425
		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
7426
$as_echo "$try/lib$trylib" >&6; }
7427
		  TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm"
7428
		  if test "`(uname) 2>/dev/null`" = SunOS &&
7429
					 uname -r | grep '^5' >/dev/null; then
7430
		    TCL_LIBS="$TCL_LIBS -R $try"
7431
		  fi
7432
		  break 3
7433
		fi
7434
	      done
7435
	    done
7436
	  done
7437
	  if test -z "$TCL_LIBS"; then
7438
	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7439
$as_echo "<not found>" >&6; }
7440
	    SKIP_TCL=YES
7441
	  fi
7442
	fi
7443
	if test -z "$SKIP_TCL"; then
7444
	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
7445
 
7446
	  TCL_SRC=if_tcl.c
7447
	  TCL_OBJ=objects/if_tcl.o
7448
	  TCL_PRO=if_tcl.pro
7449
	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
7450
	fi
7451
      fi
7452
    else
7453
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
7454
$as_echo "too old; need Tcl version 8.0 or later" >&6; }
7455
    fi
7456
  fi
7457
  if test "$enable_tclinterp" = "dynamic"; then
7458
    if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then
7459
      $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h
7460
 
7461
      TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS"
7462
    fi
7463
  fi
7464
  if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then
7465
    as_fn_error $? "could not configure Tcl" "$LINENO" 5
7466
  fi
7467
fi
7468
 
7469
 
7470
 
7471
 
7472
 
7473
 
7474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
7475
$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
7476
# Check whether --enable-rubyinterp was given.
7477
if test "${enable_rubyinterp+set}" = set; then :
7478
  enableval=$enable_rubyinterp;
7479
else
7480
  enable_rubyinterp="no"
7481
fi
7482
 
7483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
7484
$as_echo "$enable_rubyinterp" >&6; }
7485
if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
7486
  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7487
    as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5
7488
  fi
7489
 
7490
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
7491
$as_echo_n "checking --with-ruby-command argument... " >&6; }
7492
 
7493
 
7494
# Check whether --with-ruby-command was given.
7495
if test "${with_ruby_command+set}" = set; then :
7496
  withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
7497
$as_echo "$RUBY_CMD" >&6; }
7498
else
7499
  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
7500
$as_echo "defaulting to $RUBY_CMD" >&6; }
7501
fi
7502
 
7503
  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
7504
set dummy $RUBY_CMD; ac_word=$2
7505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506
$as_echo_n "checking for $ac_word... " >&6; }
7507
if ${ac_cv_path_vi_cv_path_ruby+:} false; then :
7508
  $as_echo_n "(cached) " >&6
7509
else
7510
  case $vi_cv_path_ruby in
7511
  [\\/]* | ?:[\\/]*)
7512
  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
7513
  ;;
7514
  *)
7515
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516
for as_dir in $PATH
7517
do
7518
  IFS=$as_save_IFS
7519
  test -z "$as_dir" && as_dir=.
7520
    for ac_exec_ext in '' $ac_executable_extensions; do
7521
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522
    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
7523
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524
    break 2
7525
  fi
7526
done
7527
  done
7528
IFS=$as_save_IFS
7529
 
7530
  ;;
7531
esac
7532
fi
7533
vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
7534
if test -n "$vi_cv_path_ruby"; then
7535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
7536
$as_echo "$vi_cv_path_ruby" >&6; }
7537
else
7538
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539
$as_echo "no" >&6; }
7540
fi
7541
 
7542
 
7543
  if test "X$vi_cv_path_ruby" != "X"; then
7544
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
7545
$as_echo_n "checking Ruby version... " >&6; }
7546
    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
7547
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
7548
$as_echo "OK" >&6; }
7549
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5
7550
$as_echo_n "checking Ruby rbconfig... " >&6; }
7551
      ruby_rbconfig="RbConfig"
7552
      if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
7553
	ruby_rbconfig="Config"
7554
      fi
7555
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5
7556
$as_echo "$ruby_rbconfig" >&6; }
7557
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
7558
$as_echo_n "checking Ruby header files... " >&6; }
7559
      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null`
7560
      if test "X$rubyhdrdir" != "X"; then
7561
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
7562
$as_echo "$rubyhdrdir" >&6; }
7563
	RUBY_CFLAGS="-I$rubyhdrdir"
7564
        rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
7565
        if test -d "$rubyarchdir"; then
7566
          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
7567
        fi
7568
        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
7569
	if test "X$rubyversion" = "X"; then
7570
	  rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"`
7571
	fi
7572
        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
7573
	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"`
7574
	if test "X$rubylibs" != "X"; then
7575
	  RUBY_LIBS="$rubylibs"
7576
	fi
7577
	librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"`
7578
	librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"`
7579
	rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"`
7580
	if test -f "$rubylibdir/$librubya"; then
7581
	  librubyarg="$librubyarg"
7582
	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7583
	elif test "$librubyarg" = "libruby.a"; then
7584
	  	  librubyarg="-lruby"
7585
	  RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
7586
	fi
7587
 
7588
	if test "X$librubyarg" != "X"; then
7589
	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
7590
	fi
7591
	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"`
7592
	if test "X$rubyldflags" != "X"; then
7593
	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
7594
	  if test "X$rubyldflags" != "X"; then
7595
	    if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then
7596
	      LDFLAGS="$rubyldflags $LDFLAGS"
7597
	    fi
7598
	  fi
7599
	fi
7600
	RUBY_SRC="if_ruby.c"
7601
	RUBY_OBJ="objects/if_ruby.o"
7602
	RUBY_PRO="if_ruby.pro"
7603
	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
7604
 
7605
	if test "$enable_rubyinterp" = "dynamic"; then
7606
	  libruby_soname=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_ALIASES'].split[0]"`
7607
	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
7608
 
7609
	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby_soname\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
7610
	  RUBY_LIBS=
7611
	fi
7612
      else
7613
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
7614
$as_echo "not found; disabling Ruby" >&6; }
7615
      fi
7616
    else
7617
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
7618
$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
7619
    fi
7620
  fi
7621
 
7622
  if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
7623
    as_fn_error $? "could not configure Ruby" "$LINENO" 5
7624
  fi
7625
fi
7626
 
7627
 
7628
 
7629
 
7630
 
7631
 
7632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
7633
$as_echo_n "checking --enable-cscope argument... " >&6; }
7634
# Check whether --enable-cscope was given.
7635
if test "${enable_cscope+set}" = set; then :
7636
  enableval=$enable_cscope;
7637
else
7638
  enable_cscope="no"
7639
fi
7640
 
7641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
7642
$as_echo "$enable_cscope" >&6; }
7643
if test "$enable_cscope" = "yes"; then
7644
  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
7645
 
7646
fi
7647
 
7648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
7649
$as_echo_n "checking --enable-workshop argument... " >&6; }
7650
# Check whether --enable-workshop was given.
7651
if test "${enable_workshop+set}" = set; then :
7652
  enableval=$enable_workshop;
7653
else
7654
  enable_workshop="no"
7655
fi
7656
 
7657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
7658
$as_echo "$enable_workshop" >&6; }
7659
if test "$enable_workshop" = "yes"; then
7660
  $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
7661
 
7662
  WORKSHOP_SRC="workshop.c integration.c"
7663
 
7664
  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
7665
 
7666
  if test "${enable_gui-xxx}" = xxx; then
7667
    enable_gui=motif
7668
  fi
7669
fi
7670
 
7671
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
7672
$as_echo_n "checking --disable-netbeans argument... " >&6; }
7673
# Check whether --enable-netbeans was given.
7674
if test "${enable_netbeans+set}" = set; then :
7675
  enableval=$enable_netbeans;
7676
else
7677
  enable_netbeans="yes"
7678
fi
7679
 
7680
if test "$enable_netbeans" = "yes"; then
7681
  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7682
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5
7683
$as_echo "cannot use NetBeans with tiny or small features" >&6; }
7684
    enable_netbeans="no"
7685
  else
7686
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687
$as_echo "no" >&6; }
7688
  fi
7689
else
7690
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7691
$as_echo "yes" >&6; }
7692
fi
7693
 
7694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5
7695
$as_echo_n "checking --disable-channel argument... " >&6; }
7696
# Check whether --enable-channel was given.
7697
if test "${enable_channel+set}" = set; then :
7698
  enableval=$enable_channel;
7699
else
7700
  enable_channel="yes"
7701
fi
7702
 
7703
if test "$enable_channel" = "yes"; then
7704
  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7705
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5
7706
$as_echo "cannot use channels with tiny or small features" >&6; }
7707
    enable_channel="no"
7708
  else
7709
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710
$as_echo "no" >&6; }
7711
  fi
7712
else
7713
  if test "$enable_netbeans" = "yes"; then
7714
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5
7715
$as_echo "yes, netbeans also disabled" >&6; }
7716
    enable_netbeans="no"
7717
  else
7718
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7719
$as_echo "yes" >&6; }
7720
  fi
7721
fi
7722
 
7723
if test "$enable_channel" = "yes"; then
7724
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
7725
$as_echo_n "checking for socket in -lsocket... " >&6; }
7726
if ${ac_cv_lib_socket_socket+:} false; then :
7727
  $as_echo_n "(cached) " >&6
7728
else
7729
  ac_check_lib_save_LIBS=$LIBS
7730
LIBS="-lsocket  $LIBS"
7731
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732
/* end confdefs.h.  */
7733
 
7734
/* Override any GCC internal prototype to avoid an error.
7735
   Use char because int might match the return type of a GCC
7736
   builtin and then its argument prototype would still apply.  */
7737
#ifdef __cplusplus
7738
extern "C"
7739
#endif
7740
char socket ();
7741
int
7742
main ()
7743
{
7744
return socket ();
7745
  ;
7746
  return 0;
7747
}
7748
_ACEOF
7749
if ac_fn_c_try_link "$LINENO"; then :
7750
  ac_cv_lib_socket_socket=yes
7751
else
7752
  ac_cv_lib_socket_socket=no
7753
fi
7754
rm -f core conftest.err conftest.$ac_objext \
7755
    conftest$ac_exeext conftest.$ac_ext
7756
LIBS=$ac_check_lib_save_LIBS
7757
fi
7758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
7759
$as_echo "$ac_cv_lib_socket_socket" >&6; }
7760
if test "x$ac_cv_lib_socket_socket" = xyes; then :
7761
  cat >>confdefs.h <<_ACEOF
7762
#define HAVE_LIBSOCKET 1
7763
_ACEOF
7764
 
7765
  LIBS="-lsocket $LIBS"
7766
 
7767
fi
7768
 
7769
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7770
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7771
if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7772
  $as_echo_n "(cached) " >&6
7773
else
7774
  ac_check_lib_save_LIBS=$LIBS
7775
LIBS="-lnsl  $LIBS"
7776
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777
/* end confdefs.h.  */
7778
 
7779
/* Override any GCC internal prototype to avoid an error.
7780
   Use char because int might match the return type of a GCC
7781
   builtin and then its argument prototype would still apply.  */
7782
#ifdef __cplusplus
7783
extern "C"
7784
#endif
7785
char gethostbyname ();
7786
int
7787
main ()
7788
{
7789
return gethostbyname ();
7790
  ;
7791
  return 0;
7792
}
7793
_ACEOF
7794
if ac_fn_c_try_link "$LINENO"; then :
7795
  ac_cv_lib_nsl_gethostbyname=yes
7796
else
7797
  ac_cv_lib_nsl_gethostbyname=no
7798
fi
7799
rm -f core conftest.err conftest.$ac_objext \
7800
    conftest$ac_exeext conftest.$ac_ext
7801
LIBS=$ac_check_lib_save_LIBS
7802
fi
7803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7804
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7805
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7806
  cat >>confdefs.h <<_ACEOF
7807
#define HAVE_LIBNSL 1
7808
_ACEOF
7809
 
7810
  LIBS="-lnsl $LIBS"
7811
 
7812
fi
7813
 
7814
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5
7815
$as_echo_n "checking whether compiling with process communication is possible... " >&6; }
7816
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817
/* end confdefs.h.  */
7818
 
7819
#include <stdio.h>
7820
#include <stdlib.h>
7821
#include <stdarg.h>
7822
#include <fcntl.h>
7823
#include <netdb.h>
7824
#include <netinet/in.h>
7825
#include <errno.h>
7826
#include <sys/types.h>
7827
#include <sys/socket.h>
7828
	/* Check bitfields */
7829
	struct nbbuf {
7830
	unsigned int  initDone:1;
7831
	unsigned short signmaplen;
7832
	};
7833
 
7834
int
7835
main ()
7836
{
7837
 
7838
		/* Check creating a socket. */
7839
		struct sockaddr_in server;
7840
		(void)socket(AF_INET, SOCK_STREAM, 0);
7841
		(void)htons(100);
7842
		(void)gethostbyname("microsoft.com");
7843
		if (errno == ECONNREFUSED)
7844
		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
7845
 
7846
  ;
7847
  return 0;
7848
}
7849
_ACEOF
7850
if ac_fn_c_try_link "$LINENO"; then :
7851
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7852
$as_echo "yes" >&6; }
7853
else
7854
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855
$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no"
7856
fi
7857
rm -f core conftest.err conftest.$ac_objext \
7858
    conftest$ac_exeext conftest.$ac_ext
7859
fi
7860
if test "$enable_netbeans" = "yes"; then
7861
  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
7862
 
7863
  NETBEANS_SRC="netbeans.c"
7864
 
7865
  NETBEANS_OBJ="objects/netbeans.o"
7866
 
7867
fi
7868
if test "$enable_channel" = "yes"; then
7869
  $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h
7870
 
7871
  CHANNEL_SRC="channel.c"
7872
 
7873
  CHANNEL_OBJ="objects/channel.o"
7874
 
7875
fi
7876
 
7877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-terminal argument" >&5
7878
$as_echo_n "checking --enable-terminal argument... " >&6; }
7879
# Check whether --enable-terminal was given.
7880
if test "${enable_terminal+set}" = set; then :
7881
  enableval=$enable_terminal;
7882
else
7883
  enable_terminal="auto"
7884
fi
7885
 
7886
if test "$enable_terminal" = "yes" || test "$enable_terminal" = "auto" -a "x$features" = "xhuge" ; then
7887
  if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then
7888
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use terminal emulator with tiny or small features" >&5
7889
$as_echo "cannot use terminal emulator with tiny or small features" >&6; }
7890
    enable_terminal="no"
7891
  else
7892
    if test "$enable_terminal" = "auto"; then
7893
      enable_terminal="yes"
7894
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to yes" >&5
7895
$as_echo "defaulting to yes" >&6; }
7896
    else
7897
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7898
$as_echo "yes" >&6; }
7899
    fi
7900
  fi
7901
else
7902
  if test "$enable_terminal" = "auto"; then
7903
    enable_terminal="no"
7904
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to no" >&5
7905
$as_echo "defaulting to no" >&6; }
7906
  else
7907
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908
$as_echo "no" >&6; }
7909
  fi
7910
fi
7911
if test "$enable_terminal" = "yes" -a "$enable_channel" = "yes"; then
7912
  $as_echo "#define FEAT_TERMINAL 1" >>confdefs.h
7913
 
7914
  TERM_SRC="libvterm/src/encoding.c libvterm/src/keyboard.c libvterm/src/mouse.c libvterm/src/parser.c libvterm/src/pen.c libvterm/src/screen.c libvterm/src/state.c libvterm/src/unicode.c libvterm/src/vterm.c"
7915
 
7916
  TERM_OBJ="objects/term_encoding.o objects/term_keyboard.o objects/term_mouse.o objects/term_parser.o objects/term_pen.o objects/term_screen.o objects/term_state.o objects/term_unicode.o objects/term_vterm.o"
7917
 
7918
fi
7919
 
7920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-autoservername argument" >&5
7921
$as_echo_n "checking --enable-autoservername argument... " >&6; }
7922
# Check whether --enable-autoservername was given.
7923
if test "${enable_autoservername+set}" = set; then :
7924
  enableval=$enable_autoservername;
7925
else
7926
  enable_autoservername="no"
7927
fi
7928
 
7929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_autoservername" >&5
7930
$as_echo "$enable_autoservername" >&6; }
7931
if test "$enable_autoservername" = "yes"; then
7932
  $as_echo "#define FEAT_AUTOSERVERNAME 1" >>confdefs.h
7933
 
7934
fi
7935
 
7936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
7937
$as_echo_n "checking --enable-multibyte argument... " >&6; }
7938
# Check whether --enable-multibyte was given.
7939
if test "${enable_multibyte+set}" = set; then :
7940
  enableval=$enable_multibyte;
7941
else
7942
  enable_multibyte="no"
7943
fi
7944
 
7945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
7946
$as_echo "$enable_multibyte" >&6; }
7947
if test "$enable_multibyte" = "yes"; then
7948
  $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
7949
 
7950
fi
7951
 
7952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
7953
$as_echo_n "checking --enable-hangulinput argument... " >&6; }
7954
# Check whether --enable-hangulinput was given.
7955
if test "${enable_hangulinput+set}" = set; then :
7956
  enableval=$enable_hangulinput;
7957
else
7958
  enable_hangulinput="no"
7959
fi
7960
 
7961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
7962
$as_echo "$enable_hangulinput" >&6; }
7963
 
7964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
7965
$as_echo_n "checking --enable-xim argument... " >&6; }
7966
# Check whether --enable-xim was given.
7967
if test "${enable_xim+set}" = set; then :
7968
  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
7969
$as_echo "$enable_xim" >&6; }
7970
else
7971
  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
7972
$as_echo "defaulting to auto" >&6; }
7973
fi
7974
 
7975
 
7976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
7977
$as_echo_n "checking --enable-fontset argument... " >&6; }
7978
# Check whether --enable-fontset was given.
7979
if test "${enable_fontset+set}" = set; then :
7980
  enableval=$enable_fontset;
7981
else
7982
  enable_fontset="no"
7983
fi
7984
 
7985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
7986
$as_echo "$enable_fontset" >&6; }
7987
 
7988
test -z "$with_x" && with_x=yes
7989
test "${enable_gui-yes}" != no -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
7990
if test "$with_x" = no; then
7991
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
7992
$as_echo "defaulting to: don't HAVE_X11" >&6; }
7993
else
7994
 
7995
  # Extract the first word of "xmkmf", so it can be a program name with args.
7996
set dummy xmkmf; ac_word=$2
7997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998
$as_echo_n "checking for $ac_word... " >&6; }
7999
if ${ac_cv_path_xmkmfpath+:} false; then :
8000
  $as_echo_n "(cached) " >&6
8001
else
8002
  case $xmkmfpath in
8003
  [\\/]* | ?:[\\/]*)
8004
  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
8005
  ;;
8006
  *)
8007
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008
for as_dir in $PATH
8009
do
8010
  IFS=$as_save_IFS
8011
  test -z "$as_dir" && as_dir=.
8012
    for ac_exec_ext in '' $ac_executable_extensions; do
8013
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8014
    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
8015
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016
    break 2
8017
  fi
8018
done
8019
  done
8020
IFS=$as_save_IFS
8021
 
8022
  ;;
8023
esac
8024
fi
8025
xmkmfpath=$ac_cv_path_xmkmfpath
8026
if test -n "$xmkmfpath"; then
8027
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
8028
$as_echo "$xmkmfpath" >&6; }
8029
else
8030
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031
$as_echo "no" >&6; }
8032
fi
8033
 
8034
 
8035
 
8036
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8037
$as_echo_n "checking for X... " >&6; }
8038
 
8039
 
8040
# Check whether --with-x was given.
8041
if test "${with_x+set}" = set; then :
8042
  withval=$with_x;
8043
fi
8044
 
8045
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8046
if test "x$with_x" = xno; then
8047
  # The user explicitly disabled X.
8048
  have_x=disabled
8049
else
8050
  case $x_includes,$x_libraries in #(
8051
    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8052
    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8053
  $as_echo_n "(cached) " >&6
8054
else
8055
  # One or both of the vars are not set, and there is no cached value.
8056
ac_x_includes=no ac_x_libraries=no
8057
rm -f -r conftest.dir
8058
if mkdir conftest.dir; then
8059
  cd conftest.dir
8060
  cat >Imakefile <<'_ACEOF'
8061
incroot:
8062
	@echo incroot='${INCROOT}'
8063
usrlibdir:
8064
	@echo usrlibdir='${USRLIBDIR}'
8065
libdir:
8066
	@echo libdir='${LIBDIR}'
8067
_ACEOF
8068
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8069
    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8070
    for ac_var in incroot usrlibdir libdir; do
8071
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8072
    done
8073
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8074
    for ac_extension in a so sl dylib la dll; do
8075
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8076
	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8077
	ac_im_usrlibdir=$ac_im_libdir; break
8078
      fi
8079
    done
8080
    # Screen out bogus values from the imake configuration.  They are
8081
    # bogus both because they are the default anyway, and because
8082
    # using them would break gcc on systems where it needs fixed includes.
8083
    case $ac_im_incroot in
8084
	/usr/include) ac_x_includes= ;;
8085
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8086
    esac
8087
    case $ac_im_usrlibdir in
8088
	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
8089
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8090
    esac
8091
  fi
8092
  cd ..
8093
  rm -f -r conftest.dir
8094
fi
8095
 
8096
# Standard set of common directories for X headers.
8097
# Check X11 before X11Rn because it is often a symlink to the current release.
8098
ac_x_header_dirs='
8099
/usr/X11/include
8100
/usr/X11R7/include
8101
/usr/X11R6/include
8102
/usr/X11R5/include
8103
/usr/X11R4/include
8104
 
8105
/usr/include/X11
8106
/usr/include/X11R7
8107
/usr/include/X11R6
8108
/usr/include/X11R5
8109
/usr/include/X11R4
8110
 
8111
/usr/local/X11/include
8112
/usr/local/X11R7/include
8113
/usr/local/X11R6/include
8114
/usr/local/X11R5/include
8115
/usr/local/X11R4/include
8116
 
8117
/usr/local/include/X11
8118
/usr/local/include/X11R7
8119
/usr/local/include/X11R6
8120
/usr/local/include/X11R5
8121
/usr/local/include/X11R4
8122
 
8123
/usr/X386/include
8124
/usr/x386/include
8125
/usr/XFree86/include/X11
8126
 
8127
/usr/include
8128
/usr/local/include
8129
/usr/unsupported/include
8130
/usr/athena/include
8131
/usr/local/x11r5/include
8132
/usr/lpp/Xamples/include
8133
 
8134
/usr/openwin/include
8135
/usr/openwin/share/include'
8136
 
8137
if test "$ac_x_includes" = no; then
8138
  # Guess where to find include files, by looking for Xlib.h.
8139
  # First, try using that file with no special directory specified.
8140
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141
/* end confdefs.h.  */
8142
#include <X11/Xlib.h>
8143
_ACEOF
8144
if ac_fn_c_try_cpp "$LINENO"; then :
8145
  # We can compile using X headers with no special include directory.
8146
ac_x_includes=
8147
else
8148
  for ac_dir in $ac_x_header_dirs; do
8149
  if test -r "$ac_dir/X11/Xlib.h"; then
8150
    ac_x_includes=$ac_dir
8151
    break
8152
  fi
8153
done
8154
fi
8155
rm -f conftest.err conftest.i conftest.$ac_ext
8156
fi # $ac_x_includes = no
8157
 
8158
if test "$ac_x_libraries" = no; then
8159
  # Check for the libraries.
8160
  # See if we find them without any special options.
8161
  # Don't add to $LIBS permanently.
8162
  ac_save_LIBS=$LIBS
8163
  LIBS="-lX11 $LIBS"
8164
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165
/* end confdefs.h.  */
8166
#include <X11/Xlib.h>
8167
int
8168
main ()
8169
{
8170
XrmInitialize ()
8171
  ;
8172
  return 0;
8173
}
8174
_ACEOF
8175
if ac_fn_c_try_link "$LINENO"; then :
8176
  LIBS=$ac_save_LIBS
8177
# We can link X programs with no special library path.
8178
ac_x_libraries=
8179
else
8180
  LIBS=$ac_save_LIBS
8181
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8182
do
8183
  # Don't even attempt the hair of trying to link an X program!
8184
  for ac_extension in a so sl dylib la dll; do
8185
    if test -r "$ac_dir/libX11.$ac_extension"; then
8186
      ac_x_libraries=$ac_dir
8187
      break 2
8188
    fi
8189
  done
8190
done
8191
fi
8192
rm -f core conftest.err conftest.$ac_objext \
8193
    conftest$ac_exeext conftest.$ac_ext
8194
fi # $ac_x_libraries = no
8195
 
8196
case $ac_x_includes,$ac_x_libraries in #(
8197
  no,* | *,no | *\'*)
8198
    # Didn't find X, or a directory has "'" in its name.
8199
    ac_cv_have_x="have_x=no";; #(
8200
  *)
8201
    # Record where we found X for the cache.
8202
    ac_cv_have_x="have_x=yes\
8203
	ac_x_includes='$ac_x_includes'\
8204
	ac_x_libraries='$ac_x_libraries'"
8205
esac
8206
fi
8207
;; #(
8208
    *) have_x=yes;;
8209
  esac
8210
  eval "$ac_cv_have_x"
8211
fi # $with_x != no
8212
 
8213
if test "$have_x" != yes; then
8214
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8215
$as_echo "$have_x" >&6; }
8216
  no_x=yes
8217
else
8218
  # If each of the values was on the command line, it overrides each guess.
8219
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8220
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8221
  # Update the cache value to reflect the command line values.
8222
  ac_cv_have_x="have_x=yes\
8223
	ac_x_includes='$x_includes'\
8224
	ac_x_libraries='$x_libraries'"
8225
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8226
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8227
fi
8228
 
8229
if test "$no_x" = yes; then
8230
  # Not all programs may use this symbol, but it does not hurt to define it.
8231
 
8232
$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8233
 
8234
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8235
else
8236
  if test -n "$x_includes"; then
8237
    X_CFLAGS="$X_CFLAGS -I$x_includes"
8238
  fi
8239
 
8240
  # It would also be nice to do this for all -L options, not just this one.
8241
  if test -n "$x_libraries"; then
8242
    X_LIBS="$X_LIBS -L$x_libraries"
8243
    # For Solaris; some versions of Sun CC require a space after -R and
8244
    # others require no space.  Words are not sufficient . . . .
8245
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8246
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
8247
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8248
    ac_xsave_c_werror_flag=$ac_c_werror_flag
8249
    ac_c_werror_flag=yes
8250
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251
/* end confdefs.h.  */
8252
 
8253
int
8254
main ()
8255
{
8256
 
8257
  ;
8258
  return 0;
8259
}
8260
_ACEOF
8261
if ac_fn_c_try_link "$LINENO"; then :
8262
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263
$as_echo "no" >&6; }
8264
       X_LIBS="$X_LIBS -R$x_libraries"
8265
else
8266
  LIBS="$ac_xsave_LIBS -R $x_libraries"
8267
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268
/* end confdefs.h.  */
8269
 
8270
int
8271
main ()
8272
{
8273
 
8274
  ;
8275
  return 0;
8276
}
8277
_ACEOF
8278
if ac_fn_c_try_link "$LINENO"; then :
8279
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8280
$as_echo "yes" >&6; }
8281
	  X_LIBS="$X_LIBS -R $x_libraries"
8282
else
8283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8284
$as_echo "neither works" >&6; }
8285
fi
8286
rm -f core conftest.err conftest.$ac_objext \
8287
    conftest$ac_exeext conftest.$ac_ext
8288
fi
8289
rm -f core conftest.err conftest.$ac_objext \
8290
    conftest$ac_exeext conftest.$ac_ext
8291
    ac_c_werror_flag=$ac_xsave_c_werror_flag
8292
    LIBS=$ac_xsave_LIBS
8293
  fi
8294
 
8295
  # Check for system-dependent libraries X programs must link with.
8296
  # Do this before checking for the system-independent R6 libraries
8297
  # (-lICE), since we may need -lsocket or whatever for X linking.
8298
 
8299
  if test "$ISC" = yes; then
8300
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8301
  else
8302
    # Martyn Johnson says this is needed for Ultrix, if the X
8303
    # libraries were built with DECnet support.  And Karl Berry says
8304
    # the Alpha needs dnet_stub (dnet does not exist).
8305
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8306
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307
/* end confdefs.h.  */
8308
 
8309
/* Override any GCC internal prototype to avoid an error.
8310
   Use char because int might match the return type of a GCC
8311
   builtin and then its argument prototype would still apply.  */
8312
#ifdef __cplusplus
8313
extern "C"
8314
#endif
8315
char XOpenDisplay ();
8316
int
8317
main ()
8318
{
8319
return XOpenDisplay ();
8320
  ;
8321
  return 0;
8322
}
8323
_ACEOF
8324
if ac_fn_c_try_link "$LINENO"; then :
8325
 
8326
else
8327
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8328
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8329
if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8330
  $as_echo_n "(cached) " >&6
8331
else
8332
  ac_check_lib_save_LIBS=$LIBS
8333
LIBS="-ldnet  $LIBS"
8334
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335
/* end confdefs.h.  */
8336
 
8337
/* Override any GCC internal prototype to avoid an error.
8338
   Use char because int might match the return type of a GCC
8339
   builtin and then its argument prototype would still apply.  */
8340
#ifdef __cplusplus
8341
extern "C"
8342
#endif
8343
char dnet_ntoa ();
8344
int
8345
main ()
8346
{
8347
return dnet_ntoa ();
8348
  ;
8349
  return 0;
8350
}
8351
_ACEOF
8352
if ac_fn_c_try_link "$LINENO"; then :
8353
  ac_cv_lib_dnet_dnet_ntoa=yes
8354
else
8355
  ac_cv_lib_dnet_dnet_ntoa=no
8356
fi
8357
rm -f core conftest.err conftest.$ac_objext \
8358
    conftest$ac_exeext conftest.$ac_ext
8359
LIBS=$ac_check_lib_save_LIBS
8360
fi
8361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8362
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8363
if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8364
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8365
fi
8366
 
8367
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8368
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8369
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8370
if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8371
  $as_echo_n "(cached) " >&6
8372
else
8373
  ac_check_lib_save_LIBS=$LIBS
8374
LIBS="-ldnet_stub  $LIBS"
8375
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376
/* end confdefs.h.  */
8377
 
8378
/* Override any GCC internal prototype to avoid an error.
8379
   Use char because int might match the return type of a GCC
8380
   builtin and then its argument prototype would still apply.  */
8381
#ifdef __cplusplus
8382
extern "C"
8383
#endif
8384
char dnet_ntoa ();
8385
int
8386
main ()
8387
{
8388
return dnet_ntoa ();
8389
  ;
8390
  return 0;
8391
}
8392
_ACEOF
8393
if ac_fn_c_try_link "$LINENO"; then :
8394
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
8395
else
8396
  ac_cv_lib_dnet_stub_dnet_ntoa=no
8397
fi
8398
rm -f core conftest.err conftest.$ac_objext \
8399
    conftest$ac_exeext conftest.$ac_ext
8400
LIBS=$ac_check_lib_save_LIBS
8401
fi
8402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8403
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8404
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8405
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8406
fi
8407
 
8408
    fi
8409
fi
8410
rm -f core conftest.err conftest.$ac_objext \
8411
    conftest$ac_exeext conftest.$ac_ext
8412
    LIBS="$ac_xsave_LIBS"
8413
 
8414
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8415
    # to get the SysV transport functions.
8416
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8417
    # needs -lnsl.
8418
    # The nsl library prevents programs from opening the X display
8419
    # on Irix 5.2, according to T.E. Dickey.
8420
    # The functions gethostbyname, getservbyname, and inet_addr are
8421
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8422
    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8423
if test "x$ac_cv_func_gethostbyname" = xyes; then :
8424
 
8425
fi
8426
 
8427
    if test $ac_cv_func_gethostbyname = no; then
8428
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8429
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8430
if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8431
  $as_echo_n "(cached) " >&6
8432
else
8433
  ac_check_lib_save_LIBS=$LIBS
8434
LIBS="-lnsl  $LIBS"
8435
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436
/* end confdefs.h.  */
8437
 
8438
/* Override any GCC internal prototype to avoid an error.
8439
   Use char because int might match the return type of a GCC
8440
   builtin and then its argument prototype would still apply.  */
8441
#ifdef __cplusplus
8442
extern "C"
8443
#endif
8444
char gethostbyname ();
8445
int
8446
main ()
8447
{
8448
return gethostbyname ();
8449
  ;
8450
  return 0;
8451
}
8452
_ACEOF
8453
if ac_fn_c_try_link "$LINENO"; then :
8454
  ac_cv_lib_nsl_gethostbyname=yes
8455
else
8456
  ac_cv_lib_nsl_gethostbyname=no
8457
fi
8458
rm -f core conftest.err conftest.$ac_objext \
8459
    conftest$ac_exeext conftest.$ac_ext
8460
LIBS=$ac_check_lib_save_LIBS
8461
fi
8462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8463
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8464
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8465
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8466
fi
8467
 
8468
      if test $ac_cv_lib_nsl_gethostbyname = no; then
8469
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8470
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8471
if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8472
  $as_echo_n "(cached) " >&6
8473
else
8474
  ac_check_lib_save_LIBS=$LIBS
8475
LIBS="-lbsd  $LIBS"
8476
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477
/* end confdefs.h.  */
8478
 
8479
/* Override any GCC internal prototype to avoid an error.
8480
   Use char because int might match the return type of a GCC
8481
   builtin and then its argument prototype would still apply.  */
8482
#ifdef __cplusplus
8483
extern "C"
8484
#endif
8485
char gethostbyname ();
8486
int
8487
main ()
8488
{
8489
return gethostbyname ();
8490
  ;
8491
  return 0;
8492
}
8493
_ACEOF
8494
if ac_fn_c_try_link "$LINENO"; then :
8495
  ac_cv_lib_bsd_gethostbyname=yes
8496
else
8497
  ac_cv_lib_bsd_gethostbyname=no
8498
fi
8499
rm -f core conftest.err conftest.$ac_objext \
8500
    conftest$ac_exeext conftest.$ac_ext
8501
LIBS=$ac_check_lib_save_LIBS
8502
fi
8503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8504
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8505
if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8506
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8507
fi
8508
 
8509
      fi
8510
    fi
8511
 
8512
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
8513
    # socket/setsockopt and other routines are undefined under SCO ODT
8514
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8515
    # on later versions), says Simon Leinen: it contains gethostby*
8516
    # variants that don't use the name server (or something).  -lsocket
8517
    # must be given before -lnsl if both are needed.  We assume that
8518
    # if connect needs -lnsl, so does gethostbyname.
8519
    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8520
if test "x$ac_cv_func_connect" = xyes; then :
8521
 
8522
fi
8523
 
8524
    if test $ac_cv_func_connect = no; then
8525
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8526
$as_echo_n "checking for connect in -lsocket... " >&6; }
8527
if ${ac_cv_lib_socket_connect+:} false; then :
8528
  $as_echo_n "(cached) " >&6
8529
else
8530
  ac_check_lib_save_LIBS=$LIBS
8531
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8532
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533
/* end confdefs.h.  */
8534
 
8535
/* Override any GCC internal prototype to avoid an error.
8536
   Use char because int might match the return type of a GCC
8537
   builtin and then its argument prototype would still apply.  */
8538
#ifdef __cplusplus
8539
extern "C"
8540
#endif
8541
char connect ();
8542
int
8543
main ()
8544
{
8545
return connect ();
8546
  ;
8547
  return 0;
8548
}
8549
_ACEOF
8550
if ac_fn_c_try_link "$LINENO"; then :
8551
  ac_cv_lib_socket_connect=yes
8552
else
8553
  ac_cv_lib_socket_connect=no
8554
fi
8555
rm -f core conftest.err conftest.$ac_objext \
8556
    conftest$ac_exeext conftest.$ac_ext
8557
LIBS=$ac_check_lib_save_LIBS
8558
fi
8559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8560
$as_echo "$ac_cv_lib_socket_connect" >&6; }
8561
if test "x$ac_cv_lib_socket_connect" = xyes; then :
8562
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8563
fi
8564
 
8565
    fi
8566
 
8567
    # Guillermo Gomez says -lposix is necessary on A/UX.
8568
    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8569
if test "x$ac_cv_func_remove" = xyes; then :
8570
 
8571
fi
8572
 
8573
    if test $ac_cv_func_remove = no; then
8574
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8575
$as_echo_n "checking for remove in -lposix... " >&6; }
8576
if ${ac_cv_lib_posix_remove+:} false; then :
8577
  $as_echo_n "(cached) " >&6
8578
else
8579
  ac_check_lib_save_LIBS=$LIBS
8580
LIBS="-lposix  $LIBS"
8581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582
/* end confdefs.h.  */
8583
 
8584
/* Override any GCC internal prototype to avoid an error.
8585
   Use char because int might match the return type of a GCC
8586
   builtin and then its argument prototype would still apply.  */
8587
#ifdef __cplusplus
8588
extern "C"
8589
#endif
8590
char remove ();
8591
int
8592
main ()
8593
{
8594
return remove ();
8595
  ;
8596
  return 0;
8597
}
8598
_ACEOF
8599
if ac_fn_c_try_link "$LINENO"; then :
8600
  ac_cv_lib_posix_remove=yes
8601
else
8602
  ac_cv_lib_posix_remove=no
8603
fi
8604
rm -f core conftest.err conftest.$ac_objext \
8605
    conftest$ac_exeext conftest.$ac_ext
8606
LIBS=$ac_check_lib_save_LIBS
8607
fi
8608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8609
$as_echo "$ac_cv_lib_posix_remove" >&6; }
8610
if test "x$ac_cv_lib_posix_remove" = xyes; then :
8611
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8612
fi
8613
 
8614
    fi
8615
 
8616
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8617
    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8618
if test "x$ac_cv_func_shmat" = xyes; then :
8619
 
8620
fi
8621
 
8622
    if test $ac_cv_func_shmat = no; then
8623
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8624
$as_echo_n "checking for shmat in -lipc... " >&6; }
8625
if ${ac_cv_lib_ipc_shmat+:} false; then :
8626
  $as_echo_n "(cached) " >&6
8627
else
8628
  ac_check_lib_save_LIBS=$LIBS
8629
LIBS="-lipc  $LIBS"
8630
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631
/* end confdefs.h.  */
8632
 
8633
/* Override any GCC internal prototype to avoid an error.
8634
   Use char because int might match the return type of a GCC
8635
   builtin and then its argument prototype would still apply.  */
8636
#ifdef __cplusplus
8637
extern "C"
8638
#endif
8639
char shmat ();
8640
int
8641
main ()
8642
{
8643
return shmat ();
8644
  ;
8645
  return 0;
8646
}
8647
_ACEOF
8648
if ac_fn_c_try_link "$LINENO"; then :
8649
  ac_cv_lib_ipc_shmat=yes
8650
else
8651
  ac_cv_lib_ipc_shmat=no
8652
fi
8653
rm -f core conftest.err conftest.$ac_objext \
8654
    conftest$ac_exeext conftest.$ac_ext
8655
LIBS=$ac_check_lib_save_LIBS
8656
fi
8657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8658
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8659
if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8660
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8661
fi
8662
 
8663
    fi
8664
  fi
8665
 
8666
  # Check for libraries that X11R6 Xt/Xaw programs need.
8667
  ac_save_LDFLAGS=$LDFLAGS
8668
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8669
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8670
  # check for ICE first), but we must link in the order -lSM -lICE or
8671
  # we get undefined symbols.  So assume we have SM if we have ICE.
8672
  # These have to be linked with before -lX11, unlike the other
8673
  # libraries we check for below, so use a different variable.
8674
  # John Interrante, Karl Berry
8675
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8676
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8677
if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8678
  $as_echo_n "(cached) " >&6
8679
else
8680
  ac_check_lib_save_LIBS=$LIBS
8681
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8682
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683
/* end confdefs.h.  */
8684
 
8685
/* Override any GCC internal prototype to avoid an error.
8686
   Use char because int might match the return type of a GCC
8687
   builtin and then its argument prototype would still apply.  */
8688
#ifdef __cplusplus
8689
extern "C"
8690
#endif
8691
char IceConnectionNumber ();
8692
int
8693
main ()
8694
{
8695
return IceConnectionNumber ();
8696
  ;
8697
  return 0;
8698
}
8699
_ACEOF
8700
if ac_fn_c_try_link "$LINENO"; then :
8701
  ac_cv_lib_ICE_IceConnectionNumber=yes
8702
else
8703
  ac_cv_lib_ICE_IceConnectionNumber=no
8704
fi
8705
rm -f core conftest.err conftest.$ac_objext \
8706
    conftest$ac_exeext conftest.$ac_ext
8707
LIBS=$ac_check_lib_save_LIBS
8708
fi
8709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8710
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8711
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8712
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8713
fi
8714
 
8715
  LDFLAGS=$ac_save_LDFLAGS
8716
 
8717
fi
8718
 
8719
 
8720
        if test "$zOSUnix" = "yes"; then
8721
    CFLAGS="$CFLAGS -W c,dll"
8722
    LDFLAGS="$LDFLAGS -W l,dll"
8723
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8724
  fi
8725
 
8726
 
8727
  if test -d "$x_includes" && test ! -d "$x_libraries"; then
8728
    x_libraries=`echo "$x_includes" | sed s/include/lib/`
8729
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
8730
$as_echo "Corrected X libraries to $x_libraries" >&6; }
8731
    X_LIBS="$X_LIBS -L$x_libraries"
8732
    if test "`(uname) 2>/dev/null`" = SunOS &&
8733
					 uname -r | grep '^5' >/dev/null; then
8734
      X_LIBS="$X_LIBS -R $x_libraries"
8735
    fi
8736
  fi
8737
 
8738
  if test -d "$x_libraries" && test ! -d "$x_includes"; then
8739
    x_includes=`echo "$x_libraries" | sed s/lib/include/`
8740
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
8741
$as_echo "Corrected X includes to $x_includes" >&6; }
8742
    X_CFLAGS="$X_CFLAGS -I$x_includes"
8743
  fi
8744
 
8745
    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
8746
    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
8747
    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8748
 
8749
 
8750
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
8751
$as_echo_n "checking if X11 header files can be found... " >&6; }
8752
  cflags_save=$CFLAGS
8753
  CFLAGS="$CFLAGS $X_CFLAGS"
8754
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755
/* end confdefs.h.  */
8756
#include <X11/Xlib.h>
8757
#include <X11/Intrinsic.h>
8758
int
8759
main ()
8760
{
8761
 
8762
  ;
8763
  return 0;
8764
}
8765
_ACEOF
8766
if ac_fn_c_try_compile "$LINENO"; then :
8767
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8768
$as_echo "yes" >&6; }
8769
else
8770
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771
$as_echo "no" >&6; }; no_x=yes
8772
fi
8773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774
  CFLAGS=$cflags_save
8775
 
8776
  if test "${no_x-no}" = yes; then
8777
    with_x=no
8778
  else
8779
    $as_echo "#define HAVE_X11 1" >>confdefs.h
8780
 
8781
    X_LIB="-lXt -lX11";
8782
 
8783
 
8784
    ac_save_LDFLAGS="$LDFLAGS"
8785
    LDFLAGS="-L$x_libraries $LDFLAGS"
8786
 
8787
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8788
$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8789
if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then :
8790
  $as_echo_n "(cached) " >&6
8791
else
8792
  ac_check_lib_save_LIBS=$LIBS
8793
LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8794
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795
/* end confdefs.h.  */
8796
 
8797
/* Override any GCC internal prototype to avoid an error.
8798
   Use char because int might match the return type of a GCC
8799
   builtin and then its argument prototype would still apply.  */
8800
#ifdef __cplusplus
8801
extern "C"
8802
#endif
8803
char _XdmcpAuthDoIt ();
8804
int
8805
main ()
8806
{
8807
return _XdmcpAuthDoIt ();
8808
  ;
8809
  return 0;
8810
}
8811
_ACEOF
8812
if ac_fn_c_try_link "$LINENO"; then :
8813
  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8814
else
8815
  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8816
fi
8817
rm -f core conftest.err conftest.$ac_objext \
8818
    conftest$ac_exeext conftest.$ac_ext
8819
LIBS=$ac_check_lib_save_LIBS
8820
fi
8821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8822
$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8823
if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then :
8824
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8825
fi
8826
 
8827
 
8828
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
8829
$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8830
if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then :
8831
  $as_echo_n "(cached) " >&6
8832
else
8833
  ac_check_lib_save_LIBS=$LIBS
8834
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8835
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836
/* end confdefs.h.  */
8837
 
8838
/* Override any GCC internal prototype to avoid an error.
8839
   Use char because int might match the return type of a GCC
8840
   builtin and then its argument prototype would still apply.  */
8841
#ifdef __cplusplus
8842
extern "C"
8843
#endif
8844
char IceOpenConnection ();
8845
int
8846
main ()
8847
{
8848
return IceOpenConnection ();
8849
  ;
8850
  return 0;
8851
}
8852
_ACEOF
8853
if ac_fn_c_try_link "$LINENO"; then :
8854
  ac_cv_lib_ICE_IceOpenConnection=yes
8855
else
8856
  ac_cv_lib_ICE_IceOpenConnection=no
8857
fi
8858
rm -f core conftest.err conftest.$ac_objext \
8859
    conftest$ac_exeext conftest.$ac_ext
8860
LIBS=$ac_check_lib_save_LIBS
8861
fi
8862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8863
$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8864
if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then :
8865
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8866
fi
8867
 
8868
 
8869
        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8870
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
8871
$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8872
if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
8873
  $as_echo_n "(cached) " >&6
8874
else
8875
  ac_check_lib_save_LIBS=$LIBS
8876
LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8877
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878
/* end confdefs.h.  */
8879
 
8880
/* Override any GCC internal prototype to avoid an error.
8881
   Use char because int might match the return type of a GCC
8882
   builtin and then its argument prototype would still apply.  */
8883
#ifdef __cplusplus
8884
extern "C"
8885
#endif
8886
char XpmCreatePixmapFromData ();
8887
int
8888
main ()
8889
{
8890
return XpmCreatePixmapFromData ();
8891
  ;
8892
  return 0;
8893
}
8894
_ACEOF
8895
if ac_fn_c_try_link "$LINENO"; then :
8896
  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8897
else
8898
  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8899
fi
8900
rm -f core conftest.err conftest.$ac_objext \
8901
    conftest$ac_exeext conftest.$ac_ext
8902
LIBS=$ac_check_lib_save_LIBS
8903
fi
8904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8905
$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8906
if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
8907
  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8908
fi
8909
 
8910
 
8911
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8912
$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8913
    cflags_save=$CFLAGS
8914
        if test "$GCC" = yes; then
8915
      CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8916
    else
8917
      CFLAGS="$CFLAGS $X_CFLAGS"
8918
    fi
8919
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920
/* end confdefs.h.  */
8921
#include <X11/Xlib.h>
8922
int
8923
main ()
8924
{
8925
 
8926
  ;
8927
  return 0;
8928
}
8929
_ACEOF
8930
if ac_fn_c_try_compile "$LINENO"; then :
8931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932
$as_echo "no" >&6; }
8933
else
8934
  CFLAGS="$CFLAGS -Wno-implicit-int"
8935
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936
/* end confdefs.h.  */
8937
#include <X11/Xlib.h>
8938
int
8939
main ()
8940
{
8941
 
8942
  ;
8943
  return 0;
8944
}
8945
_ACEOF
8946
if ac_fn_c_try_compile "$LINENO"; then :
8947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8948
$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8949
else
8950
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
8951
$as_echo "test failed" >&6; }
8952
 
8953
fi
8954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8955
 
8956
fi
8957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958
    CFLAGS=$cflags_save
8959
 
8960
    LDFLAGS="$ac_save_LDFLAGS"
8961
 
8962
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
8963
$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8964
    if ${ac_cv_small_wchar_t+:} false; then :
8965
  $as_echo_n "(cached) " >&6
8966
else
8967
  if test "$cross_compiling" = yes; then :
8968
  as_fn_error $? "failed to compile test program" "$LINENO" 5
8969
else
8970
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971
/* end confdefs.h.  */
8972
 
8973
#include <X11/Xlib.h>
8974
#if STDC_HEADERS
8975
# include <stdlib.h>
8976
# include <stddef.h>
8977
#endif
8978
		main()
8979
		{
8980
		  if (sizeof(wchar_t) <= 2)
8981
		    exit(1);
8982
		  exit(0);
8983
		}
8984
_ACEOF
8985
if ac_fn_c_try_run "$LINENO"; then :
8986
  ac_cv_small_wchar_t="no"
8987
else
8988
  ac_cv_small_wchar_t="yes"
8989
fi
8990
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8991
  conftest.$ac_objext conftest.beam conftest.$ac_ext
8992
fi
8993
 
8994
fi
8995
 
8996
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
8997
$as_echo "$ac_cv_small_wchar_t" >&6; }
8998
    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8999
      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
9000
 
9001
    fi
9002
 
9003
  fi
9004
fi
9005
 
9006
test "x$with_x" = xno -a "x$MACOS_X" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
9007
 
9008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
9009
$as_echo_n "checking --enable-gui argument... " >&6; }
9010
# Check whether --enable-gui was given.
9011
if test "${enable_gui+set}" = set; then :
9012
  enableval=$enable_gui;
9013
else
9014
  enable_gui="auto"
9015
fi
9016
 
9017
 
9018
enable_gui_canon=`echo "_$enable_gui" | \
9019
	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
9020
 
9021
SKIP_GTK2=YES
9022
SKIP_GTK3=YES
9023
SKIP_GNOME=YES
9024
SKIP_MOTIF=YES
9025
SKIP_ATHENA=YES
9026
SKIP_NEXTAW=YES
9027
SKIP_PHOTON=YES
9028
SKIP_CARBON=YES
9029
GUITYPE=NONE
9030
 
9031
if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
9032
  SKIP_PHOTON=
9033
  case "$enable_gui_canon" in
9034
    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9035
$as_echo "no GUI support" >&6; }
9036
		SKIP_PHOTON=YES ;;
9037
    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9038
$as_echo "yes - automatic GUI support" >&6; } ;;
9039
    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
9040
$as_echo "auto - automatic GUI support" >&6; } ;;
9041
    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
9042
$as_echo "Photon GUI support" >&6; } ;;
9043
    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9044
$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9045
		SKIP_PHOTON=YES ;;
9046
  esac
9047
 
9048
elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
9049
  SKIP_CARBON=
9050
  case "$enable_gui_canon" in
9051
    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9052
$as_echo "no GUI support" >&6; }
9053
		SKIP_CARBON=YES ;;
9054
    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
9055
$as_echo "yes - automatic GUI support" >&6; } ;;
9056
    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5
9057
$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; }
9058
		SKIP_CARBON=YES ;;
9059
    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
9060
$as_echo "Carbon GUI support" >&6; } ;;
9061
    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9062
$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9063
		SKIP_CARBON=YES ;;
9064
  esac
9065
 
9066
else
9067
 
9068
  case "$enable_gui_canon" in
9069
    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
9070
$as_echo "no GUI support" >&6; } ;;
9071
    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
9072
$as_echo "yes/auto - automatic GUI support" >&6; }
9073
		SKIP_GTK2=
9074
		SKIP_GNOME=
9075
		SKIP_MOTIF=
9076
		SKIP_ATHENA=
9077
		SKIP_NEXTAW=
9078
		SKIP_CARBON=;;
9079
    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
9080
$as_echo "GTK+ 2.x GUI support" >&6; }
9081
		SKIP_GTK2=;;
9082
    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
9083
$as_echo "GNOME 2.x GUI support" >&6; }
9084
		SKIP_GNOME=
9085
		SKIP_GTK2=;;
9086
    gtk3)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5
9087
$as_echo "GTK+ 3.x GUI support" >&6; }
9088
		SKIP_GTK3=;;
9089
    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
9090
$as_echo "Motif GUI support" >&6; }
9091
		SKIP_MOTIF=;;
9092
    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
9093
$as_echo "Athena GUI support" >&6; }
9094
		SKIP_ATHENA=;;
9095
    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
9096
$as_echo "neXtaw GUI support" >&6; }
9097
		SKIP_NEXTAW=;;
9098
    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9099
$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
9100
  esac
9101
 
9102
fi
9103
 
9104
if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
9105
				-a "$enable_gui_canon" != "gnome2"; then
9106
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
9107
$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
9108
  # Check whether --enable-gtk2-check was given.
9109
if test "${enable_gtk2_check+set}" = set; then :
9110
  enableval=$enable_gtk2_check;
9111
else
9112
  enable_gtk2_check="yes"
9113
fi
9114
 
9115
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
9116
$as_echo "$enable_gtk2_check" >&6; }
9117
  if test "x$enable_gtk2_check" = "xno"; then
9118
    SKIP_GTK2=YES
9119
    SKIP_GNOME=YES
9120
  fi
9121
fi
9122
 
9123
if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
9124
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
9125
$as_echo_n "checking whether or not to look for GNOME... " >&6; }
9126
  # Check whether --enable-gnome-check was given.
9127
if test "${enable_gnome_check+set}" = set; then :
9128
  enableval=$enable_gnome_check;
9129
else
9130
  enable_gnome_check="no"
9131
fi
9132
 
9133
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
9134
$as_echo "$enable_gnome_check" >&6; }
9135
  if test "x$enable_gnome_check" = "xno"; then
9136
    SKIP_GNOME=YES
9137
  fi
9138
fi
9139
 
9140
if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then
9141
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5
9142
$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; }
9143
  # Check whether --enable-gtk3-check was given.
9144
if test "${enable_gtk3_check+set}" = set; then :
9145
  enableval=$enable_gtk3_check;
9146
else
9147
  enable_gtk3_check="yes"
9148
fi
9149
 
9150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5
9151
$as_echo "$enable_gtk3_check" >&6; }
9152
  if test "x$enable_gtk3_check" = "xno"; then
9153
    SKIP_GTK3=YES
9154
  fi
9155
fi
9156
 
9157
if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
9158
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
9159
$as_echo_n "checking whether or not to look for Motif... " >&6; }
9160
  # Check whether --enable-motif-check was given.
9161
if test "${enable_motif_check+set}" = set; then :
9162
  enableval=$enable_motif_check;
9163
else
9164
  enable_motif_check="yes"
9165
fi
9166
 
9167
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
9168
$as_echo "$enable_motif_check" >&6; }
9169
  if test "x$enable_motif_check" = "xno"; then
9170
    SKIP_MOTIF=YES
9171
  fi
9172
fi
9173
 
9174
if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
9175
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
9176
$as_echo_n "checking whether or not to look for Athena... " >&6; }
9177
  # Check whether --enable-athena-check was given.
9178
if test "${enable_athena_check+set}" = set; then :
9179
  enableval=$enable_athena_check;
9180
else
9181
  enable_athena_check="yes"
9182
fi
9183
 
9184
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
9185
$as_echo "$enable_athena_check" >&6; }
9186
  if test "x$enable_athena_check" = "xno"; then
9187
    SKIP_ATHENA=YES
9188
  fi
9189
fi
9190
 
9191
if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
9192
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
9193
$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
9194
  # Check whether --enable-nextaw-check was given.
9195
if test "${enable_nextaw_check+set}" = set; then :
9196
  enableval=$enable_nextaw_check;
9197
else
9198
  enable_nextaw_check="yes"
9199
fi
9200
 
9201
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
9202
$as_echo "$enable_nextaw_check" >&6; };
9203
  if test "x$enable_nextaw_check" = "xno"; then
9204
    SKIP_NEXTAW=YES
9205
  fi
9206
fi
9207
 
9208
if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
9209
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
9210
$as_echo_n "checking whether or not to look for Carbon... " >&6; }
9211
  # Check whether --enable-carbon-check was given.
9212
if test "${enable_carbon_check+set}" = set; then :
9213
  enableval=$enable_carbon_check;
9214
else
9215
  enable_carbon_check="yes"
9216
fi
9217
 
9218
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
9219
$as_echo "$enable_carbon_check" >&6; };
9220
  if test "x$enable_carbon_check" = "xno"; then
9221
    SKIP_CARBON=YES
9222
  fi
9223
fi
9224
 
9225
 
9226
if test "x$MACOS_X" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
9227
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
9228
$as_echo_n "checking for Carbon GUI... " >&6; }
9229
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9230
$as_echo "yes" >&6; };
9231
  GUITYPE=CARBONGUI
9232
  if test "$VIMNAME" = "vim"; then
9233
    VIMNAME=Vim
9234
  fi
9235
 
9236
  if test "x$MACARCH" = "xboth"; then
9237
    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
9238
  else
9239
    CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
9240
  fi
9241
 
9242
    if test x$prefix = xNONE; then
9243
    prefix=/Applications
9244
  fi
9245
 
9246
    datadir='${prefix}/Vim.app/Contents/Resources'
9247
 
9248
    SKIP_GTK2=YES;
9249
  SKIP_GNOME=YES;
9250
  SKIP_MOTIF=YES;
9251
  SKIP_ATHENA=YES;
9252
  SKIP_NEXTAW=YES;
9253
  SKIP_PHOTON=YES;
9254
  SKIP_CARBON=YES
9255
fi
9256
 
9257
 
9258
 
9259
 
9260
 
9261
 
9262
 
9263
 
9264
if test -z "$SKIP_GTK2"; then
9265
 
9266
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9267
$as_echo_n "checking --disable-gtktest argument... " >&6; }
9268
  # Check whether --enable-gtktest was given.
9269
if test "${enable_gtktest+set}" = set; then :
9270
  enableval=$enable_gtktest;
9271
else
9272
  enable_gtktest=yes
9273
fi
9274
 
9275
  if test "x$enable_gtktest" = "xyes" ; then
9276
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9277
$as_echo "gtk test enabled" >&6; }
9278
  else
9279
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9280
$as_echo "gtk test disabled" >&6; }
9281
  fi
9282
 
9283
  if test "X$PKG_CONFIG" = "X"; then
9284
    if test -n "$ac_tool_prefix"; then
9285
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9286
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288
$as_echo_n "checking for $ac_word... " >&6; }
9289
if ${ac_cv_path_PKG_CONFIG+:} false; then :
9290
  $as_echo_n "(cached) " >&6
9291
else
9292
  case $PKG_CONFIG in
9293
  [\\/]* | ?:[\\/]*)
9294
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9295
  ;;
9296
  *)
9297
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298
for as_dir in $PATH
9299
do
9300
  IFS=$as_save_IFS
9301
  test -z "$as_dir" && as_dir=.
9302
    for ac_exec_ext in '' $ac_executable_extensions; do
9303
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9304
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9305
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306
    break 2
9307
  fi
9308
done
9309
  done
9310
IFS=$as_save_IFS
9311
 
9312
  ;;
9313
esac
9314
fi
9315
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9316
if test -n "$PKG_CONFIG"; then
9317
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9318
$as_echo "$PKG_CONFIG" >&6; }
9319
else
9320
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321
$as_echo "no" >&6; }
9322
fi
9323
 
9324
 
9325
fi
9326
if test -z "$ac_cv_path_PKG_CONFIG"; then
9327
  ac_pt_PKG_CONFIG=$PKG_CONFIG
9328
  # Extract the first word of "pkg-config", so it can be a program name with args.
9329
set dummy pkg-config; ac_word=$2
9330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331
$as_echo_n "checking for $ac_word... " >&6; }
9332
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9333
  $as_echo_n "(cached) " >&6
9334
else
9335
  case $ac_pt_PKG_CONFIG in
9336
  [\\/]* | ?:[\\/]*)
9337
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9338
  ;;
9339
  *)
9340
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341
for as_dir in $PATH
9342
do
9343
  IFS=$as_save_IFS
9344
  test -z "$as_dir" && as_dir=.
9345
    for ac_exec_ext in '' $ac_executable_extensions; do
9346
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9347
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9348
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9349
    break 2
9350
  fi
9351
done
9352
  done
9353
IFS=$as_save_IFS
9354
 
9355
  ;;
9356
esac
9357
fi
9358
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9359
if test -n "$ac_pt_PKG_CONFIG"; then
9360
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9361
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9362
else
9363
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364
$as_echo "no" >&6; }
9365
fi
9366
 
9367
  if test "x$ac_pt_PKG_CONFIG" = x; then
9368
    PKG_CONFIG="no"
9369
  else
9370
    case $cross_compiling:$ac_tool_warned in
9371
yes:)
9372
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9373
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9374
ac_tool_warned=yes ;;
9375
esac
9376
    PKG_CONFIG=$ac_pt_PKG_CONFIG
9377
  fi
9378
else
9379
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9380
fi
9381
 
9382
  fi
9383
 
9384
  if test "x$PKG_CONFIG" != "xno"; then
9385
 
9386
  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9387
  {
9388
    no_gtk=""
9389
    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9390
	  && $PKG_CONFIG --exists gtk+-2.0; then
9391
    {
9392
      min_gtk_version=2.2.0
9393
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9394
$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9395
                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9396
      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9397
      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9398
      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9399
	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9400
      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9401
	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9402
      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9403
	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9404
    }
9405
    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9406
	  && $PKG_CONFIG --exists gtk+-3.0; then
9407
    {
9408
      min_gtk_version=2.2.0
9409
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9410
$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9411
 
9412
      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9413
      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9414
      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9415
      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9416
	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9417
      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9418
	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9419
      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9420
	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9421
    }
9422
    else
9423
      no_gtk=yes
9424
    fi
9425
 
9426
    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9427
    {
9428
      ac_save_CFLAGS="$CFLAGS"
9429
      ac_save_LIBS="$LIBS"
9430
      CFLAGS="$CFLAGS $GTK_CFLAGS"
9431
      LIBS="$LIBS $GTK_LIBS"
9432
 
9433
                        rm -f conf.gtktest
9434
      if test "$cross_compiling" = yes; then :
9435
  echo $ac_n "cross compiling; assumed OK... $ac_c"
9436
else
9437
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438
/* end confdefs.h.  */
9439
 
9440
#include <gtk/gtk.h>
9441
#include <stdio.h>
9442
#if STDC_HEADERS
9443
# include <stdlib.h>
9444
# include <stddef.h>
9445
#endif
9446
 
9447
int
9448
main ()
9449
{
9450
int major, minor, micro;
9451
char *tmp_version;
9452
 
9453
system ("touch conf.gtktest");
9454
 
9455
/* HP/UX 9 (%@#!) writes to sscanf strings */
9456
tmp_version = g_strdup("$min_gtk_version");
9457
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9458
   printf("%s, bad version string\n", "$min_gtk_version");
9459
   exit(1);
9460
 }
9461
 
9462
if ((gtk_major_version > major) ||
9463
    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9464
    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9465
				     (gtk_micro_version >= micro)))
9466
{
9467
    return 0;
9468
}
9469
return 1;
9470
}
9471
 
9472
_ACEOF
9473
if ac_fn_c_try_run "$LINENO"; then :
9474
 
9475
else
9476
  no_gtk=yes
9477
fi
9478
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9479
  conftest.$ac_objext conftest.beam conftest.$ac_ext
9480
fi
9481
 
9482
      CFLAGS="$ac_save_CFLAGS"
9483
      LIBS="$ac_save_LIBS"
9484
    }
9485
    fi
9486
    if test "x$no_gtk" = x ; then
9487
      if test "x$enable_gtktest" = "xyes"; then
9488
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9489
$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9490
      else
9491
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9492
$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9493
      fi
9494
      GUI_LIB_LOC="$GTK_LIBDIR"
9495
		 GTK_LIBNAME="$GTK_LIBS"
9496
		GUI_INC_LOC="$GTK_CFLAGS"
9497
    else
9498
    {
9499
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500
$as_echo "no" >&6; }
9501
      GTK_CFLAGS=""
9502
      GTK_LIBS=""
9503
      :
9504
    }
9505
    fi
9506
  }
9507
  else
9508
    GTK_CFLAGS=""
9509
    GTK_LIBS=""
9510
    :
9511
  fi
9512
 
9513
 
9514
  rm -f conf.gtktest
9515
 
9516
    if test "x$GTK_CFLAGS" != "x"; then
9517
      SKIP_GTK3=YES
9518
      SKIP_ATHENA=YES
9519
      SKIP_NEXTAW=YES
9520
      SKIP_MOTIF=YES
9521
      GUITYPE=GTK
9522
 
9523
    fi
9524
  fi
9525
  if test "x$GUITYPE" = "xGTK"; then
9526
                if test -z "$SKIP_GNOME"; then
9527
    {
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
# Check whether --with-gnome-includes was given.
9535
if test "${with_gnome_includes+set}" = set; then :
9536
  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9537
 
9538
fi
9539
 
9540
 
9541
 
9542
# Check whether --with-gnome-libs was given.
9543
if test "${with_gnome_libs+set}" = set; then :
9544
  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9545
 
9546
fi
9547
 
9548
 
9549
 
9550
# Check whether --with-gnome was given.
9551
if test "${with_gnome+set}" = set; then :
9552
  withval=$with_gnome; if test x$withval = xyes; then
9553
      want_gnome=yes
9554
      have_gnome=yes
9555
    else
9556
      if test "x$withval" = xno; then
9557
	want_gnome=no
9558
      else
9559
	want_gnome=yes
9560
	LDFLAGS="$LDFLAGS -L$withval/lib"
9561
	CFLAGS="$CFLAGS -I$withval/include"
9562
	gnome_prefix=$withval/lib
9563
      fi
9564
    fi
9565
else
9566
  want_gnome=yes
9567
fi
9568
 
9569
 
9570
  if test "x$want_gnome" = xyes; then
9571
  {
9572
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9573
$as_echo_n "checking for libgnomeui-2.0... " >&6; }
9574
    if $PKG_CONFIG --exists libgnomeui-2.0; then
9575
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9576
$as_echo "yes" >&6; }
9577
      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9578
      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9579
      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9580
 
9581
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9582
$as_echo_n "checking for FreeBSD... " >&6; }
9583
      if test "`(uname) 2>/dev/null`" = FreeBSD; then
9584
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9585
$as_echo "yes" >&6; }
9586
	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9587
	GNOME_LIBS="$GNOME_LIBS -pthread"
9588
      else
9589
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590
$as_echo "no" >&6; }
9591
      fi
9592
      have_gnome=yes
9593
    else
9594
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9595
$as_echo "not found" >&6; }
9596
      if test "x" = xfail; then
9597
	as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9598
      fi
9599
    fi
9600
  }
9601
  fi
9602
 
9603
      if test "x$have_gnome" = xyes ; then
9604
	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9605
 
9606
	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9607
	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9608
      fi
9609
    }
9610
    fi
9611
  fi
9612
fi
9613
 
9614
 
9615
if test -z "$SKIP_GTK3"; then
9616
 
9617
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
9618
$as_echo_n "checking --disable-gtktest argument... " >&6; }
9619
  # Check whether --enable-gtktest was given.
9620
if test "${enable_gtktest+set}" = set; then :
9621
  enableval=$enable_gtktest;
9622
else
9623
  enable_gtktest=yes
9624
fi
9625
 
9626
  if test "x$enable_gtktest" = "xyes" ; then
9627
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
9628
$as_echo "gtk test enabled" >&6; }
9629
  else
9630
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
9631
$as_echo "gtk test disabled" >&6; }
9632
  fi
9633
 
9634
  if test "X$PKG_CONFIG" = "X"; then
9635
    if test -n "$ac_tool_prefix"; then
9636
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9637
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9639
$as_echo_n "checking for $ac_word... " >&6; }
9640
if ${ac_cv_path_PKG_CONFIG+:} false; then :
9641
  $as_echo_n "(cached) " >&6
9642
else
9643
  case $PKG_CONFIG in
9644
  [\\/]* | ?:[\\/]*)
9645
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9646
  ;;
9647
  *)
9648
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649
for as_dir in $PATH
9650
do
9651
  IFS=$as_save_IFS
9652
  test -z "$as_dir" && as_dir=.
9653
    for ac_exec_ext in '' $ac_executable_extensions; do
9654
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9655
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9656
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9657
    break 2
9658
  fi
9659
done
9660
  done
9661
IFS=$as_save_IFS
9662
 
9663
  ;;
9664
esac
9665
fi
9666
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9667
if test -n "$PKG_CONFIG"; then
9668
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9669
$as_echo "$PKG_CONFIG" >&6; }
9670
else
9671
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672
$as_echo "no" >&6; }
9673
fi
9674
 
9675
 
9676
fi
9677
if test -z "$ac_cv_path_PKG_CONFIG"; then
9678
  ac_pt_PKG_CONFIG=$PKG_CONFIG
9679
  # Extract the first word of "pkg-config", so it can be a program name with args.
9680
set dummy pkg-config; ac_word=$2
9681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9682
$as_echo_n "checking for $ac_word... " >&6; }
9683
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9684
  $as_echo_n "(cached) " >&6
9685
else
9686
  case $ac_pt_PKG_CONFIG in
9687
  [\\/]* | ?:[\\/]*)
9688
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9689
  ;;
9690
  *)
9691
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692
for as_dir in $PATH
9693
do
9694
  IFS=$as_save_IFS
9695
  test -z "$as_dir" && as_dir=.
9696
    for ac_exec_ext in '' $ac_executable_extensions; do
9697
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9698
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9699
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700
    break 2
9701
  fi
9702
done
9703
  done
9704
IFS=$as_save_IFS
9705
 
9706
  ;;
9707
esac
9708
fi
9709
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9710
if test -n "$ac_pt_PKG_CONFIG"; then
9711
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9712
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9713
else
9714
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715
$as_echo "no" >&6; }
9716
fi
9717
 
9718
  if test "x$ac_pt_PKG_CONFIG" = x; then
9719
    PKG_CONFIG="no"
9720
  else
9721
    case $cross_compiling:$ac_tool_warned in
9722
yes:)
9723
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9724
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9725
ac_tool_warned=yes ;;
9726
esac
9727
    PKG_CONFIG=$ac_pt_PKG_CONFIG
9728
  fi
9729
else
9730
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9731
fi
9732
 
9733
  fi
9734
 
9735
  if test "x$PKG_CONFIG" != "xno"; then
9736
 
9737
  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9738
  {
9739
    no_gtk=""
9740
    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9741
	  && $PKG_CONFIG --exists gtk+-2.0; then
9742
    {
9743
      min_gtk_version=3.0.0
9744
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9745
$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9746
                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9747
      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9748
      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9749
      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9750
	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9751
      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9752
	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9753
      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9754
	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9755
    }
9756
    elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9757
	  && $PKG_CONFIG --exists gtk+-3.0; then
9758
    {
9759
      min_gtk_version=3.0.0
9760
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
9761
$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9762
 
9763
      GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
9764
      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0`
9765
      GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0`
9766
      gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9767
	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9768
      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9769
	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9770
      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
9771
	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9772
    }
9773
    else
9774
      no_gtk=yes
9775
    fi
9776
 
9777
    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9778
    {
9779
      ac_save_CFLAGS="$CFLAGS"
9780
      ac_save_LIBS="$LIBS"
9781
      CFLAGS="$CFLAGS $GTK_CFLAGS"
9782
      LIBS="$LIBS $GTK_LIBS"
9783
 
9784
                        rm -f conf.gtktest
9785
      if test "$cross_compiling" = yes; then :
9786
  echo $ac_n "cross compiling; assumed OK... $ac_c"
9787
else
9788
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789
/* end confdefs.h.  */
9790
 
9791
#include <gtk/gtk.h>
9792
#include <stdio.h>
9793
#if STDC_HEADERS
9794
# include <stdlib.h>
9795
# include <stddef.h>
9796
#endif
9797
 
9798
int
9799
main ()
9800
{
9801
int major, minor, micro;
9802
char *tmp_version;
9803
 
9804
system ("touch conf.gtktest");
9805
 
9806
/* HP/UX 9 (%@#!) writes to sscanf strings */
9807
tmp_version = g_strdup("$min_gtk_version");
9808
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9809
   printf("%s, bad version string\n", "$min_gtk_version");
9810
   exit(1);
9811
 }
9812
 
9813
if ((gtk_major_version > major) ||
9814
    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9815
    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9816
				     (gtk_micro_version >= micro)))
9817
{
9818
    return 0;
9819
}
9820
return 1;
9821
}
9822
 
9823
_ACEOF
9824
if ac_fn_c_try_run "$LINENO"; then :
9825
 
9826
else
9827
  no_gtk=yes
9828
fi
9829
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9830
  conftest.$ac_objext conftest.beam conftest.$ac_ext
9831
fi
9832
 
9833
      CFLAGS="$ac_save_CFLAGS"
9834
      LIBS="$ac_save_LIBS"
9835
    }
9836
    fi
9837
    if test "x$no_gtk" = x ; then
9838
      if test "x$enable_gtktest" = "xyes"; then
9839
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9840
$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9841
      else
9842
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9843
$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9844
      fi
9845
      GUI_LIB_LOC="$GTK_LIBDIR"
9846
		 GTK_LIBNAME="$GTK_LIBS"
9847
		GUI_INC_LOC="$GTK_CFLAGS"
9848
    else
9849
    {
9850
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851
$as_echo "no" >&6; }
9852
      GTK_CFLAGS=""
9853
      GTK_LIBS=""
9854
      :
9855
    }
9856
    fi
9857
  }
9858
  else
9859
    GTK_CFLAGS=""
9860
    GTK_LIBS=""
9861
    :
9862
  fi
9863
 
9864
 
9865
  rm -f conf.gtktest
9866
 
9867
    if test "x$GTK_CFLAGS" != "x"; then
9868
      SKIP_GTK2=YES
9869
      SKIP_GNOME=YES
9870
      SKIP_ATHENA=YES
9871
      SKIP_NEXTAW=YES
9872
      SKIP_MOTIF=YES
9873
      GUITYPE=GTK
9874
 
9875
      $as_echo "#define USE_GTK3 1" >>confdefs.h
9876
 
9877
    fi
9878
  fi
9879
fi
9880
 
9881
if test "x$GUITYPE" = "xGTK"; then
9882
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5
9883
$as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
9884
  gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0`
9885
  if test "x$gdk_pixbuf_version" != x ; then
9886
    gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
9887
      sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
9888
    if test "x$gdk_pixbuf_version_minor" != x -a \
9889
	$gdk_pixbuf_version_minor -ge 31 ; then
9890
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
9891
$as_echo "OK." >&6; }
9892
      # Extract the first word of "glib-compile-resources", so it can be a program name with args.
9893
set dummy glib-compile-resources; ac_word=$2
9894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9895
$as_echo_n "checking for $ac_word... " >&6; }
9896
if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
9897
  $as_echo_n "(cached) " >&6
9898
else
9899
  case $GLIB_COMPILE_RESOURCES in
9900
  [\\/]* | ?:[\\/]*)
9901
  ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
9902
  ;;
9903
  *)
9904
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905
for as_dir in $PATH
9906
do
9907
  IFS=$as_save_IFS
9908
  test -z "$as_dir" && as_dir=.
9909
    for ac_exec_ext in '' $ac_executable_extensions; do
9910
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9911
    ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
9912
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9913
    break 2
9914
  fi
9915
done
9916
  done
9917
IFS=$as_save_IFS
9918
 
9919
  test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
9920
  ;;
9921
esac
9922
fi
9923
GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
9924
if test -n "$GLIB_COMPILE_RESOURCES"; then
9925
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
9926
$as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
9927
else
9928
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929
$as_echo "no" >&6; }
9930
fi
9931
 
9932
 
9933
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
9934
$as_echo_n "checking glib-compile-resources... " >&6; }
9935
      if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
9936
	GLIB_COMPILE_RESOURCES=""
9937
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
9938
$as_echo "cannot be found in PATH." >&6; }
9939
      else
9940
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
9941
$as_echo "usable." >&6; }
9942
	$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
9943
 
9944
	GRESOURCE_SRC="auto/gui_gtk_gresources.c"
9945
	GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
9946
      fi
9947
    else
9948
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5
9949
$as_echo "not usable." >&6; }
9950
    fi
9951
  else
9952
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5
9953
$as_echo "cannot obtain from pkg_config." >&6; }
9954
  fi
9955
 
9956
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5
9957
$as_echo_n "checking --disable-icon-cache-update argument... " >&6; }
9958
  # Check whether --enable-icon_cache_update was given.
9959
if test "${enable_icon_cache_update+set}" = set; then :
9960
  enableval=$enable_icon_cache_update;
9961
else
9962
  enable_icon_cache_update="yes"
9963
fi
9964
 
9965
  if test "$enable_icon_cache_update" = "yes"; then
9966
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
9967
$as_echo "not set" >&6; }
9968
    # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args.
9969
set dummy gtk-update-icon-cache; ac_word=$2
9970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971
$as_echo_n "checking for $ac_word... " >&6; }
9972
if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then :
9973
  $as_echo_n "(cached) " >&6
9974
else
9975
  case $GTK_UPDATE_ICON_CACHE in
9976
  [\\/]* | ?:[\\/]*)
9977
  ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path.
9978
  ;;
9979
  *)
9980
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981
for as_dir in $PATH
9982
do
9983
  IFS=$as_save_IFS
9984
  test -z "$as_dir" && as_dir=.
9985
    for ac_exec_ext in '' $ac_executable_extensions; do
9986
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987
    ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext"
9988
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989
    break 2
9990
  fi
9991
done
9992
  done
9993
IFS=$as_save_IFS
9994
 
9995
  test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no"
9996
  ;;
9997
esac
9998
fi
9999
GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE
10000
if test -n "$GTK_UPDATE_ICON_CACHE"; then
10001
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5
10002
$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; }
10003
else
10004
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005
$as_echo "no" >&6; }
10006
fi
10007
 
10008
 
10009
    if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then
10010
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10011
$as_echo "not found in PATH." >&6; }
10012
    fi
10013
  else
10014
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10015
$as_echo "update disabled" >&6; }
10016
  fi
10017
 
10018
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5
10019
$as_echo_n "checking --disable-desktop-database-update argument... " >&6; }
10020
  # Check whether --enable-desktop_database_update was given.
10021
if test "${enable_desktop_database_update+set}" = set; then :
10022
  enableval=$enable_desktop_database_update;
10023
else
10024
  enable_desktop_database_update="yes"
10025
fi
10026
 
10027
  if test "$enable_desktop_database_update" = "yes"; then
10028
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
10029
$as_echo "not set" >&6; }
10030
    # Extract the first word of "update-desktop-database", so it can be a program name with args.
10031
set dummy update-desktop-database; ac_word=$2
10032
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033
$as_echo_n "checking for $ac_word... " >&6; }
10034
if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then :
10035
  $as_echo_n "(cached) " >&6
10036
else
10037
  case $UPDATE_DESKTOP_DATABASE in
10038
  [\\/]* | ?:[\\/]*)
10039
  ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
10040
  ;;
10041
  *)
10042
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043
for as_dir in $PATH
10044
do
10045
  IFS=$as_save_IFS
10046
  test -z "$as_dir" && as_dir=.
10047
    for ac_exec_ext in '' $ac_executable_extensions; do
10048
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10049
    ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
10050
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051
    break 2
10052
  fi
10053
done
10054
  done
10055
IFS=$as_save_IFS
10056
 
10057
  test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
10058
  ;;
10059
esac
10060
fi
10061
UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
10062
if test -n "$UPDATE_DESKTOP_DATABASE"; then
10063
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
10064
$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
10065
else
10066
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067
$as_echo "no" >&6; }
10068
fi
10069
 
10070
 
10071
    if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then
10072
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5
10073
$as_echo "not found in PATH." >&6; }
10074
    fi
10075
  else
10076
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5
10077
$as_echo "update disabled" >&6; }
10078
  fi
10079
fi
10080
 
10081
 
10082
 
10083
 
10084
 
10085
 
10086
 
10087
if test -z "$SKIP_MOTIF"; then
10088
  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"
10089
    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
10090
 
10091
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
10092
$as_echo_n "checking for location of Motif GUI includes... " >&6; }
10093
  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
10094
  GUI_INC_LOC=
10095
  for try in $gui_includes; do
10096
    if test -f "$try/Xm/Xm.h"; then
10097
      GUI_INC_LOC=$try
10098
    fi
10099
  done
10100
  if test -n "$GUI_INC_LOC"; then
10101
    if test "$GUI_INC_LOC" = /usr/include; then
10102
      GUI_INC_LOC=
10103
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10104
$as_echo "in default path" >&6; }
10105
    else
10106
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
10107
$as_echo "$GUI_INC_LOC" >&6; }
10108
    fi
10109
  else
10110
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10111
$as_echo "<not found>" >&6; }
10112
    SKIP_MOTIF=YES
10113
  fi
10114
fi
10115
 
10116
 
10117
if test -z "$SKIP_MOTIF"; then
10118
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
10119
$as_echo_n "checking --with-motif-lib argument... " >&6; }
10120
 
10121
# Check whether --with-motif-lib was given.
10122
if test "${with_motif_lib+set}" = set; then :
10123
  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
10124
fi
10125
 
10126
 
10127
  if test -n "$MOTIF_LIBNAME"; then
10128
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
10129
$as_echo "$MOTIF_LIBNAME" >&6; }
10130
    GUI_LIB_LOC=
10131
  else
10132
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133
$as_echo "no" >&6; }
10134
 
10135
        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
10136
 
10137
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
10138
$as_echo_n "checking for location of Motif GUI libs... " >&6; }
10139
    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"
10140
    GUI_LIB_LOC=
10141
    for try in $gui_libs; do
10142
      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
10143
	if test -f "$libtry"; then
10144
	  GUI_LIB_LOC=$try
10145
	fi
10146
      done
10147
    done
10148
    if test -n "$GUI_LIB_LOC"; then
10149
            if test "$GUI_LIB_LOC" = /usr/lib \
10150
	   -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
10151
	   -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
10152
	GUI_LIB_LOC=
10153
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
10154
$as_echo "in default path" >&6; }
10155
      else
10156
	if test -n "$GUI_LIB_LOC"; then
10157
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
10158
$as_echo "$GUI_LIB_LOC" >&6; }
10159
	  if test "`(uname) 2>/dev/null`" = SunOS &&
10160
					 uname -r | grep '^5' >/dev/null; then
10161
	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
10162
	  fi
10163
	fi
10164
      fi
10165
      MOTIF_LIBNAME=-lXm
10166
    else
10167
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
10168
$as_echo "<not found>" >&6; }
10169
      SKIP_MOTIF=YES
10170
    fi
10171
  fi
10172
fi
10173
 
10174
if test -z "$SKIP_MOTIF"; then
10175
  SKIP_ATHENA=YES
10176
  SKIP_NEXTAW=YES
10177
  GUITYPE=MOTIF
10178
 
10179
fi
10180
 
10181
 
10182
GUI_X_LIBS=
10183
 
10184
if test -z "$SKIP_ATHENA"; then
10185
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
10186
$as_echo_n "checking if Athena header files can be found... " >&6; }
10187
  cflags_save=$CFLAGS
10188
  CFLAGS="$CFLAGS $X_CFLAGS"
10189
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190
/* end confdefs.h.  */
10191
 
10192
#include <X11/Intrinsic.h>
10193
#include <X11/Xaw/Paned.h>
10194
int
10195
main ()
10196
{
10197
 
10198
  ;
10199
  return 0;
10200
}
10201
_ACEOF
10202
if ac_fn_c_try_compile "$LINENO"; then :
10203
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10204
$as_echo "yes" >&6; }
10205
else
10206
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207
$as_echo "no" >&6; }; SKIP_ATHENA=YES
10208
fi
10209
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10210
  CFLAGS=$cflags_save
10211
fi
10212
 
10213
if test -z "$SKIP_ATHENA"; then
10214
  GUITYPE=ATHENA
10215
fi
10216
 
10217
if test -z "$SKIP_NEXTAW"; then
10218
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
10219
$as_echo_n "checking if neXtaw header files can be found... " >&6; }
10220
  cflags_save=$CFLAGS
10221
  CFLAGS="$CFLAGS $X_CFLAGS"
10222
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223
/* end confdefs.h.  */
10224
 
10225
#include <X11/Intrinsic.h>
10226
#include <X11/neXtaw/Paned.h>
10227
int
10228
main ()
10229
{
10230
 
10231
  ;
10232
  return 0;
10233
}
10234
_ACEOF
10235
if ac_fn_c_try_compile "$LINENO"; then :
10236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10237
$as_echo "yes" >&6; }
10238
else
10239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240
$as_echo "no" >&6; }; SKIP_NEXTAW=YES
10241
fi
10242
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10243
  CFLAGS=$cflags_save
10244
fi
10245
 
10246
if test -z "$SKIP_NEXTAW"; then
10247
  GUITYPE=NEXTAW
10248
fi
10249
 
10250
if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10251
      if test -n "$GUI_INC_LOC"; then
10252
    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
10253
  fi
10254
  if test -n "$GUI_LIB_LOC"; then
10255
    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
10256
  fi
10257
 
10258
    ldflags_save=$LDFLAGS
10259
  LDFLAGS="$X_LIBS $LDFLAGS"
10260
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10261
$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10262
if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10263
  $as_echo_n "(cached) " >&6
10264
else
10265
  ac_check_lib_save_LIBS=$LIBS
10266
LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10267
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268
/* end confdefs.h.  */
10269
 
10270
/* Override any GCC internal prototype to avoid an error.
10271
   Use char because int might match the return type of a GCC
10272
   builtin and then its argument prototype would still apply.  */
10273
#ifdef __cplusplus
10274
extern "C"
10275
#endif
10276
char XShapeQueryExtension ();
10277
int
10278
main ()
10279
{
10280
return XShapeQueryExtension ();
10281
  ;
10282
  return 0;
10283
}
10284
_ACEOF
10285
if ac_fn_c_try_link "$LINENO"; then :
10286
  ac_cv_lib_Xext_XShapeQueryExtension=yes
10287
else
10288
  ac_cv_lib_Xext_XShapeQueryExtension=no
10289
fi
10290
rm -f core conftest.err conftest.$ac_objext \
10291
    conftest$ac_exeext conftest.$ac_ext
10292
LIBS=$ac_check_lib_save_LIBS
10293
fi
10294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10295
$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10296
if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10297
  GUI_X_LIBS="-lXext"
10298
fi
10299
 
10300
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
10301
$as_echo_n "checking for wslen in -lw... " >&6; }
10302
if ${ac_cv_lib_w_wslen+:} false; then :
10303
  $as_echo_n "(cached) " >&6
10304
else
10305
  ac_check_lib_save_LIBS=$LIBS
10306
LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10307
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308
/* end confdefs.h.  */
10309
 
10310
/* Override any GCC internal prototype to avoid an error.
10311
   Use char because int might match the return type of a GCC
10312
   builtin and then its argument prototype would still apply.  */
10313
#ifdef __cplusplus
10314
extern "C"
10315
#endif
10316
char wslen ();
10317
int
10318
main ()
10319
{
10320
return wslen ();
10321
  ;
10322
  return 0;
10323
}
10324
_ACEOF
10325
if ac_fn_c_try_link "$LINENO"; then :
10326
  ac_cv_lib_w_wslen=yes
10327
else
10328
  ac_cv_lib_w_wslen=no
10329
fi
10330
rm -f core conftest.err conftest.$ac_objext \
10331
    conftest$ac_exeext conftest.$ac_ext
10332
LIBS=$ac_check_lib_save_LIBS
10333
fi
10334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
10335
$as_echo "$ac_cv_lib_w_wslen" >&6; }
10336
if test "x$ac_cv_lib_w_wslen" = xyes; then :
10337
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
10338
fi
10339
 
10340
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10341
$as_echo_n "checking for dlsym in -ldl... " >&6; }
10342
if ${ac_cv_lib_dl_dlsym+:} false; then :
10343
  $as_echo_n "(cached) " >&6
10344
else
10345
  ac_check_lib_save_LIBS=$LIBS
10346
LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10347
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348
/* end confdefs.h.  */
10349
 
10350
/* Override any GCC internal prototype to avoid an error.
10351
   Use char because int might match the return type of a GCC
10352
   builtin and then its argument prototype would still apply.  */
10353
#ifdef __cplusplus
10354
extern "C"
10355
#endif
10356
char dlsym ();
10357
int
10358
main ()
10359
{
10360
return dlsym ();
10361
  ;
10362
  return 0;
10363
}
10364
_ACEOF
10365
if ac_fn_c_try_link "$LINENO"; then :
10366
  ac_cv_lib_dl_dlsym=yes
10367
else
10368
  ac_cv_lib_dl_dlsym=no
10369
fi
10370
rm -f core conftest.err conftest.$ac_objext \
10371
    conftest$ac_exeext conftest.$ac_ext
10372
LIBS=$ac_check_lib_save_LIBS
10373
fi
10374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10375
$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10376
if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10377
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
10378
fi
10379
 
10380
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
10381
$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
10382
if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then :
10383
  $as_echo_n "(cached) " >&6
10384
else
10385
  ac_check_lib_save_LIBS=$LIBS
10386
LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10387
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388
/* end confdefs.h.  */
10389
 
10390
/* Override any GCC internal prototype to avoid an error.
10391
   Use char because int might match the return type of a GCC
10392
   builtin and then its argument prototype would still apply.  */
10393
#ifdef __cplusplus
10394
extern "C"
10395
#endif
10396
char XmuCreateStippledPixmap ();
10397
int
10398
main ()
10399
{
10400
return XmuCreateStippledPixmap ();
10401
  ;
10402
  return 0;
10403
}
10404
_ACEOF
10405
if ac_fn_c_try_link "$LINENO"; then :
10406
  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
10407
else
10408
  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
10409
fi
10410
rm -f core conftest.err conftest.$ac_objext \
10411
    conftest$ac_exeext conftest.$ac_ext
10412
LIBS=$ac_check_lib_save_LIBS
10413
fi
10414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
10415
$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
10416
if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then :
10417
  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
10418
fi
10419
 
10420
  if test -z "$SKIP_MOTIF"; then
10421
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
10422
$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
10423
if ${ac_cv_lib_Xp_XpEndJob+:} false; then :
10424
  $as_echo_n "(cached) " >&6
10425
else
10426
  ac_check_lib_save_LIBS=$LIBS
10427
LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10428
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429
/* end confdefs.h.  */
10430
 
10431
/* Override any GCC internal prototype to avoid an error.
10432
   Use char because int might match the return type of a GCC
10433
   builtin and then its argument prototype would still apply.  */
10434
#ifdef __cplusplus
10435
extern "C"
10436
#endif
10437
char XpEndJob ();
10438
int
10439
main ()
10440
{
10441
return XpEndJob ();
10442
  ;
10443
  return 0;
10444
}
10445
_ACEOF
10446
if ac_fn_c_try_link "$LINENO"; then :
10447
  ac_cv_lib_Xp_XpEndJob=yes
10448
else
10449
  ac_cv_lib_Xp_XpEndJob=no
10450
fi
10451
rm -f core conftest.err conftest.$ac_objext \
10452
    conftest$ac_exeext conftest.$ac_ext
10453
LIBS=$ac_check_lib_save_LIBS
10454
fi
10455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
10456
$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
10457
if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then :
10458
  GUI_X_LIBS="-lXp $GUI_X_LIBS"
10459
fi
10460
 
10461
  fi
10462
  LDFLAGS=$ldflags_save
10463
 
10464
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
10465
$as_echo_n "checking for extra X11 defines... " >&6; }
10466
  NARROW_PROTO=
10467
  rm -fr conftestdir
10468
  if mkdir conftestdir; then
10469
    cd conftestdir
10470
    cat > Imakefile <<'EOF'
10471
acfindx:
10472
	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
10473
EOF
10474
    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10475
      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10476
    fi
10477
    cd ..
10478
    rm -fr conftestdir
10479
  fi
10480
  if test -z "$NARROW_PROTO"; then
10481
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482
$as_echo "no" >&6; }
10483
  else
10484
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
10485
$as_echo "$NARROW_PROTO" >&6; }
10486
  fi
10487
 
10488
fi
10489
 
10490
if test "$enable_xsmp" = "yes"; then
10491
  cppflags_save=$CPPFLAGS
10492
  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10493
  for ac_header in X11/SM/SMlib.h
10494
do :
10495
  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10496
if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
10497
  cat >>confdefs.h <<_ACEOF
10498
#define HAVE_X11_SM_SMLIB_H 1
10499
_ACEOF
10500
 
10501
fi
10502
 
10503
done
10504
 
10505
  CPPFLAGS=$cppflags_save
10506
fi
10507
 
10508
 
10509
if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then
10510
    cppflags_save=$CPPFLAGS
10511
  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10512
  for ac_header in X11/xpm.h X11/Sunkeysym.h
10513
do :
10514
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10515
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10516
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10517
  cat >>confdefs.h <<_ACEOF
10518
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10519
_ACEOF
10520
 
10521
fi
10522
 
10523
done
10524
 
10525
 
10526
    if test ! "$enable_xim" = "no"; then
10527
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
10528
$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10529
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530
/* end confdefs.h.  */
10531
#include <X11/Xlib.h>
10532
_ACEOF
10533
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10534
  $EGREP "XIMText" >/dev/null 2>&1; then :
10535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10536
$as_echo "yes" >&6; }
10537
else
10538
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10539
$as_echo "no; xim has been disabled" >&6; }; enable_xim="no"
10540
fi
10541
rm -f conftest*
10542
 
10543
  fi
10544
  CPPFLAGS=$cppflags_save
10545
 
10546
    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10547
		-a "x$GUITYPE" != "xNONE" ; then
10548
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10549
$as_echo "X GUI selected; xim has been enabled" >&6; }
10550
    enable_xim="yes"
10551
  fi
10552
fi
10553
 
10554
if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10555
  cppflags_save=$CPPFLAGS
10556
  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10557
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10558
$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10559
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560
/* end confdefs.h.  */
10561
 
10562
#include <X11/Intrinsic.h>
10563
#include <X11/Xmu/Editres.h>
10564
int
10565
main ()
10566
{
10567
int i; i = 0;
10568
  ;
10569
  return 0;
10570
}
10571
_ACEOF
10572
if ac_fn_c_try_compile "$LINENO"; then :
10573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10574
$as_echo "yes" >&6; }
10575
		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10576
 
10577
else
10578
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579
$as_echo "no" >&6; }
10580
fi
10581
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10582
  CPPFLAGS=$cppflags_save
10583
fi
10584
 
10585
if test -z "$SKIP_MOTIF"; then
10586
  cppflags_save=$CPPFLAGS
10587
  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10588
  if test "$zOSUnix" = "yes"; then
10589
	xmheader="Xm/Xm.h"
10590
  else
10591
	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
10592
	   Xm/UnhighlightT.h Xm/Notebook.h"
10593
  fi
10594
  for ac_header in $xmheader
10595
do :
10596
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10597
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10598
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10599
  cat >>confdefs.h <<_ACEOF
10600
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10601
_ACEOF
10602
 
10603
fi
10604
 
10605
done
10606
 
10607
 
10608
  if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
10609
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10610
$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10611
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612
/* end confdefs.h.  */
10613
#include <Xm/XpmP.h>
10614
int
10615
main ()
10616
{
10617
XpmAttributes_21 attr;
10618
  ;
10619
  return 0;
10620
}
10621
_ACEOF
10622
if ac_fn_c_try_compile "$LINENO"; then :
10623
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10624
$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10625
 
10626
else
10627
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628
$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10629
 
10630
 
10631
fi
10632
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633
  else
10634
    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10635
 
10636
  fi
10637
  CPPFLAGS=$cppflags_save
10638
fi
10639
 
10640
if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10641
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10642
$as_echo "no GUI selected; xim has been disabled" >&6; }
10643
  enable_xim="no"
10644
fi
10645
if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10646
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10647
$as_echo "no GUI selected; fontset has been disabled" >&6; }
10648
  enable_fontset="no"
10649
fi
10650
if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
10651
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10652
$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10653
  enable_fontset="no"
10654
fi
10655
 
10656
if test -z "$SKIP_PHOTON"; then
10657
  GUITYPE=PHOTONGUI
10658
fi
10659
 
10660
 
10661
 
10662
 
10663
 
10664
 
10665
if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10666
  as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5
10667
fi
10668
 
10669
if test "$enable_xim" = "yes"; then
10670
  $as_echo "#define FEAT_XIM 1" >>confdefs.h
10671
 
10672
fi
10673
if test "$enable_fontset" = "yes"; then
10674
  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10675
 
10676
fi
10677
 
10678
 
10679
 
10680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5
10681
$as_echo_n "checking for /proc link to executable... " >&6; }
10682
if test -L "/proc/self/exe"; then
10683
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5
10684
$as_echo "/proc/self/exe" >&6; }
10685
  $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h
10686
 
10687
elif test -L "/proc/self/path/a.out"; then
10688
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5
10689
$as_echo "/proc/self/path/a.out" >&6; }
10690
  $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h
10691
 
10692
elif test -L "/proc/curproc/file"; then
10693
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5
10694
$as_echo "/proc/curproc/file" >&6; }
10695
  $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h
10696
 
10697
else
10698
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699
$as_echo "no" >&6; }
10700
fi
10701
 
10702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5
10703
$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; }
10704
case `uname` in
10705
    CYGWIN*|MSYS*)    CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10706
$as_echo "yes" >&6; }
10707
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5
10708
$as_echo_n "checking for CYGWIN clipboard support... " >&6; }
10709
                if test "x$with_x" = "xno" ; then
10710
                  OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o
10711
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10712
$as_echo "yes" >&6; }
10713
                  $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h
10714
 
10715
                else
10716
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5
10717
$as_echo "no - using X11" >&6; }
10718
                fi ;;
10719
 
10720
    *)          CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721
$as_echo "no" >&6; };;
10722
esac
10723
 
10724
if test "$enable_hangulinput" = "yes"; then
10725
  if test "x$GUITYPE" = "xNONE"; then
10726
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
10727
$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10728
    enable_hangulinput=no
10729
  else
10730
    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
10731
 
10732
    HANGULIN_SRC=hangulin.c
10733
 
10734
    HANGULIN_OBJ=objects/hangulin.o
10735
 
10736
  fi
10737
fi
10738
 
10739
 
10740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10741
$as_echo_n "checking whether toupper is broken... " >&6; }
10742
if ${vim_cv_toupper_broken+:} false; then :
10743
  $as_echo_n "(cached) " >&6
10744
else
10745
 
10746
    if test "$cross_compiling" = yes; then :
10747
 
10748
    as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10749
 
10750
else
10751
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752
/* end confdefs.h.  */
10753
 
10754
#include "confdefs.h"
10755
#include <ctype.h>
10756
#if STDC_HEADERS
10757
# include <stdlib.h>
10758
# include <stddef.h>
10759
#endif
10760
main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10761
 
10762
_ACEOF
10763
if ac_fn_c_try_run "$LINENO"; then :
10764
 
10765
    vim_cv_toupper_broken=yes
10766
 
10767
else
10768
 
10769
    vim_cv_toupper_broken=no
10770
 
10771
fi
10772
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10773
  conftest.$ac_objext conftest.beam conftest.$ac_ext
10774
fi
10775
 
10776
fi
10777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10778
$as_echo "$vim_cv_toupper_broken" >&6; }
10779
 
10780
if test "x$vim_cv_toupper_broken" = "xyes" ; then
10781
  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10782
 
10783
fi
10784
 
10785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10786
$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10787
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788
/* end confdefs.h.  */
10789
#include <stdio.h>
10790
int
10791
main ()
10792
{
10793
printf("(" __DATE__ " " __TIME__ ")");
10794
  ;
10795
  return 0;
10796
}
10797
_ACEOF
10798
if ac_fn_c_try_compile "$LINENO"; then :
10799
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10800
$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10801
 
10802
else
10803
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804
$as_echo "no" >&6; }
10805
fi
10806
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807
 
10808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10809
$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10810
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811
/* end confdefs.h.  */
10812
#include <stdio.h>
10813
int
10814
main ()
10815
{
10816
int x __attribute__((unused));
10817
  ;
10818
  return 0;
10819
}
10820
_ACEOF
10821
if ac_fn_c_try_compile "$LINENO"; then :
10822
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10823
$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10824
 
10825
else
10826
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827
$as_echo "no" >&6; }
10828
fi
10829
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830
 
10831
ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10832
if test "x$ac_cv_header_elf_h" = xyes; then :
10833
  HAS_ELF=1
10834
fi
10835
 
10836
 
10837
if test "$HAS_ELF" = 1; then
10838
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10839
$as_echo_n "checking for main in -lelf... " >&6; }
10840
if ${ac_cv_lib_elf_main+:} false; then :
10841
  $as_echo_n "(cached) " >&6
10842
else
10843
  ac_check_lib_save_LIBS=$LIBS
10844
LIBS="-lelf  $LIBS"
10845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846
/* end confdefs.h.  */
10847
 
10848
 
10849
int
10850
main ()
10851
{
10852
return main ();
10853
  ;
10854
  return 0;
10855
}
10856
_ACEOF
10857
if ac_fn_c_try_link "$LINENO"; then :
10858
  ac_cv_lib_elf_main=yes
10859
else
10860
  ac_cv_lib_elf_main=no
10861
fi
10862
rm -f core conftest.err conftest.$ac_objext \
10863
    conftest$ac_exeext conftest.$ac_ext
10864
LIBS=$ac_check_lib_save_LIBS
10865
fi
10866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10867
$as_echo "$ac_cv_lib_elf_main" >&6; }
10868
if test "x$ac_cv_lib_elf_main" = xyes; then :
10869
  cat >>confdefs.h <<_ACEOF
10870
#define HAVE_LIBELF 1
10871
_ACEOF
10872
 
10873
  LIBS="-lelf $LIBS"
10874
 
10875
fi
10876
 
10877
fi
10878
 
10879
ac_header_dirent=no
10880
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10881
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10883
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10884
if eval \${$as_ac_Header+:} false; then :
10885
  $as_echo_n "(cached) " >&6
10886
else
10887
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888
/* end confdefs.h.  */
10889
#include <sys/types.h>
10890
#include <$ac_hdr>
10891
 
10892
int
10893
main ()
10894
{
10895
if ((DIR *) 0)
10896
return 0;
10897
  ;
10898
  return 0;
10899
}
10900
_ACEOF
10901
if ac_fn_c_try_compile "$LINENO"; then :
10902
  eval "$as_ac_Header=yes"
10903
else
10904
  eval "$as_ac_Header=no"
10905
fi
10906
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10907
fi
10908
eval ac_res=\$$as_ac_Header
10909
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10910
$as_echo "$ac_res" >&6; }
10911
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10912
  cat >>confdefs.h <<_ACEOF
10913
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10914
_ACEOF
10915
 
10916
ac_header_dirent=$ac_hdr; break
10917
fi
10918
 
10919
done
10920
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10921
if test $ac_header_dirent = dirent.h; then
10922
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10923
$as_echo_n "checking for library containing opendir... " >&6; }
10924
if ${ac_cv_search_opendir+:} false; then :
10925
  $as_echo_n "(cached) " >&6
10926
else
10927
  ac_func_search_save_LIBS=$LIBS
10928
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929
/* end confdefs.h.  */
10930
 
10931
/* Override any GCC internal prototype to avoid an error.
10932
   Use char because int might match the return type of a GCC
10933
   builtin and then its argument prototype would still apply.  */
10934
#ifdef __cplusplus
10935
extern "C"
10936
#endif
10937
char opendir ();
10938
int
10939
main ()
10940
{
10941
return opendir ();
10942
  ;
10943
  return 0;
10944
}
10945
_ACEOF
10946
for ac_lib in '' dir; do
10947
  if test -z "$ac_lib"; then
10948
    ac_res="none required"
10949
  else
10950
    ac_res=-l$ac_lib
10951
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10952
  fi
10953
  if ac_fn_c_try_link "$LINENO"; then :
10954
  ac_cv_search_opendir=$ac_res
10955
fi
10956
rm -f core conftest.err conftest.$ac_objext \
10957
    conftest$ac_exeext
10958
  if ${ac_cv_search_opendir+:} false; then :
10959
  break
10960
fi
10961
done
10962
if ${ac_cv_search_opendir+:} false; then :
10963
 
10964
else
10965
  ac_cv_search_opendir=no
10966
fi
10967
rm conftest.$ac_ext
10968
LIBS=$ac_func_search_save_LIBS
10969
fi
10970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10971
$as_echo "$ac_cv_search_opendir" >&6; }
10972
ac_res=$ac_cv_search_opendir
10973
if test "$ac_res" != no; then :
10974
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10975
 
10976
fi
10977
 
10978
else
10979
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10980
$as_echo_n "checking for library containing opendir... " >&6; }
10981
if ${ac_cv_search_opendir+:} false; then :
10982
  $as_echo_n "(cached) " >&6
10983
else
10984
  ac_func_search_save_LIBS=$LIBS
10985
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986
/* end confdefs.h.  */
10987
 
10988
/* Override any GCC internal prototype to avoid an error.
10989
   Use char because int might match the return type of a GCC
10990
   builtin and then its argument prototype would still apply.  */
10991
#ifdef __cplusplus
10992
extern "C"
10993
#endif
10994
char opendir ();
10995
int
10996
main ()
10997
{
10998
return opendir ();
10999
  ;
11000
  return 0;
11001
}
11002
_ACEOF
11003
for ac_lib in '' x; do
11004
  if test -z "$ac_lib"; then
11005
    ac_res="none required"
11006
  else
11007
    ac_res=-l$ac_lib
11008
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11009
  fi
11010
  if ac_fn_c_try_link "$LINENO"; then :
11011
  ac_cv_search_opendir=$ac_res
11012
fi
11013
rm -f core conftest.err conftest.$ac_objext \
11014
    conftest$ac_exeext
11015
  if ${ac_cv_search_opendir+:} false; then :
11016
  break
11017
fi
11018
done
11019
if ${ac_cv_search_opendir+:} false; then :
11020
 
11021
else
11022
  ac_cv_search_opendir=no
11023
fi
11024
rm conftest.$ac_ext
11025
LIBS=$ac_func_search_save_LIBS
11026
fi
11027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11028
$as_echo "$ac_cv_search_opendir" >&6; }
11029
ac_res=$ac_cv_search_opendir
11030
if test "$ac_res" != no; then :
11031
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11032
 
11033
fi
11034
 
11035
fi
11036
 
11037
 
11038
if test $ac_cv_header_sys_wait_h = no; then
11039
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
11040
$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11041
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042
/* end confdefs.h.  */
11043
#include <sys/wait.h>
11044
int
11045
main ()
11046
{
11047
union wait xx, yy; xx = yy
11048
  ;
11049
  return 0;
11050
}
11051
_ACEOF
11052
if ac_fn_c_try_compile "$LINENO"; then :
11053
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11054
$as_echo "yes" >&6; }
11055
			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11056
 
11057
			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
11058
 
11059
else
11060
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061
$as_echo "no" >&6; }
11062
fi
11063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064
fi
11065
 
11066
for ac_header in stdint.h stdlib.h string.h \
11067
	sys/select.h sys/utsname.h termcap.h fcntl.h \
11068
	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
11069
	termio.h iconv.h inttypes.h langinfo.h math.h \
11070
	unistd.h stropts.h errno.h sys/resource.h \
11071
	sys/systeminfo.h locale.h sys/stream.h termios.h \
11072
	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
11073
	utime.h sys/param.h libintl.h libgen.h \
11074
	util/debug.h util/msg18n.h frame.h sys/acl.h \
11075
	sys/access.h sys/sysinfo.h wchar.h wctype.h
11076
do :
11077
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11078
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11079
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11080
  cat >>confdefs.h <<_ACEOF
11081
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11082
_ACEOF
11083
 
11084
fi
11085
 
11086
done
11087
 
11088
 
11089
for ac_header in sys/ptem.h
11090
do :
11091
  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
11092
#  include <sys/stream.h>
11093
#endif
11094
"
11095
if test "x$ac_cv_header_sys_ptem_h" = xyes; then :
11096
  cat >>confdefs.h <<_ACEOF
11097
#define HAVE_SYS_PTEM_H 1
11098
_ACEOF
11099
 
11100
fi
11101
 
11102
done
11103
 
11104
 
11105
for ac_header in sys/sysctl.h
11106
do :
11107
  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
11108
#  include <sys/param.h>
11109
#endif
11110
"
11111
if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
11112
  cat >>confdefs.h <<_ACEOF
11113
#define HAVE_SYS_SYSCTL_H 1
11114
_ACEOF
11115
 
11116
fi
11117
 
11118
done
11119
 
11120
 
11121
 
11122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
11123
$as_echo_n "checking for pthread_np.h... " >&6; }
11124
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125
/* end confdefs.h.  */
11126
 
11127
#include <pthread.h>
11128
#include <pthread_np.h>
11129
int
11130
main ()
11131
{
11132
int i; i = 0;
11133
  ;
11134
  return 0;
11135
}
11136
_ACEOF
11137
if ac_fn_c_try_compile "$LINENO"; then :
11138
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11139
$as_echo "yes" >&6; }
11140
		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
11141
 
11142
else
11143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144
$as_echo "no" >&6; }
11145
fi
11146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147
 
11148
for ac_header in strings.h
11149
do :
11150
  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
11151
if test "x$ac_cv_header_strings_h" = xyes; then :
11152
  cat >>confdefs.h <<_ACEOF
11153
#define HAVE_STRINGS_H 1
11154
_ACEOF
11155
 
11156
fi
11157
 
11158
done
11159
 
11160
if test "x$MACOS_X" = "xyes"; then
11161
    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11162
 
11163
else
11164
 
11165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
11166
$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11167
cppflags_save=$CPPFLAGS
11168
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11169
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170
/* end confdefs.h.  */
11171
 
11172
#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11173
# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11174
			/* but don't do it on AIX 5.1 (Uribarri) */
11175
#endif
11176
#ifdef HAVE_XM_XM_H
11177
# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11178
#endif
11179
#ifdef HAVE_STRING_H
11180
# include <string.h>
11181
#endif
11182
#if defined(HAVE_STRINGS_H)
11183
# include <strings.h>
11184
#endif
11185
 
11186
int
11187
main ()
11188
{
11189
int i; i = 0;
11190
  ;
11191
  return 0;
11192
}
11193
_ACEOF
11194
if ac_fn_c_try_compile "$LINENO"; then :
11195
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11196
$as_echo "yes" >&6; }
11197
else
11198
  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11199
 
11200
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201
$as_echo "no" >&6; }
11202
fi
11203
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204
CPPFLAGS=$cppflags_save
11205
fi
11206
 
11207
if test $ac_cv_c_compiler_gnu = yes; then
11208
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11209
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11210
if ${ac_cv_prog_gcc_traditional+:} false; then :
11211
  $as_echo_n "(cached) " >&6
11212
else
11213
    ac_pattern="Autoconf.*'x'"
11214
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215
/* end confdefs.h.  */
11216
#include <sgtty.h>
11217
Autoconf TIOCGETP
11218
_ACEOF
11219
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11220
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11221
  ac_cv_prog_gcc_traditional=yes
11222
else
11223
  ac_cv_prog_gcc_traditional=no
11224
fi
11225
rm -f conftest*
11226
 
11227
 
11228
  if test $ac_cv_prog_gcc_traditional = no; then
11229
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230
/* end confdefs.h.  */
11231
#include <termio.h>
11232
Autoconf TCGETA
11233
_ACEOF
11234
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11235
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11236
  ac_cv_prog_gcc_traditional=yes
11237
fi
11238
rm -f conftest*
11239
 
11240
  fi
11241
fi
11242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11243
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11244
  if test $ac_cv_prog_gcc_traditional = yes; then
11245
    CC="$CC -traditional"
11246
  fi
11247
fi
11248
 
11249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11250
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11251
if ${ac_cv_c_const+:} false; then :
11252
  $as_echo_n "(cached) " >&6
11253
else
11254
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255
/* end confdefs.h.  */
11256
 
11257
int
11258
main ()
11259
{
11260
 
11261
#ifndef __cplusplus
11262
  /* Ultrix mips cc rejects this sort of thing.  */
11263
  typedef int charset[2];
11264
  const charset cs = { 0, 0 };
11265
  /* SunOS 4.1.1 cc rejects this.  */
11266
  char const *const *pcpcc;
11267
  char **ppc;
11268
  /* NEC SVR4.0.2 mips cc rejects this.  */
11269
  struct point {int x, y;};
11270
  static struct point const zero = {0,0};
11271
  /* AIX XL C 1.02.0.0 rejects this.
11272
     It does not let you subtract one const X* pointer from another in
11273
     an arm of an if-expression whose if-part is not a constant
11274
     expression */
11275
  const char *g = "string";
11276
  pcpcc = &g + (g ? g-g : 0);
11277
  /* HPUX 7.0 cc rejects these. */
11278
  ++pcpcc;
11279
  ppc = (char**) pcpcc;
11280
  pcpcc = (char const *const *) ppc;
11281
  { /* SCO 3.2v4 cc rejects this sort of thing.  */
11282
    char tx;
11283
    char *t = &tx;
11284
    char const *s = 0 ? (char *) 0 : (char const *) 0;
11285
 
11286
    *t++ = 0;
11287
    if (s) return 0;
11288
  }
11289
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11290
    int x[] = {25, 17};
11291
    const int *foo = &x[0];
11292
    ++foo;
11293
  }
11294
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11295
    typedef const int *iptr;
11296
    iptr p = 0;
11297
    ++p;
11298
  }
11299
  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11300
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11301
    struct s { int j; const int *ap[3]; } bx;
11302
    struct s *b = &bx; b->j = 5;
11303
  }
11304
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11305
    const int foo = 10;
11306
    if (!foo) return 0;
11307
  }
11308
  return !cs[0] && !zero.x;
11309
#endif
11310
 
11311
  ;
11312
  return 0;
11313
}
11314
_ACEOF
11315
if ac_fn_c_try_compile "$LINENO"; then :
11316
  ac_cv_c_const=yes
11317
else
11318
  ac_cv_c_const=no
11319
fi
11320
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321
fi
11322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11323
$as_echo "$ac_cv_c_const" >&6; }
11324
if test $ac_cv_c_const = no; then
11325
 
11326
$as_echo "#define const /**/" >>confdefs.h
11327
 
11328
fi
11329
 
11330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11331
$as_echo_n "checking for working volatile... " >&6; }
11332
if ${ac_cv_c_volatile+:} false; then :
11333
  $as_echo_n "(cached) " >&6
11334
else
11335
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336
/* end confdefs.h.  */
11337
 
11338
int
11339
main ()
11340
{
11341
 
11342
volatile int x;
11343
int * volatile y = (int *) 0;
11344
return !x && !y;
11345
  ;
11346
  return 0;
11347
}
11348
_ACEOF
11349
if ac_fn_c_try_compile "$LINENO"; then :
11350
  ac_cv_c_volatile=yes
11351
else
11352
  ac_cv_c_volatile=no
11353
fi
11354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11355
fi
11356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11357
$as_echo "$ac_cv_c_volatile" >&6; }
11358
if test $ac_cv_c_volatile = no; then
11359
 
11360
$as_echo "#define volatile /**/" >>confdefs.h
11361
 
11362
fi
11363
 
11364
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11365
if test "x$ac_cv_type_mode_t" = xyes; then :
11366
 
11367
else
11368
 
11369
cat >>confdefs.h <<_ACEOF
11370
#define mode_t int
11371
_ACEOF
11372
 
11373
fi
11374
 
11375
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11376
if test "x$ac_cv_type_off_t" = xyes; then :
11377
 
11378
else
11379
 
11380
cat >>confdefs.h <<_ACEOF
11381
#define off_t long int
11382
_ACEOF
11383
 
11384
fi
11385
 
11386
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11387
if test "x$ac_cv_type_pid_t" = xyes; then :
11388
 
11389
else
11390
 
11391
cat >>confdefs.h <<_ACEOF
11392
#define pid_t int
11393
_ACEOF
11394
 
11395
fi
11396
 
11397
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11398
if test "x$ac_cv_type_size_t" = xyes; then :
11399
 
11400
else
11401
 
11402
cat >>confdefs.h <<_ACEOF
11403
#define size_t unsigned int
11404
_ACEOF
11405
 
11406
fi
11407
 
11408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11409
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11410
if ${ac_cv_type_uid_t+:} false; then :
11411
  $as_echo_n "(cached) " >&6
11412
else
11413
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414
/* end confdefs.h.  */
11415
#include <sys/types.h>
11416
 
11417
_ACEOF
11418
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11419
  $EGREP "uid_t" >/dev/null 2>&1; then :
11420
  ac_cv_type_uid_t=yes
11421
else
11422
  ac_cv_type_uid_t=no
11423
fi
11424
rm -f conftest*
11425
 
11426
fi
11427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11428
$as_echo "$ac_cv_type_uid_t" >&6; }
11429
if test $ac_cv_type_uid_t = no; then
11430
 
11431
$as_echo "#define uid_t int" >>confdefs.h
11432
 
11433
 
11434
$as_echo "#define gid_t int" >>confdefs.h
11435
 
11436
fi
11437
 
11438
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
11439
case $ac_cv_c_uint32_t in #(
11440
  no|yes) ;; #(
11441
  *)
11442
 
11443
$as_echo "#define _UINT32_T 1" >>confdefs.h
11444
 
11445
 
11446
cat >>confdefs.h <<_ACEOF
11447
#define uint32_t $ac_cv_c_uint32_t
11448
_ACEOF
11449
;;
11450
  esac
11451
 
11452
 
11453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11454
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11455
if ${ac_cv_header_time+:} false; then :
11456
  $as_echo_n "(cached) " >&6
11457
else
11458
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459
/* end confdefs.h.  */
11460
#include <sys/types.h>
11461
#include <sys/time.h>
11462
#include <time.h>
11463
 
11464
int
11465
main ()
11466
{
11467
if ((struct tm *) 0)
11468
return 0;
11469
  ;
11470
  return 0;
11471
}
11472
_ACEOF
11473
if ac_fn_c_try_compile "$LINENO"; then :
11474
  ac_cv_header_time=yes
11475
else
11476
  ac_cv_header_time=no
11477
fi
11478
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11479
fi
11480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11481
$as_echo "$ac_cv_header_time" >&6; }
11482
if test $ac_cv_header_time = yes; then
11483
 
11484
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11485
 
11486
fi
11487
 
11488
ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
11489
if test "x$ac_cv_type_ino_t" = xyes; then :
11490
 
11491
else
11492
 
11493
cat >>confdefs.h <<_ACEOF
11494
#define ino_t long
11495
_ACEOF
11496
 
11497
fi
11498
 
11499
ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
11500
if test "x$ac_cv_type_dev_t" = xyes; then :
11501
 
11502
else
11503
 
11504
cat >>confdefs.h <<_ACEOF
11505
#define dev_t unsigned
11506
_ACEOF
11507
 
11508
fi
11509
 
11510
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11511
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11512
if ${ac_cv_c_bigendian+:} false; then :
11513
  $as_echo_n "(cached) " >&6
11514
else
11515
  ac_cv_c_bigendian=unknown
11516
    # See if we're dealing with a universal compiler.
11517
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518
/* end confdefs.h.  */
11519
#ifndef __APPLE_CC__
11520
	       not a universal capable compiler
11521
	     #endif
11522
	     typedef int dummy;
11523
 
11524
_ACEOF
11525
if ac_fn_c_try_compile "$LINENO"; then :
11526
 
11527
	# Check for potential -arch flags.  It is not universal unless
11528
	# there are at least two -arch flags with different values.
11529
	ac_arch=
11530
	ac_prev=
11531
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11532
	 if test -n "$ac_prev"; then
11533
	   case $ac_word in
11534
	     i?86 | x86_64 | ppc | ppc64)
11535
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11536
		 ac_arch=$ac_word
11537
	       else
11538
		 ac_cv_c_bigendian=universal
11539
		 break
11540
	       fi
11541
	       ;;
11542
	   esac
11543
	   ac_prev=
11544
	 elif test "x$ac_word" = "x-arch"; then
11545
	   ac_prev=arch
11546
	 fi
11547
       done
11548
fi
11549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550
    if test $ac_cv_c_bigendian = unknown; then
11551
      # See if sys/param.h defines the BYTE_ORDER macro.
11552
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553
/* end confdefs.h.  */
11554
#include <sys/types.h>
11555
	     #include <sys/param.h>
11556
 
11557
int
11558
main ()
11559
{
11560
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11561
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11562
		     && LITTLE_ENDIAN)
11563
	      bogus endian macros
11564
	     #endif
11565
 
11566
  ;
11567
  return 0;
11568
}
11569
_ACEOF
11570
if ac_fn_c_try_compile "$LINENO"; then :
11571
  # It does; now see whether it defined to BIG_ENDIAN or not.
11572
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573
/* end confdefs.h.  */
11574
#include <sys/types.h>
11575
		#include <sys/param.h>
11576
 
11577
int
11578
main ()
11579
{
11580
#if BYTE_ORDER != BIG_ENDIAN
11581
		 not big endian
11582
		#endif
11583
 
11584
  ;
11585
  return 0;
11586
}
11587
_ACEOF
11588
if ac_fn_c_try_compile "$LINENO"; then :
11589
  ac_cv_c_bigendian=yes
11590
else
11591
  ac_cv_c_bigendian=no
11592
fi
11593
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11594
fi
11595
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596
    fi
11597
    if test $ac_cv_c_bigendian = unknown; then
11598
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11599
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600
/* end confdefs.h.  */
11601
#include <limits.h>
11602
 
11603
int
11604
main ()
11605
{
11606
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11607
	      bogus endian macros
11608
	     #endif
11609
 
11610
  ;
11611
  return 0;
11612
}
11613
_ACEOF
11614
if ac_fn_c_try_compile "$LINENO"; then :
11615
  # It does; now see whether it defined to _BIG_ENDIAN or not.
11616
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617
/* end confdefs.h.  */
11618
#include <limits.h>
11619
 
11620
int
11621
main ()
11622
{
11623
#ifndef _BIG_ENDIAN
11624
		 not big endian
11625
		#endif
11626
 
11627
  ;
11628
  return 0;
11629
}
11630
_ACEOF
11631
if ac_fn_c_try_compile "$LINENO"; then :
11632
  ac_cv_c_bigendian=yes
11633
else
11634
  ac_cv_c_bigendian=no
11635
fi
11636
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637
fi
11638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11639
    fi
11640
    if test $ac_cv_c_bigendian = unknown; then
11641
      # Compile a test program.
11642
      if test "$cross_compiling" = yes; then :
11643
  # Try to guess by grepping values from an object file.
11644
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645
/* end confdefs.h.  */
11646
short int ascii_mm[] =
11647
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11648
		short int ascii_ii[] =
11649
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11650
		int use_ascii (int i) {
11651
		  return ascii_mm[i] + ascii_ii[i];
11652
		}
11653
		short int ebcdic_ii[] =
11654
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11655
		short int ebcdic_mm[] =
11656
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11657
		int use_ebcdic (int i) {
11658
		  return ebcdic_mm[i] + ebcdic_ii[i];
11659
		}
11660
		extern int foo;
11661
 
11662
int
11663
main ()
11664
{
11665
return use_ascii (foo) == use_ebcdic (foo);
11666
  ;
11667
  return 0;
11668
}
11669
_ACEOF
11670
if ac_fn_c_try_compile "$LINENO"; then :
11671
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11672
	      ac_cv_c_bigendian=yes
11673
	    fi
11674
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11675
	      if test "$ac_cv_c_bigendian" = unknown; then
11676
		ac_cv_c_bigendian=no
11677
	      else
11678
		# finding both strings is unlikely to happen, but who knows?
11679
		ac_cv_c_bigendian=unknown
11680
	      fi
11681
	    fi
11682
fi
11683
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684
else
11685
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686
/* end confdefs.h.  */
11687
$ac_includes_default
11688
int
11689
main ()
11690
{
11691
 
11692
	     /* Are we little or big endian?  From Harbison&Steele.  */
11693
	     union
11694
	     {
11695
	       long int l;
11696
	       char c[sizeof (long int)];
11697
	     } u;
11698
	     u.l = 1;
11699
	     return u.c[sizeof (long int) - 1] == 1;
11700
 
11701
  ;
11702
  return 0;
11703
}
11704
_ACEOF
11705
if ac_fn_c_try_run "$LINENO"; then :
11706
  ac_cv_c_bigendian=no
11707
else
11708
  ac_cv_c_bigendian=yes
11709
fi
11710
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11711
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11712
fi
11713
 
11714
    fi
11715
fi
11716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11717
$as_echo "$ac_cv_c_bigendian" >&6; }
11718
 case $ac_cv_c_bigendian in #(
11719
   yes)
11720
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11721
;; #(
11722
   no)
11723
      ;; #(
11724
   universal)
11725
 
11726
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11727
 
11728
     ;; #(
11729
   *)
11730
     as_fn_error $? "unknown endianness
11731
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11732
 esac
11733
 
11734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11735
$as_echo_n "checking for inline... " >&6; }
11736
if ${ac_cv_c_inline+:} false; then :
11737
  $as_echo_n "(cached) " >&6
11738
else
11739
  ac_cv_c_inline=no
11740
for ac_kw in inline __inline__ __inline; do
11741
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742
/* end confdefs.h.  */
11743
#ifndef __cplusplus
11744
typedef int foo_t;
11745
static $ac_kw foo_t static_foo () {return 0; }
11746
$ac_kw foo_t foo () {return 0; }
11747
#endif
11748
 
11749
_ACEOF
11750
if ac_fn_c_try_compile "$LINENO"; then :
11751
  ac_cv_c_inline=$ac_kw
11752
fi
11753
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754
  test "$ac_cv_c_inline" != no && break
11755
done
11756
 
11757
fi
11758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11759
$as_echo "$ac_cv_c_inline" >&6; }
11760
 
11761
case $ac_cv_c_inline in
11762
  inline | yes) ;;
11763
  *)
11764
    case $ac_cv_c_inline in
11765
      no) ac_val=;;
11766
      *) ac_val=$ac_cv_c_inline;;
11767
    esac
11768
    cat >>confdefs.h <<_ACEOF
11769
#ifndef __cplusplus
11770
#define inline $ac_val
11771
#endif
11772
_ACEOF
11773
    ;;
11774
esac
11775
 
11776
 
11777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
11778
$as_echo_n "checking for rlim_t... " >&6; }
11779
if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11780
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11781
$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
11782
else
11783
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784
/* end confdefs.h.  */
11785
 
11786
#include <sys/types.h>
11787
#if STDC_HEADERS
11788
# include <stdlib.h>
11789
# include <stddef.h>
11790
#endif
11791
#ifdef HAVE_SYS_RESOURCE_H
11792
# include <sys/resource.h>
11793
#endif
11794
 
11795
_ACEOF
11796
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11797
  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
11798
  ac_cv_type_rlim_t=yes
11799
else
11800
  ac_cv_type_rlim_t=no
11801
fi
11802
rm -f conftest*
11803
 
11804
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
11805
$as_echo "$ac_cv_type_rlim_t" >&6; }
11806
fi
11807
if test $ac_cv_type_rlim_t = no; then
11808
  cat >> confdefs.h <<\EOF
11809
#define rlim_t unsigned long
11810
EOF
11811
fi
11812
 
11813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
11814
$as_echo_n "checking for stack_t... " >&6; }
11815
if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11816
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
11817
$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
11818
else
11819
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820
/* end confdefs.h.  */
11821
 
11822
#include <sys/types.h>
11823
#if STDC_HEADERS
11824
# include <stdlib.h>
11825
# include <stddef.h>
11826
#endif
11827
#include <signal.h>
11828
 
11829
_ACEOF
11830
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11831
  $EGREP "stack_t" >/dev/null 2>&1; then :
11832
  ac_cv_type_stack_t=yes
11833
else
11834
  ac_cv_type_stack_t=no
11835
fi
11836
rm -f conftest*
11837
 
11838
	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
11839
$as_echo "$ac_cv_type_stack_t" >&6; }
11840
fi
11841
if test $ac_cv_type_stack_t = no; then
11842
  cat >> confdefs.h <<\EOF
11843
#define stack_t struct sigaltstack
11844
EOF
11845
fi
11846
 
11847
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
11848
$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
11849
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850
/* end confdefs.h.  */
11851
 
11852
#include <sys/types.h>
11853
#if STDC_HEADERS
11854
# include <stdlib.h>
11855
# include <stddef.h>
11856
#endif
11857
#include <signal.h>
11858
#include "confdefs.h"
11859
 
11860
int
11861
main ()
11862
{
11863
stack_t sigstk; sigstk.ss_base = 0;
11864
  ;
11865
  return 0;
11866
}
11867
_ACEOF
11868
if ac_fn_c_try_compile "$LINENO"; then :
11869
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11870
$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
11871
 
11872
else
11873
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874
$as_echo "no" >&6; }
11875
fi
11876
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11877
 
11878
olibs="$LIBS"
11879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
11880
$as_echo_n "checking --with-tlib argument... " >&6; }
11881
 
11882
# Check whether --with-tlib was given.
11883
if test "${with_tlib+set}" = set; then :
11884
  withval=$with_tlib;
11885
fi
11886
 
11887
if test -n "$with_tlib"; then
11888
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
11889
$as_echo "$with_tlib" >&6; }
11890
  LIBS="$LIBS -l$with_tlib"
11891
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
11892
$as_echo_n "checking for linking with $with_tlib library... " >&6; }
11893
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894
/* end confdefs.h.  */
11895
 
11896
int
11897
main ()
11898
{
11899
 
11900
  ;
11901
  return 0;
11902
}
11903
_ACEOF
11904
if ac_fn_c_try_link "$LINENO"; then :
11905
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
11906
$as_echo "OK" >&6; }
11907
else
11908
  as_fn_error $? "FAILED" "$LINENO" 5
11909
fi
11910
rm -f core conftest.err conftest.$ac_objext \
11911
    conftest$ac_exeext conftest.$ac_ext
11912
    olibs="$LIBS"
11913
else
11914
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
11915
$as_echo "empty: automatic terminal library selection" >&6; }
11916
                case "`uname -s 2>/dev/null`" in
11917
	OSF1|SCO_SV)	tlibs="tinfo ncurses curses termlib termcap";;
11918
	*)	tlibs="tinfo ncurses termlib termcap curses";;
11919
  esac
11920
  for libname in $tlibs; do
11921
    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
11923
$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
11924
if eval \${$as_ac_Lib+:} false; then :
11925
  $as_echo_n "(cached) " >&6
11926
else
11927
  ac_check_lib_save_LIBS=$LIBS
11928
LIBS="-l${libname}  $LIBS"
11929
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930
/* end confdefs.h.  */
11931
 
11932
/* Override any GCC internal prototype to avoid an error.
11933
   Use char because int might match the return type of a GCC
11934
   builtin and then its argument prototype would still apply.  */
11935
#ifdef __cplusplus
11936
extern "C"
11937
#endif
11938
char tgetent ();
11939
int
11940
main ()
11941
{
11942
return tgetent ();
11943
  ;
11944
  return 0;
11945
}
11946
_ACEOF
11947
if ac_fn_c_try_link "$LINENO"; then :
11948
  eval "$as_ac_Lib=yes"
11949
else
11950
  eval "$as_ac_Lib=no"
11951
fi
11952
rm -f core conftest.err conftest.$ac_objext \
11953
    conftest$ac_exeext conftest.$ac_ext
11954
LIBS=$ac_check_lib_save_LIBS
11955
fi
11956
eval ac_res=\$$as_ac_Lib
11957
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11958
$as_echo "$ac_res" >&6; }
11959
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11960
  cat >>confdefs.h <<_ACEOF
11961
#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11962
_ACEOF
11963
 
11964
  LIBS="-l${libname} $LIBS"
11965
 
11966
fi
11967
 
11968
    if test "x$olibs" != "x$LIBS"; then
11969
                        if test "$cross_compiling" = yes; then :
11970
  res="FAIL"
11971
else
11972
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973
/* end confdefs.h.  */
11974
 
11975
#ifdef HAVE_TERMCAP_H
11976
# include <termcap.h>
11977
#endif
11978
#if STDC_HEADERS
11979
# include <stdlib.h>
11980
# include <stddef.h>
11981
#endif
11982
main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11983
_ACEOF
11984
if ac_fn_c_try_run "$LINENO"; then :
11985
  res="OK"
11986
else
11987
  res="FAIL"
11988
fi
11989
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11990
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11991
fi
11992
 
11993
      if test "$res" = "OK"; then
11994
	break
11995
      fi
11996
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
11997
$as_echo "$libname library is not usable" >&6; }
11998
      LIBS="$olibs"
11999
    fi
12000
  done
12001
  if test "x$olibs" = "x$LIBS"; then
12002
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
12003
$as_echo "no terminal library found" >&6; }
12004
  fi
12005
fi
12006
 
12007
if test "x$olibs" = "x$LIBS"; then
12008
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
12009
$as_echo_n "checking for tgetent()... " >&6; }
12010
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011
/* end confdefs.h.  */
12012
 
12013
int
12014
main ()
12015
{
12016
char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12017
  ;
12018
  return 0;
12019
}
12020
_ACEOF
12021
if ac_fn_c_try_link "$LINENO"; then :
12022
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12023
$as_echo "yes" >&6; }
12024
else
12025
  as_fn_error $? "NOT FOUND!
12026
      You need to install a terminal library; for example ncurses.
12027
      Or specify the name of the library with --with-tlib." "$LINENO" 5
12028
fi
12029
rm -f core conftest.err conftest.$ac_objext \
12030
    conftest$ac_exeext conftest.$ac_ext
12031
fi
12032
 
12033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
12034
$as_echo_n "checking whether we talk terminfo... " >&6; }
12035
if ${vim_cv_terminfo+:} false; then :
12036
  $as_echo_n "(cached) " >&6
12037
else
12038
 
12039
    if test "$cross_compiling" = yes; then :
12040
 
12041
      as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
12042
 
12043
else
12044
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045
/* end confdefs.h.  */
12046
 
12047
#include "confdefs.h"
12048
#ifdef HAVE_TERMCAP_H
12049
# include <termcap.h>
12050
#endif
12051
#ifdef HAVE_STRING_H
12052
# include <string.h>
12053
#endif
12054
#if STDC_HEADERS
12055
# include <stdlib.h>
12056
# include <stddef.h>
12057
#endif
12058
main()
12059
{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12060
 
12061
_ACEOF
12062
if ac_fn_c_try_run "$LINENO"; then :
12063
 
12064
      vim_cv_terminfo=no
12065
 
12066
else
12067
 
12068
      vim_cv_terminfo=yes
12069
 
12070
fi
12071
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12072
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12073
fi
12074
 
12075
 
12076
fi
12077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
12078
$as_echo "$vim_cv_terminfo" >&6; }
12079
 
12080
if test "x$vim_cv_terminfo" = "xyes" ; then
12081
  $as_echo "#define TERMINFO 1" >>confdefs.h
12082
 
12083
fi
12084
 
12085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
12086
$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12087
if ${vim_cv_tgetent+:} false; then :
12088
  $as_echo_n "(cached) " >&6
12089
else
12090
 
12091
    if test "$cross_compiling" = yes; then :
12092
 
12093
      as_fn_error $? "failed to compile test program." "$LINENO" 5
12094
 
12095
else
12096
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097
/* end confdefs.h.  */
12098
 
12099
#include "confdefs.h"
12100
#ifdef HAVE_TERMCAP_H
12101
# include <termcap.h>
12102
#endif
12103
#if STDC_HEADERS
12104
# include <stdlib.h>
12105
# include <stddef.h>
12106
#endif
12107
main()
12108
{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12109
 
12110
_ACEOF
12111
if ac_fn_c_try_run "$LINENO"; then :
12112
 
12113
      vim_cv_tgetent=zero
12114
 
12115
else
12116
 
12117
      vim_cv_tgetent=non-zero
12118
 
12119
fi
12120
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12121
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12122
fi
12123
 
12124
 
12125
fi
12126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgetent" >&5
12127
$as_echo "$vim_cv_tgetent" >&6; }
12128
 
12129
if test "x$vim_cv_tgetent" = "xzero" ; then
12130
  $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
12131
 
12132
fi
12133
 
12134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
12135
$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137
/* end confdefs.h.  */
12138
 
12139
#ifdef HAVE_TERMCAP_H
12140
# include <termcap.h>
12141
#endif
12142
 
12143
int
12144
main ()
12145
{
12146
ospeed = 20000
12147
  ;
12148
  return 0;
12149
}
12150
_ACEOF
12151
if ac_fn_c_try_link "$LINENO"; then :
12152
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12153
$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
12154
 
12155
else
12156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157
$as_echo "no" >&6; }
12158
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
12159
$as_echo_n "checking whether ospeed can be extern... " >&6; }
12160
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161
/* end confdefs.h.  */
12162
 
12163
#ifdef HAVE_TERMCAP_H
12164
# include <termcap.h>
12165
#endif
12166
extern short ospeed;
12167
 
12168
int
12169
main ()
12170
{
12171
ospeed = 20000
12172
  ;
12173
  return 0;
12174
}
12175
_ACEOF
12176
if ac_fn_c_try_link "$LINENO"; then :
12177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12178
$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
12179
 
12180
else
12181
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182
$as_echo "no" >&6; }
12183
fi
12184
rm -f core conftest.err conftest.$ac_objext \
12185
    conftest$ac_exeext conftest.$ac_ext
12186
 
12187
fi
12188
rm -f core conftest.err conftest.$ac_objext \
12189
    conftest$ac_exeext conftest.$ac_ext
12190
 
12191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
12192
$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12193
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194
/* end confdefs.h.  */
12195
 
12196
#ifdef HAVE_TERMCAP_H
12197
# include <termcap.h>
12198
#endif
12199
 
12200
int
12201
main ()
12202
{
12203
if (UP == 0 && BC == 0) PC = 1
12204
  ;
12205
  return 0;
12206
}
12207
_ACEOF
12208
if ac_fn_c_try_link "$LINENO"; then :
12209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12210
$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
12211
 
12212
else
12213
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214
$as_echo "no" >&6; }
12215
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
12216
$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
12217
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218
/* end confdefs.h.  */
12219
 
12220
#ifdef HAVE_TERMCAP_H
12221
# include <termcap.h>
12222
#endif
12223
extern char *UP, *BC, PC;
12224
 
12225
int
12226
main ()
12227
{
12228
if (UP == 0 && BC == 0) PC = 1
12229
  ;
12230
  return 0;
12231
}
12232
_ACEOF
12233
if ac_fn_c_try_link "$LINENO"; then :
12234
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12235
$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
12236
 
12237
else
12238
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239
$as_echo "no" >&6; }
12240
fi
12241
rm -f core conftest.err conftest.$ac_objext \
12242
    conftest$ac_exeext conftest.$ac_ext
12243
 
12244
fi
12245
rm -f core conftest.err conftest.$ac_objext \
12246
    conftest$ac_exeext conftest.$ac_ext
12247
 
12248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
12249
$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
12250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251
/* end confdefs.h.  */
12252
 
12253
#ifdef HAVE_TERMCAP_H
12254
# include <termcap.h>
12255
#endif
12256
 
12257
int
12258
main ()
12259
{
12260
extern int xx(); tputs("test", 1, (outfuntype)xx)
12261
  ;
12262
  return 0;
12263
}
12264
_ACEOF
12265
if ac_fn_c_try_compile "$LINENO"; then :
12266
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12267
$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
12268
 
12269
else
12270
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271
$as_echo "no" >&6; }
12272
fi
12273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274
 
12275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
12276
$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
12277
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278
/* end confdefs.h.  */
12279
 
12280
#include <sys/types.h>
12281
#include <sys/time.h>
12282
#include <sys/select.h>
12283
int
12284
main ()
12285
{
12286
 
12287
  ;
12288
  return 0;
12289
}
12290
_ACEOF
12291
if ac_fn_c_try_compile "$LINENO"; then :
12292
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293
$as_echo "yes" >&6; }
12294
			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
12295
 
12296
else
12297
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298
$as_echo "no" >&6; }
12299
fi
12300
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301
 
12302
 
12303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
12304
$as_echo_n "checking for /dev/ptc... " >&6; }
12305
if test -r /dev/ptc; then
12306
  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
12307
 
12308
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12309
$as_echo "yes" >&6; }
12310
else
12311
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312
$as_echo "no" >&6; }
12313
fi
12314
 
12315
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
12316
$as_echo_n "checking for SVR4 ptys... " >&6; }
12317
if test -c /dev/ptmx ; then
12318
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319
/* end confdefs.h.  */
12320
 
12321
int
12322
main ()
12323
{
12324
ptsname(0);grantpt(0);unlockpt(0);
12325
  ;
12326
  return 0;
12327
}
12328
_ACEOF
12329
if ac_fn_c_try_link "$LINENO"; then :
12330
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12331
$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
12332
 
12333
else
12334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335
$as_echo "no" >&6; }
12336
fi
12337
rm -f core conftest.err conftest.$ac_objext \
12338
    conftest$ac_exeext conftest.$ac_ext
12339
else
12340
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341
$as_echo "no" >&6; }
12342
fi
12343
 
12344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
12345
$as_echo_n "checking for ptyranges... " >&6; }
12346
if test -d /dev/ptym ; then
12347
  pdir='/dev/ptym'
12348
else
12349
  pdir='/dev'
12350
fi
12351
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352
/* end confdefs.h.  */
12353
#ifdef M_UNIX
12354
   yes;
12355
#endif
12356
 
12357
_ACEOF
12358
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12359
  $EGREP "yes" >/dev/null 2>&1; then :
12360
  ptys=`echo /dev/ptyp??`
12361
else
12362
  ptys=`echo $pdir/pty??`
12363
fi
12364
rm -f conftest*
12365
 
12366
if test "$ptys" != "$pdir/pty??" ; then
12367
  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12368
  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12369
  cat >>confdefs.h <<_ACEOF
12370
#define PTYRANGE0 "$p0"
12371
_ACEOF
12372
 
12373
  cat >>confdefs.h <<_ACEOF
12374
#define PTYRANGE1 "$p1"
12375
_ACEOF
12376
 
12377
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
12378
$as_echo "$p0 / $p1" >&6; }
12379
else
12380
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
12381
$as_echo "don't know" >&6; }
12382
fi
12383
 
12384
rm -f conftest_grp
12385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
12386
$as_echo_n "checking default tty permissions/group... " >&6; }
12387
if ${vim_cv_tty_group+:} false; then :
12388
  $as_echo_n "(cached) " >&6
12389
else
12390
 
12391
    if test "$cross_compiling" = yes; then :
12392
 
12393
      as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
12394
 
12395
else
12396
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397
/* end confdefs.h.  */
12398
 
12399
#include "confdefs.h"
12400
#include <sys/types.h>
12401
#if STDC_HEADERS
12402
# include <stdlib.h>
12403
# include <stddef.h>
12404
#endif
12405
#ifdef HAVE_UNISTD_H
12406
#include <unistd.h>
12407
#endif
12408
#include <sys/stat.h>
12409
#include <stdio.h>
12410
main()
12411
{
12412
  struct stat sb;
12413
  char *x,*ttyname();
12414
  int om, m;
12415
  FILE *fp;
12416
 
12417
  if (!(x = ttyname(0))) exit(1);
12418
  if (stat(x, &sb)) exit(1);
12419
  om = sb.st_mode;
12420
  if (om & 002) exit(0);
12421
  m = system("mesg y");
12422
  if (m == -1 || m == 127) exit(1);
12423
  if (stat(x, &sb)) exit(1);
12424
  m = sb.st_mode;
12425
  if (chmod(x, om)) exit(1);
12426
  if (m & 002) exit(0);
12427
  if (sb.st_gid == getgid()) exit(1);
12428
  if (!(fp=fopen("conftest_grp", "w")))
12429
    exit(1);
12430
  fprintf(fp, "%d\n", sb.st_gid);
12431
  fclose(fp);
12432
  exit(0);
12433
}
12434
 
12435
_ACEOF
12436
if ac_fn_c_try_run "$LINENO"; then :
12437
 
12438
      if test -f conftest_grp; then
12439
	vim_cv_tty_group=`cat conftest_grp`
12440
	if test "x$vim_cv_tty_mode" = "x" ; then
12441
	  vim_cv_tty_mode=0620
12442
	fi
12443
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
12444
$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
12445
      else
12446
	vim_cv_tty_group=world
12447
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
12448
$as_echo "ptys are world accessible" >&6; }
12449
      fi
12450
 
12451
else
12452
 
12453
      vim_cv_tty_group=world
12454
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
12455
$as_echo "can't determine - assume ptys are world accessible" >&6; }
12456
 
12457
fi
12458
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12459
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12460
fi
12461
 
12462
 
12463
fi
12464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
12465
$as_echo "$vim_cv_tty_group" >&6; }
12466
rm -f conftest_grp
12467
 
12468
if test "x$vim_cv_tty_group" != "xworld" ; then
12469
  cat >>confdefs.h <<_ACEOF
12470
#define PTYGROUP $vim_cv_tty_group
12471
_ACEOF
12472
 
12473
  if test "x$vim_cv_tty_mode" = "x" ; then
12474
    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
12475
  else
12476
    $as_echo "#define PTYMODE 0620" >>confdefs.h
12477
 
12478
  fi
12479
fi
12480
 
12481
 
12482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12483
$as_echo_n "checking return type of signal handlers... " >&6; }
12484
if ${ac_cv_type_signal+:} false; then :
12485
  $as_echo_n "(cached) " >&6
12486
else
12487
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488
/* end confdefs.h.  */
12489
#include <sys/types.h>
12490
#include <signal.h>
12491
 
12492
int
12493
main ()
12494
{
12495
return *(signal (0, 0)) (0) == 1;
12496
  ;
12497
  return 0;
12498
}
12499
_ACEOF
12500
if ac_fn_c_try_compile "$LINENO"; then :
12501
  ac_cv_type_signal=int
12502
else
12503
  ac_cv_type_signal=void
12504
fi
12505
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506
fi
12507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12508
$as_echo "$ac_cv_type_signal" >&6; }
12509
 
12510
cat >>confdefs.h <<_ACEOF
12511
#define RETSIGTYPE $ac_cv_type_signal
12512
_ACEOF
12513
 
12514
 
12515
 
12516
if test $ac_cv_type_signal = void; then
12517
  $as_echo "#define SIGRETURN return" >>confdefs.h
12518
 
12519
else
12520
  $as_echo "#define SIGRETURN return 0" >>confdefs.h
12521
 
12522
fi
12523
 
12524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
12525
$as_echo_n "checking for struct sigcontext... " >&6; }
12526
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527
/* end confdefs.h.  */
12528
 
12529
#include <signal.h>
12530
test_sig()
12531
{
12532
    struct sigcontext *scont;
12533
    scont = (struct sigcontext *)0;
12534
    return 1;
12535
}
12536
int
12537
main ()
12538
{
12539
 
12540
  ;
12541
  return 0;
12542
}
12543
_ACEOF
12544
if ac_fn_c_try_compile "$LINENO"; then :
12545
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12546
$as_echo "yes" >&6; }
12547
		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
12548
 
12549
else
12550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551
$as_echo "no" >&6; }
12552
fi
12553
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12554
 
12555
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
12556
$as_echo_n "checking getcwd implementation is broken... " >&6; }
12557
if ${vim_cv_getcwd_broken+:} false; then :
12558
  $as_echo_n "(cached) " >&6
12559
else
12560
 
12561
    if test "$cross_compiling" = yes; then :
12562
 
12563
      as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
12564
 
12565
else
12566
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567
/* end confdefs.h.  */
12568
 
12569
#include "confdefs.h"
12570
#ifdef HAVE_UNISTD_H
12571
#include <unistd.h>
12572
#endif
12573
char *dagger[] = { "IFS=pwd", 0 };
12574
main()
12575
{
12576
  char buffer[500];
12577
  extern char **environ;
12578
  environ = dagger;
12579
  return getcwd(buffer, 500) ? 0 : 1;
12580
}
12581
 
12582
_ACEOF
12583
if ac_fn_c_try_run "$LINENO"; then :
12584
 
12585
      vim_cv_getcwd_broken=no
12586
 
12587
else
12588
 
12589
      vim_cv_getcwd_broken=yes
12590
 
12591
fi
12592
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12593
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12594
fi
12595
 
12596
 
12597
fi
12598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
12599
$as_echo "$vim_cv_getcwd_broken" >&6; }
12600
 
12601
if test "x$vim_cv_getcwd_broken" = "xyes" ; then
12602
  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
12603
 
12604
fi
12605
 
12606
for ac_func in fchdir fchown fchmod fsync getcwd getpseudotty \
12607
	getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \
12608
	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12609
	getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12610
	sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
12611
	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12612
	usleep utime utimes mblen ftruncate unsetenv
12613
do :
12614
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12615
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12616
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12617
  cat >>confdefs.h <<_ACEOF
12618
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12619
_ACEOF
12620
 
12621
fi
12622
done
12623
 
12624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12625
$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12626
if ${ac_cv_sys_largefile_source+:} false; then :
12627
  $as_echo_n "(cached) " >&6
12628
else
12629
  while :; do
12630
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631
/* end confdefs.h.  */
12632
#include <sys/types.h> /* for off_t */
12633
     #include <stdio.h>
12634
int
12635
main ()
12636
{
12637
int (*fp) (FILE *, off_t, int) = fseeko;
12638
     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12639
  ;
12640
  return 0;
12641
}
12642
_ACEOF
12643
if ac_fn_c_try_link "$LINENO"; then :
12644
  ac_cv_sys_largefile_source=no; break
12645
fi
12646
rm -f core conftest.err conftest.$ac_objext \
12647
    conftest$ac_exeext conftest.$ac_ext
12648
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649
/* end confdefs.h.  */
12650
#define _LARGEFILE_SOURCE 1
12651
#include <sys/types.h> /* for off_t */
12652
     #include <stdio.h>
12653
int
12654
main ()
12655
{
12656
int (*fp) (FILE *, off_t, int) = fseeko;
12657
     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12658
  ;
12659
  return 0;
12660
}
12661
_ACEOF
12662
if ac_fn_c_try_link "$LINENO"; then :
12663
  ac_cv_sys_largefile_source=1; break
12664
fi
12665
rm -f core conftest.err conftest.$ac_objext \
12666
    conftest$ac_exeext conftest.$ac_ext
12667
  ac_cv_sys_largefile_source=unknown
12668
  break
12669
done
12670
fi
12671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12672
$as_echo "$ac_cv_sys_largefile_source" >&6; }
12673
case $ac_cv_sys_largefile_source in #(
12674
  no | unknown) ;;
12675
  *)
12676
cat >>confdefs.h <<_ACEOF
12677
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12678
_ACEOF
12679
;;
12680
esac
12681
rm -rf conftest*
12682
 
12683
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12684
# in glibc 2.1.3, but that breaks too many other things.
12685
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12686
if test $ac_cv_sys_largefile_source != unknown; then
12687
 
12688
$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12689
 
12690
fi
12691
 
12692
 
12693
# Check whether --enable-largefile was given.
12694
if test "${enable_largefile+set}" = set; then :
12695
  enableval=$enable_largefile;
12696
fi
12697
 
12698
if test "$enable_largefile" != no; then
12699
 
12700
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12701
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12702
if ${ac_cv_sys_largefile_CC+:} false; then :
12703
  $as_echo_n "(cached) " >&6
12704
else
12705
  ac_cv_sys_largefile_CC=no
12706
     if test "$GCC" != yes; then
12707
       ac_save_CC=$CC
12708
       while :; do
12709
	 # IRIX 6.2 and later do not support large files by default,
12710
	 # so use the C compiler's -n32 option if that helps.
12711
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712
/* end confdefs.h.  */
12713
#include <sys/types.h>
12714
 /* Check that off_t can represent 2**63 - 1 correctly.
12715
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12716
    since some C++ compilers masquerading as C compilers
12717
    incorrectly reject 9223372036854775807.  */
12718
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12719
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12720
		       && LARGE_OFF_T % 2147483647 == 1)
12721
		      ? 1 : -1];
12722
int
12723
main ()
12724
{
12725
 
12726
  ;
12727
  return 0;
12728
}
12729
_ACEOF
12730
	 if ac_fn_c_try_compile "$LINENO"; then :
12731
  break
12732
fi
12733
rm -f core conftest.err conftest.$ac_objext
12734
	 CC="$CC -n32"
12735
	 if ac_fn_c_try_compile "$LINENO"; then :
12736
  ac_cv_sys_largefile_CC=' -n32'; break
12737
fi
12738
rm -f core conftest.err conftest.$ac_objext
12739
	 break
12740
       done
12741
       CC=$ac_save_CC
12742
       rm -f conftest.$ac_ext
12743
    fi
12744
fi
12745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12746
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12747
  if test "$ac_cv_sys_largefile_CC" != no; then
12748
    CC=$CC$ac_cv_sys_largefile_CC
12749
  fi
12750
 
12751
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12752
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12753
if ${ac_cv_sys_file_offset_bits+:} false; then :
12754
  $as_echo_n "(cached) " >&6
12755
else
12756
  while :; do
12757
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758
/* end confdefs.h.  */
12759
#include <sys/types.h>
12760
 /* Check that off_t can represent 2**63 - 1 correctly.
12761
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12762
    since some C++ compilers masquerading as C compilers
12763
    incorrectly reject 9223372036854775807.  */
12764
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12765
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12766
		       && LARGE_OFF_T % 2147483647 == 1)
12767
		      ? 1 : -1];
12768
int
12769
main ()
12770
{
12771
 
12772
  ;
12773
  return 0;
12774
}
12775
_ACEOF
12776
if ac_fn_c_try_compile "$LINENO"; then :
12777
  ac_cv_sys_file_offset_bits=no; break
12778
fi
12779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12780
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781
/* end confdefs.h.  */
12782
#define _FILE_OFFSET_BITS 64
12783
#include <sys/types.h>
12784
 /* Check that off_t can represent 2**63 - 1 correctly.
12785
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12786
    since some C++ compilers masquerading as C compilers
12787
    incorrectly reject 9223372036854775807.  */
12788
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12789
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12790
		       && LARGE_OFF_T % 2147483647 == 1)
12791
		      ? 1 : -1];
12792
int
12793
main ()
12794
{
12795
 
12796
  ;
12797
  return 0;
12798
}
12799
_ACEOF
12800
if ac_fn_c_try_compile "$LINENO"; then :
12801
  ac_cv_sys_file_offset_bits=64; break
12802
fi
12803
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804
  ac_cv_sys_file_offset_bits=unknown
12805
  break
12806
done
12807
fi
12808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12809
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12810
case $ac_cv_sys_file_offset_bits in #(
12811
  no | unknown) ;;
12812
  *)
12813
cat >>confdefs.h <<_ACEOF
12814
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12815
_ACEOF
12816
;;
12817
esac
12818
rm -rf conftest*
12819
  if test $ac_cv_sys_file_offset_bits = unknown; then
12820
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12821
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12822
if ${ac_cv_sys_large_files+:} false; then :
12823
  $as_echo_n "(cached) " >&6
12824
else
12825
  while :; do
12826
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827
/* end confdefs.h.  */
12828
#include <sys/types.h>
12829
 /* Check that off_t can represent 2**63 - 1 correctly.
12830
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12831
    since some C++ compilers masquerading as C compilers
12832
    incorrectly reject 9223372036854775807.  */
12833
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12834
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12835
		       && LARGE_OFF_T % 2147483647 == 1)
12836
		      ? 1 : -1];
12837
int
12838
main ()
12839
{
12840
 
12841
  ;
12842
  return 0;
12843
}
12844
_ACEOF
12845
if ac_fn_c_try_compile "$LINENO"; then :
12846
  ac_cv_sys_large_files=no; break
12847
fi
12848
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12849
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850
/* end confdefs.h.  */
12851
#define _LARGE_FILES 1
12852
#include <sys/types.h>
12853
 /* Check that off_t can represent 2**63 - 1 correctly.
12854
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12855
    since some C++ compilers masquerading as C compilers
12856
    incorrectly reject 9223372036854775807.  */
12857
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12858
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12859
		       && LARGE_OFF_T % 2147483647 == 1)
12860
		      ? 1 : -1];
12861
int
12862
main ()
12863
{
12864
 
12865
  ;
12866
  return 0;
12867
}
12868
_ACEOF
12869
if ac_fn_c_try_compile "$LINENO"; then :
12870
  ac_cv_sys_large_files=1; break
12871
fi
12872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873
  ac_cv_sys_large_files=unknown
12874
  break
12875
done
12876
fi
12877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12878
$as_echo "$ac_cv_sys_large_files" >&6; }
12879
case $ac_cv_sys_large_files in #(
12880
  no | unknown) ;;
12881
  *)
12882
cat >>confdefs.h <<_ACEOF
12883
#define _LARGE_FILES $ac_cv_sys_large_files
12884
_ACEOF
12885
;;
12886
esac
12887
rm -rf conftest*
12888
  fi
12889
 
12890
 
12891
fi
12892
 
12893
 
12894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
12895
$as_echo_n "checking for st_blksize... " >&6; }
12896
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897
/* end confdefs.h.  */
12898
#include <sys/types.h>
12899
#include <sys/stat.h>
12900
int
12901
main ()
12902
{
12903
	struct stat st;
12904
	int n;
12905
 
12906
	stat("/", &st);
12907
	n = (int)st.st_blksize;
12908
  ;
12909
  return 0;
12910
}
12911
_ACEOF
12912
if ac_fn_c_try_compile "$LINENO"; then :
12913
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12914
$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
12915
 
12916
else
12917
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918
$as_echo "no" >&6; }
12919
fi
12920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12921
 
12922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
12923
$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
12924
if ${vim_cv_stat_ignores_slash+:} false; then :
12925
  $as_echo_n "(cached) " >&6
12926
else
12927
 
12928
    if test "$cross_compiling" = yes; then :
12929
 
12930
      as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
12931
 
12932
else
12933
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934
/* end confdefs.h.  */
12935
 
12936
#include "confdefs.h"
12937
#if STDC_HEADERS
12938
# include <stdlib.h>
12939
# include <stddef.h>
12940
#endif
12941
#include <sys/types.h>
12942
#include <sys/stat.h>
12943
main() {struct stat st;  exit(stat("configure/", &st) != 0); }
12944
 
12945
_ACEOF
12946
if ac_fn_c_try_run "$LINENO"; then :
12947
 
12948
      vim_cv_stat_ignores_slash=yes
12949
 
12950
else
12951
 
12952
      vim_cv_stat_ignores_slash=no
12953
 
12954
fi
12955
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12956
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12957
fi
12958
 
12959
 
12960
fi
12961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
12962
$as_echo "$vim_cv_stat_ignores_slash" >&6; }
12963
 
12964
if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
12965
  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
12966
 
12967
fi
12968
 
12969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
12970
$as_echo_n "checking for iconv_open()... " >&6; }
12971
save_LIBS="$LIBS"
12972
LIBS="$LIBS -liconv"
12973
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974
/* end confdefs.h.  */
12975
 
12976
#ifdef HAVE_ICONV_H
12977
# include <iconv.h>
12978
#endif
12979
 
12980
int
12981
main ()
12982
{
12983
iconv_open("fr", "to");
12984
  ;
12985
  return 0;
12986
}
12987
_ACEOF
12988
if ac_fn_c_try_link "$LINENO"; then :
12989
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
12990
$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12991
 
12992
else
12993
  LIBS="$save_LIBS"
12994
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995
/* end confdefs.h.  */
12996
 
12997
#ifdef HAVE_ICONV_H
12998
# include <iconv.h>
12999
#endif
13000
 
13001
int
13002
main ()
13003
{
13004
iconv_open("fr", "to");
13005
  ;
13006
  return 0;
13007
}
13008
_ACEOF
13009
if ac_fn_c_try_link "$LINENO"; then :
13010
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13011
$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13012
 
13013
else
13014
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015
$as_echo "no" >&6; }
13016
fi
13017
rm -f core conftest.err conftest.$ac_objext \
13018
    conftest$ac_exeext conftest.$ac_ext
13019
fi
13020
rm -f core conftest.err conftest.$ac_objext \
13021
    conftest$ac_exeext conftest.$ac_ext
13022
 
13023
 
13024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
13025
$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
13026
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027
/* end confdefs.h.  */
13028
 
13029
#ifdef HAVE_LANGINFO_H
13030
# include <langinfo.h>
13031
#endif
13032
 
13033
int
13034
main ()
13035
{
13036
char *cs = nl_langinfo(CODESET);
13037
  ;
13038
  return 0;
13039
}
13040
_ACEOF
13041
if ac_fn_c_try_link "$LINENO"; then :
13042
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13043
$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
13044
 
13045
else
13046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047
$as_echo "no" >&6; }
13048
fi
13049
rm -f core conftest.err conftest.$ac_objext \
13050
    conftest$ac_exeext conftest.$ac_ext
13051
 
13052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
13053
$as_echo_n "checking for strtod in -lm... " >&6; }
13054
if ${ac_cv_lib_m_strtod+:} false; then :
13055
  $as_echo_n "(cached) " >&6
13056
else
13057
  ac_check_lib_save_LIBS=$LIBS
13058
LIBS="-lm  $LIBS"
13059
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060
/* end confdefs.h.  */
13061
 
13062
/* Override any GCC internal prototype to avoid an error.
13063
   Use char because int might match the return type of a GCC
13064
   builtin and then its argument prototype would still apply.  */
13065
#ifdef __cplusplus
13066
extern "C"
13067
#endif
13068
char strtod ();
13069
int
13070
main ()
13071
{
13072
return strtod ();
13073
  ;
13074
  return 0;
13075
}
13076
_ACEOF
13077
if ac_fn_c_try_link "$LINENO"; then :
13078
  ac_cv_lib_m_strtod=yes
13079
else
13080
  ac_cv_lib_m_strtod=no
13081
fi
13082
rm -f core conftest.err conftest.$ac_objext \
13083
    conftest$ac_exeext conftest.$ac_ext
13084
LIBS=$ac_check_lib_save_LIBS
13085
fi
13086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
13087
$as_echo "$ac_cv_lib_m_strtod" >&6; }
13088
if test "x$ac_cv_lib_m_strtod" = xyes; then :
13089
  cat >>confdefs.h <<_ACEOF
13090
#define HAVE_LIBM 1
13091
_ACEOF
13092
 
13093
  LIBS="-lm $LIBS"
13094
 
13095
fi
13096
 
13097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
13098
$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
13099
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100
/* end confdefs.h.  */
13101
 
13102
#ifdef HAVE_MATH_H
13103
# include <math.h>
13104
#endif
13105
#if STDC_HEADERS
13106
# include <stdlib.h>
13107
# include <stddef.h>
13108
#endif
13109
 
13110
int
13111
main ()
13112
{
13113
char *s; double d;
13114
    d = strtod("1.1", &s);
13115
    d = fabs(1.11);
13116
    d = ceil(1.11);
13117
    d = floor(1.11);
13118
    d = log10(1.11);
13119
    d = pow(1.11, 2.22);
13120
    d = sqrt(1.11);
13121
    d = sin(1.11);
13122
    d = cos(1.11);
13123
    d = atan(1.11);
13124
 
13125
  ;
13126
  return 0;
13127
}
13128
_ACEOF
13129
if ac_fn_c_try_link "$LINENO"; then :
13130
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13131
$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
13132
 
13133
else
13134
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135
$as_echo "no" >&6; }
13136
fi
13137
rm -f core conftest.err conftest.$ac_objext \
13138
    conftest$ac_exeext conftest.$ac_ext
13139
 
13140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5
13141
$as_echo_n "checking for isinf()... " >&6; }
13142
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143
/* end confdefs.h.  */
13144
 
13145
#ifdef HAVE_MATH_H
13146
# include <math.h>
13147
#endif
13148
#if STDC_HEADERS
13149
# include <stdlib.h>
13150
# include <stddef.h>
13151
#endif
13152
 
13153
int
13154
main ()
13155
{
13156
int r = isinf(1.11);
13157
  ;
13158
  return 0;
13159
}
13160
_ACEOF
13161
if ac_fn_c_try_link "$LINENO"; then :
13162
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13163
$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13164
 
13165
else
13166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167
$as_echo "no" >&6; }
13168
fi
13169
rm -f core conftest.err conftest.$ac_objext \
13170
    conftest$ac_exeext conftest.$ac_ext
13171
 
13172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5
13173
$as_echo_n "checking for isnan()... " >&6; }
13174
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175
/* end confdefs.h.  */
13176
 
13177
#ifdef HAVE_MATH_H
13178
# include <math.h>
13179
#endif
13180
#if STDC_HEADERS
13181
# include <stdlib.h>
13182
# include <stddef.h>
13183
#endif
13184
 
13185
int
13186
main ()
13187
{
13188
int r = isnan(1.11);
13189
  ;
13190
  return 0;
13191
}
13192
_ACEOF
13193
if ac_fn_c_try_link "$LINENO"; then :
13194
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13195
$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13196
 
13197
else
13198
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199
$as_echo "no" >&6; }
13200
fi
13201
rm -f core conftest.err conftest.$ac_objext \
13202
    conftest$ac_exeext conftest.$ac_ext
13203
 
13204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
13205
$as_echo_n "checking --disable-acl argument... " >&6; }
13206
# Check whether --enable-acl was given.
13207
if test "${enable_acl+set}" = set; then :
13208
  enableval=$enable_acl;
13209
else
13210
  enable_acl="yes"
13211
fi
13212
 
13213
if test "$enable_acl" = "yes"; then
13214
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215
$as_echo "no" >&6; }
13216
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
13217
$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
13218
if ${ac_cv_lib_posix1e_acl_get_file+:} false; then :
13219
  $as_echo_n "(cached) " >&6
13220
else
13221
  ac_check_lib_save_LIBS=$LIBS
13222
LIBS="-lposix1e  $LIBS"
13223
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224
/* end confdefs.h.  */
13225
 
13226
/* Override any GCC internal prototype to avoid an error.
13227
   Use char because int might match the return type of a GCC
13228
   builtin and then its argument prototype would still apply.  */
13229
#ifdef __cplusplus
13230
extern "C"
13231
#endif
13232
char acl_get_file ();
13233
int
13234
main ()
13235
{
13236
return acl_get_file ();
13237
  ;
13238
  return 0;
13239
}
13240
_ACEOF
13241
if ac_fn_c_try_link "$LINENO"; then :
13242
  ac_cv_lib_posix1e_acl_get_file=yes
13243
else
13244
  ac_cv_lib_posix1e_acl_get_file=no
13245
fi
13246
rm -f core conftest.err conftest.$ac_objext \
13247
    conftest$ac_exeext conftest.$ac_ext
13248
LIBS=$ac_check_lib_save_LIBS
13249
fi
13250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13251
$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
13252
if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then :
13253
  LIBS="$LIBS -lposix1e"
13254
else
13255
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
13256
$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
13257
if ${ac_cv_lib_acl_acl_get_file+:} false; then :
13258
  $as_echo_n "(cached) " >&6
13259
else
13260
  ac_check_lib_save_LIBS=$LIBS
13261
LIBS="-lacl  $LIBS"
13262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263
/* end confdefs.h.  */
13264
 
13265
/* Override any GCC internal prototype to avoid an error.
13266
   Use char because int might match the return type of a GCC
13267
   builtin and then its argument prototype would still apply.  */
13268
#ifdef __cplusplus
13269
extern "C"
13270
#endif
13271
char acl_get_file ();
13272
int
13273
main ()
13274
{
13275
return acl_get_file ();
13276
  ;
13277
  return 0;
13278
}
13279
_ACEOF
13280
if ac_fn_c_try_link "$LINENO"; then :
13281
  ac_cv_lib_acl_acl_get_file=yes
13282
else
13283
  ac_cv_lib_acl_acl_get_file=no
13284
fi
13285
rm -f core conftest.err conftest.$ac_objext \
13286
    conftest$ac_exeext conftest.$ac_ext
13287
LIBS=$ac_check_lib_save_LIBS
13288
fi
13289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
13290
$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
13291
if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
13292
  LIBS="$LIBS -lacl"
13293
		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
13294
$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
13295
if ${ac_cv_lib_attr_fgetxattr+:} false; then :
13296
  $as_echo_n "(cached) " >&6
13297
else
13298
  ac_check_lib_save_LIBS=$LIBS
13299
LIBS="-lattr  $LIBS"
13300
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301
/* end confdefs.h.  */
13302
 
13303
/* Override any GCC internal prototype to avoid an error.
13304
   Use char because int might match the return type of a GCC
13305
   builtin and then its argument prototype would still apply.  */
13306
#ifdef __cplusplus
13307
extern "C"
13308
#endif
13309
char fgetxattr ();
13310
int
13311
main ()
13312
{
13313
return fgetxattr ();
13314
  ;
13315
  return 0;
13316
}
13317
_ACEOF
13318
if ac_fn_c_try_link "$LINENO"; then :
13319
  ac_cv_lib_attr_fgetxattr=yes
13320
else
13321
  ac_cv_lib_attr_fgetxattr=no
13322
fi
13323
rm -f core conftest.err conftest.$ac_objext \
13324
    conftest$ac_exeext conftest.$ac_ext
13325
LIBS=$ac_check_lib_save_LIBS
13326
fi
13327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
13328
$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
13329
if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
13330
  LIBS="$LIBS -lattr"
13331
fi
13332
 
13333
fi
13334
 
13335
fi
13336
 
13337
 
13338
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
13339
$as_echo_n "checking for POSIX ACL support... " >&6; }
13340
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341
/* end confdefs.h.  */
13342
 
13343
#include <sys/types.h>
13344
#ifdef HAVE_SYS_ACL_H
13345
# include <sys/acl.h>
13346
#endif
13347
acl_t acl;
13348
int
13349
main ()
13350
{
13351
acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13352
	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13353
	acl_free(acl);
13354
  ;
13355
  return 0;
13356
}
13357
_ACEOF
13358
if ac_fn_c_try_link "$LINENO"; then :
13359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13360
$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
13361
 
13362
else
13363
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364
$as_echo "no" >&6; }
13365
fi
13366
rm -f core conftest.err conftest.$ac_objext \
13367
    conftest$ac_exeext conftest.$ac_ext
13368
 
13369
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5
13370
$as_echo_n "checking for acl_get in -lsec... " >&6; }
13371
if ${ac_cv_lib_sec_acl_get+:} false; then :
13372
  $as_echo_n "(cached) " >&6
13373
else
13374
  ac_check_lib_save_LIBS=$LIBS
13375
LIBS="-lsec  $LIBS"
13376
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377
/* end confdefs.h.  */
13378
 
13379
/* Override any GCC internal prototype to avoid an error.
13380
   Use char because int might match the return type of a GCC
13381
   builtin and then its argument prototype would still apply.  */
13382
#ifdef __cplusplus
13383
extern "C"
13384
#endif
13385
char acl_get ();
13386
int
13387
main ()
13388
{
13389
return acl_get ();
13390
  ;
13391
  return 0;
13392
}
13393
_ACEOF
13394
if ac_fn_c_try_link "$LINENO"; then :
13395
  ac_cv_lib_sec_acl_get=yes
13396
else
13397
  ac_cv_lib_sec_acl_get=no
13398
fi
13399
rm -f core conftest.err conftest.$ac_objext \
13400
    conftest$ac_exeext conftest.$ac_ext
13401
LIBS=$ac_check_lib_save_LIBS
13402
fi
13403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5
13404
$as_echo "$ac_cv_lib_sec_acl_get" >&6; }
13405
if test "x$ac_cv_lib_sec_acl_get" = xyes; then :
13406
  LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h
13407
 
13408
else
13409
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
13410
$as_echo_n "checking for Solaris ACL support... " >&6; }
13411
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412
/* end confdefs.h.  */
13413
 
13414
#ifdef HAVE_SYS_ACL_H
13415
# include <sys/acl.h>
13416
#endif
13417
int
13418
main ()
13419
{
13420
acl("foo", GETACLCNT, 0, NULL);
13421
 
13422
  ;
13423
  return 0;
13424
}
13425
_ACEOF
13426
if ac_fn_c_try_link "$LINENO"; then :
13427
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13428
$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
13429
 
13430
else
13431
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432
$as_echo "no" >&6; }
13433
fi
13434
rm -f core conftest.err conftest.$ac_objext \
13435
    conftest$ac_exeext conftest.$ac_ext
13436
fi
13437
 
13438
 
13439
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
13440
$as_echo_n "checking for AIX ACL support... " >&6; }
13441
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442
/* end confdefs.h.  */
13443
 
13444
#if STDC_HEADERS
13445
# include <stdlib.h>
13446
# include <stddef.h>
13447
#endif
13448
#ifdef HAVE_SYS_ACL_H
13449
# include <sys/acl.h>
13450
#endif
13451
#ifdef HAVE_SYS_ACCESS_H
13452
# include <sys/access.h>
13453
#endif
13454
#define _ALL_SOURCE
13455
 
13456
#include <sys/stat.h>
13457
 
13458
int aclsize;
13459
struct acl *aclent;
13460
int
13461
main ()
13462
{
13463
aclsize = sizeof(struct acl);
13464
	aclent = (void *)malloc(aclsize);
13465
	statacl("foo", STX_NORMAL, aclent, aclsize);
13466
 
13467
  ;
13468
  return 0;
13469
}
13470
_ACEOF
13471
if ac_fn_c_try_link "$LINENO"; then :
13472
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13473
$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
13474
 
13475
else
13476
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477
$as_echo "no" >&6; }
13478
fi
13479
rm -f core conftest.err conftest.$ac_objext \
13480
    conftest$ac_exeext conftest.$ac_ext
13481
else
13482
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13483
$as_echo "yes" >&6; }
13484
fi
13485
 
13486
if test "x$GTK_CFLAGS" != "x"; then
13487
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
13488
$as_echo_n "checking for pango_shape_full... " >&6; }
13489
  ac_save_CFLAGS="$CFLAGS"
13490
  ac_save_LIBS="$LIBS"
13491
  CFLAGS="$CFLAGS $GTK_CFLAGS"
13492
  LIBS="$LIBS $GTK_LIBS"
13493
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494
/* end confdefs.h.  */
13495
#include <gtk/gtk.h>
13496
int
13497
main ()
13498
{
13499
 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
13500
  ;
13501
  return 0;
13502
}
13503
_ACEOF
13504
if ac_fn_c_try_link "$LINENO"; then :
13505
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13506
$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
13507
 
13508
else
13509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510
$as_echo "no" >&6; }
13511
fi
13512
rm -f core conftest.err conftest.$ac_objext \
13513
    conftest$ac_exeext conftest.$ac_ext
13514
  CFLAGS="$ac_save_CFLAGS"
13515
  LIBS="$ac_save_LIBS"
13516
fi
13517
 
13518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
13519
$as_echo_n "checking --disable-gpm argument... " >&6; }
13520
# Check whether --enable-gpm was given.
13521
if test "${enable_gpm+set}" = set; then :
13522
  enableval=$enable_gpm;
13523
else
13524
  enable_gpm="yes"
13525
fi
13526
 
13527
 
13528
if test "$enable_gpm" = "yes"; then
13529
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530
$as_echo "no" >&6; }
13531
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
13532
$as_echo_n "checking for gpm... " >&6; }
13533
if ${vi_cv_have_gpm+:} false; then :
13534
  $as_echo_n "(cached) " >&6
13535
else
13536
  olibs="$LIBS" ; LIBS="-lgpm"
13537
	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538
/* end confdefs.h.  */
13539
#include <gpm.h>
13540
	    #include <linux/keyboard.h>
13541
int
13542
main ()
13543
{
13544
Gpm_GetLibVersion(NULL);
13545
  ;
13546
  return 0;
13547
}
13548
_ACEOF
13549
if ac_fn_c_try_link "$LINENO"; then :
13550
  	    	    vi_cv_have_gpm=yes
13551
else
13552
  vi_cv_have_gpm=no
13553
fi
13554
rm -f core conftest.err conftest.$ac_objext \
13555
    conftest$ac_exeext conftest.$ac_ext
13556
	LIBS="$olibs"
13557
 
13558
fi
13559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
13560
$as_echo "$vi_cv_have_gpm" >&6; }
13561
  if test $vi_cv_have_gpm = yes; then
13562
    LIBS="$LIBS -lgpm"
13563
    $as_echo "#define HAVE_GPM 1" >>confdefs.h
13564
 
13565
  fi
13566
else
13567
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13568
$as_echo "yes" >&6; }
13569
fi
13570
 
13571
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
13572
$as_echo_n "checking --disable-sysmouse argument... " >&6; }
13573
# Check whether --enable-sysmouse was given.
13574
if test "${enable_sysmouse+set}" = set; then :
13575
  enableval=$enable_sysmouse;
13576
else
13577
  enable_sysmouse="yes"
13578
fi
13579
 
13580
 
13581
if test "$enable_sysmouse" = "yes"; then
13582
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583
$as_echo "no" >&6; }
13584
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
13585
$as_echo_n "checking for sysmouse... " >&6; }
13586
if ${vi_cv_have_sysmouse+:} false; then :
13587
  $as_echo_n "(cached) " >&6
13588
else
13589
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590
/* end confdefs.h.  */
13591
#include <sys/consio.h>
13592
	     #include <signal.h>
13593
	     #include <sys/fbio.h>
13594
int
13595
main ()
13596
{
13597
struct mouse_info   mouse;
13598
	     mouse.operation = MOUSE_MODE;
13599
	     mouse.operation = MOUSE_SHOW;
13600
	     mouse.u.mode.mode = 0;
13601
	     mouse.u.mode.signal = SIGUSR2;
13602
  ;
13603
  return 0;
13604
}
13605
_ACEOF
13606
if ac_fn_c_try_link "$LINENO"; then :
13607
  vi_cv_have_sysmouse=yes
13608
else
13609
  vi_cv_have_sysmouse=no
13610
fi
13611
rm -f core conftest.err conftest.$ac_objext \
13612
    conftest$ac_exeext conftest.$ac_ext
13613
 
13614
fi
13615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
13616
$as_echo "$vi_cv_have_sysmouse" >&6; }
13617
  if test $vi_cv_have_sysmouse = yes; then
13618
    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
13619
 
13620
  fi
13621
else
13622
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13623
$as_echo "yes" >&6; }
13624
fi
13625
 
13626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
13627
$as_echo_n "checking for FD_CLOEXEC... " >&6; }
13628
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629
/* end confdefs.h.  */
13630
#if HAVE_FCNTL_H
13631
# include <fcntl.h>
13632
#endif
13633
int
13634
main ()
13635
{
13636
	int flag = FD_CLOEXEC;
13637
  ;
13638
  return 0;
13639
}
13640
_ACEOF
13641
if ac_fn_c_try_compile "$LINENO"; then :
13642
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13643
$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
13644
 
13645
else
13646
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13647
$as_echo "not usable" >&6; }
13648
fi
13649
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13650
 
13651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
13652
$as_echo_n "checking for rename... " >&6; }
13653
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654
/* end confdefs.h.  */
13655
#include <stdio.h>
13656
int
13657
main ()
13658
{
13659
rename("this", "that")
13660
  ;
13661
  return 0;
13662
}
13663
_ACEOF
13664
if ac_fn_c_try_link "$LINENO"; then :
13665
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13666
$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13667
 
13668
else
13669
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670
$as_echo "no" >&6; }
13671
fi
13672
rm -f core conftest.err conftest.$ac_objext \
13673
    conftest$ac_exeext conftest.$ac_ext
13674
 
13675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
13676
$as_echo_n "checking for sysctl... " >&6; }
13677
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678
/* end confdefs.h.  */
13679
#include <sys/types.h>
13680
#include <sys/sysctl.h>
13681
int
13682
main ()
13683
{
13684
	int mib[2], r;
13685
	size_t len;
13686
 
13687
	mib[0] = CTL_HW;
13688
	mib[1] = HW_USERMEM;
13689
	len = sizeof(r);
13690
	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13691
 
13692
  ;
13693
  return 0;
13694
}
13695
_ACEOF
13696
if ac_fn_c_try_compile "$LINENO"; then :
13697
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13698
$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
13699
 
13700
else
13701
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13702
$as_echo "not usable" >&6; }
13703
fi
13704
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705
 
13706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
13707
$as_echo_n "checking for sysinfo... " >&6; }
13708
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709
/* end confdefs.h.  */
13710
#include <sys/types.h>
13711
#include <sys/sysinfo.h>
13712
int
13713
main ()
13714
{
13715
	struct sysinfo sinfo;
13716
	int t;
13717
 
13718
	(void)sysinfo(&sinfo);
13719
	t = sinfo.totalram;
13720
 
13721
  ;
13722
  return 0;
13723
}
13724
_ACEOF
13725
if ac_fn_c_try_compile "$LINENO"; then :
13726
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13727
$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
13728
 
13729
else
13730
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13731
$as_echo "not usable" >&6; }
13732
fi
13733
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734
 
13735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
13736
$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
13737
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738
/* end confdefs.h.  */
13739
#include <sys/types.h>
13740
#include <sys/sysinfo.h>
13741
int
13742
main ()
13743
{
13744
	struct sysinfo sinfo;
13745
	sinfo.mem_unit = 1;
13746
 
13747
  ;
13748
  return 0;
13749
}
13750
_ACEOF
13751
if ac_fn_c_try_compile "$LINENO"; then :
13752
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13753
$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
13754
 
13755
else
13756
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757
$as_echo "no" >&6; }
13758
fi
13759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760
 
13761
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
13762
$as_echo_n "checking for sysconf... " >&6; }
13763
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764
/* end confdefs.h.  */
13765
#include <unistd.h>
13766
int
13767
main ()
13768
{
13769
	(void)sysconf(_SC_PAGESIZE);
13770
	(void)sysconf(_SC_PHYS_PAGES);
13771
 
13772
  ;
13773
  return 0;
13774
}
13775
_ACEOF
13776
if ac_fn_c_try_compile "$LINENO"; then :
13777
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13778
$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
13779
 
13780
else
13781
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
13782
$as_echo "not usable" >&6; }
13783
fi
13784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785
 
13786
# The cast to long int works around a bug in the HP C Compiler
13787
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13788
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13789
# This bug is HP SR number 8606223364.
13790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13791
$as_echo_n "checking size of int... " >&6; }
13792
if ${ac_cv_sizeof_int+:} false; then :
13793
  $as_echo_n "(cached) " >&6
13794
else
13795
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13796
 
13797
else
13798
  if test "$ac_cv_type_int" = yes; then
13799
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13800
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13801
as_fn_error 77 "cannot compute sizeof (int)
13802
See \`config.log' for more details" "$LINENO" 5; }
13803
   else
13804
     ac_cv_sizeof_int=0
13805
   fi
13806
fi
13807
 
13808
fi
13809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13810
$as_echo "$ac_cv_sizeof_int" >&6; }
13811
 
13812
 
13813
 
13814
cat >>confdefs.h <<_ACEOF
13815
#define SIZEOF_INT $ac_cv_sizeof_int
13816
_ACEOF
13817
 
13818
 
13819
# The cast to long int works around a bug in the HP C Compiler
13820
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13821
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13822
# This bug is HP SR number 8606223364.
13823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13824
$as_echo_n "checking size of long... " >&6; }
13825
if ${ac_cv_sizeof_long+:} false; then :
13826
  $as_echo_n "(cached) " >&6
13827
else
13828
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13829
 
13830
else
13831
  if test "$ac_cv_type_long" = yes; then
13832
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13833
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13834
as_fn_error 77 "cannot compute sizeof (long)
13835
See \`config.log' for more details" "$LINENO" 5; }
13836
   else
13837
     ac_cv_sizeof_long=0
13838
   fi
13839
fi
13840
 
13841
fi
13842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13843
$as_echo "$ac_cv_sizeof_long" >&6; }
13844
 
13845
 
13846
 
13847
cat >>confdefs.h <<_ACEOF
13848
#define SIZEOF_LONG $ac_cv_sizeof_long
13849
_ACEOF
13850
 
13851
 
13852
# The cast to long int works around a bug in the HP C Compiler
13853
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13854
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13855
# This bug is HP SR number 8606223364.
13856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
13857
$as_echo_n "checking size of time_t... " >&6; }
13858
if ${ac_cv_sizeof_time_t+:} false; then :
13859
  $as_echo_n "(cached) " >&6
13860
else
13861
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
13862
 
13863
else
13864
  if test "$ac_cv_type_time_t" = yes; then
13865
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13866
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13867
as_fn_error 77 "cannot compute sizeof (time_t)
13868
See \`config.log' for more details" "$LINENO" 5; }
13869
   else
13870
     ac_cv_sizeof_time_t=0
13871
   fi
13872
fi
13873
 
13874
fi
13875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
13876
$as_echo "$ac_cv_sizeof_time_t" >&6; }
13877
 
13878
 
13879
 
13880
cat >>confdefs.h <<_ACEOF
13881
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13882
_ACEOF
13883
 
13884
 
13885
# The cast to long int works around a bug in the HP C Compiler
13886
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13887
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13888
# This bug is HP SR number 8606223364.
13889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
13890
$as_echo_n "checking size of off_t... " >&6; }
13891
if ${ac_cv_sizeof_off_t+:} false; then :
13892
  $as_echo_n "(cached) " >&6
13893
else
13894
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
13895
 
13896
else
13897
  if test "$ac_cv_type_off_t" = yes; then
13898
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13899
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13900
as_fn_error 77 "cannot compute sizeof (off_t)
13901
See \`config.log' for more details" "$LINENO" 5; }
13902
   else
13903
     ac_cv_sizeof_off_t=0
13904
   fi
13905
fi
13906
 
13907
fi
13908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
13909
$as_echo "$ac_cv_sizeof_off_t" >&6; }
13910
 
13911
 
13912
 
13913
cat >>confdefs.h <<_ACEOF
13914
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13915
_ACEOF
13916
 
13917
 
13918
 
13919
cat >>confdefs.h <<_ACEOF
13920
#define VIM_SIZEOF_INT $ac_cv_sizeof_int
13921
_ACEOF
13922
 
13923
cat >>confdefs.h <<_ACEOF
13924
#define VIM_SIZEOF_LONG $ac_cv_sizeof_long
13925
_ACEOF
13926
 
13927
 
13928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
13929
$as_echo_n "checking uint32_t is 32 bits... " >&6; }
13930
if test "$cross_compiling" = yes; then :
13931
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5
13932
$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;}
13933
else
13934
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935
/* end confdefs.h.  */
13936
 
13937
#ifdef HAVE_STDINT_H
13938
# include <stdint.h>
13939
#endif
13940
#ifdef HAVE_INTTYPES_H
13941
# include <inttypes.h>
13942
#endif
13943
main() {
13944
  uint32_t nr1 = (uint32_t)-1;
13945
  uint32_t nr2 = (uint32_t)0xffffffffUL;
13946
  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
13947
  exit(0);
13948
}
13949
_ACEOF
13950
if ac_fn_c_try_run "$LINENO"; then :
13951
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13952
$as_echo "ok" >&6; }
13953
else
13954
  as_fn_error $? "WRONG!  uint32_t not defined correctly." "$LINENO" 5
13955
fi
13956
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13957
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13958
fi
13959
 
13960
 
13961
 
13962
bcopy_test_prog='
13963
#include "confdefs.h"
13964
#ifdef HAVE_STRING_H
13965
# include <string.h>
13966
#endif
13967
#if STDC_HEADERS
13968
# include <stdlib.h>
13969
# include <stddef.h>
13970
#endif
13971
main() {
13972
  char buf[10];
13973
  strcpy(buf, "abcdefghi");
13974
  mch_memmove(buf, buf + 2, 3);
13975
  if (strncmp(buf, "ababcf", 6))
13976
    exit(1);
13977
  strcpy(buf, "abcdefghi");
13978
  mch_memmove(buf + 2, buf, 3);
13979
  if (strncmp(buf, "cdedef", 6))
13980
    exit(1);
13981
  exit(0); /* libc version works properly.  */
13982
}'
13983
 
13984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
13985
$as_echo_n "checking whether memmove handles overlaps... " >&6; }
13986
if ${vim_cv_memmove_handles_overlap+:} false; then :
13987
  $as_echo_n "(cached) " >&6
13988
else
13989
 
13990
    if test "$cross_compiling" = yes; then :
13991
 
13992
	as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
13993
 
13994
else
13995
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996
/* end confdefs.h.  */
13997
#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
13998
_ACEOF
13999
if ac_fn_c_try_run "$LINENO"; then :
14000
 
14001
	vim_cv_memmove_handles_overlap=yes
14002
 
14003
else
14004
 
14005
	vim_cv_memmove_handles_overlap=no
14006
 
14007
fi
14008
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14009
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14010
fi
14011
 
14012
 
14013
fi
14014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
14015
$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
14016
 
14017
if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
14018
  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
14019
 
14020
else
14021
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
14022
$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
14023
if ${vim_cv_bcopy_handles_overlap+:} false; then :
14024
  $as_echo_n "(cached) " >&6
14025
else
14026
 
14027
      if test "$cross_compiling" = yes; then :
14028
 
14029
	as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
14030
 
14031
else
14032
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033
/* end confdefs.h.  */
14034
#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
14035
_ACEOF
14036
if ac_fn_c_try_run "$LINENO"; then :
14037
 
14038
	vim_cv_bcopy_handles_overlap=yes
14039
 
14040
else
14041
 
14042
	vim_cv_bcopy_handles_overlap=no
14043
 
14044
fi
14045
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14046
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14047
fi
14048
 
14049
 
14050
fi
14051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
14052
$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
14053
 
14054
  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
14055
    $as_echo "#define USEBCOPY 1" >>confdefs.h
14056
 
14057
  else
14058
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
14059
$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
14060
if ${vim_cv_memcpy_handles_overlap+:} false; then :
14061
  $as_echo_n "(cached) " >&6
14062
else
14063
 
14064
	if test "$cross_compiling" = yes; then :
14065
 
14066
	    as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
14067
 
14068
else
14069
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070
/* end confdefs.h.  */
14071
#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
14072
_ACEOF
14073
if ac_fn_c_try_run "$LINENO"; then :
14074
 
14075
	    vim_cv_memcpy_handles_overlap=yes
14076
 
14077
else
14078
 
14079
	    vim_cv_memcpy_handles_overlap=no
14080
 
14081
fi
14082
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14083
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14084
fi
14085
 
14086
 
14087
fi
14088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
14089
$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
14090
 
14091
    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
14092
      $as_echo "#define USEMEMCPY 1" >>confdefs.h
14093
 
14094
    fi
14095
  fi
14096
fi
14097
 
14098
 
14099
if test "x$with_x" = "xyes"; then
14100
  cflags_save=$CFLAGS
14101
  libs_save=$LIBS
14102
  LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS"
14103
  CFLAGS="$CFLAGS $X_CFLAGS"
14104
 
14105
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
14106
$as_echo_n "checking whether X_LOCALE needed... " >&6; }
14107
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108
/* end confdefs.h.  */
14109
#include <X11/Xlocale.h>
14110
int
14111
main ()
14112
{
14113
 
14114
  ;
14115
  return 0;
14116
}
14117
_ACEOF
14118
if ac_fn_c_try_compile "$LINENO"; then :
14119
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120
/* end confdefs.h.  */
14121
 
14122
/* Override any GCC internal prototype to avoid an error.
14123
   Use char because int might match the return type of a GCC
14124
   builtin and then its argument prototype would still apply.  */
14125
#ifdef __cplusplus
14126
extern "C"
14127
#endif
14128
char _Xsetlocale ();
14129
int
14130
main ()
14131
{
14132
return _Xsetlocale ();
14133
  ;
14134
  return 0;
14135
}
14136
_ACEOF
14137
if ac_fn_c_try_link "$LINENO"; then :
14138
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14139
$as_echo "yes" >&6; }
14140
	      $as_echo "#define X_LOCALE 1" >>confdefs.h
14141
 
14142
else
14143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14144
$as_echo "no" >&6; }
14145
fi
14146
rm -f core conftest.err conftest.$ac_objext \
14147
    conftest$ac_exeext conftest.$ac_ext
14148
else
14149
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14150
$as_echo "no" >&6; }
14151
fi
14152
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14153
 
14154
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5
14155
$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; }
14156
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157
/* end confdefs.h.  */
14158
 
14159
/* Override any GCC internal prototype to avoid an error.
14160
   Use char because int might match the return type of a GCC
14161
   builtin and then its argument prototype would still apply.  */
14162
#ifdef __cplusplus
14163
extern "C"
14164
#endif
14165
char Xutf8SetWMProperties ();
14166
int
14167
main ()
14168
{
14169
return Xutf8SetWMProperties ();
14170
  ;
14171
  return 0;
14172
}
14173
_ACEOF
14174
if ac_fn_c_try_link "$LINENO"; then :
14175
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14176
$as_echo "yes" >&6; }
14177
	      $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h
14178
 
14179
else
14180
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181
$as_echo "no" >&6; }
14182
fi
14183
rm -f core conftest.err conftest.$ac_objext \
14184
    conftest$ac_exeext conftest.$ac_ext
14185
 
14186
  CFLAGS=$cflags_save
14187
  LIBS=$libs_save
14188
fi
14189
 
14190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
14191
$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
14192
if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then :
14193
  $as_echo_n "(cached) " >&6
14194
else
14195
  ac_check_lib_save_LIBS=$LIBS
14196
LIBS="-lxpg4  $LIBS"
14197
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198
/* end confdefs.h.  */
14199
 
14200
/* Override any GCC internal prototype to avoid an error.
14201
   Use char because int might match the return type of a GCC
14202
   builtin and then its argument prototype would still apply.  */
14203
#ifdef __cplusplus
14204
extern "C"
14205
#endif
14206
char _xpg4_setrunelocale ();
14207
int
14208
main ()
14209
{
14210
return _xpg4_setrunelocale ();
14211
  ;
14212
  return 0;
14213
}
14214
_ACEOF
14215
if ac_fn_c_try_link "$LINENO"; then :
14216
  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14217
else
14218
  ac_cv_lib_xpg4__xpg4_setrunelocale=no
14219
fi
14220
rm -f core conftest.err conftest.$ac_objext \
14221
    conftest$ac_exeext conftest.$ac_ext
14222
LIBS=$ac_check_lib_save_LIBS
14223
fi
14224
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14225
$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
14226
if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then :
14227
  LIBS="$LIBS -lxpg4"
14228
fi
14229
 
14230
 
14231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
14232
$as_echo_n "checking how to create tags... " >&6; }
14233
test -f tags && mv tags tags.save
14234
if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14235
  TAGPRG="ctags -I INIT+ --fields=+S"
14236
elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14237
  TAGPRG="exctags -I INIT+ --fields=+S"
14238
elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14239
  TAGPRG="exuberant-ctags -I INIT+ --fields=+S"
14240
else
14241
  TAGPRG="ctags"
14242
  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14243
  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14244
  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14245
  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14246
  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14247
  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14248
  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14249
fi
14250
test -f tags.save && mv tags.save tags
14251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
14252
$as_echo "$TAGPRG" >&6; }
14253
 
14254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
14255
$as_echo_n "checking how to run man with a section nr... " >&6; }
14256
MANDEF="man"
14257
(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
14259
$as_echo "$MANDEF" >&6; }
14260
if test "$MANDEF" = "man -s"; then
14261
  $as_echo "#define USEMAN_S 1" >>confdefs.h
14262
 
14263
fi
14264
 
14265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
14266
$as_echo_n "checking --disable-nls argument... " >&6; }
14267
# Check whether --enable-nls was given.
14268
if test "${enable_nls+set}" = set; then :
14269
  enableval=$enable_nls;
14270
else
14271
  enable_nls="yes"
14272
fi
14273
 
14274
 
14275
if test "$enable_nls" = "yes"; then
14276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277
$as_echo "no" >&6; }
14278
 
14279
  INSTALL_LANGS=install-languages
14280
 
14281
  INSTALL_TOOL_LANGS=install-tool-languages
14282
 
14283
 
14284
  # Extract the first word of "msgfmt", so it can be a program name with args.
14285
set dummy msgfmt; ac_word=$2
14286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14287
$as_echo_n "checking for $ac_word... " >&6; }
14288
if ${ac_cv_prog_MSGFMT+:} false; then :
14289
  $as_echo_n "(cached) " >&6
14290
else
14291
  if test -n "$MSGFMT"; then
14292
  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14293
else
14294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295
for as_dir in $PATH
14296
do
14297
  IFS=$as_save_IFS
14298
  test -z "$as_dir" && as_dir=.
14299
    for ac_exec_ext in '' $ac_executable_extensions; do
14300
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14301
    ac_cv_prog_MSGFMT="msgfmt"
14302
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14303
    break 2
14304
  fi
14305
done
14306
  done
14307
IFS=$as_save_IFS
14308
 
14309
fi
14310
fi
14311
MSGFMT=$ac_cv_prog_MSGFMT
14312
if test -n "$MSGFMT"; then
14313
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14314
$as_echo "$MSGFMT" >&6; }
14315
else
14316
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14317
$as_echo "no" >&6; }
14318
fi
14319
 
14320
 
14321
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
14322
$as_echo_n "checking for NLS... " >&6; }
14323
  if test -f po/Makefile; then
14324
    have_gettext="no"
14325
    if test -n "$MSGFMT"; then
14326
      olibs=$LIBS
14327
      LIBS=""
14328
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329
/* end confdefs.h.  */
14330
#include <libintl.h>
14331
int
14332
main ()
14333
{
14334
gettext("Test");
14335
  ;
14336
  return 0;
14337
}
14338
_ACEOF
14339
if ac_fn_c_try_link "$LINENO"; then :
14340
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
14341
$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs
14342
else
14343
  LIBS="-lintl"
14344
	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345
/* end confdefs.h.  */
14346
#include <libintl.h>
14347
int
14348
main ()
14349
{
14350
gettext("Test");
14351
  ;
14352
  return 0;
14353
}
14354
_ACEOF
14355
if ac_fn_c_try_link "$LINENO"; then :
14356
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
14357
$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes";
14358
	      LIBS="$olibs -lintl"
14359
else
14360
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
14361
$as_echo "gettext() doesn't work" >&6; };
14362
	      LIBS=$olibs
14363
fi
14364
rm -f core conftest.err conftest.$ac_objext \
14365
    conftest$ac_exeext conftest.$ac_ext
14366
fi
14367
rm -f core conftest.err conftest.$ac_objext \
14368
    conftest$ac_exeext conftest.$ac_ext
14369
    else
14370
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
14371
$as_echo "msgfmt not found - disabled" >&6; };
14372
    fi
14373
    if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then
14374
      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14375
 
14376
      MAKEMO=yes
14377
 
14378
            for ac_func in bind_textdomain_codeset
14379
do :
14380
  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
14381
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
14382
  cat >>confdefs.h <<_ACEOF
14383
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
14384
_ACEOF
14385
 
14386
fi
14387
done
14388
 
14389
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
14390
$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
14391
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392
/* end confdefs.h.  */
14393
#include <libintl.h>
14394
		extern int _nl_msg_cat_cntr;
14395
int
14396
main ()
14397
{
14398
++_nl_msg_cat_cntr;
14399
  ;
14400
  return 0;
14401
}
14402
_ACEOF
14403
if ac_fn_c_try_link "$LINENO"; then :
14404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14405
$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
14406
 
14407
else
14408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14409
$as_echo "no" >&6; }
14410
fi
14411
rm -f core conftest.err conftest.$ac_objext \
14412
    conftest$ac_exeext conftest.$ac_ext
14413
    fi
14414
  else
14415
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
14416
$as_echo "no \"po/Makefile\" - disabled" >&6; };
14417
  fi
14418
else
14419
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14420
$as_echo "yes" >&6; }
14421
fi
14422
 
14423
ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14424
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14425
  DLL=dlfcn.h
14426
else
14427
  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
14428
if test "x$ac_cv_header_dl_h" = xyes; then :
14429
  DLL=dl.h
14430
fi
14431
 
14432
 
14433
fi
14434
 
14435
 
14436
if test x${DLL} = xdlfcn.h; then
14437
 
14438
$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14439
 
14440
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
14441
$as_echo_n "checking for dlopen()... " >&6; }
14442
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443
/* end confdefs.h.  */
14444
 
14445
int
14446
main ()
14447
{
14448
 
14449
		extern void* dlopen();
14450
		dlopen();
14451
 
14452
  ;
14453
  return 0;
14454
}
14455
_ACEOF
14456
if ac_fn_c_try_link "$LINENO"; then :
14457
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14458
$as_echo "yes" >&6; };
14459
 
14460
$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14461
 
14462
else
14463
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464
$as_echo "no" >&6; };
14465
	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
14466
$as_echo_n "checking for dlopen() in -ldl... " >&6; }
14467
	      olibs=$LIBS
14468
	      LIBS="$LIBS -ldl"
14469
	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470
/* end confdefs.h.  */
14471
 
14472
int
14473
main ()
14474
{
14475
 
14476
				extern void* dlopen();
14477
				dlopen();
14478
 
14479
  ;
14480
  return 0;
14481
}
14482
_ACEOF
14483
if ac_fn_c_try_link "$LINENO"; then :
14484
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14485
$as_echo "yes" >&6; };
14486
 
14487
$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14488
 
14489
else
14490
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14491
$as_echo "no" >&6; };
14492
			  LIBS=$olibs
14493
fi
14494
rm -f core conftest.err conftest.$ac_objext \
14495
    conftest$ac_exeext conftest.$ac_ext
14496
fi
14497
rm -f core conftest.err conftest.$ac_objext \
14498
    conftest$ac_exeext conftest.$ac_ext
14499
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
14500
$as_echo_n "checking for dlsym()... " >&6; }
14501
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502
/* end confdefs.h.  */
14503
 
14504
int
14505
main ()
14506
{
14507
 
14508
		extern void* dlsym();
14509
		dlsym();
14510
 
14511
  ;
14512
  return 0;
14513
}
14514
_ACEOF
14515
if ac_fn_c_try_link "$LINENO"; then :
14516
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14517
$as_echo "yes" >&6; };
14518
 
14519
$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14520
 
14521
else
14522
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14523
$as_echo "no" >&6; };
14524
	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
14525
$as_echo_n "checking for dlsym() in -ldl... " >&6; }
14526
	      olibs=$LIBS
14527
	      LIBS="$LIBS -ldl"
14528
	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529
/* end confdefs.h.  */
14530
 
14531
int
14532
main ()
14533
{
14534
 
14535
				extern void* dlsym();
14536
				dlsym();
14537
 
14538
  ;
14539
  return 0;
14540
}
14541
_ACEOF
14542
if ac_fn_c_try_link "$LINENO"; then :
14543
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14544
$as_echo "yes" >&6; };
14545
 
14546
$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
14547
 
14548
else
14549
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14550
$as_echo "no" >&6; };
14551
			  LIBS=$olibs
14552
fi
14553
rm -f core conftest.err conftest.$ac_objext \
14554
    conftest$ac_exeext conftest.$ac_ext
14555
fi
14556
rm -f core conftest.err conftest.$ac_objext \
14557
    conftest$ac_exeext conftest.$ac_ext
14558
elif test x${DLL} = xdl.h; then
14559
 
14560
$as_echo "#define HAVE_DL_H 1" >>confdefs.h
14561
 
14562
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
14563
$as_echo_n "checking for shl_load()... " >&6; }
14564
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565
/* end confdefs.h.  */
14566
 
14567
int
14568
main ()
14569
{
14570
 
14571
		extern void* shl_load();
14572
		shl_load();
14573
 
14574
  ;
14575
  return 0;
14576
}
14577
_ACEOF
14578
if ac_fn_c_try_link "$LINENO"; then :
14579
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14580
$as_echo "yes" >&6; };
14581
 
14582
$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14583
 
14584
else
14585
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14586
$as_echo "no" >&6; };
14587
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
14588
$as_echo_n "checking for shl_load() in -ldld... " >&6; }
14589
	  olibs=$LIBS
14590
	  LIBS="$LIBS -ldld"
14591
	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592
/* end confdefs.h.  */
14593
 
14594
int
14595
main ()
14596
{
14597
 
14598
			extern void* shl_load();
14599
			shl_load();
14600
 
14601
  ;
14602
  return 0;
14603
}
14604
_ACEOF
14605
if ac_fn_c_try_link "$LINENO"; then :
14606
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14607
$as_echo "yes" >&6; };
14608
 
14609
$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
14610
 
14611
else
14612
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14613
$as_echo "no" >&6; };
14614
		  LIBS=$olibs
14615
fi
14616
rm -f core conftest.err conftest.$ac_objext \
14617
    conftest$ac_exeext conftest.$ac_ext
14618
fi
14619
rm -f core conftest.err conftest.$ac_objext \
14620
    conftest$ac_exeext conftest.$ac_ext
14621
fi
14622
for ac_header in setjmp.h
14623
do :
14624
  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
14625
if test "x$ac_cv_header_setjmp_h" = xyes; then :
14626
  cat >>confdefs.h <<_ACEOF
14627
#define HAVE_SETJMP_H 1
14628
_ACEOF
14629
 
14630
fi
14631
 
14632
done
14633
 
14634
 
14635
if test "x$MACOS_X" = "xyes" -a -n "$PERL"; then
14636
    if echo $LIBS | grep -e '-ldl' >/dev/null; then
14637
    LIBS=`echo $LIBS | sed s/-ldl//`
14638
    PERL_LIBS="$PERL_LIBS -ldl"
14639
  fi
14640
fi
14641
 
14642
if test "$MACOS_X" = "yes"; then
14643
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need macOS frameworks" >&5
14644
$as_echo_n "checking whether we need macOS frameworks... " >&6; }
14645
  if test "$GUITYPE" = "CARBONGUI"; then
14646
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need Carbon" >&5
14647
$as_echo "yes, we need Carbon" >&6; }
14648
    LIBS="$LIBS -framework Carbon"
14649
  elif test "$MACOS_X_DARWIN" = "yes"; then
14650
    if test "$features" = "tiny"; then
14651
            OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'`
14652
      OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'`
14653
      if test "$enable_multibyte" = "yes"; then
14654
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need CoreServices" >&5
14655
$as_echo "yes, we need CoreServices" >&6; }
14656
        LIBS="$LIBS -framework CoreServices"
14657
      else
14658
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14659
$as_echo "no" >&6; }
14660
        OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_mac_conv.c++'`
14661
        OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_mac_conv.o++'`
14662
        CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's+-DMACOS_X_DARWIN++'`
14663
      fi
14664
    else
14665
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, we need AppKit" >&5
14666
$as_echo "yes, we need AppKit" >&6; }
14667
      LIBS="$LIBS -framework AppKit"
14668
      if test "$features" = "small" -a "$enable_multibyte" = "no"; then
14669
                                { $as_echo "$as_me:${as_lineno-$LINENO}: +multi_byte will be set in favor of +clipboard" >&5
14670
$as_echo "$as_me: +multi_byte will be set in favor of +clipboard" >&6;}
14671
        enable_multibyte=yes
14672
        $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
14673
 
14674
      fi
14675
    fi
14676
  else
14677
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14678
$as_echo "no" >&6; }
14679
  fi
14680
fi
14681
if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then
14682
  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
14683
fi
14684
 
14685
DEPEND_CFLAGS_FILTER=
14686
if test "$GCC" = yes; then
14687
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
14688
$as_echo_n "checking for GCC 3 or later... " >&6; }
14689
  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
14690
  if test "$gccmajor" -gt "2"; then
14691
    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
14692
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14693
$as_echo "yes" >&6; }
14694
  else
14695
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14696
$as_echo "no" >&6; }
14697
  fi
14698
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
14699
$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
14700
  if test "$gccmajor" -gt "3"; then
14701
    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/'`
14702
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14703
$as_echo "yes" >&6; }
14704
  else
14705
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706
$as_echo "no" >&6; }
14707
  fi
14708
fi
14709
 
14710
 
14711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5
14712
$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; }
14713
if 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
14714
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14715
$as_echo "yes" >&6; }
14716
  $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14717
 
14718
else
14719
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14720
$as_echo "no" >&6; }
14721
fi
14722
 
14723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14724
$as_echo_n "checking linker --as-needed support... " >&6; }
14725
LINK_AS_NEEDED=
14726
# Check if linker supports --as-needed and --no-as-needed options
14727
if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
14728
  LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
14729
  LINK_AS_NEEDED=yes
14730
fi
14731
if test "$LINK_AS_NEEDED" = yes; then
14732
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14733
$as_echo "yes" >&6; }
14734
else
14735
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736
$as_echo "no" >&6; }
14737
fi
14738
 
14739
 
14740
# IBM z/OS reset CFLAGS for config.mk
14741
if test "$zOSUnix" = "yes"; then
14742
	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
14743
fi
14744
 
14745
ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
14746
 
14747
cat >confcache <<\_ACEOF
14748
# This file is a shell script that caches the results of configure
14749
# tests run on this system so they can be shared between configure
14750
# scripts and configure runs, see configure's option --config-cache.
14751
# It is not useful on other systems.  If it contains results you don't
14752
# want to keep, you may remove or edit it.
14753
#
14754
# config.status only pays attention to the cache file if you give it
14755
# the --recheck option to rerun configure.
14756
#
14757
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14758
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14759
# following values.
14760
 
14761
_ACEOF
14762
 
14763
# The following way of writing the cache mishandles newlines in values,
14764
# but we know of no workaround that is simple, portable, and efficient.
14765
# So, we kill variables containing newlines.
14766
# Ultrix sh set writes to stderr and can't be redirected directly,
14767
# and sets the high bit in the cache file unless we assign to the vars.
14768
(
14769
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14770
    eval ac_val=\$$ac_var
14771
    case $ac_val in #(
14772
    *${as_nl}*)
14773
      case $ac_var in #(
14774
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14775
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14776
      esac
14777
      case $ac_var in #(
14778
      _ | IFS | as_nl) ;; #(
14779
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14780
      *) { eval $ac_var=; unset $ac_var;} ;;
14781
      esac ;;
14782
    esac
14783
  done
14784
 
14785
  (set) 2>&1 |
14786
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14787
    *${as_nl}ac_space=\ *)
14788
      # `set' does not quote correctly, so add quotes: double-quote
14789
      # substitution turns \\\\ into \\, and sed turns \\ into \.
14790
      sed -n \
14791
	"s/'/'\\\\''/g;
14792
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14793
      ;; #(
14794
    *)
14795
      # `set' quotes correctly as required by POSIX, so do not add quotes.
14796
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14797
      ;;
14798
    esac |
14799
    sort
14800
) |
14801
  sed '
14802
     /^ac_cv_env_/b end
14803
     t clear
14804
     :clear
14805
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14806
     t end
14807
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14808
     :end' >>confcache
14809
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14810
  if test -w "$cache_file"; then
14811
    if test "x$cache_file" != "x/dev/null"; then
14812
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14813
$as_echo "$as_me: updating cache $cache_file" >&6;}
14814
      if test ! -f "$cache_file" || test -h "$cache_file"; then
14815
	cat confcache >"$cache_file"
14816
      else
14817
        case $cache_file in #(
14818
        */* | ?:*)
14819
	  mv confcache "$cache_file"$$ &&
14820
	  mv "$cache_file"$$ "$cache_file" ;; #(
14821
        *)
14822
	  mv confcache "$cache_file" ;;
14823
	esac
14824
      fi
14825
    fi
14826
  else
14827
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14828
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14829
  fi
14830
fi
14831
rm -f confcache
14832
 
14833
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14834
# Let make expand exec_prefix.
14835
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14836
 
14837
DEFS=-DHAVE_CONFIG_H
14838
 
14839
ac_libobjs=
14840
ac_ltlibobjs=
14841
U=
14842
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14843
  # 1. Remove the extension, and $U if already installed.
14844
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14845
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14846
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14847
  #    will be set to the directory where LIBOBJS objects are built.
14848
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14849
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14850
done
14851
LIBOBJS=$ac_libobjs
14852
 
14853
LTLIBOBJS=$ac_ltlibobjs
14854
 
14855
 
14856
 
14857
 
14858
: "${CONFIG_STATUS=./config.status}"
14859
ac_write_fail=0
14860
ac_clean_files_save=$ac_clean_files
14861
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14862
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14863
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14864
as_write_fail=0
14865
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14866
#! $SHELL
14867
# Generated by $as_me.
14868
# Run this file to recreate the current configuration.
14869
# Compiler output produced by configure, useful for debugging
14870
# configure, is in config.log if it exists.
14871
 
14872
debug=false
14873
ac_cs_recheck=false
14874
ac_cs_silent=false
14875
 
14876
SHELL=\${CONFIG_SHELL-$SHELL}
14877
export SHELL
14878
_ASEOF
14879
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14880
## -------------------- ##
14881
## M4sh Initialization. ##
14882
## -------------------- ##
14883
 
14884
# Be more Bourne compatible
14885
DUALCASE=1; export DUALCASE # for MKS sh
14886
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14887
  emulate sh
14888
  NULLCMD=:
14889
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14890
  # is contrary to our usage.  Disable this feature.
14891
  alias -g '${1+"$@"}'='"$@"'
14892
  setopt NO_GLOB_SUBST
14893
else
14894
  case `(set -o) 2>/dev/null` in #(
14895
  *posix*) :
14896
    set -o posix ;; #(
14897
  *) :
14898
     ;;
14899
esac
14900
fi
14901
 
14902
 
14903
as_nl='
14904
'
14905
export as_nl
14906
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14907
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14908
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14909
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14910
# Prefer a ksh shell builtin over an external printf program on Solaris,
14911
# but without wasting forks for bash or zsh.
14912
if test -z "$BASH_VERSION$ZSH_VERSION" \
14913
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14914
  as_echo='print -r --'
14915
  as_echo_n='print -rn --'
14916
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14917
  as_echo='printf %s\n'
14918
  as_echo_n='printf %s'
14919
else
14920
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14921
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14922
    as_echo_n='/usr/ucb/echo -n'
14923
  else
14924
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14925
    as_echo_n_body='eval
14926
      arg=$1;
14927
      case $arg in #(
14928
      *"$as_nl"*)
14929
	expr "X$arg" : "X\\(.*\\)$as_nl";
14930
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14931
      esac;
14932
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14933
    '
14934
    export as_echo_n_body
14935
    as_echo_n='sh -c $as_echo_n_body as_echo'
14936
  fi
14937
  export as_echo_body
14938
  as_echo='sh -c $as_echo_body as_echo'
14939
fi
14940
 
14941
# The user is always right.
14942
if test "${PATH_SEPARATOR+set}" != set; then
14943
  PATH_SEPARATOR=:
14944
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14945
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14946
      PATH_SEPARATOR=';'
14947
  }
14948
fi
14949
 
14950
 
14951
# IFS
14952
# We need space, tab and new line, in precisely that order.  Quoting is
14953
# there to prevent editors from complaining about space-tab.
14954
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14955
# splitting by setting IFS to empty value.)
14956
IFS=" ""	$as_nl"
14957
 
14958
# Find who we are.  Look in the path if we contain no directory separator.
14959
as_myself=
14960
case $0 in #((
14961
  *[\\/]* ) as_myself=$0 ;;
14962
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14963
for as_dir in $PATH
14964
do
14965
  IFS=$as_save_IFS
14966
  test -z "$as_dir" && as_dir=.
14967
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14968
  done
14969
IFS=$as_save_IFS
14970
 
14971
     ;;
14972
esac
14973
# We did not find ourselves, most probably we were run as `sh COMMAND'
14974
# in which case we are not to be found in the path.
14975
if test "x$as_myself" = x; then
14976
  as_myself=$0
14977
fi
14978
if test ! -f "$as_myself"; then
14979
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14980
  exit 1
14981
fi
14982
 
14983
# Unset variables that we do not need and which cause bugs (e.g. in
14984
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14985
# suppresses any "Segmentation fault" message there.  '((' could
14986
# trigger a bug in pdksh 5.2.14.
14987
for as_var in BASH_ENV ENV MAIL MAILPATH
14988
do eval test x\${$as_var+set} = xset \
14989
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14990
done
14991
PS1='$ '
14992
PS2='> '
14993
PS4='+ '
14994
 
14995
# NLS nuisances.
14996
LC_ALL=C
14997
export LC_ALL
14998
LANGUAGE=C
14999
export LANGUAGE
15000
 
15001
# CDPATH.
15002
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15003
 
15004
 
15005
# as_fn_error STATUS ERROR [LINENO LOG_FD]
15006
# ----------------------------------------
15007
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15008
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15009
# script with STATUS, using 1 if that was 0.
15010
as_fn_error ()
15011
{
15012
  as_status=$1; test $as_status -eq 0 && as_status=1
15013
  if test "$4"; then
15014
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15015
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15016
  fi
15017
  $as_echo "$as_me: error: $2" >&2
15018
  as_fn_exit $as_status
15019
} # as_fn_error
15020
 
15021
 
15022
# as_fn_set_status STATUS
15023
# -----------------------
15024
# Set $? to STATUS, without forking.
15025
as_fn_set_status ()
15026
{
15027
  return $1
15028
} # as_fn_set_status
15029
 
15030
# as_fn_exit STATUS
15031
# -----------------
15032
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15033
as_fn_exit ()
15034
{
15035
  set +e
15036
  as_fn_set_status $1
15037
  exit $1
15038
} # as_fn_exit
15039
 
15040
# as_fn_unset VAR
15041
# ---------------
15042
# Portably unset VAR.
15043
as_fn_unset ()
15044
{
15045
  { eval $1=; unset $1;}
15046
}
15047
as_unset=as_fn_unset
15048
# as_fn_append VAR VALUE
15049
# ----------------------
15050
# Append the text in VALUE to the end of the definition contained in VAR. Take
15051
# advantage of any shell optimizations that allow amortized linear growth over
15052
# repeated appends, instead of the typical quadratic growth present in naive
15053
# implementations.
15054
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15055
  eval 'as_fn_append ()
15056
  {
15057
    eval $1+=\$2
15058
  }'
15059
else
15060
  as_fn_append ()
15061
  {
15062
    eval $1=\$$1\$2
15063
  }
15064
fi # as_fn_append
15065
 
15066
# as_fn_arith ARG...
15067
# ------------------
15068
# Perform arithmetic evaluation on the ARGs, and store the result in the
15069
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15070
# must be portable across $(()) and expr.
15071
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15072
  eval 'as_fn_arith ()
15073
  {
15074
    as_val=$(( $* ))
15075
  }'
15076
else
15077
  as_fn_arith ()
15078
  {
15079
    as_val=`expr "$@" || test $? -eq 1`
15080
  }
15081
fi # as_fn_arith
15082
 
15083
 
15084
if expr a : '\(a\)' >/dev/null 2>&1 &&
15085
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15086
  as_expr=expr
15087
else
15088
  as_expr=false
15089
fi
15090
 
15091
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15092
  as_basename=basename
15093
else
15094
  as_basename=false
15095
fi
15096
 
15097
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15098
  as_dirname=dirname
15099
else
15100
  as_dirname=false
15101
fi
15102
 
15103
as_me=`$as_basename -- "$0" ||
15104
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15105
	 X"$0" : 'X\(//\)$' \| \
15106
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15107
$as_echo X/"$0" |
15108
    sed '/^.*\/\([^/][^/]*\)\/*$/{
15109
	    s//\1/
15110
	    q
15111
	  }
15112
	  /^X\/\(\/\/\)$/{
15113
	    s//\1/
15114
	    q
15115
	  }
15116
	  /^X\/\(\/\).*/{
15117
	    s//\1/
15118
	    q
15119
	  }
15120
	  s/.*/./; q'`
15121
 
15122
# Avoid depending upon Character Ranges.
15123
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15124
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15125
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15126
as_cr_digits='0123456789'
15127
as_cr_alnum=$as_cr_Letters$as_cr_digits
15128
 
15129
ECHO_C= ECHO_N= ECHO_T=
15130
case `echo -n x` in #(((((
15131
-n*)
15132
  case `echo 'xy\c'` in
15133
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15134
  xy)  ECHO_C='\c';;
15135
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15136
       ECHO_T='	';;
15137
  esac;;
15138
*)
15139
  ECHO_N='-n';;
15140
esac
15141
 
15142
rm -f conf$$ conf$$.exe conf$$.file
15143
if test -d conf$$.dir; then
15144
  rm -f conf$$.dir/conf$$.file
15145
else
15146
  rm -f conf$$.dir
15147
  mkdir conf$$.dir 2>/dev/null
15148
fi
15149
if (echo >conf$$.file) 2>/dev/null; then
15150
  if ln -s conf$$.file conf$$ 2>/dev/null; then
15151
    as_ln_s='ln -s'
15152
    # ... but there are two gotchas:
15153
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15154
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15155
    # In both cases, we have to default to `cp -pR'.
15156
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15157
      as_ln_s='cp -pR'
15158
  elif ln conf$$.file conf$$ 2>/dev/null; then
15159
    as_ln_s=ln
15160
  else
15161
    as_ln_s='cp -pR'
15162
  fi
15163
else
15164
  as_ln_s='cp -pR'
15165
fi
15166
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15167
rmdir conf$$.dir 2>/dev/null
15168
 
15169
 
15170
# as_fn_mkdir_p
15171
# -------------
15172
# Create "$as_dir" as a directory, including parents if necessary.
15173
as_fn_mkdir_p ()
15174
{
15175
 
15176
  case $as_dir in #(
15177
  -*) as_dir=./$as_dir;;
15178
  esac
15179
  test -d "$as_dir" || eval $as_mkdir_p || {
15180
    as_dirs=
15181
    while :; do
15182
      case $as_dir in #(
15183
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15184
      *) as_qdir=$as_dir;;
15185
      esac
15186
      as_dirs="'$as_qdir' $as_dirs"
15187
      as_dir=`$as_dirname -- "$as_dir" ||
15188
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15189
	 X"$as_dir" : 'X\(//\)[^/]' \| \
15190
	 X"$as_dir" : 'X\(//\)$' \| \
15191
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15192
$as_echo X"$as_dir" |
15193
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15194
	    s//\1/
15195
	    q
15196
	  }
15197
	  /^X\(\/\/\)[^/].*/{
15198
	    s//\1/
15199
	    q
15200
	  }
15201
	  /^X\(\/\/\)$/{
15202
	    s//\1/
15203
	    q
15204
	  }
15205
	  /^X\(\/\).*/{
15206
	    s//\1/
15207
	    q
15208
	  }
15209
	  s/.*/./; q'`
15210
      test -d "$as_dir" && break
15211
    done
15212
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15213
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15214
 
15215
 
15216
} # as_fn_mkdir_p
15217
if mkdir -p . 2>/dev/null; then
15218
  as_mkdir_p='mkdir -p "$as_dir"'
15219
else
15220
  test -d ./-p && rmdir ./-p
15221
  as_mkdir_p=false
15222
fi
15223
 
15224
 
15225
# as_fn_executable_p FILE
15226
# -----------------------
15227
# Test if FILE is an executable regular file.
15228
as_fn_executable_p ()
15229
{
15230
  test -f "$1" && test -x "$1"
15231
} # as_fn_executable_p
15232
as_test_x='test -x'
15233
as_executable_p=as_fn_executable_p
15234
 
15235
# Sed expression to map a string onto a valid CPP name.
15236
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15237
 
15238
# Sed expression to map a string onto a valid variable name.
15239
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15240
 
15241
 
15242
exec 6>&1
15243
## ----------------------------------- ##
15244
## Main body of $CONFIG_STATUS script. ##
15245
## ----------------------------------- ##
15246
_ASEOF
15247
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15248
 
15249
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15250
# Save the log message, to keep $0 and so on meaningful, and to
15251
# report actual input values of CONFIG_FILES etc. instead of their
15252
# values after options handling.
15253
ac_log="
15254
This file was extended by $as_me, which was
15255
generated by GNU Autoconf 2.69.  Invocation command line was
15256
 
15257
  CONFIG_FILES    = $CONFIG_FILES
15258
  CONFIG_HEADERS  = $CONFIG_HEADERS
15259
  CONFIG_LINKS    = $CONFIG_LINKS
15260
  CONFIG_COMMANDS = $CONFIG_COMMANDS
15261
  $ $0 $@
15262
 
15263
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15264
"
15265
 
15266
_ACEOF
15267
 
15268
case $ac_config_files in *"
15269
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15270
esac
15271
 
15272
case $ac_config_headers in *"
15273
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15274
esac
15275
 
15276
 
15277
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15278
# Files that config.status was made for.
15279
config_files="$ac_config_files"
15280
config_headers="$ac_config_headers"
15281
 
15282
_ACEOF
15283
 
15284
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15285
ac_cs_usage="\
15286
\`$as_me' instantiates files and other configuration actions
15287
from templates according to the current configuration.  Unless the files
15288
and actions are specified as TAGs, all are instantiated by default.
15289
 
15290
Usage: $0 [OPTION]... [TAG]...
15291
 
15292
  -h, --help       print this help, then exit
15293
  -V, --version    print version number and configuration settings, then exit
15294
      --config     print configuration, then exit
15295
  -q, --quiet, --silent
15296
                   do not print progress messages
15297
  -d, --debug      don't remove temporary files
15298
      --recheck    update $as_me by reconfiguring in the same conditions
15299
      --file=FILE[:TEMPLATE]
15300
                   instantiate the configuration file FILE
15301
      --header=FILE[:TEMPLATE]
15302
                   instantiate the configuration header FILE
15303
 
15304
Configuration files:
15305
$config_files
15306
 
15307
Configuration headers:
15308
$config_headers
15309
 
15310
Report bugs to the package provider."
15311
 
15312
_ACEOF
15313
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15314
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15315
ac_cs_version="\\
15316
config.status
15317
configured by $0, generated by GNU Autoconf 2.69,
15318
  with options \\"\$ac_cs_config\\"
15319
 
15320
Copyright (C) 2012 Free Software Foundation, Inc.
15321
This config.status script is free software; the Free Software Foundation
15322
gives unlimited permission to copy, distribute and modify it."
15323
 
15324
ac_pwd='$ac_pwd'
15325
srcdir='$srcdir'
15326
AWK='$AWK'
15327
test -n "\$AWK" || AWK=awk
15328
_ACEOF
15329
 
15330
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15331
# The default lists apply if the user does not specify any file.
15332
ac_need_defaults=:
15333
while test $# != 0
15334
do
15335
  case $1 in
15336
  --*=?*)
15337
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15338
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15339
    ac_shift=:
15340
    ;;
15341
  --*=)
15342
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15343
    ac_optarg=
15344
    ac_shift=:
15345
    ;;
15346
  *)
15347
    ac_option=$1
15348
    ac_optarg=$2
15349
    ac_shift=shift
15350
    ;;
15351
  esac
15352
 
15353
  case $ac_option in
15354
  # Handling of the options.
15355
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15356
    ac_cs_recheck=: ;;
15357
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15358
    $as_echo "$ac_cs_version"; exit ;;
15359
  --config | --confi | --conf | --con | --co | --c )
15360
    $as_echo "$ac_cs_config"; exit ;;
15361
  --debug | --debu | --deb | --de | --d | -d )
15362
    debug=: ;;
15363
  --file | --fil | --fi | --f )
15364
    $ac_shift
15365
    case $ac_optarg in
15366
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15367
    '') as_fn_error $? "missing file argument" ;;
15368
    esac
15369
    as_fn_append CONFIG_FILES " '$ac_optarg'"
15370
    ac_need_defaults=false;;
15371
  --header | --heade | --head | --hea )
15372
    $ac_shift
15373
    case $ac_optarg in
15374
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15375
    esac
15376
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15377
    ac_need_defaults=false;;
15378
  --he | --h)
15379
    # Conflict between --help and --header
15380
    as_fn_error $? "ambiguous option: \`$1'
15381
Try \`$0 --help' for more information.";;
15382
  --help | --hel | -h )
15383
    $as_echo "$ac_cs_usage"; exit ;;
15384
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15385
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15386
    ac_cs_silent=: ;;
15387
 
15388
  # This is an error.
15389
  -*) as_fn_error $? "unrecognized option: \`$1'
15390
Try \`$0 --help' for more information." ;;
15391
 
15392
  *) as_fn_append ac_config_targets " $1"
15393
     ac_need_defaults=false ;;
15394
 
15395
  esac
15396
  shift
15397
done
15398
 
15399
ac_configure_extra_args=
15400
 
15401
if $ac_cs_silent; then
15402
  exec 6>/dev/null
15403
  ac_configure_extra_args="$ac_configure_extra_args --silent"
15404
fi
15405
 
15406
_ACEOF
15407
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15408
if \$ac_cs_recheck; then
15409
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15410
  shift
15411
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15412
  CONFIG_SHELL='$SHELL'
15413
  export CONFIG_SHELL
15414
  exec "\$@"
15415
fi
15416
 
15417
_ACEOF
15418
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15419
exec 5>>auto/config.log
15420
{
15421
  echo
15422
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15423
## Running $as_me. ##
15424
_ASBOX
15425
  $as_echo "$ac_log"
15426
} >&5
15427
 
15428
_ACEOF
15429
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15430
_ACEOF
15431
 
15432
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15433
 
15434
# Handling of arguments.
15435
for ac_config_target in $ac_config_targets
15436
do
15437
  case $ac_config_target in
15438
    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15439
    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15440
 
15441
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15442
  esac
15443
done
15444
 
15445
 
15446
# If the user did not use the arguments to specify the items to instantiate,
15447
# then the envvar interface is used.  Set only those that are not.
15448
# We use the long form for the default assignment because of an extremely
15449
# bizarre bug on SunOS 4.1.3.
15450
if $ac_need_defaults; then
15451
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15452
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15453
fi
15454
 
15455
# Have a temporary directory for convenience.  Make it in the build tree
15456
# simply because there is no reason against having it here, and in addition,
15457
# creating and moving files from /tmp can sometimes cause problems.
15458
# Hook for its removal unless debugging.
15459
# Note that there is a small window in which the directory will not be cleaned:
15460
# after its creation but before its name has been assigned to `$tmp'.
15461
$debug ||
15462
{
15463
  tmp= ac_tmp=
15464
  trap 'exit_status=$?
15465
  : "${ac_tmp:=$tmp}"
15466
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15467
' 0
15468
  trap 'as_fn_exit 1' 1 2 13 15
15469
}
15470
# Create a (secure) tmp directory for tmp files.
15471
 
15472
{
15473
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15474
  test -d "$tmp"
15475
}  ||
15476
{
15477
  tmp=./conf$$-$RANDOM
15478
  (umask 077 && mkdir "$tmp")
15479
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15480
ac_tmp=$tmp
15481
 
15482
# Set up the scripts for CONFIG_FILES section.
15483
# No need to generate them if there are no CONFIG_FILES.
15484
# This happens for instance with `./config.status config.h'.
15485
if test -n "$CONFIG_FILES"; then
15486
 
15487
 
15488
ac_cr=`echo X | tr X '\015'`
15489
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15490
# But we know of no other shell where ac_cr would be empty at this
15491
# point, so we can use a bashism as a fallback.
15492
if test "x$ac_cr" = x; then
15493
  eval ac_cr=\$\'\\r\'
15494
fi
15495
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15496
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15497
  ac_cs_awk_cr='\\r'
15498
else
15499
  ac_cs_awk_cr=$ac_cr
15500
fi
15501
 
15502
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15503
_ACEOF
15504
 
15505
 
15506
{
15507
  echo "cat >conf$$subs.awk <<_ACEOF" &&
15508
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15509
  echo "_ACEOF"
15510
} >conf$$subs.sh ||
15511
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15512
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15513
ac_delim='%!_!# '
15514
for ac_last_try in false false false false false :; do
15515
  . ./conf$$subs.sh ||
15516
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15517
 
15518
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15519
  if test $ac_delim_n = $ac_delim_num; then
15520
    break
15521
  elif $ac_last_try; then
15522
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15523
  else
15524
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15525
  fi
15526
done
15527
rm -f conf$$subs.sh
15528
 
15529
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15530
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15531
_ACEOF
15532
sed -n '
15533
h
15534
s/^/S["/; s/!.*/"]=/
15535
p
15536
g
15537
s/^[^!]*!//
15538
:repl
15539
t repl
15540
s/'"$ac_delim"'$//
15541
t delim
15542
:nl
15543
h
15544
s/\(.\{148\}\)..*/\1/
15545
t more1
15546
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15547
p
15548
n
15549
b repl
15550
:more1
15551
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15552
p
15553
g
15554
s/.\{148\}//
15555
t nl
15556
:delim
15557
h
15558
s/\(.\{148\}\)..*/\1/
15559
t more2
15560
s/["\\]/\\&/g; s/^/"/; s/$/"/
15561
p
15562
b
15563
:more2
15564
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15565
p
15566
g
15567
s/.\{148\}//
15568
t delim
15569
' <conf$$subs.awk | sed '
15570
/^[^""]/{
15571
  N
15572
  s/\n//
15573
}
15574
' >>$CONFIG_STATUS || ac_write_fail=1
15575
rm -f conf$$subs.awk
15576
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15577
_ACAWK
15578
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15579
  for (key in S) S_is_set[key] = 1
15580
  FS = ""
15581
 
15582
}
15583
{
15584
  line = $ 0
15585
  nfields = split(line, field, "@")
15586
  substed = 0
15587
  len = length(field[1])
15588
  for (i = 2; i < nfields; i++) {
15589
    key = field[i]
15590
    keylen = length(key)
15591
    if (S_is_set[key]) {
15592
      value = S[key]
15593
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15594
      len += length(value) + length(field[++i])
15595
      substed = 1
15596
    } else
15597
      len += 1 + keylen
15598
  }
15599
 
15600
  print line
15601
}
15602
 
15603
_ACAWK
15604
_ACEOF
15605
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15606
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15607
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15608
else
15609
  cat
15610
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15611
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15612
_ACEOF
15613
 
15614
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15615
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15616
# trailing colons and then remove the whole line if VPATH becomes empty
15617
# (actually we leave an empty line to preserve line numbers).
15618
if test "x$srcdir" = x.; then
15619
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15620
h
15621
s///
15622
s/^/:/
15623
s/[	 ]*$/:/
15624
s/:\$(srcdir):/:/g
15625
s/:\${srcdir}:/:/g
15626
s/:@srcdir@:/:/g
15627
s/^:*//
15628
s/:*$//
15629
x
15630
s/\(=[	 ]*\).*/\1/
15631
G
15632
s/\n//
15633
s/^[^=]*=[	 ]*$//
15634
}'
15635
fi
15636
 
15637
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15638
fi # test -n "$CONFIG_FILES"
15639
 
15640
# Set up the scripts for CONFIG_HEADERS section.
15641
# No need to generate them if there are no CONFIG_HEADERS.
15642
# This happens for instance with `./config.status Makefile'.
15643
if test -n "$CONFIG_HEADERS"; then
15644
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15645
BEGIN {
15646
_ACEOF
15647
 
15648
 
15649
# Transform confdefs.h into an awk script `defines.awk', embedded as
15650
# here-document in config.status, that substitutes the proper values into
15651
# config.h.in to produce config.h.
15652
 
15653
# Create a delimiter string that does not exist in confdefs.h, to ease
15654
# handling of long lines.
15655
ac_delim='%!_!# '
15656
for ac_last_try in false false :; do
15657
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15658
  if test -z "$ac_tt"; then
15659
    break
15660
  elif $ac_last_try; then
15661
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15662
  else
15663
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15664
  fi
15665
done
15666
 
15667
# For the awk script, D is an array of macro values keyed by name,
15668
# likewise P contains macro parameters if any.  Preserve backslash
15669
# newline sequences.
15670
 
15671
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15672
sed -n '
15673
s/.\{148\}/&'"$ac_delim"'/g
15674
t rset
15675
:rset
15676
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15677
t def
15678
d
15679
:def
15680
s/\\$//
15681
t bsnl
15682
s/["\\]/\\&/g
15683
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15684
D["\1"]=" \3"/p
15685
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15686
d
15687
:bsnl
15688
s/["\\]/\\&/g
15689
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15690
D["\1"]=" \3\\\\\\n"\\/p
15691
t cont
15692
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15693
t cont
15694
d
15695
:cont
15696
n
15697
s/.\{148\}/&'"$ac_delim"'/g
15698
t clear
15699
:clear
15700
s/\\$//
15701
t bsnlc
15702
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15703
d
15704
:bsnlc
15705
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15706
b cont
15707
' <confdefs.h | sed '
15708
s/'"$ac_delim"'/"\\\
15709
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15710
 
15711
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15712
  for (key in D) D_is_set[key] = 1
15713
  FS = ""
15714
}
15715
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15716
  line = \$ 0
15717
  split(line, arg, " ")
15718
  if (arg[1] == "#") {
15719
    defundef = arg[2]
15720
    mac1 = arg[3]
15721
  } else {
15722
    defundef = substr(arg[1], 2)
15723
    mac1 = arg[2]
15724
  }
15725
  split(mac1, mac2, "(") #)
15726
  macro = mac2[1]
15727
  prefix = substr(line, 1, index(line, defundef) - 1)
15728
  if (D_is_set[macro]) {
15729
    # Preserve the white space surrounding the "#".
15730
    print prefix "define", macro P[macro] D[macro]
15731
    next
15732
  } else {
15733
    # Replace #undef with comments.  This is necessary, for example,
15734
    # in the case of _POSIX_SOURCE, which is predefined and required
15735
    # on some systems where configure will not decide to define it.
15736
    if (defundef == "undef") {
15737
      print "/*", prefix defundef, macro, "*/"
15738
      next
15739
    }
15740
  }
15741
}
15742
{ print }
15743
_ACAWK
15744
_ACEOF
15745
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15746
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15747
fi # test -n "$CONFIG_HEADERS"
15748
 
15749
 
15750
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15751
shift
15752
for ac_tag
15753
do
15754
  case $ac_tag in
15755
  :[FHLC]) ac_mode=$ac_tag; continue;;
15756
  esac
15757
  case $ac_mode$ac_tag in
15758
  :[FHL]*:*);;
15759
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15760
  :[FH]-) ac_tag=-:-;;
15761
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15762
  esac
15763
  ac_save_IFS=$IFS
15764
  IFS=:
15765
  set x $ac_tag
15766
  IFS=$ac_save_IFS
15767
  shift
15768
  ac_file=$1
15769
  shift
15770
 
15771
  case $ac_mode in
15772
  :L) ac_source=$1;;
15773
  :[FH])
15774
    ac_file_inputs=
15775
    for ac_f
15776
    do
15777
      case $ac_f in
15778
      -) ac_f="$ac_tmp/stdin";;
15779
      *) # Look for the file first in the build tree, then in the source tree
15780
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15781
	 # because $ac_f cannot contain `:'.
15782
	 test -f "$ac_f" ||
15783
	   case $ac_f in
15784
	   [\\/$]*) false;;
15785
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15786
	   esac ||
15787
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15788
      esac
15789
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15790
      as_fn_append ac_file_inputs " '$ac_f'"
15791
    done
15792
 
15793
    # Let's still pretend it is `configure' which instantiates (i.e., don't
15794
    # use $as_me), people would be surprised to read:
15795
    #    /* config.h.  Generated by config.status.  */
15796
    configure_input='Generated from '`
15797
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15798
	`' by configure.'
15799
    if test x"$ac_file" != x-; then
15800
      configure_input="$ac_file.  $configure_input"
15801
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15802
$as_echo "$as_me: creating $ac_file" >&6;}
15803
    fi
15804
    # Neutralize special characters interpreted by sed in replacement strings.
15805
    case $configure_input in #(
15806
    *\&* | *\|* | *\\* )
15807
       ac_sed_conf_input=`$as_echo "$configure_input" |
15808
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15809
    *) ac_sed_conf_input=$configure_input;;
15810
    esac
15811
 
15812
    case $ac_tag in
15813
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15814
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15815
    esac
15816
    ;;
15817
  esac
15818
 
15819
  ac_dir=`$as_dirname -- "$ac_file" ||
15820
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15821
	 X"$ac_file" : 'X\(//\)[^/]' \| \
15822
	 X"$ac_file" : 'X\(//\)$' \| \
15823
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15824
$as_echo X"$ac_file" |
15825
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15826
	    s//\1/
15827
	    q
15828
	  }
15829
	  /^X\(\/\/\)[^/].*/{
15830
	    s//\1/
15831
	    q
15832
	  }
15833
	  /^X\(\/\/\)$/{
15834
	    s//\1/
15835
	    q
15836
	  }
15837
	  /^X\(\/\).*/{
15838
	    s//\1/
15839
	    q
15840
	  }
15841
	  s/.*/./; q'`
15842
  as_dir="$ac_dir"; as_fn_mkdir_p
15843
  ac_builddir=.
15844
 
15845
case "$ac_dir" in
15846
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15847
*)
15848
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15849
  # A ".." for each directory in $ac_dir_suffix.
15850
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15851
  case $ac_top_builddir_sub in
15852
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15853
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15854
  esac ;;
15855
esac
15856
ac_abs_top_builddir=$ac_pwd
15857
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15858
# for backward compatibility:
15859
ac_top_builddir=$ac_top_build_prefix
15860
 
15861
case $srcdir in
15862
  .)  # We are building in place.
15863
    ac_srcdir=.
15864
    ac_top_srcdir=$ac_top_builddir_sub
15865
    ac_abs_top_srcdir=$ac_pwd ;;
15866
  [\\/]* | ?:[\\/]* )  # Absolute name.
15867
    ac_srcdir=$srcdir$ac_dir_suffix;
15868
    ac_top_srcdir=$srcdir
15869
    ac_abs_top_srcdir=$srcdir ;;
15870
  *) # Relative name.
15871
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15872
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15873
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15874
esac
15875
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15876
 
15877
 
15878
  case $ac_mode in
15879
  :F)
15880
  #
15881
  # CONFIG_FILE
15882
  #
15883
 
15884
_ACEOF
15885
 
15886
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15887
# If the template does not know about datarootdir, expand it.
15888
# FIXME: This hack should be removed a few years after 2.60.
15889
ac_datarootdir_hack=; ac_datarootdir_seen=
15890
ac_sed_dataroot='
15891
/datarootdir/ {
15892
  p
15893
  q
15894
}
15895
/@datadir@/p
15896
/@docdir@/p
15897
/@infodir@/p
15898
/@localedir@/p
15899
/@mandir@/p'
15900
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15901
*datarootdir*) ac_datarootdir_seen=yes;;
15902
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15903
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15904
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15905
_ACEOF
15906
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15907
  ac_datarootdir_hack='
15908
  s&@datadir@&$datadir&g
15909
  s&@docdir@&$docdir&g
15910
  s&@infodir@&$infodir&g
15911
  s&@localedir@&$localedir&g
15912
  s&@mandir@&$mandir&g
15913
  s&\\\${datarootdir}&$datarootdir&g' ;;
15914
esac
15915
_ACEOF
15916
 
15917
# Neutralize VPATH when `$srcdir' = `.'.
15918
# Shell code in configure.ac might set extrasub.
15919
# FIXME: do we really want to maintain this feature?
15920
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15921
ac_sed_extra="$ac_vpsub
15922
$extrasub
15923
_ACEOF
15924
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15925
:t
15926
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15927
s|@configure_input@|$ac_sed_conf_input|;t t
15928
s&@top_builddir@&$ac_top_builddir_sub&;t t
15929
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15930
s&@srcdir@&$ac_srcdir&;t t
15931
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15932
s&@top_srcdir@&$ac_top_srcdir&;t t
15933
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15934
s&@builddir@&$ac_builddir&;t t
15935
s&@abs_builddir@&$ac_abs_builddir&;t t
15936
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15937
$ac_datarootdir_hack
15938
"
15939
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15940
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15941
 
15942
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15943
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15944
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15945
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15946
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15947
which seems to be undefined.  Please make sure it is defined" >&5
15948
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15949
which seems to be undefined.  Please make sure it is defined" >&2;}
15950
 
15951
  rm -f "$ac_tmp/stdin"
15952
  case $ac_file in
15953
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15954
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15955
  esac \
15956
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15957
 ;;
15958
  :H)
15959
  #
15960
  # CONFIG_HEADER
15961
  #
15962
  if test x"$ac_file" != x-; then
15963
    {
15964
      $as_echo "/* $configure_input  */" \
15965
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15966
    } >"$ac_tmp/config.h" \
15967
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15968
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15969
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15970
$as_echo "$as_me: $ac_file is unchanged" >&6;}
15971
    else
15972
      rm -f "$ac_file"
15973
      mv "$ac_tmp/config.h" "$ac_file" \
15974
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15975
    fi
15976
  else
15977
    $as_echo "/* $configure_input  */" \
15978
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15979
      || as_fn_error $? "could not create -" "$LINENO" 5
15980
  fi
15981
 ;;
15982
 
15983
 
15984
  esac
15985
 
15986
done # for ac_tag
15987
 
15988
 
15989
as_fn_exit 0
15990
_ACEOF
15991
ac_clean_files=$ac_clean_files_save
15992
 
15993
test $ac_write_fail = 0 ||
15994
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15995
 
15996
 
15997
# configure is writing to config.log, and then calls config.status.
15998
# config.status does its own redirection, appending to config.log.
15999
# Unfortunately, on DOS this fails, as config.log is still kept open
16000
# by configure, so config.status won't be able to write to it; its
16001
# output is simply discarded.  So we exec the FD to /dev/null,
16002
# effectively closing config.log, so it can be properly (re)opened and
16003
# appended to by config.status.  When coming back to configure, we
16004
# need to make the FD available again.
16005
if test "$no_create" != yes; then
16006
  ac_cs_success=:
16007
  ac_config_status_args=
16008
  test "$silent" = yes &&
16009
    ac_config_status_args="$ac_config_status_args --quiet"
16010
  exec 5>/dev/null
16011
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16012
  exec 5>>auto/config.log
16013
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16014
  # would make configure fail if this is the last instruction.
16015
  $ac_cs_success || as_fn_exit 1
16016
fi
16017
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16018
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16019
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16020
fi
16021
 
16022