Subversion Repositories SmartDukaan

Rev

Rev 30 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
30 ashish 1
@%:@! /bin/sh
2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.64 for thrift 0.2.0.
4
@%:@ 
5
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
@%:@ Foundation, Inc.
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
case $0 in @%:@((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in @%:@(
144
  *posix*) :
145
    set -o posix ;; @%:@(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
test \$(( 1 + 1 )) = 2 || exit 1"
173
  if (eval "$as_required") 2>/dev/null; then :
174
  as_have_required=yes
175
else
176
  as_have_required=no
177
fi
178
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
 
180
else
181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182
as_found=false
183
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184
do
185
  IFS=$as_save_IFS
186
  test -z "$as_dir" && as_dir=.
187
  as_found=:
188
  case $as_dir in @%:@(
189
	 /*)
190
	   for as_base in sh bash ksh sh5; do
191
	     # Try only shells that exist, to save several forks.
192
	     as_shell=$as_dir/$as_base
193
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195
  CONFIG_SHELL=$as_shell as_have_required=yes
196
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  break 2
198
fi
199
fi
200
	   done;;
201
       esac
202
  as_found=false
203
done
204
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206
  CONFIG_SHELL=$SHELL as_have_required=yes
207
fi; }
208
IFS=$as_save_IFS
209
 
210
 
211
      if test "x$CONFIG_SHELL" != x; then :
212
  # We cannot yet assume a decent shell, so we have to provide a
213
	# neutralization value for shells without unset; and this also
214
	# works around shells that cannot unset nonexistent variables.
215
	BASH_ENV=/dev/null
216
	ENV=/dev/null
217
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218
	export CONFIG_SHELL
219
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220
fi
221
 
222
    if test x$as_have_required = xno; then :
223
  $as_echo "$0: This script requires a shell more modern than all"
224
  $as_echo "$0: the shells that I found on your system."
225
  if test x${ZSH_VERSION+set} = xset ; then
226
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228
  else
229
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230
$0: including any error possibly output before this
231
$0: message. Then install a modern shell, or manually run
232
$0: the script under such a shell if you do have one."
233
  fi
234
  exit 1
235
fi
236
fi
237
fi
238
SHELL=${CONFIG_SHELL-/bin/sh}
239
export SHELL
240
# Unset more variables known to interfere with behavior of common tools.
241
CLICOLOR_FORCE= GREP_OPTIONS=
242
unset CLICOLOR_FORCE GREP_OPTIONS
243
 
244
## --------------------- ##
245
## M4sh Shell Functions. ##
246
## --------------------- ##
247
@%:@ as_fn_unset VAR
248
@%:@ ---------------
249
@%:@ Portably unset VAR.
250
as_fn_unset ()
251
{
252
  { eval $1=; unset $1;}
253
}
254
as_unset=as_fn_unset
255
 
256
@%:@ as_fn_set_status STATUS
257
@%:@ -----------------------
258
@%:@ Set $? to STATUS, without forking.
259
as_fn_set_status ()
260
{
261
  return $1
262
} @%:@ as_fn_set_status
263
 
264
@%:@ as_fn_exit STATUS
265
@%:@ -----------------
266
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267
as_fn_exit ()
268
{
269
  set +e
270
  as_fn_set_status $1
271
  exit $1
272
} @%:@ as_fn_exit
273
 
274
@%:@ as_fn_mkdir_p
275
@%:@ -------------
276
@%:@ Create "$as_dir" as a directory, including parents if necessary.
277
as_fn_mkdir_p ()
278
{
279
 
280
  case $as_dir in #(
281
  -*) as_dir=./$as_dir;;
282
  esac
283
  test -d "$as_dir" || eval $as_mkdir_p || {
284
    as_dirs=
285
    while :; do
286
      case $as_dir in #(
287
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288
      *) as_qdir=$as_dir;;
289
      esac
290
      as_dirs="'$as_qdir' $as_dirs"
291
      as_dir=`$as_dirname -- "$as_dir" ||
292
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293
	 X"$as_dir" : 'X\(//\)[^/]' \| \
294
	 X"$as_dir" : 'X\(//\)$' \| \
295
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296
$as_echo X"$as_dir" |
297
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298
	    s//\1/
299
	    q
300
	  }
301
	  /^X\(\/\/\)[^/].*/{
302
	    s//\1/
303
	    q
304
	  }
305
	  /^X\(\/\/\)$/{
306
	    s//\1/
307
	    q
308
	  }
309
	  /^X\(\/\).*/{
310
	    s//\1/
311
	    q
312
	  }
313
	  s/.*/./; q'`
314
      test -d "$as_dir" && break
315
    done
316
    test -z "$as_dirs" || eval "mkdir $as_dirs"
317
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
 
319
 
320
} @%:@ as_fn_mkdir_p
321
@%:@ as_fn_append VAR VALUE
322
@%:@ ----------------------
323
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
324
@%:@ advantage of any shell optimizations that allow amortized linear growth over
325
@%:@ repeated appends, instead of the typical quadratic growth present in naive
326
@%:@ implementations.
327
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328
  eval 'as_fn_append ()
329
  {
330
    eval $1+=\$2
331
  }'
332
else
333
  as_fn_append ()
334
  {
335
    eval $1=\$$1\$2
336
  }
337
fi # as_fn_append
338
 
339
@%:@ as_fn_arith ARG...
340
@%:@ ------------------
341
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
342
@%:@ global $as_val. Take advantage of shells that can avoid forks. The arguments
343
@%:@ must be portable across $(()) and expr.
344
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345
  eval 'as_fn_arith ()
346
  {
347
    as_val=$(( $* ))
348
  }'
349
else
350
  as_fn_arith ()
351
  {
352
    as_val=`expr "$@" || test $? -eq 1`
353
  }
354
fi # as_fn_arith
355
 
356
 
357
@%:@ as_fn_error ERROR [LINENO LOG_FD]
358
@%:@ ---------------------------------
359
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361
@%:@ script with status $?, using 1 if that was 0.
362
as_fn_error ()
363
{
364
  as_status=$?; test $as_status -eq 0 && as_status=1
365
  if test "$3"; then
366
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368
  fi
369
  $as_echo "$as_me: error: $1" >&2
370
  as_fn_exit $as_status
371
} @%:@ as_fn_error
372
 
373
if expr a : '\(a\)' >/dev/null 2>&1 &&
374
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375
  as_expr=expr
376
else
377
  as_expr=false
378
fi
379
 
380
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381
  as_basename=basename
382
else
383
  as_basename=false
384
fi
385
 
386
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387
  as_dirname=dirname
388
else
389
  as_dirname=false
390
fi
391
 
392
as_me=`$as_basename -- "$0" ||
393
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394
	 X"$0" : 'X\(//\)$' \| \
395
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396
$as_echo X/"$0" |
397
    sed '/^.*\/\([^/][^/]*\)\/*$/{
398
	    s//\1/
399
	    q
400
	  }
401
	  /^X\/\(\/\/\)$/{
402
	    s//\1/
403
	    q
404
	  }
405
	  /^X\/\(\/\).*/{
406
	    s//\1/
407
	    q
408
	  }
409
	  s/.*/./; q'`
410
 
411
# Avoid depending upon Character Ranges.
412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415
as_cr_digits='0123456789'
416
as_cr_alnum=$as_cr_Letters$as_cr_digits
417
 
418
 
419
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424
  sed -n '
425
    p
426
    /[$]LINENO/=
427
  ' <$as_myself |
428
    sed '
429
      s/[$]LINENO.*/&-/
430
      t lineno
431
      b
432
      :lineno
433
      N
434
      :loop
435
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436
      t loop
437
      s/-\n.*//
438
    ' >$as_me.lineno &&
439
  chmod +x "$as_me.lineno" ||
440
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
 
442
  # Don't try to exec as it changes $[0], causing all sort of problems
443
  # (the dirname of $[0] is not the place where we might find the
444
  # original and so on.  Autoconf is especially sensitive to this).
445
  . "./$as_me.lineno"
446
  # Exit status is that of the last command.
447
  exit
448
}
449
 
450
ECHO_C= ECHO_N= ECHO_T=
451
case `echo -n x` in @%:@(((((
452
-n*)
453
  case `echo 'xy\c'` in
454
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
455
  xy)  ECHO_C='\c';;
456
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457
       ECHO_T='	';;
458
  esac;;
459
*)
460
  ECHO_N='-n';;
461
esac
462
 
463
rm -f conf$$ conf$$.exe conf$$.file
464
if test -d conf$$.dir; then
465
  rm -f conf$$.dir/conf$$.file
466
else
467
  rm -f conf$$.dir
468
  mkdir conf$$.dir 2>/dev/null
469
fi
470
if (echo >conf$$.file) 2>/dev/null; then
471
  if ln -s conf$$.file conf$$ 2>/dev/null; then
472
    as_ln_s='ln -s'
473
    # ... but there are two gotchas:
474
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476
    # In both cases, we have to default to `cp -p'.
477
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478
      as_ln_s='cp -p'
479
  elif ln conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s=ln
481
  else
482
    as_ln_s='cp -p'
483
  fi
484
else
485
  as_ln_s='cp -p'
486
fi
487
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488
rmdir conf$$.dir 2>/dev/null
489
 
490
if mkdir -p . 2>/dev/null; then
491
  as_mkdir_p='mkdir -p "$as_dir"'
492
else
493
  test -d ./-p && rmdir ./-p
494
  as_mkdir_p=false
495
fi
496
 
497
if test -x / >/dev/null 2>&1; then
498
  as_test_x='test -x'
499
else
500
  if ls -dL / >/dev/null 2>&1; then
501
    as_ls_L_option=L
502
  else
503
    as_ls_L_option=
504
  fi
505
  as_test_x='
506
    eval sh -c '\''
507
      if test -d "$1"; then
508
	test -d "$1/.";
509
      else
510
	case $1 in @%:@(
511
	-*)set "./$1";;
512
	esac;
513
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
514
	???[sx]*):;;*)false;;esac;fi
515
    '\'' sh
516
  '
517
fi
518
as_executable_p=$as_test_x
519
 
520
# Sed expression to map a string onto a valid CPP name.
521
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
 
523
# Sed expression to map a string onto a valid variable name.
524
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
 
526
 
527
exec 7<&0 </dev/null 6>&1
528
 
529
# Name of the host.
530
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531
# so uname gets run too.
532
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
 
534
#
535
# Initializations.
536
#
537
ac_default_prefix=/usr/local
538
ac_clean_files=
539
ac_config_libobj_dir=.
540
LIB@&t@OBJS=
541
cross_compiling=no
542
subdirs=
543
MFLAGS=
544
MAKEFLAGS=
545
 
546
# Identity of this package.
547
PACKAGE_NAME='thrift'
548
PACKAGE_TARNAME='thrift'
549
PACKAGE_VERSION='0.2.0'
550
PACKAGE_STRING='thrift 0.2.0'
551
PACKAGE_BUGREPORT=''
552
PACKAGE_URL=''
553
 
554
# Factoring default headers for most tests.
555
ac_includes_default="\
556
#include <stdio.h>
557
#ifdef HAVE_SYS_TYPES_H
558
# include <sys/types.h>
559
#endif
560
#ifdef HAVE_SYS_STAT_H
561
# include <sys/stat.h>
562
#endif
563
#ifdef STDC_HEADERS
564
# include <stdlib.h>
565
# include <stddef.h>
566
#else
567
# ifdef HAVE_STDLIB_H
568
#  include <stdlib.h>
569
# endif
570
#endif
571
#ifdef HAVE_STRING_H
572
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
573
#  include <memory.h>
574
# endif
575
# include <string.h>
576
#endif
577
#ifdef HAVE_STRINGS_H
578
# include <strings.h>
579
#endif
580
#ifdef HAVE_INTTYPES_H
581
# include <inttypes.h>
582
#endif
583
#ifdef HAVE_STDINT_H
584
# include <stdint.h>
585
#endif
586
#ifdef HAVE_UNISTD_H
587
# include <unistd.h>
588
#endif"
589
 
590
ac_subst_vars='LTLIBOBJS
591
LIB@&t@OBJS
592
ALLOCA
593
EGREP
594
GREP
595
CXXCPP
596
RSPEC
597
RUBY
598
PERL
599
ERLC
600
ANT_FLAGS
601
CLASSPATH
602
ANT
603
MKDIR_P
604
LN_S
605
LEXLIB
606
LEX_OUTPUT_ROOT
607
LEX
608
YFLAGS
609
YACC
610
SET_MAKE
611
INSTALL_DATA
612
INSTALL_SCRIPT
613
INSTALL_PROGRAM
614
ac_ct_CXX
615
CXXFLAGS
616
CXX
617
CPP
618
OBJEXT
619
EXEEXT
620
ac_ct_CC
621
CPPFLAGS
622
LDFLAGS
623
CFLAGS
624
CC
625
JAVA_PREFIX
626
PY_PREFIX
627
target_alias
628
host_alias
629
build_alias
630
LIBS
631
ECHO_T
632
ECHO_N
633
ECHO_C
634
DEFS
635
mandir
636
localedir
637
libdir
638
psdir
639
pdfdir
640
dvidir
641
htmldir
642
infodir
643
docdir
644
oldincludedir
645
includedir
646
localstatedir
647
sharedstatedir
648
sysconfdir
649
datadir
650
datarootdir
651
libexecdir
652
sbindir
653
bindir
654
program_transform_name
655
prefix
656
exec_prefix
657
PACKAGE_URL
658
PACKAGE_BUGREPORT
659
PACKAGE_STRING
660
PACKAGE_VERSION
661
PACKAGE_TARNAME
662
PACKAGE_NAME
663
PATH_SEPARATOR
664
SHELL'
665
ac_subst_files=''
666
ac_user_opts='
667
enable_option_checking
668
'
669
      ac_precious_vars='build_alias
670
host_alias
671
target_alias
672
PY_PREFIX
673
JAVA_PREFIX
674
CC
675
CFLAGS
676
LDFLAGS
677
LIBS
678
CPPFLAGS
679
CPP
680
CXX
681
CXXFLAGS
682
CCC
683
YACC
684
YFLAGS
685
CXXCPP'
686
 
687
 
688
# Initialize some variables set by options.
689
ac_init_help=
690
ac_init_version=false
691
ac_unrecognized_opts=
692
ac_unrecognized_sep=
693
# The variables have the same names as the options, with
694
# dashes changed to underlines.
695
cache_file=/dev/null
696
exec_prefix=NONE
697
no_create=
698
no_recursion=
699
prefix=NONE
700
program_prefix=NONE
701
program_suffix=NONE
702
program_transform_name=s,x,x,
703
silent=
704
site=
705
srcdir=
706
verbose=
707
x_includes=NONE
708
x_libraries=NONE
709
 
710
# Installation directory options.
711
# These are left unexpanded so users can "make install exec_prefix=/foo"
712
# and all the variables that are supposed to be based on exec_prefix
713
# by default will actually change.
714
# Use braces instead of parens because sh, perl, etc. also accept them.
715
# (The list follows the same order as the GNU Coding Standards.)
716
bindir='${exec_prefix}/bin'
717
sbindir='${exec_prefix}/sbin'
718
libexecdir='${exec_prefix}/libexec'
719
datarootdir='${prefix}/share'
720
datadir='${datarootdir}'
721
sysconfdir='${prefix}/etc'
722
sharedstatedir='${prefix}/com'
723
localstatedir='${prefix}/var'
724
includedir='${prefix}/include'
725
oldincludedir='/usr/include'
726
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
727
infodir='${datarootdir}/info'
728
htmldir='${docdir}'
729
dvidir='${docdir}'
730
pdfdir='${docdir}'
731
psdir='${docdir}'
732
libdir='${exec_prefix}/lib'
733
localedir='${datarootdir}/locale'
734
mandir='${datarootdir}/man'
735
 
736
ac_prev=
737
ac_dashdash=
738
for ac_option
739
do
740
  # If the previous option needs an argument, assign it.
741
  if test -n "$ac_prev"; then
742
    eval $ac_prev=\$ac_option
743
    ac_prev=
744
    continue
745
  fi
746
 
747
  case $ac_option in
748
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
749
  *)	ac_optarg=yes ;;
750
  esac
751
 
752
  # Accept the important Cygnus configure options, so we can diagnose typos.
753
 
754
  case $ac_dashdash$ac_option in
755
  --)
756
    ac_dashdash=yes ;;
757
 
758
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
759
    ac_prev=bindir ;;
760
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
761
    bindir=$ac_optarg ;;
762
 
763
  -build | --build | --buil | --bui | --bu)
764
    ac_prev=build_alias ;;
765
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
766
    build_alias=$ac_optarg ;;
767
 
768
  -cache-file | --cache-file | --cache-fil | --cache-fi \
769
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
770
    ac_prev=cache_file ;;
771
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
772
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
773
    cache_file=$ac_optarg ;;
774
 
775
  --config-cache | -C)
776
    cache_file=config.cache ;;
777
 
778
  -datadir | --datadir | --datadi | --datad)
779
    ac_prev=datadir ;;
780
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
781
    datadir=$ac_optarg ;;
782
 
783
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
784
  | --dataroo | --dataro | --datar)
785
    ac_prev=datarootdir ;;
786
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
787
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
788
    datarootdir=$ac_optarg ;;
789
 
790
  -disable-* | --disable-*)
791
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
792
    # Reject names that are not valid shell variable names.
793
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
794
      as_fn_error "invalid feature name: $ac_useropt"
795
    ac_useropt_orig=$ac_useropt
796
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
797
    case $ac_user_opts in
798
      *"
799
"enable_$ac_useropt"
800
"*) ;;
801
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
802
	 ac_unrecognized_sep=', ';;
803
    esac
804
    eval enable_$ac_useropt=no ;;
805
 
806
  -docdir | --docdir | --docdi | --doc | --do)
807
    ac_prev=docdir ;;
808
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
809
    docdir=$ac_optarg ;;
810
 
811
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
812
    ac_prev=dvidir ;;
813
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
814
    dvidir=$ac_optarg ;;
815
 
816
  -enable-* | --enable-*)
817
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
818
    # Reject names that are not valid shell variable names.
819
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
820
      as_fn_error "invalid feature name: $ac_useropt"
821
    ac_useropt_orig=$ac_useropt
822
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
823
    case $ac_user_opts in
824
      *"
825
"enable_$ac_useropt"
826
"*) ;;
827
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
828
	 ac_unrecognized_sep=', ';;
829
    esac
830
    eval enable_$ac_useropt=\$ac_optarg ;;
831
 
832
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
833
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
834
  | --exec | --exe | --ex)
835
    ac_prev=exec_prefix ;;
836
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
837
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
838
  | --exec=* | --exe=* | --ex=*)
839
    exec_prefix=$ac_optarg ;;
840
 
841
  -gas | --gas | --ga | --g)
842
    # Obsolete; use --with-gas.
843
    with_gas=yes ;;
844
 
845
  -help | --help | --hel | --he | -h)
846
    ac_init_help=long ;;
847
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
848
    ac_init_help=recursive ;;
849
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
850
    ac_init_help=short ;;
851
 
852
  -host | --host | --hos | --ho)
853
    ac_prev=host_alias ;;
854
  -host=* | --host=* | --hos=* | --ho=*)
855
    host_alias=$ac_optarg ;;
856
 
857
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
858
    ac_prev=htmldir ;;
859
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
860
  | --ht=*)
861
    htmldir=$ac_optarg ;;
862
 
863
  -includedir | --includedir | --includedi | --included | --include \
864
  | --includ | --inclu | --incl | --inc)
865
    ac_prev=includedir ;;
866
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
867
  | --includ=* | --inclu=* | --incl=* | --inc=*)
868
    includedir=$ac_optarg ;;
869
 
870
  -infodir | --infodir | --infodi | --infod | --info | --inf)
871
    ac_prev=infodir ;;
872
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
873
    infodir=$ac_optarg ;;
874
 
875
  -libdir | --libdir | --libdi | --libd)
876
    ac_prev=libdir ;;
877
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
878
    libdir=$ac_optarg ;;
879
 
880
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
881
  | --libexe | --libex | --libe)
882
    ac_prev=libexecdir ;;
883
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
884
  | --libexe=* | --libex=* | --libe=*)
885
    libexecdir=$ac_optarg ;;
886
 
887
  -localedir | --localedir | --localedi | --localed | --locale)
888
    ac_prev=localedir ;;
889
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
890
    localedir=$ac_optarg ;;
891
 
892
  -localstatedir | --localstatedir | --localstatedi | --localstated \
893
  | --localstate | --localstat | --localsta | --localst | --locals)
894
    ac_prev=localstatedir ;;
895
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
896
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
897
    localstatedir=$ac_optarg ;;
898
 
899
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
900
    ac_prev=mandir ;;
901
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
902
    mandir=$ac_optarg ;;
903
 
904
  -nfp | --nfp | --nf)
905
    # Obsolete; use --without-fp.
906
    with_fp=no ;;
907
 
908
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
909
  | --no-cr | --no-c | -n)
910
    no_create=yes ;;
911
 
912
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
913
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
914
    no_recursion=yes ;;
915
 
916
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
917
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
918
  | --oldin | --oldi | --old | --ol | --o)
919
    ac_prev=oldincludedir ;;
920
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
921
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
922
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
923
    oldincludedir=$ac_optarg ;;
924
 
925
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
926
    ac_prev=prefix ;;
927
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
928
    prefix=$ac_optarg ;;
929
 
930
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
931
  | --program-pre | --program-pr | --program-p)
932
    ac_prev=program_prefix ;;
933
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
934
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
935
    program_prefix=$ac_optarg ;;
936
 
937
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
938
  | --program-suf | --program-su | --program-s)
939
    ac_prev=program_suffix ;;
940
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
941
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
942
    program_suffix=$ac_optarg ;;
943
 
944
  -program-transform-name | --program-transform-name \
945
  | --program-transform-nam | --program-transform-na \
946
  | --program-transform-n | --program-transform- \
947
  | --program-transform | --program-transfor \
948
  | --program-transfo | --program-transf \
949
  | --program-trans | --program-tran \
950
  | --progr-tra | --program-tr | --program-t)
951
    ac_prev=program_transform_name ;;
952
  -program-transform-name=* | --program-transform-name=* \
953
  | --program-transform-nam=* | --program-transform-na=* \
954
  | --program-transform-n=* | --program-transform-=* \
955
  | --program-transform=* | --program-transfor=* \
956
  | --program-transfo=* | --program-transf=* \
957
  | --program-trans=* | --program-tran=* \
958
  | --progr-tra=* | --program-tr=* | --program-t=*)
959
    program_transform_name=$ac_optarg ;;
960
 
961
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
962
    ac_prev=pdfdir ;;
963
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
964
    pdfdir=$ac_optarg ;;
965
 
966
  -psdir | --psdir | --psdi | --psd | --ps)
967
    ac_prev=psdir ;;
968
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
969
    psdir=$ac_optarg ;;
970
 
971
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
972
  | -silent | --silent | --silen | --sile | --sil)
973
    silent=yes ;;
974
 
975
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
976
    ac_prev=sbindir ;;
977
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
978
  | --sbi=* | --sb=*)
979
    sbindir=$ac_optarg ;;
980
 
981
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
982
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
983
  | --sharedst | --shareds | --shared | --share | --shar \
984
  | --sha | --sh)
985
    ac_prev=sharedstatedir ;;
986
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
987
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
988
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
989
  | --sha=* | --sh=*)
990
    sharedstatedir=$ac_optarg ;;
991
 
992
  -site | --site | --sit)
993
    ac_prev=site ;;
994
  -site=* | --site=* | --sit=*)
995
    site=$ac_optarg ;;
996
 
997
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
998
    ac_prev=srcdir ;;
999
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1000
    srcdir=$ac_optarg ;;
1001
 
1002
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1003
  | --syscon | --sysco | --sysc | --sys | --sy)
1004
    ac_prev=sysconfdir ;;
1005
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1006
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1007
    sysconfdir=$ac_optarg ;;
1008
 
1009
  -target | --target | --targe | --targ | --tar | --ta | --t)
1010
    ac_prev=target_alias ;;
1011
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1012
    target_alias=$ac_optarg ;;
1013
 
1014
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1015
    verbose=yes ;;
1016
 
1017
  -version | --version | --versio | --versi | --vers | -V)
1018
    ac_init_version=: ;;
1019
 
1020
  -with-* | --with-*)
1021
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1022
    # Reject names that are not valid shell variable names.
1023
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024
      as_fn_error "invalid package name: $ac_useropt"
1025
    ac_useropt_orig=$ac_useropt
1026
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027
    case $ac_user_opts in
1028
      *"
1029
"with_$ac_useropt"
1030
"*) ;;
1031
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1032
	 ac_unrecognized_sep=', ';;
1033
    esac
1034
    eval with_$ac_useropt=\$ac_optarg ;;
1035
 
1036
  -without-* | --without-*)
1037
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1038
    # Reject names that are not valid shell variable names.
1039
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040
      as_fn_error "invalid package name: $ac_useropt"
1041
    ac_useropt_orig=$ac_useropt
1042
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043
    case $ac_user_opts in
1044
      *"
1045
"with_$ac_useropt"
1046
"*) ;;
1047
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1048
	 ac_unrecognized_sep=', ';;
1049
    esac
1050
    eval with_$ac_useropt=no ;;
1051
 
1052
  --x)
1053
    # Obsolete; use --with-x.
1054
    with_x=yes ;;
1055
 
1056
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057
  | --x-incl | --x-inc | --x-in | --x-i)
1058
    ac_prev=x_includes ;;
1059
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061
    x_includes=$ac_optarg ;;
1062
 
1063
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1064
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065
    ac_prev=x_libraries ;;
1066
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068
    x_libraries=$ac_optarg ;;
1069
 
1070
  -*) as_fn_error "unrecognized option: \`$ac_option'
1071
Try \`$0 --help' for more information."
1072
    ;;
1073
 
1074
  *=*)
1075
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1076
    # Reject names that are not valid shell variable names.
1077
    case $ac_envvar in #(
1078
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1079
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1080
    esac
1081
    eval $ac_envvar=\$ac_optarg
1082
    export $ac_envvar ;;
1083
 
1084
  *)
1085
    # FIXME: should be removed in autoconf 3.0.
1086
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090
    ;;
1091
 
1092
  esac
1093
done
1094
 
1095
if test -n "$ac_prev"; then
1096
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097
  as_fn_error "missing argument to $ac_option"
1098
fi
1099
 
1100
if test -n "$ac_unrecognized_opts"; then
1101
  case $enable_option_checking in
1102
    no) ;;
1103
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1104
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1105
  esac
1106
fi
1107
 
1108
# Check all directory arguments for consistency.
1109
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1110
		datadir sysconfdir sharedstatedir localstatedir includedir \
1111
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1112
		libdir localedir mandir
1113
do
1114
  eval ac_val=\$$ac_var
1115
  # Remove trailing slashes.
1116
  case $ac_val in
1117
    */ )
1118
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1119
      eval $ac_var=\$ac_val;;
1120
  esac
1121
  # Be sure to have absolute directory names.
1122
  case $ac_val in
1123
    [\\/$]* | ?:[\\/]* )  continue;;
1124
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125
  esac
1126
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1127
done
1128
 
1129
# There might be people who depend on the old broken behavior: `$host'
1130
# used to hold the argument of --host etc.
1131
# FIXME: To remove some day.
1132
build=$build_alias
1133
host=$host_alias
1134
target=$target_alias
1135
 
1136
# FIXME: To remove some day.
1137
if test "x$host_alias" != x; then
1138
  if test "x$build_alias" = x; then
1139
    cross_compiling=maybe
1140
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1141
    If a cross compiler is detected then cross compile mode will be used." >&2
1142
  elif test "x$build_alias" != "x$host_alias"; then
1143
    cross_compiling=yes
1144
  fi
1145
fi
1146
 
1147
ac_tool_prefix=
1148
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1149
 
1150
test "$silent" = yes && exec 6>/dev/null
1151
 
1152
 
1153
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154
ac_ls_di=`ls -di .` &&
1155
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156
  as_fn_error "working directory cannot be determined"
1157
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1158
  as_fn_error "pwd does not report name of working directory"
1159
 
1160
 
1161
# Find the source files, if location was not specified.
1162
if test -z "$srcdir"; then
1163
  ac_srcdir_defaulted=yes
1164
  # Try the directory containing this script, then the parent directory.
1165
  ac_confdir=`$as_dirname -- "$as_myself" ||
1166
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1167
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1168
	 X"$as_myself" : 'X\(//\)$' \| \
1169
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1170
$as_echo X"$as_myself" |
1171
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1172
	    s//\1/
1173
	    q
1174
	  }
1175
	  /^X\(\/\/\)[^/].*/{
1176
	    s//\1/
1177
	    q
1178
	  }
1179
	  /^X\(\/\/\)$/{
1180
	    s//\1/
1181
	    q
1182
	  }
1183
	  /^X\(\/\).*/{
1184
	    s//\1/
1185
	    q
1186
	  }
1187
	  s/.*/./; q'`
1188
  srcdir=$ac_confdir
1189
  if test ! -r "$srcdir/$ac_unique_file"; then
1190
    srcdir=..
1191
  fi
1192
else
1193
  ac_srcdir_defaulted=no
1194
fi
1195
if test ! -r "$srcdir/$ac_unique_file"; then
1196
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1197
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1198
fi
1199
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1200
ac_abs_confdir=`(
1201
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1202
	pwd)`
1203
# When building in place, set srcdir=.
1204
if test "$ac_abs_confdir" = "$ac_pwd"; then
1205
  srcdir=.
1206
fi
1207
# Remove unnecessary trailing slashes from srcdir.
1208
# Double slashes in file names in object file debugging info
1209
# mess up M-x gdb in Emacs.
1210
case $srcdir in
1211
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212
esac
1213
for ac_var in $ac_precious_vars; do
1214
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1215
  eval ac_env_${ac_var}_value=\$${ac_var}
1216
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1217
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1218
done
1219
 
1220
#
1221
# Report the --help message.
1222
#
1223
if test "$ac_init_help" = "long"; then
1224
  # Omit some internal or obsolete options to make the list less imposing.
1225
  # This message is too long to be a string in the A/UX 3.1 sh.
1226
  cat <<_ACEOF
1227
\`configure' configures thrift 0.2.0 to adapt to many kinds of systems.
1228
 
1229
Usage: $0 [OPTION]... [VAR=VALUE]...
1230
 
1231
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232
VAR=VALUE.  See below for descriptions of some of the useful variables.
1233
 
1234
Defaults for the options are specified in brackets.
1235
 
1236
Configuration:
1237
  -h, --help              display this help and exit
1238
      --help=short        display options specific to this package
1239
      --help=recursive    display the short help of all the included packages
1240
  -V, --version           display version information and exit
1241
  -q, --quiet, --silent   do not print \`checking...' messages
1242
      --cache-file=FILE   cache test results in FILE [disabled]
1243
  -C, --config-cache      alias for \`--cache-file=config.cache'
1244
  -n, --no-create         do not create output files
1245
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1246
 
1247
Installation directories:
1248
  --prefix=PREFIX         install architecture-independent files in PREFIX
1249
                          [$ac_default_prefix]
1250
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1251
                          [PREFIX]
1252
 
1253
By default, \`make install' will install all the files in
1254
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1255
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256
for instance \`--prefix=\$HOME'.
1257
 
1258
For better control, use the options below.
1259
 
1260
Fine tuning of the installation directories:
1261
  --bindir=DIR            user executables [EPREFIX/bin]
1262
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1263
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1264
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1265
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1266
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1267
  --libdir=DIR            object code libraries [EPREFIX/lib]
1268
  --includedir=DIR        C header files [PREFIX/include]
1269
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1270
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1271
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1272
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1273
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1274
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1275
  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/thrift@:>@
1276
  --htmldir=DIR           html documentation [DOCDIR]
1277
  --dvidir=DIR            dvi documentation [DOCDIR]
1278
  --pdfdir=DIR            pdf documentation [DOCDIR]
1279
  --psdir=DIR             ps documentation [DOCDIR]
1280
_ACEOF
1281
 
1282
  cat <<\_ACEOF
1283
_ACEOF
1284
fi
1285
 
1286
if test -n "$ac_init_help"; then
1287
  case $ac_init_help in
1288
     short | recursive ) echo "Configuration of thrift 0.2.0:";;
1289
   esac
1290
  cat <<\_ACEOF
1291
 
1292
Some influential environment variables:
1293
  PY_PREFIX   Prefix for installing Python modules. (Normal --prefix is
1294
              ignored for Python because Python has different conventions.)
1295
              Default = "/usr"
1296
  JAVA_PREFIX Prefix for installing the Java lib jar. (Normal --prefix is
1297
              ignored for Java because Java has different conevntions.)
1298
              Default = "/usr/local/lib"
1299
  CC          C compiler command
1300
  CFLAGS      C compiler flags
1301
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1302
              nonstandard directory <lib dir>
1303
  LIBS        libraries to pass to the linker, e.g. -l<library>
1304
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1305
              you have headers in a nonstandard directory <include dir>
1306
  CPP         C preprocessor
1307
  CXX         C++ compiler command
1308
  CXXFLAGS    C++ compiler flags
1309
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1310
              the first program found out of: `bison -y', `byacc', `yacc'.
1311
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1312
              This script will default YFLAGS to the empty string to avoid a
1313
              default value of `-d' given by some make applications.
1314
  CXXCPP      C++ preprocessor
1315
 
1316
Use these variables to override the choices made by `configure' or to help
1317
it to find libraries and programs with nonstandard names/locations.
1318
 
1319
Report bugs to the package provider.
1320
_ACEOF
1321
ac_status=$?
1322
fi
1323
 
1324
if test "$ac_init_help" = "recursive"; then
1325
  # If there are subdirs, report their specific --help.
1326
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1327
    test -d "$ac_dir" ||
1328
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1329
      continue
1330
    ac_builddir=.
1331
 
1332
case "$ac_dir" in
1333
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334
*)
1335
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1336
  # A ".." for each directory in $ac_dir_suffix.
1337
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1338
  case $ac_top_builddir_sub in
1339
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1341
  esac ;;
1342
esac
1343
ac_abs_top_builddir=$ac_pwd
1344
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1345
# for backward compatibility:
1346
ac_top_builddir=$ac_top_build_prefix
1347
 
1348
case $srcdir in
1349
  .)  # We are building in place.
1350
    ac_srcdir=.
1351
    ac_top_srcdir=$ac_top_builddir_sub
1352
    ac_abs_top_srcdir=$ac_pwd ;;
1353
  [\\/]* | ?:[\\/]* )  # Absolute name.
1354
    ac_srcdir=$srcdir$ac_dir_suffix;
1355
    ac_top_srcdir=$srcdir
1356
    ac_abs_top_srcdir=$srcdir ;;
1357
  *) # Relative name.
1358
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1359
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1360
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1361
esac
1362
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1363
 
1364
    cd "$ac_dir" || { ac_status=$?; continue; }
1365
    # Check for guested configure.
1366
    if test -f "$ac_srcdir/configure.gnu"; then
1367
      echo &&
1368
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1369
    elif test -f "$ac_srcdir/configure"; then
1370
      echo &&
1371
      $SHELL "$ac_srcdir/configure" --help=recursive
1372
    else
1373
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1374
    fi || ac_status=$?
1375
    cd "$ac_pwd" || { ac_status=$?; break; }
1376
  done
1377
fi
1378
 
1379
test -n "$ac_init_help" && exit $ac_status
1380
if $ac_init_version; then
1381
  cat <<\_ACEOF
1382
thrift configure 0.2.0
1383
generated by GNU Autoconf 2.64
1384
 
1385
Copyright (C) 2009 Free Software Foundation, Inc.
1386
This configure script is free software; the Free Software Foundation
1387
gives unlimited permission to copy, distribute and modify it.
1388
_ACEOF
1389
  exit
1390
fi
1391
 
1392
## ------------------------ ##
1393
## Autoconf initialization. ##
1394
## ------------------------ ##
1395
 
1396
@%:@ ac_fn_c_try_compile LINENO
1397
@%:@ --------------------------
1398
@%:@ Try to compile conftest.$ac_ext, and return whether this succeeded.
1399
ac_fn_c_try_compile ()
1400
{
1401
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1402
  rm -f conftest.$ac_objext
1403
  if { { ac_try="$ac_compile"
1404
case "(($ac_try" in
1405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1406
  *) ac_try_echo=$ac_try;;
1407
esac
1408
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1409
$as_echo "$ac_try_echo"; } >&5
1410
  (eval "$ac_compile") 2>conftest.err
1411
  ac_status=$?
1412
  if test -s conftest.err; then
1413
    grep -v '^ *+' conftest.err >conftest.er1
1414
    cat conftest.er1 >&5
1415
    mv -f conftest.er1 conftest.err
1416
  fi
1417
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1418
  test $ac_status = 0; } && {
1419
	 test -z "$ac_c_werror_flag" ||
1420
	 test ! -s conftest.err
1421
       } && test -s conftest.$ac_objext; then :
1422
  ac_retval=0
1423
else
1424
  $as_echo "$as_me: failed program was:" >&5
1425
sed 's/^/| /' conftest.$ac_ext >&5
1426
 
1427
	ac_retval=1
1428
fi
1429
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1430
  return $ac_retval
1431
 
1432
} @%:@ ac_fn_c_try_compile
1433
 
1434
@%:@ ac_fn_c_try_cpp LINENO
1435
@%:@ ----------------------
1436
@%:@ Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1437
ac_fn_c_try_cpp ()
1438
{
1439
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1440
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1441
case "(($ac_try" in
1442
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1443
  *) ac_try_echo=$ac_try;;
1444
esac
1445
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1446
$as_echo "$ac_try_echo"; } >&5
1447
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1448
  ac_status=$?
1449
  if test -s conftest.err; then
1450
    grep -v '^ *+' conftest.err >conftest.er1
1451
    cat conftest.er1 >&5
1452
    mv -f conftest.er1 conftest.err
1453
  fi
1454
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1455
  test $ac_status = 0; } >/dev/null && {
1456
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1457
	 test ! -s conftest.err
1458
       }; then :
1459
  ac_retval=0
1460
else
1461
  $as_echo "$as_me: failed program was:" >&5
1462
sed 's/^/| /' conftest.$ac_ext >&5
1463
 
1464
    ac_retval=1
1465
fi
1466
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1467
  return $ac_retval
1468
 
1469
} @%:@ ac_fn_c_try_cpp
1470
 
1471
@%:@ ac_fn_cxx_try_compile LINENO
1472
@%:@ ----------------------------
1473
@%:@ Try to compile conftest.$ac_ext, and return whether this succeeded.
1474
ac_fn_cxx_try_compile ()
1475
{
1476
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1477
  rm -f conftest.$ac_objext
1478
  if { { ac_try="$ac_compile"
1479
case "(($ac_try" in
1480
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1481
  *) ac_try_echo=$ac_try;;
1482
esac
1483
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1484
$as_echo "$ac_try_echo"; } >&5
1485
  (eval "$ac_compile") 2>conftest.err
1486
  ac_status=$?
1487
  if test -s conftest.err; then
1488
    grep -v '^ *+' conftest.err >conftest.er1
1489
    cat conftest.er1 >&5
1490
    mv -f conftest.er1 conftest.err
1491
  fi
1492
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1493
  test $ac_status = 0; } && {
1494
	 test -z "$ac_cxx_werror_flag" ||
1495
	 test ! -s conftest.err
1496
       } && test -s conftest.$ac_objext; then :
1497
  ac_retval=0
1498
else
1499
  $as_echo "$as_me: failed program was:" >&5
1500
sed 's/^/| /' conftest.$ac_ext >&5
1501
 
1502
	ac_retval=1
1503
fi
1504
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1505
  return $ac_retval
1506
 
1507
} @%:@ ac_fn_cxx_try_compile
1508
 
1509
@%:@ ac_fn_c_try_link LINENO
1510
@%:@ -----------------------
1511
@%:@ Try to link conftest.$ac_ext, and return whether this succeeded.
1512
ac_fn_c_try_link ()
1513
{
1514
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515
  rm -f conftest.$ac_objext conftest$ac_exeext
1516
  if { { ac_try="$ac_link"
1517
case "(($ac_try" in
1518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519
  *) ac_try_echo=$ac_try;;
1520
esac
1521
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522
$as_echo "$ac_try_echo"; } >&5
1523
  (eval "$ac_link") 2>conftest.err
1524
  ac_status=$?
1525
  if test -s conftest.err; then
1526
    grep -v '^ *+' conftest.err >conftest.er1
1527
    cat conftest.er1 >&5
1528
    mv -f conftest.er1 conftest.err
1529
  fi
1530
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531
  test $ac_status = 0; } && {
1532
	 test -z "$ac_c_werror_flag" ||
1533
	 test ! -s conftest.err
1534
       } && test -s conftest$ac_exeext && {
1535
	 test "$cross_compiling" = yes ||
1536
	 $as_test_x conftest$ac_exeext
1537
       }; then :
1538
  ac_retval=0
1539
else
1540
  $as_echo "$as_me: failed program was:" >&5
1541
sed 's/^/| /' conftest.$ac_ext >&5
1542
 
1543
	ac_retval=1
1544
fi
1545
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1546
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1547
  # interfere with the next link command; also delete a directory that is
1548
  # left behind by Apple's compiler.  We do this before executing the actions.
1549
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1550
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1551
  return $ac_retval
1552
 
1553
} @%:@ ac_fn_c_try_link
1554
 
1555
@%:@ ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1556
@%:@ ---------------------------------------------
1557
@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
1558
@%:@ variable VAR accordingly.
1559
ac_fn_cxx_check_type ()
1560
{
1561
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563
$as_echo_n "checking for $2... " >&6; }
1564
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1565
  $as_echo_n "(cached) " >&6
1566
else
1567
  eval "$3=no"
1568
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569
/* end confdefs.h.  */
1570
$4
1571
int
1572
main ()
1573
{
1574
if (sizeof ($2))
1575
	 return 0;
1576
  ;
1577
  return 0;
1578
}
1579
_ACEOF
1580
if ac_fn_cxx_try_compile "$LINENO"; then :
1581
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582
/* end confdefs.h.  */
1583
$4
1584
int
1585
main ()
1586
{
1587
if (sizeof (($2)))
1588
	    return 0;
1589
  ;
1590
  return 0;
1591
}
1592
_ACEOF
1593
if ac_fn_cxx_try_compile "$LINENO"; then :
1594
 
1595
else
1596
  eval "$3=yes"
1597
fi
1598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1599
fi
1600
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1601
fi
1602
eval ac_res=\$$3
1603
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604
$as_echo "$ac_res" >&6; }
1605
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606
 
1607
} @%:@ ac_fn_cxx_check_type
1608
 
1609
@%:@ ac_fn_cxx_try_cpp LINENO
1610
@%:@ ------------------------
1611
@%:@ Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612
ac_fn_cxx_try_cpp ()
1613
{
1614
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1616
case "(($ac_try" in
1617
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618
  *) ac_try_echo=$ac_try;;
1619
esac
1620
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621
$as_echo "$ac_try_echo"; } >&5
1622
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1623
  ac_status=$?
1624
  if test -s conftest.err; then
1625
    grep -v '^ *+' conftest.err >conftest.er1
1626
    cat conftest.er1 >&5
1627
    mv -f conftest.er1 conftest.err
1628
  fi
1629
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630
  test $ac_status = 0; } >/dev/null && {
1631
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1632
	 test ! -s conftest.err
1633
       }; then :
1634
  ac_retval=0
1635
else
1636
  $as_echo "$as_me: failed program was:" >&5
1637
sed 's/^/| /' conftest.$ac_ext >&5
1638
 
1639
    ac_retval=1
1640
fi
1641
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642
  return $ac_retval
1643
 
1644
} @%:@ ac_fn_cxx_try_cpp
1645
 
1646
@%:@ ac_fn_cxx_try_run LINENO
1647
@%:@ ------------------------
1648
@%:@ Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1649
@%:@ that executables *can* be run.
1650
ac_fn_cxx_try_run ()
1651
{
1652
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653
  if { { ac_try="$ac_link"
1654
case "(($ac_try" in
1655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656
  *) ac_try_echo=$ac_try;;
1657
esac
1658
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659
$as_echo "$ac_try_echo"; } >&5
1660
  (eval "$ac_link") 2>&5
1661
  ac_status=$?
1662
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1664
  { { case "(($ac_try" in
1665
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666
  *) ac_try_echo=$ac_try;;
1667
esac
1668
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669
$as_echo "$ac_try_echo"; } >&5
1670
  (eval "$ac_try") 2>&5
1671
  ac_status=$?
1672
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673
  test $ac_status = 0; }; }; then :
1674
  ac_retval=0
1675
else
1676
  $as_echo "$as_me: program exited with status $ac_status" >&5
1677
       $as_echo "$as_me: failed program was:" >&5
1678
sed 's/^/| /' conftest.$ac_ext >&5
1679
 
1680
       ac_retval=$ac_status
1681
fi
1682
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684
  return $ac_retval
1685
 
1686
} @%:@ ac_fn_cxx_try_run
1687
 
1688
@%:@ ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1689
@%:@ ---------------------------------------------------------
1690
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1691
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1692
ac_fn_cxx_check_header_compile ()
1693
{
1694
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696
$as_echo_n "checking for $2... " >&6; }
1697
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1698
  $as_echo_n "(cached) " >&6
1699
else
1700
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701
/* end confdefs.h.  */
1702
$4
1703
@%:@include <$2>
1704
_ACEOF
1705
if ac_fn_cxx_try_compile "$LINENO"; then :
1706
  eval "$3=yes"
1707
else
1708
  eval "$3=no"
1709
fi
1710
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711
fi
1712
eval ac_res=\$$3
1713
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714
$as_echo "$ac_res" >&6; }
1715
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716
 
1717
} @%:@ ac_fn_cxx_check_header_compile
1718
 
1719
@%:@ ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1720
@%:@ ---------------------------------------------------------
1721
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1722
@%:@ the include files in INCLUDES and setting the cache variable VAR
1723
@%:@ accordingly.
1724
ac_fn_cxx_check_header_mongrel ()
1725
{
1726
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1728
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729
$as_echo_n "checking for $2... " >&6; }
1730
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731
  $as_echo_n "(cached) " >&6
1732
fi
1733
eval ac_res=\$$3
1734
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735
$as_echo "$ac_res" >&6; }
1736
else
1737
  # Is the header compilable?
1738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1739
$as_echo_n "checking $2 usability... " >&6; }
1740
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741
/* end confdefs.h.  */
1742
$4
1743
@%:@include <$2>
1744
_ACEOF
1745
if ac_fn_cxx_try_compile "$LINENO"; then :
1746
  ac_header_compiler=yes
1747
else
1748
  ac_header_compiler=no
1749
fi
1750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1752
$as_echo "$ac_header_compiler" >&6; }
1753
 
1754
# Is the header present?
1755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1756
$as_echo_n "checking $2 presence... " >&6; }
1757
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758
/* end confdefs.h.  */
1759
@%:@include <$2>
1760
_ACEOF
1761
if ac_fn_cxx_try_cpp "$LINENO"; then :
1762
  ac_header_preproc=yes
1763
else
1764
  ac_header_preproc=no
1765
fi
1766
rm -f conftest.err conftest.$ac_ext
1767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1768
$as_echo "$ac_header_preproc" >&6; }
1769
 
1770
# So?  What about this header?
1771
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1772
  yes:no: )
1773
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1774
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1775
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777
    ;;
1778
  no:yes:* )
1779
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1780
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1781
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1782
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1783
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1784
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1785
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1786
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1787
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789
    ;;
1790
esac
1791
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792
$as_echo_n "checking for $2... " >&6; }
1793
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794
  $as_echo_n "(cached) " >&6
1795
else
1796
  eval "$3=\$ac_header_compiler"
1797
fi
1798
eval ac_res=\$$3
1799
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800
$as_echo "$ac_res" >&6; }
1801
fi
1802
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803
 
1804
} @%:@ ac_fn_cxx_check_header_mongrel
1805
 
1806
@%:@ ac_fn_cxx_try_link LINENO
1807
@%:@ -------------------------
1808
@%:@ Try to link conftest.$ac_ext, and return whether this succeeded.
1809
ac_fn_cxx_try_link ()
1810
{
1811
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812
  rm -f conftest.$ac_objext conftest$ac_exeext
1813
  if { { ac_try="$ac_link"
1814
case "(($ac_try" in
1815
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816
  *) ac_try_echo=$ac_try;;
1817
esac
1818
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819
$as_echo "$ac_try_echo"; } >&5
1820
  (eval "$ac_link") 2>conftest.err
1821
  ac_status=$?
1822
  if test -s conftest.err; then
1823
    grep -v '^ *+' conftest.err >conftest.er1
1824
    cat conftest.er1 >&5
1825
    mv -f conftest.er1 conftest.err
1826
  fi
1827
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828
  test $ac_status = 0; } && {
1829
	 test -z "$ac_cxx_werror_flag" ||
1830
	 test ! -s conftest.err
1831
       } && test -s conftest$ac_exeext && {
1832
	 test "$cross_compiling" = yes ||
1833
	 $as_test_x conftest$ac_exeext
1834
       }; then :
1835
  ac_retval=0
1836
else
1837
  $as_echo "$as_me: failed program was:" >&5
1838
sed 's/^/| /' conftest.$ac_ext >&5
1839
 
1840
	ac_retval=1
1841
fi
1842
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844
  # interfere with the next link command; also delete a directory that is
1845
  # left behind by Apple's compiler.  We do this before executing the actions.
1846
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848
  return $ac_retval
1849
 
1850
} @%:@ ac_fn_cxx_try_link
1851
 
1852
@%:@ ac_fn_c_find_intX_t LINENO BITS VAR
1853
@%:@ -----------------------------------
1854
@%:@ Finds a signed integer type with width BITS, setting cache variable VAR
1855
@%:@ accordingly.
1856
ac_fn_c_find_intX_t ()
1857
{
1858
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1860
$as_echo_n "checking for int$2_t... " >&6; }
1861
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1862
  $as_echo_n "(cached) " >&6
1863
else
1864
  eval "$3=no"
1865
     for ac_type in int$2_t 'int' 'long int' \
1866
	 'long long int' 'short int' 'signed char'; do
1867
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868
/* end confdefs.h.  */
1869
$ac_includes_default
1870
int
1871
main ()
1872
{
1873
static int test_array @<:@1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))@:>@;
1874
test_array @<:@0@:>@ = 0
1875
 
1876
  ;
1877
  return 0;
1878
}
1879
_ACEOF
1880
if ac_fn_cxx_try_compile "$LINENO"; then :
1881
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882
/* end confdefs.h.  */
1883
$ac_includes_default
1884
int
1885
main ()
1886
{
1887
static int test_array @<:@1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
1888
		 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))@:>@;
1889
test_array @<:@0@:>@ = 0
1890
 
1891
  ;
1892
  return 0;
1893
}
1894
_ACEOF
1895
if ac_fn_cxx_try_compile "$LINENO"; then :
1896
 
1897
else
1898
  case $ac_type in @%:@(
1899
  int$2_t) :
1900
    eval "$3=yes" ;; @%:@(
1901
  *) :
1902
    eval "$3=\$ac_type" ;;
1903
esac
1904
fi
1905
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906
fi
1907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908
       eval as_val=\$$3
1909
   if test "x$as_val" = x""no; then :
1910
 
1911
else
1912
  break
1913
fi
1914
     done
1915
fi
1916
eval ac_res=\$$3
1917
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918
$as_echo "$ac_res" >&6; }
1919
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920
 
1921
} @%:@ ac_fn_c_find_intX_t
1922
 
1923
@%:@ ac_fn_c_find_uintX_t LINENO BITS VAR
1924
@%:@ ------------------------------------
1925
@%:@ Finds an unsigned integer type with width BITS, setting cache variable VAR
1926
@%:@ accordingly.
1927
ac_fn_c_find_uintX_t ()
1928
{
1929
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1931
$as_echo_n "checking for uint$2_t... " >&6; }
1932
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933
  $as_echo_n "(cached) " >&6
1934
else
1935
  eval "$3=no"
1936
     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1937
	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1938
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939
/* end confdefs.h.  */
1940
$ac_includes_default
1941
int
1942
main ()
1943
{
1944
static int test_array @<:@1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)@:>@;
1945
test_array @<:@0@:>@ = 0
1946
 
1947
  ;
1948
  return 0;
1949
}
1950
_ACEOF
1951
if ac_fn_cxx_try_compile "$LINENO"; then :
1952
  case $ac_type in @%:@(
1953
  uint$2_t) :
1954
    eval "$3=yes" ;; @%:@(
1955
  *) :
1956
    eval "$3=\$ac_type" ;;
1957
esac
1958
fi
1959
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960
       eval as_val=\$$3
1961
   if test "x$as_val" = x""no; then :
1962
 
1963
else
1964
  break
1965
fi
1966
     done
1967
fi
1968
eval ac_res=\$$3
1969
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970
$as_echo "$ac_res" >&6; }
1971
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972
 
1973
} @%:@ ac_fn_c_find_uintX_t
1974
 
1975
@%:@ ac_fn_cxx_check_decl LINENO SYMBOL VAR
1976
@%:@ --------------------------------------
1977
@%:@ Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1978
ac_fn_cxx_check_decl ()
1979
{
1980
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1982
$as_echo_n "checking whether $2 is declared... " >&6; }
1983
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984
  $as_echo_n "(cached) " >&6
1985
else
1986
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987
/* end confdefs.h.  */
1988
$4
1989
int
1990
main ()
1991
{
1992
@%:@ifndef $2
1993
  (void) $2;
1994
@%:@endif
1995
 
1996
  ;
1997
  return 0;
1998
}
1999
_ACEOF
2000
if ac_fn_cxx_try_compile "$LINENO"; then :
2001
  eval "$3=yes"
2002
else
2003
  eval "$3=no"
2004
fi
2005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006
fi
2007
eval ac_res=\$$3
2008
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009
$as_echo "$ac_res" >&6; }
2010
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011
 
2012
} @%:@ ac_fn_cxx_check_decl
2013
 
2014
@%:@ ac_fn_cxx_check_func LINENO FUNC VAR
2015
@%:@ ------------------------------------
2016
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
2017
ac_fn_cxx_check_func ()
2018
{
2019
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021
$as_echo_n "checking for $2... " >&6; }
2022
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2023
  $as_echo_n "(cached) " >&6
2024
else
2025
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026
/* end confdefs.h.  */
2027
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2029
#define $2 innocuous_$2
2030
 
2031
/* System header to define __stub macros and hopefully few prototypes,
2032
    which can conflict with char $2 (); below.
2033
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034
    <limits.h> exists even on freestanding compilers.  */
2035
 
2036
#ifdef __STDC__
2037
# include <limits.h>
2038
#else
2039
# include <assert.h>
2040
#endif
2041
 
2042
#undef $2
2043
 
2044
/* Override any GCC internal prototype to avoid an error.
2045
   Use char because int might match the return type of a GCC
2046
   builtin and then its argument prototype would still apply.  */
2047
#ifdef __cplusplus
2048
extern "C"
2049
#endif
2050
char $2 ();
2051
/* The GNU C library defines this for functions which it implements
2052
    to always fail with ENOSYS.  Some functions are actually named
2053
    something starting with __ and the normal name is an alias.  */
2054
#if defined __stub_$2 || defined __stub___$2
2055
choke me
2056
#endif
2057
 
2058
int
2059
main ()
2060
{
2061
return $2 ();
2062
  ;
2063
  return 0;
2064
}
2065
_ACEOF
2066
if ac_fn_cxx_try_link "$LINENO"; then :
2067
  eval "$3=yes"
2068
else
2069
  eval "$3=no"
2070
fi
2071
rm -f core conftest.err conftest.$ac_objext \
2072
    conftest$ac_exeext conftest.$ac_ext
2073
fi
2074
eval ac_res=\$$3
2075
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076
$as_echo "$ac_res" >&6; }
2077
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078
 
2079
} @%:@ ac_fn_cxx_check_func
2080
cat >config.log <<_ACEOF
2081
This file contains any messages produced by compilers while
2082
running configure, to aid debugging if configure makes a mistake.
2083
 
2084
It was created by thrift $as_me 0.2.0, which was
2085
generated by GNU Autoconf 2.64.  Invocation command line was
2086
 
2087
  $ $0 $@
2088
 
2089
_ACEOF
2090
exec 5>>config.log
2091
{
2092
cat <<_ASUNAME
2093
## --------- ##
2094
## Platform. ##
2095
## --------- ##
2096
 
2097
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2098
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2099
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2100
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2101
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2102
 
2103
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2105
 
2106
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2107
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2108
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2109
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2110
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2111
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2112
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2113
 
2114
_ASUNAME
2115
 
2116
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117
for as_dir in $PATH
2118
do
2119
  IFS=$as_save_IFS
2120
  test -z "$as_dir" && as_dir=.
2121
    $as_echo "PATH: $as_dir"
2122
  done
2123
IFS=$as_save_IFS
2124
 
2125
} >&5
2126
 
2127
cat >&5 <<_ACEOF
2128
 
2129
 
2130
## ----------- ##
2131
## Core tests. ##
2132
## ----------- ##
2133
 
2134
_ACEOF
2135
 
2136
 
2137
# Keep a trace of the command line.
2138
# Strip out --no-create and --no-recursion so they do not pile up.
2139
# Strip out --silent because we don't want to record it for future runs.
2140
# Also quote any args containing shell meta-characters.
2141
# Make two passes to allow for proper duplicate-argument suppression.
2142
ac_configure_args=
2143
ac_configure_args0=
2144
ac_configure_args1=
2145
ac_must_keep_next=false
2146
for ac_pass in 1 2
2147
do
2148
  for ac_arg
2149
  do
2150
    case $ac_arg in
2151
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2152
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2153
    | -silent | --silent | --silen | --sile | --sil)
2154
      continue ;;
2155
    *\'*)
2156
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2157
    esac
2158
    case $ac_pass in
2159
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2160
    2)
2161
      as_fn_append ac_configure_args1 " '$ac_arg'"
2162
      if test $ac_must_keep_next = true; then
2163
	ac_must_keep_next=false # Got value, back to normal.
2164
      else
2165
	case $ac_arg in
2166
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2167
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2168
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2169
	  | -with-* | --with-* | -without-* | --without-* | --x)
2170
	    case "$ac_configure_args0 " in
2171
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2172
	    esac
2173
	    ;;
2174
	  -* ) ac_must_keep_next=true ;;
2175
	esac
2176
      fi
2177
      as_fn_append ac_configure_args " '$ac_arg'"
2178
      ;;
2179
    esac
2180
  done
2181
done
2182
{ ac_configure_args0=; unset ac_configure_args0;}
2183
{ ac_configure_args1=; unset ac_configure_args1;}
2184
 
2185
# When interrupted or exit'd, cleanup temporary files, and complete
2186
# config.log.  We remove comments because anyway the quotes in there
2187
# would cause problems or look ugly.
2188
# WARNING: Use '\'' to represent an apostrophe within the trap.
2189
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2190
trap 'exit_status=$?
2191
  # Save into config.log some information that might help in debugging.
2192
  {
2193
    echo
2194
 
2195
    cat <<\_ASBOX
2196
## ---------------- ##
2197
## Cache variables. ##
2198
## ---------------- ##
2199
_ASBOX
2200
    echo
2201
    # The following way of writing the cache mishandles newlines in values,
2202
(
2203
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2204
    eval ac_val=\$$ac_var
2205
    case $ac_val in #(
2206
    *${as_nl}*)
2207
      case $ac_var in #(
2208
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2209
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2210
      esac
2211
      case $ac_var in #(
2212
      _ | IFS | as_nl) ;; #(
2213
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2214
      *) { eval $ac_var=; unset $ac_var;} ;;
2215
      esac ;;
2216
    esac
2217
  done
2218
  (set) 2>&1 |
2219
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2220
    *${as_nl}ac_space=\ *)
2221
      sed -n \
2222
	"s/'\''/'\''\\\\'\'''\''/g;
2223
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2224
      ;; #(
2225
    *)
2226
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2227
      ;;
2228
    esac |
2229
    sort
2230
)
2231
    echo
2232
 
2233
    cat <<\_ASBOX
2234
## ----------------- ##
2235
## Output variables. ##
2236
## ----------------- ##
2237
_ASBOX
2238
    echo
2239
    for ac_var in $ac_subst_vars
2240
    do
2241
      eval ac_val=\$$ac_var
2242
      case $ac_val in
2243
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244
      esac
2245
      $as_echo "$ac_var='\''$ac_val'\''"
2246
    done | sort
2247
    echo
2248
 
2249
    if test -n "$ac_subst_files"; then
2250
      cat <<\_ASBOX
2251
## ------------------- ##
2252
## File substitutions. ##
2253
## ------------------- ##
2254
_ASBOX
2255
      echo
2256
      for ac_var in $ac_subst_files
2257
      do
2258
	eval ac_val=\$$ac_var
2259
	case $ac_val in
2260
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261
	esac
2262
	$as_echo "$ac_var='\''$ac_val'\''"
2263
      done | sort
2264
      echo
2265
    fi
2266
 
2267
    if test -s confdefs.h; then
2268
      cat <<\_ASBOX
2269
## ----------- ##
2270
## confdefs.h. ##
2271
## ----------- ##
2272
_ASBOX
2273
      echo
2274
      cat confdefs.h
2275
      echo
2276
    fi
2277
    test "$ac_signal" != 0 &&
2278
      $as_echo "$as_me: caught signal $ac_signal"
2279
    $as_echo "$as_me: exit $exit_status"
2280
  } >&5
2281
  rm -f core *.core core.conftest.* &&
2282
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2283
    exit $exit_status
2284
' 0
2285
for ac_signal in 1 2 13 15; do
2286
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2287
done
2288
ac_signal=0
2289
 
2290
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2291
rm -f -r conftest* confdefs.h
2292
 
2293
$as_echo "/* confdefs.h */" > confdefs.h
2294
 
2295
# Predefined preprocessor variables.
2296
 
2297
cat >>confdefs.h <<_ACEOF
2298
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2299
_ACEOF
2300
 
2301
cat >>confdefs.h <<_ACEOF
2302
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2303
_ACEOF
2304
 
2305
cat >>confdefs.h <<_ACEOF
2306
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2307
_ACEOF
2308
 
2309
cat >>confdefs.h <<_ACEOF
2310
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2311
_ACEOF
2312
 
2313
cat >>confdefs.h <<_ACEOF
2314
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2315
_ACEOF
2316
 
2317
cat >>confdefs.h <<_ACEOF
2318
@%:@define PACKAGE_URL "$PACKAGE_URL"
2319
_ACEOF
2320
 
2321
 
2322
# Let the site file select an alternate cache file if it wants to.
2323
# Prefer an explicitly selected file to automatically selected ones.
2324
ac_site_file1=NONE
2325
ac_site_file2=NONE
2326
if test -n "$CONFIG_SITE"; then
2327
  ac_site_file1=$CONFIG_SITE
2328
elif test "x$prefix" != xNONE; then
2329
  ac_site_file1=$prefix/share/config.site
2330
  ac_site_file2=$prefix/etc/config.site
2331
else
2332
  ac_site_file1=$ac_default_prefix/share/config.site
2333
  ac_site_file2=$ac_default_prefix/etc/config.site
2334
fi
2335
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2336
do
2337
  test "x$ac_site_file" = xNONE && continue
2338
  if test -r "$ac_site_file"; then
2339
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2340
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2341
    sed 's/^/| /' "$ac_site_file" >&5
2342
    . "$ac_site_file"
2343
  fi
2344
done
2345
 
2346
if test -r "$cache_file"; then
2347
  # Some versions of bash will fail to source /dev/null (special
2348
  # files actually), so we avoid doing that.
2349
  if test -f "$cache_file"; then
2350
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2351
$as_echo "$as_me: loading cache $cache_file" >&6;}
2352
    case $cache_file in
2353
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2354
      *)                      . "./$cache_file";;
2355
    esac
2356
  fi
2357
else
2358
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2359
$as_echo "$as_me: creating cache $cache_file" >&6;}
2360
  >$cache_file
2361
fi
2362
 
2363
# Check that the precious variables saved in the cache have kept the same
2364
# value.
2365
ac_cache_corrupted=false
2366
for ac_var in $ac_precious_vars; do
2367
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2368
  eval ac_new_set=\$ac_env_${ac_var}_set
2369
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2370
  eval ac_new_val=\$ac_env_${ac_var}_value
2371
  case $ac_old_set,$ac_new_set in
2372
    set,)
2373
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2374
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2375
      ac_cache_corrupted=: ;;
2376
    ,set)
2377
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2378
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2379
      ac_cache_corrupted=: ;;
2380
    ,);;
2381
    *)
2382
      if test "x$ac_old_val" != "x$ac_new_val"; then
2383
	# differences in whitespace do not lead to failure.
2384
	ac_old_val_w=`echo x $ac_old_val`
2385
	ac_new_val_w=`echo x $ac_new_val`
2386
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2387
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2388
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2389
	  ac_cache_corrupted=:
2390
	else
2391
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2392
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2393
	  eval $ac_var=\$ac_old_val
2394
	fi
2395
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2396
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2397
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2398
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2399
      fi;;
2400
  esac
2401
  # Pass precious variables to config.status.
2402
  if test "$ac_new_set" = set; then
2403
    case $ac_new_val in
2404
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2405
    *) ac_arg=$ac_var=$ac_new_val ;;
2406
    esac
2407
    case " $ac_configure_args " in
2408
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2409
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2410
    esac
2411
  fi
2412
done
2413
if $ac_cache_corrupted; then
2414
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2415
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2416
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2417
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2418
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2419
fi
2420
## -------------------- ##
2421
## Main body of script. ##
2422
## -------------------- ##
2423
 
2424
ac_ext=c
2425
ac_cpp='$CPP $CPPFLAGS'
2426
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429
 
2430
 
2431
 
2432
ac_aux_dir=
2433
for ac_dir in . "$srcdir"/.; do
2434
  for ac_t in install-sh install.sh shtool; do
2435
    if test -f "$ac_dir/$ac_t"; then
2436
      ac_aux_dir=$ac_dir
2437
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2438
      break 2
2439
    fi
2440
  done
2441
done
2442
if test -z "$ac_aux_dir"; then
2443
  as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2444
fi
2445
 
2446
# These three variables are undocumented and unsupported,
2447
# and are intended to be withdrawn in a future Autoconf release.
2448
# They can cause serious problems if a builder's source tree is in a directory
2449
# whose full name contains unusual characters.
2450
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2451
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2452
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2453
 
2454
 
2455
 
2456
AM_INIT_AUTOMAKE
2457
 
2458
 
2459
if test "x$PY_PREFIX" = x; then :
2460
  PY_PREFIX="/usr"
2461
fi
2462
 
2463
 
2464
if test "x$JAVA_PREFIX" = x; then :
2465
  JAVA_PREFIX="/usr/local/lib"
2466
fi
2467
 
2468
ac_ext=c
2469
ac_cpp='$CPP $CPPFLAGS'
2470
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2473
if test -n "$ac_tool_prefix"; then
2474
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2475
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2476
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477
$as_echo_n "checking for $ac_word... " >&6; }
2478
if test "${ac_cv_prog_CC+set}" = set; then :
2479
  $as_echo_n "(cached) " >&6
2480
else
2481
  if test -n "$CC"; then
2482
  ac_cv_prog_CC="$CC" # Let the user override the test.
2483
else
2484
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485
for as_dir in $PATH
2486
do
2487
  IFS=$as_save_IFS
2488
  test -z "$as_dir" && as_dir=.
2489
    for ac_exec_ext in '' $ac_executable_extensions; do
2490
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2492
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493
    break 2
2494
  fi
2495
done
2496
  done
2497
IFS=$as_save_IFS
2498
 
2499
fi
2500
fi
2501
CC=$ac_cv_prog_CC
2502
if test -n "$CC"; then
2503
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2504
$as_echo "$CC" >&6; }
2505
else
2506
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507
$as_echo "no" >&6; }
2508
fi
2509
 
2510
 
2511
fi
2512
if test -z "$ac_cv_prog_CC"; then
2513
  ac_ct_CC=$CC
2514
  # Extract the first word of "gcc", so it can be a program name with args.
2515
set dummy gcc; ac_word=$2
2516
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517
$as_echo_n "checking for $ac_word... " >&6; }
2518
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2519
  $as_echo_n "(cached) " >&6
2520
else
2521
  if test -n "$ac_ct_CC"; then
2522
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2523
else
2524
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525
for as_dir in $PATH
2526
do
2527
  IFS=$as_save_IFS
2528
  test -z "$as_dir" && as_dir=.
2529
    for ac_exec_ext in '' $ac_executable_extensions; do
2530
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531
    ac_cv_prog_ac_ct_CC="gcc"
2532
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533
    break 2
2534
  fi
2535
done
2536
  done
2537
IFS=$as_save_IFS
2538
 
2539
fi
2540
fi
2541
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2542
if test -n "$ac_ct_CC"; then
2543
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2544
$as_echo "$ac_ct_CC" >&6; }
2545
else
2546
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547
$as_echo "no" >&6; }
2548
fi
2549
 
2550
  if test "x$ac_ct_CC" = x; then
2551
    CC=""
2552
  else
2553
    case $cross_compiling:$ac_tool_warned in
2554
yes:)
2555
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2556
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2557
ac_tool_warned=yes ;;
2558
esac
2559
    CC=$ac_ct_CC
2560
  fi
2561
else
2562
  CC="$ac_cv_prog_CC"
2563
fi
2564
 
2565
if test -z "$CC"; then
2566
          if test -n "$ac_tool_prefix"; then
2567
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2568
set dummy ${ac_tool_prefix}cc; ac_word=$2
2569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570
$as_echo_n "checking for $ac_word... " >&6; }
2571
if test "${ac_cv_prog_CC+set}" = set; then :
2572
  $as_echo_n "(cached) " >&6
2573
else
2574
  if test -n "$CC"; then
2575
  ac_cv_prog_CC="$CC" # Let the user override the test.
2576
else
2577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578
for as_dir in $PATH
2579
do
2580
  IFS=$as_save_IFS
2581
  test -z "$as_dir" && as_dir=.
2582
    for ac_exec_ext in '' $ac_executable_extensions; do
2583
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2585
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586
    break 2
2587
  fi
2588
done
2589
  done
2590
IFS=$as_save_IFS
2591
 
2592
fi
2593
fi
2594
CC=$ac_cv_prog_CC
2595
if test -n "$CC"; then
2596
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2597
$as_echo "$CC" >&6; }
2598
else
2599
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600
$as_echo "no" >&6; }
2601
fi
2602
 
2603
 
2604
  fi
2605
fi
2606
if test -z "$CC"; then
2607
  # Extract the first word of "cc", so it can be a program name with args.
2608
set dummy cc; ac_word=$2
2609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610
$as_echo_n "checking for $ac_word... " >&6; }
2611
if test "${ac_cv_prog_CC+set}" = set; then :
2612
  $as_echo_n "(cached) " >&6
2613
else
2614
  if test -n "$CC"; then
2615
  ac_cv_prog_CC="$CC" # Let the user override the test.
2616
else
2617
  ac_prog_rejected=no
2618
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619
for as_dir in $PATH
2620
do
2621
  IFS=$as_save_IFS
2622
  test -z "$as_dir" && as_dir=.
2623
    for ac_exec_ext in '' $ac_executable_extensions; do
2624
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2626
       ac_prog_rejected=yes
2627
       continue
2628
     fi
2629
    ac_cv_prog_CC="cc"
2630
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631
    break 2
2632
  fi
2633
done
2634
  done
2635
IFS=$as_save_IFS
2636
 
2637
if test $ac_prog_rejected = yes; then
2638
  # We found a bogon in the path, so make sure we never use it.
2639
  set dummy $ac_cv_prog_CC
2640
  shift
2641
  if test $@%:@ != 0; then
2642
    # We chose a different compiler from the bogus one.
2643
    # However, it has the same basename, so the bogon will be chosen
2644
    # first if we set CC to just the basename; use the full file name.
2645
    shift
2646
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2647
  fi
2648
fi
2649
fi
2650
fi
2651
CC=$ac_cv_prog_CC
2652
if test -n "$CC"; then
2653
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2654
$as_echo "$CC" >&6; }
2655
else
2656
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657
$as_echo "no" >&6; }
2658
fi
2659
 
2660
 
2661
fi
2662
if test -z "$CC"; then
2663
  if test -n "$ac_tool_prefix"; then
2664
  for ac_prog in cl.exe
2665
  do
2666
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2667
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669
$as_echo_n "checking for $ac_word... " >&6; }
2670
if test "${ac_cv_prog_CC+set}" = set; then :
2671
  $as_echo_n "(cached) " >&6
2672
else
2673
  if test -n "$CC"; then
2674
  ac_cv_prog_CC="$CC" # Let the user override the test.
2675
else
2676
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677
for as_dir in $PATH
2678
do
2679
  IFS=$as_save_IFS
2680
  test -z "$as_dir" && as_dir=.
2681
    for ac_exec_ext in '' $ac_executable_extensions; do
2682
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2684
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685
    break 2
2686
  fi
2687
done
2688
  done
2689
IFS=$as_save_IFS
2690
 
2691
fi
2692
fi
2693
CC=$ac_cv_prog_CC
2694
if test -n "$CC"; then
2695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2696
$as_echo "$CC" >&6; }
2697
else
2698
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699
$as_echo "no" >&6; }
2700
fi
2701
 
2702
 
2703
    test -n "$CC" && break
2704
  done
2705
fi
2706
if test -z "$CC"; then
2707
  ac_ct_CC=$CC
2708
  for ac_prog in cl.exe
2709
do
2710
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2711
set dummy $ac_prog; ac_word=$2
2712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713
$as_echo_n "checking for $ac_word... " >&6; }
2714
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2715
  $as_echo_n "(cached) " >&6
2716
else
2717
  if test -n "$ac_ct_CC"; then
2718
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2719
else
2720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721
for as_dir in $PATH
2722
do
2723
  IFS=$as_save_IFS
2724
  test -z "$as_dir" && as_dir=.
2725
    for ac_exec_ext in '' $ac_executable_extensions; do
2726
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727
    ac_cv_prog_ac_ct_CC="$ac_prog"
2728
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729
    break 2
2730
  fi
2731
done
2732
  done
2733
IFS=$as_save_IFS
2734
 
2735
fi
2736
fi
2737
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2738
if test -n "$ac_ct_CC"; then
2739
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2740
$as_echo "$ac_ct_CC" >&6; }
2741
else
2742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743
$as_echo "no" >&6; }
2744
fi
2745
 
2746
 
2747
  test -n "$ac_ct_CC" && break
2748
done
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
fi
2762
 
2763
fi
2764
 
2765
 
2766
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2767
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2768
as_fn_error "no acceptable C compiler found in \$PATH
2769
See \`config.log' for more details." "$LINENO" 5; }
2770
 
2771
# Provide some information about the compiler.
2772
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2773
set X $ac_compile
2774
ac_compiler=$2
2775
for ac_option in --version -v -V -qversion; do
2776
  { { ac_try="$ac_compiler $ac_option >&5"
2777
case "(($ac_try" in
2778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779
  *) ac_try_echo=$ac_try;;
2780
esac
2781
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2782
$as_echo "$ac_try_echo"; } >&5
2783
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2784
  ac_status=$?
2785
  if test -s conftest.err; then
2786
    sed '10a\
2787
... rest of stderr output deleted ...
2788
         10q' conftest.err >conftest.er1
2789
    cat conftest.er1 >&5
2790
    rm -f conftest.er1 conftest.err
2791
  fi
2792
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793
  test $ac_status = 0; }
2794
done
2795
 
2796
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2797
/* end confdefs.h.  */
2798
@%:@include <stdio.h>
2799
int
2800
main ()
2801
{
2802
FILE *f = fopen ("conftest.out", "w");
2803
 return ferror (f) || fclose (f) != 0;
2804
 
2805
  ;
2806
  return 0;
2807
}
2808
_ACEOF
2809
ac_clean_files_save=$ac_clean_files
2810
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2811
# Try to create an executable without -o first, disregard a.out.
2812
# It will help us diagnose broken compilers, and finding out an intuition
2813
# of exeext.
2814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2815
$as_echo_n "checking for C compiler default output file name... " >&6; }
2816
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2817
 
2818
# The possible output files:
2819
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2820
 
2821
ac_rmfiles=
2822
for ac_file in $ac_files
2823
do
2824
  case $ac_file in
2825
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2826
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2827
  esac
2828
done
2829
rm -f $ac_rmfiles
2830
 
2831
if { { ac_try="$ac_link_default"
2832
case "(($ac_try" in
2833
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834
  *) ac_try_echo=$ac_try;;
2835
esac
2836
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2837
$as_echo "$ac_try_echo"; } >&5
2838
  (eval "$ac_link_default") 2>&5
2839
  ac_status=$?
2840
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2841
  test $ac_status = 0; }; then :
2842
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2843
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2844
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2845
# so that the user can short-circuit this test for compilers unknown to
2846
# Autoconf.
2847
for ac_file in $ac_files ''
2848
do
2849
  test -f "$ac_file" || continue
2850
  case $ac_file in
2851
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2852
	;;
2853
    [ab].out )
2854
	# We found the default executable, but exeext='' is most
2855
	# certainly right.
2856
	break;;
2857
    *.* )
2858
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2859
	then :; else
2860
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2861
	fi
2862
	# We set ac_cv_exeext here because the later test for it is not
2863
	# safe: cross compilers may not add the suffix if given an `-o'
2864
	# argument, so we may need to know it at that point already.
2865
	# Even if this section looks crufty: it has the advantage of
2866
	# actually working.
2867
	break;;
2868
    * )
2869
	break;;
2870
  esac
2871
done
2872
test "$ac_cv_exeext" = no && ac_cv_exeext=
2873
 
2874
else
2875
  ac_file=''
2876
fi
2877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2878
$as_echo "$ac_file" >&6; }
2879
if test -z "$ac_file"; then :
2880
  $as_echo "$as_me: failed program was:" >&5
2881
sed 's/^/| /' conftest.$ac_ext >&5
2882
 
2883
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2884
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2885
{ as_fn_set_status 77
2886
as_fn_error "C compiler cannot create executables
2887
See \`config.log' for more details." "$LINENO" 5; }; }
2888
fi
2889
ac_exeext=$ac_cv_exeext
2890
 
2891
# Check that the compiler produces executables we can run.  If not, either
2892
# the compiler is broken, or we cross compile.
2893
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2894
$as_echo_n "checking whether the C compiler works... " >&6; }
2895
# If not cross compiling, check that we can run a simple program.
2896
if test "$cross_compiling" != yes; then
2897
  if { ac_try='./$ac_file'
2898
  { { case "(($ac_try" in
2899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900
  *) ac_try_echo=$ac_try;;
2901
esac
2902
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903
$as_echo "$ac_try_echo"; } >&5
2904
  (eval "$ac_try") 2>&5
2905
  ac_status=$?
2906
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907
  test $ac_status = 0; }; }; then
2908
    cross_compiling=no
2909
  else
2910
    if test "$cross_compiling" = maybe; then
2911
	cross_compiling=yes
2912
    else
2913
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915
as_fn_error "cannot run C compiled programs.
2916
If you meant to cross compile, use \`--host'.
2917
See \`config.log' for more details." "$LINENO" 5; }
2918
    fi
2919
  fi
2920
fi
2921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922
$as_echo "yes" >&6; }
2923
 
2924
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2925
ac_clean_files=$ac_clean_files_save
2926
# Check that the compiler produces executables we can run.  If not, either
2927
# the compiler is broken, or we cross compile.
2928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2929
$as_echo_n "checking whether we are cross compiling... " >&6; }
2930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2931
$as_echo "$cross_compiling" >&6; }
2932
 
2933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2934
$as_echo_n "checking for suffix of executables... " >&6; }
2935
if { { ac_try="$ac_link"
2936
case "(($ac_try" in
2937
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938
  *) ac_try_echo=$ac_try;;
2939
esac
2940
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2941
$as_echo "$ac_try_echo"; } >&5
2942
  (eval "$ac_link") 2>&5
2943
  ac_status=$?
2944
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2945
  test $ac_status = 0; }; then :
2946
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2947
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2948
# work properly (i.e., refer to `conftest.exe'), while it won't with
2949
# `rm'.
2950
for ac_file in conftest.exe conftest conftest.*; do
2951
  test -f "$ac_file" || continue
2952
  case $ac_file in
2953
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2954
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2955
	  break;;
2956
    * ) break;;
2957
  esac
2958
done
2959
else
2960
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2961
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2962
as_fn_error "cannot compute suffix of executables: cannot compile and link
2963
See \`config.log' for more details." "$LINENO" 5; }
2964
fi
2965
rm -f conftest$ac_cv_exeext
2966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2967
$as_echo "$ac_cv_exeext" >&6; }
2968
 
2969
rm -f conftest.$ac_ext
2970
EXEEXT=$ac_cv_exeext
2971
ac_exeext=$EXEEXT
2972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2973
$as_echo_n "checking for suffix of object files... " >&6; }
2974
if test "${ac_cv_objext+set}" = set; then :
2975
  $as_echo_n "(cached) " >&6
2976
else
2977
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978
/* end confdefs.h.  */
2979
 
2980
int
2981
main ()
2982
{
2983
 
2984
  ;
2985
  return 0;
2986
}
2987
_ACEOF
2988
rm -f conftest.o conftest.obj
2989
if { { ac_try="$ac_compile"
2990
case "(($ac_try" in
2991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992
  *) ac_try_echo=$ac_try;;
2993
esac
2994
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995
$as_echo "$ac_try_echo"; } >&5
2996
  (eval "$ac_compile") 2>&5
2997
  ac_status=$?
2998
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999
  test $ac_status = 0; }; then :
3000
  for ac_file in conftest.o conftest.obj conftest.*; do
3001
  test -f "$ac_file" || continue;
3002
  case $ac_file in
3003
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3004
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3005
       break;;
3006
  esac
3007
done
3008
else
3009
  $as_echo "$as_me: failed program was:" >&5
3010
sed 's/^/| /' conftest.$ac_ext >&5
3011
 
3012
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3013
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014
as_fn_error "cannot compute suffix of object files: cannot compile
3015
See \`config.log' for more details." "$LINENO" 5; }
3016
fi
3017
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3018
fi
3019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3020
$as_echo "$ac_cv_objext" >&6; }
3021
OBJEXT=$ac_cv_objext
3022
ac_objext=$OBJEXT
3023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3024
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3025
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3026
  $as_echo_n "(cached) " >&6
3027
else
3028
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029
/* end confdefs.h.  */
3030
 
3031
int
3032
main ()
3033
{
3034
#ifndef __GNUC__
3035
       choke me
3036
#endif
3037
 
3038
  ;
3039
  return 0;
3040
}
3041
_ACEOF
3042
if ac_fn_c_try_compile "$LINENO"; then :
3043
  ac_compiler_gnu=yes
3044
else
3045
  ac_compiler_gnu=no
3046
fi
3047
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3049
 
3050
fi
3051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3052
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3053
if test $ac_compiler_gnu = yes; then
3054
  GCC=yes
3055
else
3056
  GCC=
3057
fi
3058
ac_test_CFLAGS=${CFLAGS+set}
3059
ac_save_CFLAGS=$CFLAGS
3060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3061
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3062
if test "${ac_cv_prog_cc_g+set}" = set; then :
3063
  $as_echo_n "(cached) " >&6
3064
else
3065
  ac_save_c_werror_flag=$ac_c_werror_flag
3066
   ac_c_werror_flag=yes
3067
   ac_cv_prog_cc_g=no
3068
   CFLAGS="-g"
3069
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070
/* end confdefs.h.  */
3071
 
3072
int
3073
main ()
3074
{
3075
 
3076
  ;
3077
  return 0;
3078
}
3079
_ACEOF
3080
if ac_fn_c_try_compile "$LINENO"; then :
3081
  ac_cv_prog_cc_g=yes
3082
else
3083
  CFLAGS=""
3084
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085
/* end confdefs.h.  */
3086
 
3087
int
3088
main ()
3089
{
3090
 
3091
  ;
3092
  return 0;
3093
}
3094
_ACEOF
3095
if ac_fn_c_try_compile "$LINENO"; then :
3096
 
3097
else
3098
  ac_c_werror_flag=$ac_save_c_werror_flag
3099
	 CFLAGS="-g"
3100
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101
/* end confdefs.h.  */
3102
 
3103
int
3104
main ()
3105
{
3106
 
3107
  ;
3108
  return 0;
3109
}
3110
_ACEOF
3111
if ac_fn_c_try_compile "$LINENO"; then :
3112
  ac_cv_prog_cc_g=yes
3113
fi
3114
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115
fi
3116
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117
fi
3118
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119
   ac_c_werror_flag=$ac_save_c_werror_flag
3120
fi
3121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3122
$as_echo "$ac_cv_prog_cc_g" >&6; }
3123
if test "$ac_test_CFLAGS" = set; then
3124
  CFLAGS=$ac_save_CFLAGS
3125
elif test $ac_cv_prog_cc_g = yes; then
3126
  if test "$GCC" = yes; then
3127
    CFLAGS="-g -O2"
3128
  else
3129
    CFLAGS="-g"
3130
  fi
3131
else
3132
  if test "$GCC" = yes; then
3133
    CFLAGS="-O2"
3134
  else
3135
    CFLAGS=
3136
  fi
3137
fi
3138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3139
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3140
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3141
  $as_echo_n "(cached) " >&6
3142
else
3143
  ac_cv_prog_cc_c89=no
3144
ac_save_CC=$CC
3145
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146
/* end confdefs.h.  */
3147
#include <stdarg.h>
3148
#include <stdio.h>
3149
#include <sys/types.h>
3150
#include <sys/stat.h>
3151
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3152
struct buf { int x; };
3153
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3154
static char *e (p, i)
3155
     char **p;
3156
     int i;
3157
{
3158
  return p[i];
3159
}
3160
static char *f (char * (*g) (char **, int), char **p, ...)
3161
{
3162
  char *s;
3163
  va_list v;
3164
  va_start (v,p);
3165
  s = g (p, va_arg (v,int));
3166
  va_end (v);
3167
  return s;
3168
}
3169
 
3170
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3171
   function prototypes and stuff, but not '\xHH' hex character constants.
3172
   These don't provoke an error unfortunately, instead are silently treated
3173
   as 'x'.  The following induces an error, until -std is added to get
3174
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3175
   array size at least.  It's necessary to write '\x00'==0 to get something
3176
   that's true only with -std.  */
3177
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3178
 
3179
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3180
   inside strings and character constants.  */
3181
#define FOO(x) 'x'
3182
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3183
 
3184
int test (int i, double x);
3185
struct s1 {int (*f) (int a);};
3186
struct s2 {int (*f) (double a);};
3187
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3188
int argc;
3189
char **argv;
3190
int
3191
main ()
3192
{
3193
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3194
  ;
3195
  return 0;
3196
}
3197
_ACEOF
3198
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3199
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3200
do
3201
  CC="$ac_save_CC $ac_arg"
3202
  if ac_fn_c_try_compile "$LINENO"; then :
3203
  ac_cv_prog_cc_c89=$ac_arg
3204
fi
3205
rm -f core conftest.err conftest.$ac_objext
3206
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3207
done
3208
rm -f conftest.$ac_ext
3209
CC=$ac_save_CC
3210
 
3211
fi
3212
# AC_CACHE_VAL
3213
case "x$ac_cv_prog_cc_c89" in
3214
  x)
3215
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3216
$as_echo "none needed" >&6; } ;;
3217
  xno)
3218
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3219
$as_echo "unsupported" >&6; } ;;
3220
  *)
3221
    CC="$CC $ac_cv_prog_cc_c89"
3222
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3223
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3224
esac
3225
if test "x$ac_cv_prog_cc_c89" != xno; then :
3226
 
3227
fi
3228
 
3229
ac_ext=c
3230
ac_cpp='$CPP $CPPFLAGS'
3231
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234
 
3235
ac_ext=c
3236
ac_cpp='$CPP $CPPFLAGS'
3237
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3241
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3242
# On Suns, sometimes $CPP names a directory.
3243
if test -n "$CPP" && test -d "$CPP"; then
3244
  CPP=
3245
fi
3246
if test -z "$CPP"; then
3247
  if test "${ac_cv_prog_CPP+set}" = set; then :
3248
  $as_echo_n "(cached) " >&6
3249
else
3250
      # Double quotes because CPP needs to be expanded
3251
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3252
    do
3253
      ac_preproc_ok=false
3254
for ac_c_preproc_warn_flag in '' yes
3255
do
3256
  # Use a header file that comes with gcc, so configuring glibc
3257
  # with a fresh cross-compiler works.
3258
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3259
  # <limits.h> exists even on freestanding compilers.
3260
  # On the NeXT, cc -E runs the code through the compiler's parser,
3261
  # not just through cpp. "Syntax error" is here to catch this case.
3262
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263
/* end confdefs.h.  */
3264
@%:@ifdef __STDC__
3265
@%:@ include <limits.h>
3266
@%:@else
3267
@%:@ include <assert.h>
3268
@%:@endif
3269
		     Syntax error
3270
_ACEOF
3271
if ac_fn_c_try_cpp "$LINENO"; then :
3272
 
3273
else
3274
  # Broken: fails on valid input.
3275
continue
3276
fi
3277
rm -f conftest.err conftest.$ac_ext
3278
 
3279
  # OK, works on sane cases.  Now check whether nonexistent headers
3280
  # can be detected and how.
3281
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282
/* end confdefs.h.  */
3283
@%:@include <ac_nonexistent.h>
3284
_ACEOF
3285
if ac_fn_c_try_cpp "$LINENO"; then :
3286
  # Broken: success on invalid input.
3287
continue
3288
else
3289
  # Passes both tests.
3290
ac_preproc_ok=:
3291
break
3292
fi
3293
rm -f conftest.err conftest.$ac_ext
3294
 
3295
done
3296
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3297
rm -f conftest.err conftest.$ac_ext
3298
if $ac_preproc_ok; then :
3299
  break
3300
fi
3301
 
3302
    done
3303
    ac_cv_prog_CPP=$CPP
3304
 
3305
fi
3306
  CPP=$ac_cv_prog_CPP
3307
else
3308
  ac_cv_prog_CPP=$CPP
3309
fi
3310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3311
$as_echo "$CPP" >&6; }
3312
ac_preproc_ok=false
3313
for ac_c_preproc_warn_flag in '' yes
3314
do
3315
  # Use a header file that comes with gcc, so configuring glibc
3316
  # with a fresh cross-compiler works.
3317
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3318
  # <limits.h> exists even on freestanding compilers.
3319
  # On the NeXT, cc -E runs the code through the compiler's parser,
3320
  # not just through cpp. "Syntax error" is here to catch this case.
3321
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322
/* end confdefs.h.  */
3323
@%:@ifdef __STDC__
3324
@%:@ include <limits.h>
3325
@%:@else
3326
@%:@ include <assert.h>
3327
@%:@endif
3328
		     Syntax error
3329
_ACEOF
3330
if ac_fn_c_try_cpp "$LINENO"; then :
3331
 
3332
else
3333
  # Broken: fails on valid input.
3334
continue
3335
fi
3336
rm -f conftest.err conftest.$ac_ext
3337
 
3338
  # OK, works on sane cases.  Now check whether nonexistent headers
3339
  # can be detected and how.
3340
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341
/* end confdefs.h.  */
3342
@%:@include <ac_nonexistent.h>
3343
_ACEOF
3344
if ac_fn_c_try_cpp "$LINENO"; then :
3345
  # Broken: success on invalid input.
3346
continue
3347
else
3348
  # Passes both tests.
3349
ac_preproc_ok=:
3350
break
3351
fi
3352
rm -f conftest.err conftest.$ac_ext
3353
 
3354
done
3355
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356
rm -f conftest.err conftest.$ac_ext
3357
if $ac_preproc_ok; then :
3358
 
3359
else
3360
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3363
See \`config.log' for more details." "$LINENO" 5; }
3364
fi
3365
 
3366
ac_ext=c
3367
ac_cpp='$CPP $CPPFLAGS'
3368
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371
 
3372
ac_ext=cpp
3373
ac_cpp='$CXXCPP $CPPFLAGS'
3374
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3377
if test -z "$CXX"; then
3378
  if test -n "$CCC"; then
3379
    CXX=$CCC
3380
  else
3381
    if test -n "$ac_tool_prefix"; then
3382
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3383
  do
3384
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3385
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387
$as_echo_n "checking for $ac_word... " >&6; }
3388
if test "${ac_cv_prog_CXX+set}" = set; then :
3389
  $as_echo_n "(cached) " >&6
3390
else
3391
  if test -n "$CXX"; then
3392
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3393
else
3394
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395
for as_dir in $PATH
3396
do
3397
  IFS=$as_save_IFS
3398
  test -z "$as_dir" && as_dir=.
3399
    for ac_exec_ext in '' $ac_executable_extensions; do
3400
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3402
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403
    break 2
3404
  fi
3405
done
3406
  done
3407
IFS=$as_save_IFS
3408
 
3409
fi
3410
fi
3411
CXX=$ac_cv_prog_CXX
3412
if test -n "$CXX"; then
3413
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3414
$as_echo "$CXX" >&6; }
3415
else
3416
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417
$as_echo "no" >&6; }
3418
fi
3419
 
3420
 
3421
    test -n "$CXX" && break
3422
  done
3423
fi
3424
if test -z "$CXX"; then
3425
  ac_ct_CXX=$CXX
3426
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3427
do
3428
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3429
set dummy $ac_prog; ac_word=$2
3430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431
$as_echo_n "checking for $ac_word... " >&6; }
3432
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3433
  $as_echo_n "(cached) " >&6
3434
else
3435
  if test -n "$ac_ct_CXX"; then
3436
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3437
else
3438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439
for as_dir in $PATH
3440
do
3441
  IFS=$as_save_IFS
3442
  test -z "$as_dir" && as_dir=.
3443
    for ac_exec_ext in '' $ac_executable_extensions; do
3444
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445
    ac_cv_prog_ac_ct_CXX="$ac_prog"
3446
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447
    break 2
3448
  fi
3449
done
3450
  done
3451
IFS=$as_save_IFS
3452
 
3453
fi
3454
fi
3455
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3456
if test -n "$ac_ct_CXX"; then
3457
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3458
$as_echo "$ac_ct_CXX" >&6; }
3459
else
3460
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461
$as_echo "no" >&6; }
3462
fi
3463
 
3464
 
3465
  test -n "$ac_ct_CXX" && break
3466
done
3467
 
3468
  if test "x$ac_ct_CXX" = x; then
3469
    CXX="g++"
3470
  else
3471
    case $cross_compiling:$ac_tool_warned in
3472
yes:)
3473
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3474
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3475
ac_tool_warned=yes ;;
3476
esac
3477
    CXX=$ac_ct_CXX
3478
  fi
3479
fi
3480
 
3481
  fi
3482
fi
3483
# Provide some information about the compiler.
3484
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3485
set X $ac_compile
3486
ac_compiler=$2
3487
for ac_option in --version -v -V -qversion; do
3488
  { { ac_try="$ac_compiler $ac_option >&5"
3489
case "(($ac_try" in
3490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491
  *) ac_try_echo=$ac_try;;
3492
esac
3493
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494
$as_echo "$ac_try_echo"; } >&5
3495
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3496
  ac_status=$?
3497
  if test -s conftest.err; then
3498
    sed '10a\
3499
... rest of stderr output deleted ...
3500
         10q' conftest.err >conftest.er1
3501
    cat conftest.er1 >&5
3502
    rm -f conftest.er1 conftest.err
3503
  fi
3504
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505
  test $ac_status = 0; }
3506
done
3507
 
3508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3509
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3510
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3511
  $as_echo_n "(cached) " >&6
3512
else
3513
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514
/* end confdefs.h.  */
3515
 
3516
int
3517
main ()
3518
{
3519
#ifndef __GNUC__
3520
       choke me
3521
#endif
3522
 
3523
  ;
3524
  return 0;
3525
}
3526
_ACEOF
3527
if ac_fn_cxx_try_compile "$LINENO"; then :
3528
  ac_compiler_gnu=yes
3529
else
3530
  ac_compiler_gnu=no
3531
fi
3532
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3534
 
3535
fi
3536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3537
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3538
if test $ac_compiler_gnu = yes; then
3539
  GXX=yes
3540
else
3541
  GXX=
3542
fi
3543
ac_test_CXXFLAGS=${CXXFLAGS+set}
3544
ac_save_CXXFLAGS=$CXXFLAGS
3545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3546
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3547
if test "${ac_cv_prog_cxx_g+set}" = set; then :
3548
  $as_echo_n "(cached) " >&6
3549
else
3550
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3551
   ac_cxx_werror_flag=yes
3552
   ac_cv_prog_cxx_g=no
3553
   CXXFLAGS="-g"
3554
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555
/* end confdefs.h.  */
3556
 
3557
int
3558
main ()
3559
{
3560
 
3561
  ;
3562
  return 0;
3563
}
3564
_ACEOF
3565
if ac_fn_cxx_try_compile "$LINENO"; then :
3566
  ac_cv_prog_cxx_g=yes
3567
else
3568
  CXXFLAGS=""
3569
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570
/* end confdefs.h.  */
3571
 
3572
int
3573
main ()
3574
{
3575
 
3576
  ;
3577
  return 0;
3578
}
3579
_ACEOF
3580
if ac_fn_cxx_try_compile "$LINENO"; then :
3581
 
3582
else
3583
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3584
	 CXXFLAGS="-g"
3585
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586
/* end confdefs.h.  */
3587
 
3588
int
3589
main ()
3590
{
3591
 
3592
  ;
3593
  return 0;
3594
}
3595
_ACEOF
3596
if ac_fn_cxx_try_compile "$LINENO"; then :
3597
  ac_cv_prog_cxx_g=yes
3598
fi
3599
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600
fi
3601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602
fi
3603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3605
fi
3606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3607
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3608
if test "$ac_test_CXXFLAGS" = set; then
3609
  CXXFLAGS=$ac_save_CXXFLAGS
3610
elif test $ac_cv_prog_cxx_g = yes; then
3611
  if test "$GXX" = yes; then
3612
    CXXFLAGS="-g -O2"
3613
  else
3614
    CXXFLAGS="-g"
3615
  fi
3616
else
3617
  if test "$GXX" = yes; then
3618
    CXXFLAGS="-O2"
3619
  else
3620
    CXXFLAGS=
3621
  fi
3622
fi
3623
ac_ext=c
3624
ac_cpp='$CPP $CPPFLAGS'
3625
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
 
3629
# Find a good install program.  We prefer a C program (faster),
3630
# so one script is as good as another.  But avoid the broken or
3631
# incompatible versions:
3632
# SysV /etc/install, /usr/sbin/install
3633
# SunOS /usr/etc/install
3634
# IRIX /sbin/install
3635
# AIX /bin/install
3636
# AmigaOS /C/install, which installs bootblocks on floppy discs
3637
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3638
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3639
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3640
# OS/2's system install, which has a completely different semantic
3641
# ./install, which can be erroneously created by make from ./install.sh.
3642
# Reject install programs that cannot install multiple files.
3643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3644
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3645
if test -z "$INSTALL"; then
3646
if test "${ac_cv_path_install+set}" = set; then :
3647
  $as_echo_n "(cached) " >&6
3648
else
3649
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650
for as_dir in $PATH
3651
do
3652
  IFS=$as_save_IFS
3653
  test -z "$as_dir" && as_dir=.
3654
    # Account for people who put trailing slashes in PATH elements.
3655
case $as_dir/ in @%:@((
3656
  ./ | .// | /[cC]/* | \
3657
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3658
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3659
  /usr/ucb/* ) ;;
3660
  *)
3661
    # OSF1 and SCO ODT 3.0 have their own names for install.
3662
    # Don't use installbsd from OSF since it installs stuff as root
3663
    # by default.
3664
    for ac_prog in ginstall scoinst install; do
3665
      for ac_exec_ext in '' $ac_executable_extensions; do
3666
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3667
	  if test $ac_prog = install &&
3668
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3669
	    # AIX install.  It has an incompatible calling convention.
3670
	    :
3671
	  elif test $ac_prog = install &&
3672
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3673
	    # program-specific install script used by HP pwplus--don't use.
3674
	    :
3675
	  else
3676
	    rm -rf conftest.one conftest.two conftest.dir
3677
	    echo one > conftest.one
3678
	    echo two > conftest.two
3679
	    mkdir conftest.dir
3680
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3681
	      test -s conftest.one && test -s conftest.two &&
3682
	      test -s conftest.dir/conftest.one &&
3683
	      test -s conftest.dir/conftest.two
3684
	    then
3685
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3686
	      break 3
3687
	    fi
3688
	  fi
3689
	fi
3690
      done
3691
    done
3692
    ;;
3693
esac
3694
 
3695
  done
3696
IFS=$as_save_IFS
3697
 
3698
rm -rf conftest.one conftest.two conftest.dir
3699
 
3700
fi
3701
  if test "${ac_cv_path_install+set}" = set; then
3702
    INSTALL=$ac_cv_path_install
3703
  else
3704
    # As a last resort, use the slow shell script.  Don't cache a
3705
    # value for INSTALL within a source directory, because that will
3706
    # break other packages using the cache if that directory is
3707
    # removed, or if the value is a relative name.
3708
    INSTALL=$ac_install_sh
3709
  fi
3710
fi
3711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3712
$as_echo "$INSTALL" >&6; }
3713
 
3714
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3715
# It thinks the first close brace ends the variable substitution.
3716
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3717
 
3718
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3719
 
3720
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3721
 
3722
AC_PROG_LIBTOOL
3723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3724
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3725
set x ${MAKE-make}
3726
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3727
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3728
  $as_echo_n "(cached) " >&6
3729
else
3730
  cat >conftest.make <<\_ACEOF
3731
SHELL = /bin/sh
3732
all:
3733
	@echo '@@@%%%=$(MAKE)=@@@%%%'
3734
_ACEOF
3735
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3736
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3737
  *@@@%%%=?*=@@@%%%*)
3738
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3739
  *)
3740
    eval ac_cv_prog_make_${ac_make}_set=no;;
3741
esac
3742
rm -f conftest.make
3743
fi
3744
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3745
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3746
$as_echo "yes" >&6; }
3747
  SET_MAKE=
3748
else
3749
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750
$as_echo "no" >&6; }
3751
  SET_MAKE="MAKE=${MAKE-make}"
3752
fi
3753
 
3754
for ac_prog in 'bison -y' byacc
3755
do
3756
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3757
set dummy $ac_prog; ac_word=$2
3758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759
$as_echo_n "checking for $ac_word... " >&6; }
3760
if test "${ac_cv_prog_YACC+set}" = set; then :
3761
  $as_echo_n "(cached) " >&6
3762
else
3763
  if test -n "$YACC"; then
3764
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3765
else
3766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767
for as_dir in $PATH
3768
do
3769
  IFS=$as_save_IFS
3770
  test -z "$as_dir" && as_dir=.
3771
    for ac_exec_ext in '' $ac_executable_extensions; do
3772
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773
    ac_cv_prog_YACC="$ac_prog"
3774
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775
    break 2
3776
  fi
3777
done
3778
  done
3779
IFS=$as_save_IFS
3780
 
3781
fi
3782
fi
3783
YACC=$ac_cv_prog_YACC
3784
if test -n "$YACC"; then
3785
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3786
$as_echo "$YACC" >&6; }
3787
else
3788
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789
$as_echo "no" >&6; }
3790
fi
3791
 
3792
 
3793
  test -n "$YACC" && break
3794
done
3795
test -n "$YACC" || YACC="yacc"
3796
 
3797
 
3798
for ac_prog in flex lex
3799
do
3800
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3801
set dummy $ac_prog; ac_word=$2
3802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803
$as_echo_n "checking for $ac_word... " >&6; }
3804
if test "${ac_cv_prog_LEX+set}" = set; then :
3805
  $as_echo_n "(cached) " >&6
3806
else
3807
  if test -n "$LEX"; then
3808
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3809
else
3810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811
for as_dir in $PATH
3812
do
3813
  IFS=$as_save_IFS
3814
  test -z "$as_dir" && as_dir=.
3815
    for ac_exec_ext in '' $ac_executable_extensions; do
3816
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817
    ac_cv_prog_LEX="$ac_prog"
3818
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819
    break 2
3820
  fi
3821
done
3822
  done
3823
IFS=$as_save_IFS
3824
 
3825
fi
3826
fi
3827
LEX=$ac_cv_prog_LEX
3828
if test -n "$LEX"; then
3829
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3830
$as_echo "$LEX" >&6; }
3831
else
3832
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833
$as_echo "no" >&6; }
3834
fi
3835
 
3836
 
3837
  test -n "$LEX" && break
3838
done
3839
test -n "$LEX" || LEX=":"
3840
 
3841
if test "x$LEX" != "x:"; then
3842
  cat >conftest.l <<_ACEOF
3843
%%
3844
a { ECHO; }
3845
b { REJECT; }
3846
c { yymore (); }
3847
d { yyless (1); }
3848
e { yyless (input () != 0); }
3849
f { unput (yytext[0]); }
3850
. { BEGIN INITIAL; }
3851
%%
3852
#ifdef YYTEXT_POINTER
3853
extern char *yytext;
3854
#endif
3855
int
3856
main (void)
3857
{
3858
  return ! yylex () + ! yywrap ();
3859
}
3860
_ACEOF
3861
{ { ac_try="$LEX conftest.l"
3862
case "(($ac_try" in
3863
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864
  *) ac_try_echo=$ac_try;;
3865
esac
3866
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867
$as_echo "$ac_try_echo"; } >&5
3868
  (eval "$LEX conftest.l") 2>&5
3869
  ac_status=$?
3870
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871
  test $ac_status = 0; }
3872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3873
$as_echo_n "checking lex output file root... " >&6; }
3874
if test "${ac_cv_prog_lex_root+set}" = set; then :
3875
  $as_echo_n "(cached) " >&6
3876
else
3877
 
3878
if test -f lex.yy.c; then
3879
  ac_cv_prog_lex_root=lex.yy
3880
elif test -f lexyy.c; then
3881
  ac_cv_prog_lex_root=lexyy
3882
else
3883
  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
3884
fi
3885
fi
3886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3887
$as_echo "$ac_cv_prog_lex_root" >&6; }
3888
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3889
 
3890
if test -z "${LEXLIB+set}"; then
3891
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3892
$as_echo_n "checking lex library... " >&6; }
3893
if test "${ac_cv_lib_lex+set}" = set; then :
3894
  $as_echo_n "(cached) " >&6
3895
else
3896
 
3897
    ac_save_LIBS=$LIBS
3898
    ac_cv_lib_lex='none needed'
3899
    for ac_lib in '' -lfl -ll; do
3900
      LIBS="$ac_lib $ac_save_LIBS"
3901
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902
/* end confdefs.h.  */
3903
`cat $LEX_OUTPUT_ROOT.c`
3904
_ACEOF
3905
if ac_fn_c_try_link "$LINENO"; then :
3906
  ac_cv_lib_lex=$ac_lib
3907
fi
3908
rm -f core conftest.err conftest.$ac_objext \
3909
    conftest$ac_exeext conftest.$ac_ext
3910
      test "$ac_cv_lib_lex" != 'none needed' && break
3911
    done
3912
    LIBS=$ac_save_LIBS
3913
 
3914
fi
3915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3916
$as_echo "$ac_cv_lib_lex" >&6; }
3917
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3918
fi
3919
 
3920
 
3921
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3922
$as_echo_n "checking whether yytext is a pointer... " >&6; }
3923
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
3924
  $as_echo_n "(cached) " >&6
3925
else
3926
  # POSIX says lex can declare yytext either as a pointer or an array; the
3927
# default is implementation-dependent.  Figure out which it is, since
3928
# not all implementations provide the %pointer and %array declarations.
3929
ac_cv_prog_lex_yytext_pointer=no
3930
ac_save_LIBS=$LIBS
3931
LIBS="$LEXLIB $ac_save_LIBS"
3932
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933
/* end confdefs.h.  */
3934
#define YYTEXT_POINTER 1
3935
`cat $LEX_OUTPUT_ROOT.c`
3936
_ACEOF
3937
if ac_fn_c_try_link "$LINENO"; then :
3938
  ac_cv_prog_lex_yytext_pointer=yes
3939
fi
3940
rm -f core conftest.err conftest.$ac_objext \
3941
    conftest$ac_exeext conftest.$ac_ext
3942
LIBS=$ac_save_LIBS
3943
 
3944
fi
3945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3946
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3947
if test $ac_cv_prog_lex_yytext_pointer = yes; then
3948
 
3949
$as_echo "@%:@define YYTEXT_POINTER 1" >>confdefs.h
3950
 
3951
fi
3952
rm -f conftest.l $LEX_OUTPUT_ROOT.c
3953
 
3954
fi
3955
AM_PROG_LEX
3956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3957
$as_echo_n "checking whether ln -s works... " >&6; }
3958
LN_S=$as_ln_s
3959
if test "$LN_S" = "ln -s"; then
3960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961
$as_echo "yes" >&6; }
3962
else
3963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3964
$as_echo "no, using $LN_S" >&6; }
3965
fi
3966
 
3967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3968
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3969
if test -z "$MKDIR_P"; then
3970
  if test "${ac_cv_path_mkdir+set}" = set; then :
3971
  $as_echo_n "(cached) " >&6
3972
else
3973
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3975
do
3976
  IFS=$as_save_IFS
3977
  test -z "$as_dir" && as_dir=.
3978
    for ac_prog in mkdir gmkdir; do
3979
	 for ac_exec_ext in '' $ac_executable_extensions; do
3980
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3981
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3982
	     'mkdir (GNU coreutils) '* | \
3983
	     'mkdir (coreutils) '* | \
3984
	     'mkdir (fileutils) '4.1*)
3985
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3986
	       break 3;;
3987
	   esac
3988
	 done
3989
       done
3990
  done
3991
IFS=$as_save_IFS
3992
 
3993
fi
3994
 
3995
  if test "${ac_cv_path_mkdir+set}" = set; then
3996
    MKDIR_P="$ac_cv_path_mkdir -p"
3997
  else
3998
    # As a last resort, use the slow shell script.  Don't cache a
3999
    # value for MKDIR_P within a source directory, because that will
4000
    # break other packages using the cache if that directory is
4001
    # removed, or if the value is a relative name.
4002
    test -d ./--version && rmdir ./--version
4003
    MKDIR_P="$ac_install_sh -d"
4004
  fi
4005
fi
4006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4007
$as_echo "$MKDIR_P" >&6; }
4008
 
4009
 
4010
ac_ext=cpp
4011
ac_cpp='$CXXCPP $CPPFLAGS'
4012
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4015
 
4016
AX_BOOST_BASE(1.33.1)
4017
 
4018
AX_LIB_EVENT(1.0)
4019
AM_CONDITIONAL(AMX_HAVE_LIBEVENT, test "$success" = "yes")
4020
 
4021
AX_LIB_ZLIB(1.2.3)
4022
AM_CONDITIONAL(AMX_HAVE_ZLIB, test "$success" = "yes")
4023
 
4024
AX_THRIFT_LIB(csharp, C#, yes)
4025
if test "$with_csharp" = "yes";  then
4026
  PKG_CHECK_MODULES(MONO, mono >= 2.0.0, net_3_5=yes, net_3_5=no)
4027
  PKG_CHECK_MODULES(MONO, mono >= 1.2.4, have_mono=yes, have_mono=no)
4028
fi
4029
AM_CONDITIONAL(WITH_MONO, test "$have_mono" = "yes")
4030
AM_CONDITIONAL(NET_2_0, test "$net_3_5" = "no")
4031
 
4032
AX_THRIFT_LIB(java, Java, yes)
4033
if test "$with_java" = "yes";  then
4034
  AX_JAVAC_AND_JAVA
4035
  # Extract the first word of "ant", so it can be a program name with args.
4036
set dummy ant; ac_word=$2
4037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038
$as_echo_n "checking for $ac_word... " >&6; }
4039
if test "${ac_cv_path_ANT+set}" = set; then :
4040
  $as_echo_n "(cached) " >&6
4041
else
4042
  case $ANT in
4043
  [\\/]* | ?:[\\/]*)
4044
  ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
4045
  ;;
4046
  *)
4047
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048
for as_dir in $PATH
4049
do
4050
  IFS=$as_save_IFS
4051
  test -z "$as_dir" && as_dir=.
4052
    for ac_exec_ext in '' $ac_executable_extensions; do
4053
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4054
    ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
4055
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056
    break 2
4057
  fi
4058
done
4059
  done
4060
IFS=$as_save_IFS
4061
 
4062
  ;;
4063
esac
4064
fi
4065
ANT=$ac_cv_path_ANT
4066
if test -n "$ANT"; then
4067
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
4068
$as_echo "$ANT" >&6; }
4069
else
4070
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071
$as_echo "no" >&6; }
4072
fi
4073
 
4074
 
4075
  AX_CHECK_JAVA_CLASS(org.slf4j.Logger)
4076
  have_slf4j="$success"
4077
  AX_CHECK_JAVA_CLASS(org.slf4j.impl.SimpleLogger)
4078
  have_slf4j_simple="$success"
4079
  AX_CHECK_JAVA_CLASS(org.apache.commons.lang.builder.HashCodeBuilder)
4080
  have_hashcode="$success"
4081
  if test "x$have_slf4j_simple" = "xyes" && test "x$have_slf4j" = "xyes" && test "x$have_hashcode" = "xyes" ; then
4082
    ANT_FLAGS="$ANT_FLAGS -Dnoivy="
4083
  fi
4084
 
4085
 
4086
fi
4087
AM_CONDITIONAL(WITH_JAVA,
4088
               test -n "$ANT" -a -n "$JAVA" -a -n "$JAVAC")
4089
 
4090
AX_THRIFT_LIB(erlang, Erlang, yes)
4091
if test "$with_erlang" = "yes";  then
4092
  # Extract the first word of "erlc", so it can be a program name with args.
4093
set dummy erlc; ac_word=$2
4094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095
$as_echo_n "checking for $ac_word... " >&6; }
4096
if test "${ac_cv_path_ERLC+set}" = set; then :
4097
  $as_echo_n "(cached) " >&6
4098
else
4099
  case $ERLC in
4100
  [\\/]* | ?:[\\/]*)
4101
  ac_cv_path_ERLC="$ERLC" # Let the user override the test with a path.
4102
  ;;
4103
  *)
4104
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105
for as_dir in $PATH
4106
do
4107
  IFS=$as_save_IFS
4108
  test -z "$as_dir" && as_dir=.
4109
    for ac_exec_ext in '' $ac_executable_extensions; do
4110
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111
    ac_cv_path_ERLC="$as_dir/$ac_word$ac_exec_ext"
4112
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113
    break 2
4114
  fi
4115
done
4116
  done
4117
IFS=$as_save_IFS
4118
 
4119
  ;;
4120
esac
4121
fi
4122
ERLC=$ac_cv_path_ERLC
4123
if test -n "$ERLC"; then
4124
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERLC" >&5
4125
$as_echo "$ERLC" >&6; }
4126
else
4127
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128
$as_echo "no" >&6; }
4129
fi
4130
 
4131
 
4132
fi
4133
AM_CONDITIONAL(WITH_ERLANG, test -n "$ERLC")
4134
 
4135
AX_THRIFT_LIB(py, Python, yes)
4136
if test "$with_py" = "yes";  then
4137
  AM_PATH_PYTHON(2.4,, :)
4138
fi
4139
AM_CONDITIONAL(WITH_PYTHON, test -n "$PYTHON" -a "$PYTHON" != ":")
4140
 
4141
AX_THRIFT_LIB(perl, Perl, yes)
4142
if test "$with_perl" = "yes"; then
4143
  # Extract the first word of "perl", so it can be a program name with args.
4144
set dummy perl; ac_word=$2
4145
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146
$as_echo_n "checking for $ac_word... " >&6; }
4147
if test "${ac_cv_path_PERL+set}" = set; then :
4148
  $as_echo_n "(cached) " >&6
4149
else
4150
  case $PERL in
4151
  [\\/]* | ?:[\\/]*)
4152
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4153
  ;;
4154
  *)
4155
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156
for as_dir in $PATH
4157
do
4158
  IFS=$as_save_IFS
4159
  test -z "$as_dir" && as_dir=.
4160
    for ac_exec_ext in '' $ac_executable_extensions; do
4161
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4163
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164
    break 2
4165
  fi
4166
done
4167
  done
4168
IFS=$as_save_IFS
4169
 
4170
  ;;
4171
esac
4172
fi
4173
PERL=$ac_cv_path_PERL
4174
if test -n "$PERL"; then
4175
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4176
$as_echo "$PERL" >&6; }
4177
else
4178
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179
$as_echo "no" >&6; }
4180
fi
4181
 
4182
 
4183
fi
4184
AM_CONDITIONAL(WITH_PERL, test -n "$PERL")
4185
 
4186
AX_THRIFT_LIB(ruby, Ruby, yes)
4187
if test "$with_ruby" = "yes"; then
4188
  # Extract the first word of "ruby", so it can be a program name with args.
4189
set dummy ruby; ac_word=$2
4190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191
$as_echo_n "checking for $ac_word... " >&6; }
4192
if test "${ac_cv_path_RUBY+set}" = set; then :
4193
  $as_echo_n "(cached) " >&6
4194
else
4195
  case $RUBY in
4196
  [\\/]* | ?:[\\/]*)
4197
  ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
4198
  ;;
4199
  *)
4200
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201
for as_dir in $PATH
4202
do
4203
  IFS=$as_save_IFS
4204
  test -z "$as_dir" && as_dir=.
4205
    for ac_exec_ext in '' $ac_executable_extensions; do
4206
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207
    ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
4208
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209
    break 2
4210
  fi
4211
done
4212
  done
4213
IFS=$as_save_IFS
4214
 
4215
  ;;
4216
esac
4217
fi
4218
RUBY=$ac_cv_path_RUBY
4219
if test -n "$RUBY"; then
4220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
4221
$as_echo "$RUBY" >&6; }
4222
else
4223
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224
$as_echo "no" >&6; }
4225
fi
4226
 
4227
 
4228
  # Extract the first word of "spec", so it can be a program name with args.
4229
set dummy spec; ac_word=$2
4230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231
$as_echo_n "checking for $ac_word... " >&6; }
4232
if test "${ac_cv_path_RSPEC+set}" = set; then :
4233
  $as_echo_n "(cached) " >&6
4234
else
4235
  case $RSPEC in
4236
  [\\/]* | ?:[\\/]*)
4237
  ac_cv_path_RSPEC="$RSPEC" # Let the user override the test with a path.
4238
  ;;
4239
  *)
4240
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241
for as_dir in $PATH
4242
do
4243
  IFS=$as_save_IFS
4244
  test -z "$as_dir" && as_dir=.
4245
    for ac_exec_ext in '' $ac_executable_extensions; do
4246
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247
    ac_cv_path_RSPEC="$as_dir/$ac_word$ac_exec_ext"
4248
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249
    break 2
4250
  fi
4251
done
4252
  done
4253
IFS=$as_save_IFS
4254
 
4255
  ;;
4256
esac
4257
fi
4258
RSPEC=$ac_cv_path_RSPEC
4259
if test -n "$RSPEC"; then
4260
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSPEC" >&5
4261
$as_echo "$RSPEC" >&6; }
4262
else
4263
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264
$as_echo "no" >&6; }
4265
fi
4266
 
4267
 
4268
fi
4269
AM_CONDITIONAL(WITH_RUBY, test -n "$RUBY")
4270
AM_CONDITIONAL(HAVE_RSPEC, test -n "$RSPEC")
4271
 
4272
 
4273
 
4274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4275
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4276
if test "${ac_cv_c_const+set}" = set; then :
4277
  $as_echo_n "(cached) " >&6
4278
else
4279
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280
/* end confdefs.h.  */
4281
 
4282
int
4283
main ()
4284
{
4285
/* FIXME: Include the comments suggested by Paul. */
4286
#ifndef __cplusplus
4287
  /* Ultrix mips cc rejects this.  */
4288
  typedef int charset[2];
4289
  const charset cs;
4290
  /* SunOS 4.1.1 cc rejects this.  */
4291
  char const *const *pcpcc;
4292
  char **ppc;
4293
  /* NEC SVR4.0.2 mips cc rejects this.  */
4294
  struct point {int x, y;};
4295
  static struct point const zero = {0,0};
4296
  /* AIX XL C 1.02.0.0 rejects this.
4297
     It does not let you subtract one const X* pointer from another in
4298
     an arm of an if-expression whose if-part is not a constant
4299
     expression */
4300
  const char *g = "string";
4301
  pcpcc = &g + (g ? g-g : 0);
4302
  /* HPUX 7.0 cc rejects these. */
4303
  ++pcpcc;
4304
  ppc = (char**) pcpcc;
4305
  pcpcc = (char const *const *) ppc;
4306
  { /* SCO 3.2v4 cc rejects this.  */
4307
    char *t;
4308
    char const *s = 0 ? (char *) 0 : (char const *) 0;
4309
 
4310
    *t++ = 0;
4311
    if (s) return 0;
4312
  }
4313
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4314
    int x[] = {25, 17};
4315
    const int *foo = &x[0];
4316
    ++foo;
4317
  }
4318
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4319
    typedef const int *iptr;
4320
    iptr p = 0;
4321
    ++p;
4322
  }
4323
  { /* AIX XL C 1.02.0.0 rejects this saying
4324
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4325
    struct s { int j; const int *ap[3]; };
4326
    struct s *b; b->j = 5;
4327
  }
4328
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4329
    const int foo = 10;
4330
    if (!foo) return 0;
4331
  }
4332
  return !cs[0] && !zero.x;
4333
#endif
4334
 
4335
  ;
4336
  return 0;
4337
}
4338
_ACEOF
4339
if ac_fn_cxx_try_compile "$LINENO"; then :
4340
  ac_cv_c_const=yes
4341
else
4342
  ac_cv_c_const=no
4343
fi
4344
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345
fi
4346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4347
$as_echo "$ac_cv_c_const" >&6; }
4348
if test $ac_cv_c_const = no; then
4349
 
4350
$as_echo "@%:@define const /**/" >>confdefs.h
4351
 
4352
fi
4353
 
4354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4355
$as_echo_n "checking for inline... " >&6; }
4356
if test "${ac_cv_c_inline+set}" = set; then :
4357
  $as_echo_n "(cached) " >&6
4358
else
4359
  ac_cv_c_inline=no
4360
for ac_kw in inline __inline__ __inline; do
4361
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362
/* end confdefs.h.  */
4363
#ifndef __cplusplus
4364
typedef int foo_t;
4365
static $ac_kw foo_t static_foo () {return 0; }
4366
$ac_kw foo_t foo () {return 0; }
4367
#endif
4368
 
4369
_ACEOF
4370
if ac_fn_cxx_try_compile "$LINENO"; then :
4371
  ac_cv_c_inline=$ac_kw
4372
fi
4373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374
  test "$ac_cv_c_inline" != no && break
4375
done
4376
 
4377
fi
4378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4379
$as_echo "$ac_cv_c_inline" >&6; }
4380
 
4381
case $ac_cv_c_inline in
4382
  inline | yes) ;;
4383
  *)
4384
    case $ac_cv_c_inline in
4385
      no) ac_val=;;
4386
      *) ac_val=$ac_cv_c_inline;;
4387
    esac
4388
    cat >>confdefs.h <<_ACEOF
4389
#ifndef __cplusplus
4390
#define inline $ac_val
4391
#endif
4392
_ACEOF
4393
    ;;
4394
esac
4395
 
4396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4397
$as_echo_n "checking for working volatile... " >&6; }
4398
if test "${ac_cv_c_volatile+set}" = set; then :
4399
  $as_echo_n "(cached) " >&6
4400
else
4401
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402
/* end confdefs.h.  */
4403
 
4404
int
4405
main ()
4406
{
4407
 
4408
volatile int x;
4409
int * volatile y = (int *) 0;
4410
return !x && !y;
4411
  ;
4412
  return 0;
4413
}
4414
_ACEOF
4415
if ac_fn_cxx_try_compile "$LINENO"; then :
4416
  ac_cv_c_volatile=yes
4417
else
4418
  ac_cv_c_volatile=no
4419
fi
4420
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421
fi
4422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4423
$as_echo "$ac_cv_c_volatile" >&6; }
4424
if test $ac_cv_c_volatile = no; then
4425
 
4426
$as_echo "@%:@define volatile /**/" >>confdefs.h
4427
 
4428
fi
4429
 
4430
 
4431
ac_ext=cpp
4432
ac_cpp='$CXXCPP $CPPFLAGS'
4433
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4437
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4438
if test -z "$CXXCPP"; then
4439
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4440
  $as_echo_n "(cached) " >&6
4441
else
4442
      # Double quotes because CXXCPP needs to be expanded
4443
    for CXXCPP in "$CXX -E" "/lib/cpp"
4444
    do
4445
      ac_preproc_ok=false
4446
for ac_cxx_preproc_warn_flag in '' yes
4447
do
4448
  # Use a header file that comes with gcc, so configuring glibc
4449
  # with a fresh cross-compiler works.
4450
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4451
  # <limits.h> exists even on freestanding compilers.
4452
  # On the NeXT, cc -E runs the code through the compiler's parser,
4453
  # not just through cpp. "Syntax error" is here to catch this case.
4454
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455
/* end confdefs.h.  */
4456
@%:@ifdef __STDC__
4457
@%:@ include <limits.h>
4458
@%:@else
4459
@%:@ include <assert.h>
4460
@%:@endif
4461
		     Syntax error
4462
_ACEOF
4463
if ac_fn_cxx_try_cpp "$LINENO"; then :
4464
 
4465
else
4466
  # Broken: fails on valid input.
4467
continue
4468
fi
4469
rm -f conftest.err conftest.$ac_ext
4470
 
4471
  # OK, works on sane cases.  Now check whether nonexistent headers
4472
  # can be detected and how.
4473
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474
/* end confdefs.h.  */
4475
@%:@include <ac_nonexistent.h>
4476
_ACEOF
4477
if ac_fn_cxx_try_cpp "$LINENO"; then :
4478
  # Broken: success on invalid input.
4479
continue
4480
else
4481
  # Passes both tests.
4482
ac_preproc_ok=:
4483
break
4484
fi
4485
rm -f conftest.err conftest.$ac_ext
4486
 
4487
done
4488
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4489
rm -f conftest.err conftest.$ac_ext
4490
if $ac_preproc_ok; then :
4491
  break
4492
fi
4493
 
4494
    done
4495
    ac_cv_prog_CXXCPP=$CXXCPP
4496
 
4497
fi
4498
  CXXCPP=$ac_cv_prog_CXXCPP
4499
else
4500
  ac_cv_prog_CXXCPP=$CXXCPP
4501
fi
4502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4503
$as_echo "$CXXCPP" >&6; }
4504
ac_preproc_ok=false
4505
for ac_cxx_preproc_warn_flag in '' yes
4506
do
4507
  # Use a header file that comes with gcc, so configuring glibc
4508
  # with a fresh cross-compiler works.
4509
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4510
  # <limits.h> exists even on freestanding compilers.
4511
  # On the NeXT, cc -E runs the code through the compiler's parser,
4512
  # not just through cpp. "Syntax error" is here to catch this case.
4513
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514
/* end confdefs.h.  */
4515
@%:@ifdef __STDC__
4516
@%:@ include <limits.h>
4517
@%:@else
4518
@%:@ include <assert.h>
4519
@%:@endif
4520
		     Syntax error
4521
_ACEOF
4522
if ac_fn_cxx_try_cpp "$LINENO"; then :
4523
 
4524
else
4525
  # Broken: fails on valid input.
4526
continue
4527
fi
4528
rm -f conftest.err conftest.$ac_ext
4529
 
4530
  # OK, works on sane cases.  Now check whether nonexistent headers
4531
  # can be detected and how.
4532
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533
/* end confdefs.h.  */
4534
@%:@include <ac_nonexistent.h>
4535
_ACEOF
4536
if ac_fn_cxx_try_cpp "$LINENO"; then :
4537
  # Broken: success on invalid input.
4538
continue
4539
else
4540
  # Passes both tests.
4541
ac_preproc_ok=:
4542
break
4543
fi
4544
rm -f conftest.err conftest.$ac_ext
4545
 
4546
done
4547
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4548
rm -f conftest.err conftest.$ac_ext
4549
if $ac_preproc_ok; then :
4550
 
4551
else
4552
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4553
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4554
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4555
See \`config.log' for more details." "$LINENO" 5; }
4556
fi
4557
 
4558
ac_ext=cpp
4559
ac_cpp='$CXXCPP $CPPFLAGS'
4560
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4563
 
4564
 
4565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4566
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4567
if test "${ac_cv_path_GREP+set}" = set; then :
4568
  $as_echo_n "(cached) " >&6
4569
else
4570
  if test -z "$GREP"; then
4571
  ac_path_GREP_found=false
4572
  # Loop through the user's path and test for each of PROGNAME-LIST
4573
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4575
do
4576
  IFS=$as_save_IFS
4577
  test -z "$as_dir" && as_dir=.
4578
    for ac_prog in grep ggrep; do
4579
    for ac_exec_ext in '' $ac_executable_extensions; do
4580
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4581
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4582
# Check for GNU ac_path_GREP and select it if it is found.
4583
  # Check for GNU $ac_path_GREP
4584
case `"$ac_path_GREP" --version 2>&1` in
4585
*GNU*)
4586
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4587
*)
4588
  ac_count=0
4589
  $as_echo_n 0123456789 >"conftest.in"
4590
  while :
4591
  do
4592
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4593
    mv "conftest.tmp" "conftest.in"
4594
    cp "conftest.in" "conftest.nl"
4595
    $as_echo 'GREP' >> "conftest.nl"
4596
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4599
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4600
      # Best one so far, save it but keep looking for a better one
4601
      ac_cv_path_GREP="$ac_path_GREP"
4602
      ac_path_GREP_max=$ac_count
4603
    fi
4604
    # 10*(2^10) chars as input seems more than enough
4605
    test $ac_count -gt 10 && break
4606
  done
4607
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608
esac
4609
 
4610
      $ac_path_GREP_found && break 3
4611
    done
4612
  done
4613
  done
4614
IFS=$as_save_IFS
4615
  if test -z "$ac_cv_path_GREP"; then
4616
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4617
  fi
4618
else
4619
  ac_cv_path_GREP=$GREP
4620
fi
4621
 
4622
fi
4623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4624
$as_echo "$ac_cv_path_GREP" >&6; }
4625
 GREP="$ac_cv_path_GREP"
4626
 
4627
 
4628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4629
$as_echo_n "checking for egrep... " >&6; }
4630
if test "${ac_cv_path_EGREP+set}" = set; then :
4631
  $as_echo_n "(cached) " >&6
4632
else
4633
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4634
   then ac_cv_path_EGREP="$GREP -E"
4635
   else
4636
     if test -z "$EGREP"; then
4637
  ac_path_EGREP_found=false
4638
  # Loop through the user's path and test for each of PROGNAME-LIST
4639
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4641
do
4642
  IFS=$as_save_IFS
4643
  test -z "$as_dir" && as_dir=.
4644
    for ac_prog in egrep; do
4645
    for ac_exec_ext in '' $ac_executable_extensions; do
4646
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4647
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4648
# Check for GNU ac_path_EGREP and select it if it is found.
4649
  # Check for GNU $ac_path_EGREP
4650
case `"$ac_path_EGREP" --version 2>&1` in
4651
*GNU*)
4652
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4653
*)
4654
  ac_count=0
4655
  $as_echo_n 0123456789 >"conftest.in"
4656
  while :
4657
  do
4658
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4659
    mv "conftest.tmp" "conftest.in"
4660
    cp "conftest.in" "conftest.nl"
4661
    $as_echo 'EGREP' >> "conftest.nl"
4662
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4665
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4666
      # Best one so far, save it but keep looking for a better one
4667
      ac_cv_path_EGREP="$ac_path_EGREP"
4668
      ac_path_EGREP_max=$ac_count
4669
    fi
4670
    # 10*(2^10) chars as input seems more than enough
4671
    test $ac_count -gt 10 && break
4672
  done
4673
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674
esac
4675
 
4676
      $ac_path_EGREP_found && break 3
4677
    done
4678
  done
4679
  done
4680
IFS=$as_save_IFS
4681
  if test -z "$ac_cv_path_EGREP"; then
4682
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4683
  fi
4684
else
4685
  ac_cv_path_EGREP=$EGREP
4686
fi
4687
 
4688
   fi
4689
fi
4690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4691
$as_echo "$ac_cv_path_EGREP" >&6; }
4692
 EGREP="$ac_cv_path_EGREP"
4693
 
4694
 
4695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4696
$as_echo_n "checking for ANSI C header files... " >&6; }
4697
if test "${ac_cv_header_stdc+set}" = set; then :
4698
  $as_echo_n "(cached) " >&6
4699
else
4700
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701
/* end confdefs.h.  */
4702
#include <stdlib.h>
4703
#include <stdarg.h>
4704
#include <string.h>
4705
#include <float.h>
4706
 
4707
int
4708
main ()
4709
{
4710
 
4711
  ;
4712
  return 0;
4713
}
4714
_ACEOF
4715
if ac_fn_cxx_try_compile "$LINENO"; then :
4716
  ac_cv_header_stdc=yes
4717
else
4718
  ac_cv_header_stdc=no
4719
fi
4720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721
 
4722
if test $ac_cv_header_stdc = yes; then
4723
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4724
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725
/* end confdefs.h.  */
4726
#include <string.h>
4727
 
4728
_ACEOF
4729
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4730
  $EGREP "memchr" >/dev/null 2>&1; then :
4731
 
4732
else
4733
  ac_cv_header_stdc=no
4734
fi
4735
rm -f conftest*
4736
 
4737
fi
4738
 
4739
if test $ac_cv_header_stdc = yes; then
4740
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4741
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742
/* end confdefs.h.  */
4743
#include <stdlib.h>
4744
 
4745
_ACEOF
4746
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747
  $EGREP "free" >/dev/null 2>&1; then :
4748
 
4749
else
4750
  ac_cv_header_stdc=no
4751
fi
4752
rm -f conftest*
4753
 
4754
fi
4755
 
4756
if test $ac_cv_header_stdc = yes; then
4757
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4758
  if test "$cross_compiling" = yes; then :
4759
  :
4760
else
4761
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762
/* end confdefs.h.  */
4763
#include <ctype.h>
4764
#include <stdlib.h>
4765
#if ((' ' & 0x0FF) == 0x020)
4766
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4767
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4768
#else
4769
# define ISLOWER(c) \
4770
		   (('a' <= (c) && (c) <= 'i') \
4771
		     || ('j' <= (c) && (c) <= 'r') \
4772
		     || ('s' <= (c) && (c) <= 'z'))
4773
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4774
#endif
4775
 
4776
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4777
int
4778
main ()
4779
{
4780
  int i;
4781
  for (i = 0; i < 256; i++)
4782
    if (XOR (islower (i), ISLOWER (i))
4783
	|| toupper (i) != TOUPPER (i))
4784
      return 2;
4785
  return 0;
4786
}
4787
_ACEOF
4788
if ac_fn_cxx_try_run "$LINENO"; then :
4789
 
4790
else
4791
  ac_cv_header_stdc=no
4792
fi
4793
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4794
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4795
fi
4796
 
4797
fi
4798
fi
4799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4800
$as_echo "$ac_cv_header_stdc" >&6; }
4801
if test $ac_cv_header_stdc = yes; then
4802
 
4803
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
4804
 
4805
fi
4806
 
4807
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4808
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4809
		  inttypes.h stdint.h unistd.h
4810
do :
4811
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4812
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4813
"
4814
eval as_val=\$$as_ac_Header
4815
   if test "x$as_val" = x""yes; then :
4816
  cat >>confdefs.h <<_ACEOF
4817
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4818
_ACEOF
4819
 
4820
fi
4821
 
4822
done
4823
 
4824
 
4825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4826
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4827
if test "${ac_cv_header_stdbool_h+set}" = set; then :
4828
  $as_echo_n "(cached) " >&6
4829
else
4830
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831
/* end confdefs.h.  */
4832
 
4833
#include <stdbool.h>
4834
#ifndef bool
4835
 "error: bool is not defined"
4836
#endif
4837
#ifndef false
4838
 "error: false is not defined"
4839
#endif
4840
#if false
4841
 "error: false is not 0"
4842
#endif
4843
#ifndef true
4844
 "error: true is not defined"
4845
#endif
4846
#if true != 1
4847
 "error: true is not 1"
4848
#endif
4849
#ifndef __bool_true_false_are_defined
4850
 "error: __bool_true_false_are_defined is not defined"
4851
#endif
4852
 
4853
	struct s { _Bool s: 1; _Bool t; } s;
4854
 
4855
	char a[true == 1 ? 1 : -1];
4856
	char b[false == 0 ? 1 : -1];
4857
	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4858
	char d[(bool) 0.5 == true ? 1 : -1];
4859
	bool e = &s;
4860
	char f[(_Bool) 0.0 == false ? 1 : -1];
4861
	char g[true];
4862
	char h[sizeof (_Bool)];
4863
	char i[sizeof s.t];
4864
	enum { j = false, k = true, l = false * true, m = true * 256 };
4865
	/* The following fails for
4866
	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4867
	_Bool n[m];
4868
	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4869
	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4870
#	if defined __xlc__ || defined __GNUC__
4871
	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4872
	    reported by James Lemley on 2005-10-05; see
4873
	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4874
	    This test is not quite right, since xlc is allowed to
4875
	    reject this program, as the initializer for xlcbug is
4876
	    not one of the forms that C requires support for.
4877
	    However, doing the test right would require a runtime
4878
	    test, and that would make cross-compilation harder.
4879
	    Let us hope that IBM fixes the xlc bug, and also adds
4880
	    support for this kind of constant expression.  In the
4881
	    meantime, this test will reject xlc, which is OK, since
4882
	    our stdbool.h substitute should suffice.  We also test
4883
	    this with GCC, where it should work, to detect more
4884
	    quickly whether someone messes up the test in the
4885
	    future.  */
4886
	 char digs[] = "0123456789";
4887
	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4888
#	endif
4889
	/* Catch a bug in an HP-UX C compiler.  See
4890
	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4891
	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4892
	 */
4893
	_Bool q = true;
4894
	_Bool *pq = &q;
4895
 
4896
int
4897
main ()
4898
{
4899
 
4900
	*pq |= q;
4901
	*pq |= ! q;
4902
	/* Refer to every declared value, to avoid compiler optimizations.  */
4903
	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4904
		+ !m + !n + !o + !p + !q + !pq);
4905
 
4906
  ;
4907
  return 0;
4908
}
4909
_ACEOF
4910
if ac_fn_cxx_try_compile "$LINENO"; then :
4911
  ac_cv_header_stdbool_h=yes
4912
else
4913
  ac_cv_header_stdbool_h=no
4914
fi
4915
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916
fi
4917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4918
$as_echo "$ac_cv_header_stdbool_h" >&6; }
4919
ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4920
if test "x$ac_cv_type__Bool" = x""yes; then :
4921
 
4922
cat >>confdefs.h <<_ACEOF
4923
@%:@define HAVE__BOOL 1
4924
_ACEOF
4925
 
4926
 
4927
fi
4928
 
4929
if test $ac_cv_header_stdbool_h = yes; then
4930
 
4931
$as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h
4932
 
4933
fi
4934
 
4935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4936
$as_echo_n "checking for ANSI C header files... " >&6; }
4937
if test "${ac_cv_header_stdc+set}" = set; then :
4938
  $as_echo_n "(cached) " >&6
4939
else
4940
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941
/* end confdefs.h.  */
4942
#include <stdlib.h>
4943
#include <stdarg.h>
4944
#include <string.h>
4945
#include <float.h>
4946
 
4947
int
4948
main ()
4949
{
4950
 
4951
  ;
4952
  return 0;
4953
}
4954
_ACEOF
4955
if ac_fn_cxx_try_compile "$LINENO"; then :
4956
  ac_cv_header_stdc=yes
4957
else
4958
  ac_cv_header_stdc=no
4959
fi
4960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961
 
4962
if test $ac_cv_header_stdc = yes; then
4963
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4964
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965
/* end confdefs.h.  */
4966
#include <string.h>
4967
 
4968
_ACEOF
4969
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4970
  $EGREP "memchr" >/dev/null 2>&1; then :
4971
 
4972
else
4973
  ac_cv_header_stdc=no
4974
fi
4975
rm -f conftest*
4976
 
4977
fi
4978
 
4979
if test $ac_cv_header_stdc = yes; then
4980
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4981
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982
/* end confdefs.h.  */
4983
#include <stdlib.h>
4984
 
4985
_ACEOF
4986
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4987
  $EGREP "free" >/dev/null 2>&1; then :
4988
 
4989
else
4990
  ac_cv_header_stdc=no
4991
fi
4992
rm -f conftest*
4993
 
4994
fi
4995
 
4996
if test $ac_cv_header_stdc = yes; then
4997
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4998
  if test "$cross_compiling" = yes; then :
4999
  :
5000
else
5001
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002
/* end confdefs.h.  */
5003
#include <ctype.h>
5004
#include <stdlib.h>
5005
#if ((' ' & 0x0FF) == 0x020)
5006
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5007
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5008
#else
5009
# define ISLOWER(c) \
5010
		   (('a' <= (c) && (c) <= 'i') \
5011
		     || ('j' <= (c) && (c) <= 'r') \
5012
		     || ('s' <= (c) && (c) <= 'z'))
5013
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5014
#endif
5015
 
5016
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5017
int
5018
main ()
5019
{
5020
  int i;
5021
  for (i = 0; i < 256; i++)
5022
    if (XOR (islower (i), ISLOWER (i))
5023
	|| toupper (i) != TOUPPER (i))
5024
      return 2;
5025
  return 0;
5026
}
5027
_ACEOF
5028
if ac_fn_cxx_try_run "$LINENO"; then :
5029
 
5030
else
5031
  ac_cv_header_stdc=no
5032
fi
5033
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5034
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5035
fi
5036
 
5037
fi
5038
fi
5039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5040
$as_echo "$ac_cv_header_stdc" >&6; }
5041
if test $ac_cv_header_stdc = yes; then
5042
 
5043
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5044
 
5045
fi
5046
 
5047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5048
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5049
if test "${ac_cv_header_time+set}" = set; then :
5050
  $as_echo_n "(cached) " >&6
5051
else
5052
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053
/* end confdefs.h.  */
5054
#include <sys/types.h>
5055
#include <sys/time.h>
5056
#include <time.h>
5057
 
5058
int
5059
main ()
5060
{
5061
if ((struct tm *) 0)
5062
return 0;
5063
  ;
5064
  return 0;
5065
}
5066
_ACEOF
5067
if ac_fn_cxx_try_compile "$LINENO"; then :
5068
  ac_cv_header_time=yes
5069
else
5070
  ac_cv_header_time=no
5071
fi
5072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073
fi
5074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5075
$as_echo "$ac_cv_header_time" >&6; }
5076
if test $ac_cv_header_time = yes; then
5077
 
5078
$as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
5079
 
5080
fi
5081
 
5082
for ac_header in arpa/inet.h
5083
do :
5084
  ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
5085
if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
5086
  cat >>confdefs.h <<_ACEOF
5087
@%:@define HAVE_ARPA_INET_H 1
5088
_ACEOF
5089
 
5090
fi
5091
 
5092
done
5093
 
5094
for ac_header in endian.h
5095
do :
5096
  ac_fn_cxx_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
5097
if test "x$ac_cv_header_endian_h" = x""yes; then :
5098
  cat >>confdefs.h <<_ACEOF
5099
@%:@define HAVE_ENDIAN_H 1
5100
_ACEOF
5101
 
5102
fi
5103
 
5104
done
5105
 
5106
for ac_header in fcntl.h
5107
do :
5108
  ac_fn_cxx_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
5109
if test "x$ac_cv_header_fcntl_h" = x""yes; then :
5110
  cat >>confdefs.h <<_ACEOF
5111
@%:@define HAVE_FCNTL_H 1
5112
_ACEOF
5113
 
5114
fi
5115
 
5116
done
5117
 
5118
for ac_header in inttypes.h
5119
do :
5120
  ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5121
if test "x$ac_cv_header_inttypes_h" = x""yes; then :
5122
  cat >>confdefs.h <<_ACEOF
5123
@%:@define HAVE_INTTYPES_H 1
5124
_ACEOF
5125
 
5126
fi
5127
 
5128
done
5129
 
5130
for ac_header in limits.h
5131
do :
5132
  ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5133
if test "x$ac_cv_header_limits_h" = x""yes; then :
5134
  cat >>confdefs.h <<_ACEOF
5135
@%:@define HAVE_LIMITS_H 1
5136
_ACEOF
5137
 
5138
fi
5139
 
5140
done
5141
 
5142
for ac_header in netdb.h
5143
do :
5144
  ac_fn_cxx_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
5145
if test "x$ac_cv_header_netdb_h" = x""yes; then :
5146
  cat >>confdefs.h <<_ACEOF
5147
@%:@define HAVE_NETDB_H 1
5148
_ACEOF
5149
 
5150
fi
5151
 
5152
done
5153
 
5154
for ac_header in netinet/in.h
5155
do :
5156
  ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
5157
if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
5158
  cat >>confdefs.h <<_ACEOF
5159
@%:@define HAVE_NETINET_IN_H 1
5160
_ACEOF
5161
 
5162
fi
5163
 
5164
done
5165
 
5166
for ac_header in pthread.h
5167
do :
5168
  ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5169
if test "x$ac_cv_header_pthread_h" = x""yes; then :
5170
  cat >>confdefs.h <<_ACEOF
5171
@%:@define HAVE_PTHREAD_H 1
5172
_ACEOF
5173
 
5174
fi
5175
 
5176
done
5177
 
5178
for ac_header in stddef.h
5179
do :
5180
  ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
5181
if test "x$ac_cv_header_stddef_h" = x""yes; then :
5182
  cat >>confdefs.h <<_ACEOF
5183
@%:@define HAVE_STDDEF_H 1
5184
_ACEOF
5185
 
5186
fi
5187
 
5188
done
5189
 
5190
for ac_header in stdlib.h
5191
do :
5192
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5193
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
5194
  cat >>confdefs.h <<_ACEOF
5195
@%:@define HAVE_STDLIB_H 1
5196
_ACEOF
5197
 
5198
fi
5199
 
5200
done
5201
 
5202
for ac_header in sys/socket.h
5203
do :
5204
  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
5205
if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
5206
  cat >>confdefs.h <<_ACEOF
5207
@%:@define HAVE_SYS_SOCKET_H 1
5208
_ACEOF
5209
 
5210
fi
5211
 
5212
done
5213
 
5214
for ac_header in sys/time.h
5215
do :
5216
  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5217
if test "x$ac_cv_header_sys_time_h" = x""yes; then :
5218
  cat >>confdefs.h <<_ACEOF
5219
@%:@define HAVE_SYS_TIME_H 1
5220
_ACEOF
5221
 
5222
fi
5223
 
5224
done
5225
 
5226
for ac_header in unistd.h
5227
do :
5228
  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5229
if test "x$ac_cv_header_unistd_h" = x""yes; then :
5230
  cat >>confdefs.h <<_ACEOF
5231
@%:@define HAVE_UNISTD_H 1
5232
_ACEOF
5233
 
5234
fi
5235
 
5236
done
5237
 
5238
for ac_header in libintl.h
5239
do :
5240
  ac_fn_cxx_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
5241
if test "x$ac_cv_header_libintl_h" = x""yes; then :
5242
  cat >>confdefs.h <<_ACEOF
5243
@%:@define HAVE_LIBINTL_H 1
5244
_ACEOF
5245
 
5246
fi
5247
 
5248
done
5249
 
5250
for ac_header in malloc.h
5251
do :
5252
  ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5253
if test "x$ac_cv_header_malloc_h" = x""yes; then :
5254
  cat >>confdefs.h <<_ACEOF
5255
@%:@define HAVE_MALLOC_H 1
5256
_ACEOF
5257
 
5258
fi
5259
 
5260
done
5261
 
5262
 
5263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5264
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5265
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
5266
  $as_echo_n "(cached) " >&6
5267
else
5268
  ac_check_lib_save_LIBS=$LIBS
5269
LIBS="-lpthread  $LIBS"
5270
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271
/* end confdefs.h.  */
5272
 
5273
/* Override any GCC internal prototype to avoid an error.
5274
   Use char because int might match the return type of a GCC
5275
   builtin and then its argument prototype would still apply.  */
5276
#ifdef __cplusplus
5277
extern "C"
5278
#endif
5279
char pthread_create ();
5280
int
5281
main ()
5282
{
5283
return pthread_create ();
5284
  ;
5285
  return 0;
5286
}
5287
_ACEOF
5288
if ac_fn_cxx_try_link "$LINENO"; then :
5289
  ac_cv_lib_pthread_pthread_create=yes
5290
else
5291
  ac_cv_lib_pthread_pthread_create=no
5292
fi
5293
rm -f core conftest.err conftest.$ac_objext \
5294
    conftest$ac_exeext conftest.$ac_ext
5295
LIBS=$ac_check_lib_save_LIBS
5296
fi
5297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5298
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5299
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
5300
  cat >>confdefs.h <<_ACEOF
5301
@%:@define HAVE_LIBPTHREAD 1
5302
_ACEOF
5303
 
5304
  LIBS="-lpthread $LIBS"
5305
 
5306
fi
5307
 
5308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5309
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5310
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
5311
  $as_echo_n "(cached) " >&6
5312
else
5313
  ac_check_lib_save_LIBS=$LIBS
5314
LIBS="-lrt  $LIBS"
5315
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316
/* end confdefs.h.  */
5317
 
5318
/* Override any GCC internal prototype to avoid an error.
5319
   Use char because int might match the return type of a GCC
5320
   builtin and then its argument prototype would still apply.  */
5321
#ifdef __cplusplus
5322
extern "C"
5323
#endif
5324
char clock_gettime ();
5325
int
5326
main ()
5327
{
5328
return clock_gettime ();
5329
  ;
5330
  return 0;
5331
}
5332
_ACEOF
5333
if ac_fn_cxx_try_link "$LINENO"; then :
5334
  ac_cv_lib_rt_clock_gettime=yes
5335
else
5336
  ac_cv_lib_rt_clock_gettime=no
5337
fi
5338
rm -f core conftest.err conftest.$ac_objext \
5339
    conftest$ac_exeext conftest.$ac_ext
5340
LIBS=$ac_check_lib_save_LIBS
5341
fi
5342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5343
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5344
if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
5345
  cat >>confdefs.h <<_ACEOF
5346
@%:@define HAVE_LIBRT 1
5347
_ACEOF
5348
 
5349
  LIBS="-lrt $LIBS"
5350
 
5351
fi
5352
 
5353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
5354
$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
5355
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then :
5356
  $as_echo_n "(cached) " >&6
5357
else
5358
  ac_check_lib_save_LIBS=$LIBS
5359
LIBS="-lsocket  $LIBS"
5360
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361
/* end confdefs.h.  */
5362
 
5363
/* Override any GCC internal prototype to avoid an error.
5364
   Use char because int might match the return type of a GCC
5365
   builtin and then its argument prototype would still apply.  */
5366
#ifdef __cplusplus
5367
extern "C"
5368
#endif
5369
char setsockopt ();
5370
int
5371
main ()
5372
{
5373
return setsockopt ();
5374
  ;
5375
  return 0;
5376
}
5377
_ACEOF
5378
if ac_fn_cxx_try_link "$LINENO"; then :
5379
  ac_cv_lib_socket_setsockopt=yes
5380
else
5381
  ac_cv_lib_socket_setsockopt=no
5382
fi
5383
rm -f core conftest.err conftest.$ac_objext \
5384
    conftest$ac_exeext conftest.$ac_ext
5385
LIBS=$ac_check_lib_save_LIBS
5386
fi
5387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
5388
$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
5389
if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then :
5390
  cat >>confdefs.h <<_ACEOF
5391
@%:@define HAVE_LIBSOCKET 1
5392
_ACEOF
5393
 
5394
  LIBS="-lsocket $LIBS"
5395
 
5396
fi
5397
 
5398
 
5399
ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5400
case $ac_cv_c_int16_t in #(
5401
  no|yes) ;; #(
5402
  *)
5403
 
5404
cat >>confdefs.h <<_ACEOF
5405
@%:@define int16_t $ac_cv_c_int16_t
5406
_ACEOF
5407
;;
5408
esac
5409
 
5410
ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5411
case $ac_cv_c_int32_t in #(
5412
  no|yes) ;; #(
5413
  *)
5414
 
5415
cat >>confdefs.h <<_ACEOF
5416
@%:@define int32_t $ac_cv_c_int32_t
5417
_ACEOF
5418
;;
5419
esac
5420
 
5421
ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5422
case $ac_cv_c_int64_t in #(
5423
  no|yes) ;; #(
5424
  *)
5425
 
5426
cat >>confdefs.h <<_ACEOF
5427
@%:@define int64_t $ac_cv_c_int64_t
5428
_ACEOF
5429
;;
5430
esac
5431
 
5432
ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5433
case $ac_cv_c_int8_t in #(
5434
  no|yes) ;; #(
5435
  *)
5436
 
5437
cat >>confdefs.h <<_ACEOF
5438
@%:@define int8_t $ac_cv_c_int8_t
5439
_ACEOF
5440
;;
5441
esac
5442
 
5443
ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5444
if test "x$ac_cv_type_mode_t" = x""yes; then :
5445
 
5446
else
5447
 
5448
cat >>confdefs.h <<_ACEOF
5449
@%:@define mode_t int
5450
_ACEOF
5451
 
5452
fi
5453
 
5454
ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5455
if test "x$ac_cv_type_off_t" = x""yes; then :
5456
 
5457
else
5458
 
5459
cat >>confdefs.h <<_ACEOF
5460
@%:@define off_t long int
5461
_ACEOF
5462
 
5463
fi
5464
 
5465
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5466
if test "x$ac_cv_type_size_t" = x""yes; then :
5467
 
5468
else
5469
 
5470
cat >>confdefs.h <<_ACEOF
5471
@%:@define size_t unsigned int
5472
_ACEOF
5473
 
5474
fi
5475
 
5476
ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5477
if test "x$ac_cv_type_ssize_t" = x""yes; then :
5478
 
5479
else
5480
 
5481
cat >>confdefs.h <<_ACEOF
5482
@%:@define ssize_t int
5483
_ACEOF
5484
 
5485
fi
5486
 
5487
ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5488
case $ac_cv_c_uint16_t in #(
5489
  no|yes) ;; #(
5490
  *)
5491
 
5492
 
5493
cat >>confdefs.h <<_ACEOF
5494
@%:@define uint16_t $ac_cv_c_uint16_t
5495
_ACEOF
5496
;;
5497
  esac
5498
 
5499
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5500
case $ac_cv_c_uint32_t in #(
5501
  no|yes) ;; #(
5502
  *)
5503
 
5504
$as_echo "@%:@define _UINT32_T 1" >>confdefs.h
5505
 
5506
 
5507
cat >>confdefs.h <<_ACEOF
5508
@%:@define uint32_t $ac_cv_c_uint32_t
5509
_ACEOF
5510
;;
5511
  esac
5512
 
5513
ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5514
case $ac_cv_c_uint64_t in #(
5515
  no|yes) ;; #(
5516
  *)
5517
 
5518
$as_echo "@%:@define _UINT64_T 1" >>confdefs.h
5519
 
5520
 
5521
cat >>confdefs.h <<_ACEOF
5522
@%:@define uint64_t $ac_cv_c_uint64_t
5523
_ACEOF
5524
;;
5525
  esac
5526
 
5527
ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5528
case $ac_cv_c_uint8_t in #(
5529
  no|yes) ;; #(
5530
  *)
5531
 
5532
$as_echo "@%:@define _UINT8_T 1" >>confdefs.h
5533
 
5534
 
5535
cat >>confdefs.h <<_ACEOF
5536
@%:@define uint8_t $ac_cv_c_uint8_t
5537
_ACEOF
5538
;;
5539
  esac
5540
 
5541
ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5542
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
5543
 
5544
cat >>confdefs.h <<_ACEOF
5545
@%:@define HAVE_PTRDIFF_T 1
5546
_ACEOF
5547
 
5548
 
5549
else
5550
  exit 1
5551
fi
5552
 
5553
 
5554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5555
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5556
if test "${ac_cv_struct_tm+set}" = set; then :
5557
  $as_echo_n "(cached) " >&6
5558
else
5559
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560
/* end confdefs.h.  */
5561
#include <sys/types.h>
5562
#include <time.h>
5563
 
5564
int
5565
main ()
5566
{
5567
struct tm tm;
5568
				     int *p = &tm.tm_sec;
5569
				     return !p;
5570
  ;
5571
  return 0;
5572
}
5573
_ACEOF
5574
if ac_fn_cxx_try_compile "$LINENO"; then :
5575
  ac_cv_struct_tm=time.h
5576
else
5577
  ac_cv_struct_tm=sys/time.h
5578
fi
5579
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580
fi
5581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5582
$as_echo "$ac_cv_struct_tm" >&6; }
5583
if test $ac_cv_struct_tm = sys/time.h; then
5584
 
5585
$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
5586
 
5587
fi
5588
 
5589
 
5590
ac_fn_cxx_check_decl "$LINENO" "AI_ADDRCONFIG" "ac_cv_have_decl_AI_ADDRCONFIG" "
5591
  #include <sys/types.h>
5592
  #include <sys/socket.h>
5593
  #include <netdb.h>
5594
 
5595
"
5596
if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then :
5597
 
5598
else
5599
 
5600
$as_echo "@%:@define AI_ADDRCONFIG 0" >>confdefs.h
5601
 
5602
fi
5603
 
5604
 
5605
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5606
# for constant arguments.  Useless!
5607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5608
$as_echo_n "checking for working alloca.h... " >&6; }
5609
if test "${ac_cv_working_alloca_h+set}" = set; then :
5610
  $as_echo_n "(cached) " >&6
5611
else
5612
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613
/* end confdefs.h.  */
5614
@%:@include <alloca.h>
5615
int
5616
main ()
5617
{
5618
char *p = (char *) alloca (2 * sizeof (int));
5619
			  if (p) return 0;
5620
  ;
5621
  return 0;
5622
}
5623
_ACEOF
5624
if ac_fn_cxx_try_link "$LINENO"; then :
5625
  ac_cv_working_alloca_h=yes
5626
else
5627
  ac_cv_working_alloca_h=no
5628
fi
5629
rm -f core conftest.err conftest.$ac_objext \
5630
    conftest$ac_exeext conftest.$ac_ext
5631
fi
5632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5633
$as_echo "$ac_cv_working_alloca_h" >&6; }
5634
if test $ac_cv_working_alloca_h = yes; then
5635
 
5636
$as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
5637
 
5638
fi
5639
 
5640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5641
$as_echo_n "checking for alloca... " >&6; }
5642
if test "${ac_cv_func_alloca_works+set}" = set; then :
5643
  $as_echo_n "(cached) " >&6
5644
else
5645
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646
/* end confdefs.h.  */
5647
#ifdef __GNUC__
5648
# define alloca __builtin_alloca
5649
#else
5650
# ifdef _MSC_VER
5651
#  include <malloc.h>
5652
#  define alloca _alloca
5653
# else
5654
#  ifdef HAVE_ALLOCA_H
5655
#   include <alloca.h>
5656
#  else
5657
#   ifdef _AIX
5658
 #pragma alloca
5659
#   else
5660
#    ifndef alloca /* predefined by HP cc +Olibcalls */
5661
char *alloca ();
5662
#    endif
5663
#   endif
5664
#  endif
5665
# endif
5666
#endif
5667
 
5668
int
5669
main ()
5670
{
5671
char *p = (char *) alloca (1);
5672
				    if (p) return 0;
5673
  ;
5674
  return 0;
5675
}
5676
_ACEOF
5677
if ac_fn_cxx_try_link "$LINENO"; then :
5678
  ac_cv_func_alloca_works=yes
5679
else
5680
  ac_cv_func_alloca_works=no
5681
fi
5682
rm -f core conftest.err conftest.$ac_objext \
5683
    conftest$ac_exeext conftest.$ac_ext
5684
fi
5685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5686
$as_echo "$ac_cv_func_alloca_works" >&6; }
5687
 
5688
if test $ac_cv_func_alloca_works = yes; then
5689
 
5690
$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
5691
 
5692
else
5693
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5694
# that cause trouble.  Some versions do not even contain alloca or
5695
# contain a buggy version.  If you still want to use their alloca,
5696
# use ar to extract alloca.o from them instead of compiling alloca.c.
5697
 
5698
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5699
 
5700
$as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
5701
 
5702
 
5703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5704
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5705
if test "${ac_cv_os_cray+set}" = set; then :
5706
  $as_echo_n "(cached) " >&6
5707
else
5708
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709
/* end confdefs.h.  */
5710
#if defined CRAY && ! defined CRAY2
5711
webecray
5712
#else
5713
wenotbecray
5714
#endif
5715
 
5716
_ACEOF
5717
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5718
  $EGREP "webecray" >/dev/null 2>&1; then :
5719
  ac_cv_os_cray=yes
5720
else
5721
  ac_cv_os_cray=no
5722
fi
5723
rm -f conftest*
5724
 
5725
fi
5726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5727
$as_echo "$ac_cv_os_cray" >&6; }
5728
if test $ac_cv_os_cray = yes; then
5729
  for ac_func in _getb67 GETB67 getb67; do
5730
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5731
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5732
eval as_val=\$$as_ac_var
5733
   if test "x$as_val" = x""yes; then :
5734
 
5735
cat >>confdefs.h <<_ACEOF
5736
@%:@define CRAY_STACKSEG_END $ac_func
5737
_ACEOF
5738
 
5739
    break
5740
fi
5741
 
5742
  done
5743
fi
5744
 
5745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5746
$as_echo_n "checking stack direction for C alloca... " >&6; }
5747
if test "${ac_cv_c_stack_direction+set}" = set; then :
5748
  $as_echo_n "(cached) " >&6
5749
else
5750
  if test "$cross_compiling" = yes; then :
5751
  ac_cv_c_stack_direction=0
5752
else
5753
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754
/* end confdefs.h.  */
5755
$ac_includes_default
5756
int
5757
find_stack_direction ()
5758
{
5759
  static char *addr = 0;
5760
  auto char dummy;
5761
  if (addr == 0)
5762
    {
5763
      addr = &dummy;
5764
      return find_stack_direction ();
5765
    }
5766
  else
5767
    return (&dummy > addr) ? 1 : -1;
5768
}
5769
 
5770
int
5771
main ()
5772
{
5773
  return find_stack_direction () < 0;
5774
}
5775
_ACEOF
5776
if ac_fn_cxx_try_run "$LINENO"; then :
5777
  ac_cv_c_stack_direction=1
5778
else
5779
  ac_cv_c_stack_direction=-1
5780
fi
5781
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5782
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5783
fi
5784
 
5785
fi
5786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5787
$as_echo "$ac_cv_c_stack_direction" >&6; }
5788
cat >>confdefs.h <<_ACEOF
5789
@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
5790
_ACEOF
5791
 
5792
 
5793
fi
5794
 
5795
for ac_header in stdlib.h
5796
do :
5797
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5798
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
5799
  cat >>confdefs.h <<_ACEOF
5800
@%:@define HAVE_STDLIB_H 1
5801
_ACEOF
5802
 
5803
fi
5804
 
5805
done
5806
 
5807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5808
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5809
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
5810
  $as_echo_n "(cached) " >&6
5811
else
5812
  if test "$cross_compiling" = yes; then :
5813
  ac_cv_func_malloc_0_nonnull=no
5814
else
5815
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816
/* end confdefs.h.  */
5817
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
5818
# include <stdlib.h>
5819
#else
5820
char *malloc ();
5821
#endif
5822
 
5823
int
5824
main ()
5825
{
5826
return ! malloc (0);
5827
  ;
5828
  return 0;
5829
}
5830
_ACEOF
5831
if ac_fn_cxx_try_run "$LINENO"; then :
5832
  ac_cv_func_malloc_0_nonnull=yes
5833
else
5834
  ac_cv_func_malloc_0_nonnull=no
5835
fi
5836
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5837
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5838
fi
5839
 
5840
fi
5841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5842
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5843
if test $ac_cv_func_malloc_0_nonnull = yes; then :
5844
 
5845
$as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h
5846
 
5847
else
5848
  $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h
5849
 
5850
   case " $LIB@&t@OBJS " in
5851
  *" malloc.$ac_objext "* ) ;;
5852
  *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
5853
 ;;
5854
esac
5855
 
5856
 
5857
$as_echo "@%:@define malloc rpl_malloc" >>confdefs.h
5858
 
5859
fi
5860
 
5861
 
5862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5863
$as_echo_n "checking for working memcmp... " >&6; }
5864
if test "${ac_cv_func_memcmp_working+set}" = set; then :
5865
  $as_echo_n "(cached) " >&6
5866
else
5867
  if test "$cross_compiling" = yes; then :
5868
  ac_cv_func_memcmp_working=no
5869
else
5870
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871
/* end confdefs.h.  */
5872
$ac_includes_default
5873
int
5874
main ()
5875
{
5876
 
5877
  /* Some versions of memcmp are not 8-bit clean.  */
5878
  char c0 = '\100', c1 = '\200', c2 = '\201';
5879
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5880
    return 1;
5881
 
5882
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5883
     or more and with at least one buffer not starting on a 4-byte boundary.
5884
     William Lewis provided this test program.   */
5885
  {
5886
    char foo[21];
5887
    char bar[21];
5888
    int i;
5889
    for (i = 0; i < 4; i++)
5890
      {
5891
	char *a = foo + i;
5892
	char *b = bar + i;
5893
	strcpy (a, "--------01111111");
5894
	strcpy (b, "--------10000000");
5895
	if (memcmp (a, b, 16) >= 0)
5896
	  return 1;
5897
      }
5898
    return 0;
5899
  }
5900
 
5901
  ;
5902
  return 0;
5903
}
5904
_ACEOF
5905
if ac_fn_cxx_try_run "$LINENO"; then :
5906
  ac_cv_func_memcmp_working=yes
5907
else
5908
  ac_cv_func_memcmp_working=no
5909
fi
5910
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5911
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5912
fi
5913
 
5914
fi
5915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5916
$as_echo "$ac_cv_func_memcmp_working" >&6; }
5917
test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
5918
  *" memcmp.$ac_objext "* ) ;;
5919
  *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
5920
 ;;
5921
esac
5922
 
5923
 
5924
for ac_header in stdlib.h
5925
do :
5926
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5927
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
5928
  cat >>confdefs.h <<_ACEOF
5929
@%:@define HAVE_STDLIB_H 1
5930
_ACEOF
5931
 
5932
fi
5933
 
5934
done
5935
 
5936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
5937
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5938
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
5939
  $as_echo_n "(cached) " >&6
5940
else
5941
  if test "$cross_compiling" = yes; then :
5942
  ac_cv_func_realloc_0_nonnull=no
5943
else
5944
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945
/* end confdefs.h.  */
5946
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
5947
# include <stdlib.h>
5948
#else
5949
char *realloc ();
5950
#endif
5951
 
5952
int
5953
main ()
5954
{
5955
return ! realloc (0, 0);
5956
  ;
5957
  return 0;
5958
}
5959
_ACEOF
5960
if ac_fn_cxx_try_run "$LINENO"; then :
5961
  ac_cv_func_realloc_0_nonnull=yes
5962
else
5963
  ac_cv_func_realloc_0_nonnull=no
5964
fi
5965
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5966
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5967
fi
5968
 
5969
fi
5970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
5971
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5972
if test $ac_cv_func_realloc_0_nonnull = yes; then :
5973
 
5974
$as_echo "@%:@define HAVE_REALLOC 1" >>confdefs.h
5975
 
5976
else
5977
  $as_echo "@%:@define HAVE_REALLOC 0" >>confdefs.h
5978
 
5979
   case " $LIB@&t@OBJS " in
5980
  *" realloc.$ac_objext "* ) ;;
5981
  *) LIB@&t@OBJS="$LIB@&t@OBJS realloc.$ac_objext"
5982
 ;;
5983
esac
5984
 
5985
 
5986
$as_echo "@%:@define realloc rpl_realloc" >>confdefs.h
5987
 
5988
fi
5989
 
5990
 
5991
for ac_header in sys/select.h sys/socket.h
5992
do :
5993
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5994
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5995
eval as_val=\$$as_ac_Header
5996
   if test "x$as_val" = x""yes; then :
5997
  cat >>confdefs.h <<_ACEOF
5998
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5999
_ACEOF
6000
 
6001
fi
6002
 
6003
done
6004
 
6005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
6006
$as_echo_n "checking types of arguments for select... " >&6; }
6007
if test "${ac_cv_func_select_args+set}" = set; then :
6008
  $as_echo_n "(cached) " >&6
6009
else
6010
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6011
 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
6012
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6013
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014
/* end confdefs.h.  */
6015
$ac_includes_default
6016
#ifdef HAVE_SYS_SELECT_H
6017
# include <sys/select.h>
6018
#endif
6019
#ifdef HAVE_SYS_SOCKET_H
6020
# include <sys/socket.h>
6021
#endif
6022
 
6023
int
6024
main ()
6025
{
6026
extern int select ($ac_arg1,
6027
					    $ac_arg234, $ac_arg234, $ac_arg234,
6028
					    $ac_arg5);
6029
  ;
6030
  return 0;
6031
}
6032
_ACEOF
6033
if ac_fn_cxx_try_compile "$LINENO"; then :
6034
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6035
fi
6036
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037
  done
6038
 done
6039
done
6040
# Provide a safe default value.
6041
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
6042
 
6043
fi
6044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
6045
$as_echo "$ac_cv_func_select_args" >&6; }
6046
ac_save_IFS=$IFS; IFS=','
6047
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6048
IFS=$ac_save_IFS
6049
shift
6050
 
6051
cat >>confdefs.h <<_ACEOF
6052
@%:@define SELECT_TYPE_ARG1 $1
6053
_ACEOF
6054
 
6055
 
6056
cat >>confdefs.h <<_ACEOF
6057
@%:@define SELECT_TYPE_ARG234 ($2)
6058
_ACEOF
6059
 
6060
 
6061
cat >>confdefs.h <<_ACEOF
6062
@%:@define SELECT_TYPE_ARG5 ($3)
6063
_ACEOF
6064
 
6065
rm -f conftest*
6066
 
6067
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6068
$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
6069
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
6070
  $as_echo_n "(cached) " >&6
6071
else
6072
  rm -f conftest.sym conftest.file
6073
echo >conftest.file
6074
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6075
  if test "$cross_compiling" = yes; then :
6076
  ac_cv_func_lstat_dereferences_slashed_symlink=no
6077
else
6078
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079
/* end confdefs.h.  */
6080
$ac_includes_default
6081
int
6082
main ()
6083
{
6084
struct stat sbuf;
6085
     /* Linux will dereference the symlink and fail.
6086
	That is better in the sense that it means we will not
6087
	have to compile and use the lstat wrapper.  */
6088
     return lstat ("conftest.sym/", &sbuf) == 0;
6089
  ;
6090
  return 0;
6091
}
6092
_ACEOF
6093
if ac_fn_cxx_try_run "$LINENO"; then :
6094
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
6095
else
6096
  ac_cv_func_lstat_dereferences_slashed_symlink=no
6097
fi
6098
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6099
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6100
fi
6101
 
6102
else
6103
  # If the `ln -s' command failed, then we probably don't even
6104
  # have an lstat function.
6105
  ac_cv_func_lstat_dereferences_slashed_symlink=no
6106
fi
6107
rm -f conftest.sym conftest.file
6108
 
6109
fi
6110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6111
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6112
 
6113
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6114
 
6115
cat >>confdefs.h <<_ACEOF
6116
@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6117
_ACEOF
6118
 
6119
 
6120
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
6121
  case " $LIB@&t@OBJS " in
6122
  *" lstat.$ac_objext "* ) ;;
6123
  *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
6124
 ;;
6125
esac
6126
 
6127
fi
6128
 
6129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6130
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6131
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6132
  $as_echo_n "(cached) " >&6
6133
else
6134
  if test "$cross_compiling" = yes; then :
6135
  ac_cv_func_stat_empty_string_bug=yes
6136
else
6137
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138
/* end confdefs.h.  */
6139
$ac_includes_default
6140
int
6141
main ()
6142
{
6143
struct stat sbuf;
6144
  return stat ("", &sbuf) == 0;
6145
  ;
6146
  return 0;
6147
}
6148
_ACEOF
6149
if ac_fn_cxx_try_run "$LINENO"; then :
6150
  ac_cv_func_stat_empty_string_bug=no
6151
else
6152
  ac_cv_func_stat_empty_string_bug=yes
6153
fi
6154
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6155
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6156
fi
6157
 
6158
fi
6159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6160
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6161
if test $ac_cv_func_stat_empty_string_bug = yes; then
6162
  case " $LIB@&t@OBJS " in
6163
  *" stat.$ac_objext "* ) ;;
6164
  *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
6165
 ;;
6166
esac
6167
 
6168
 
6169
cat >>confdefs.h <<_ACEOF
6170
@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
6171
_ACEOF
6172
 
6173
fi
6174
 
6175
ac_fn_cxx_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
6176
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
6177
  ac_have_decl=1
6178
else
6179
  ac_have_decl=0
6180
fi
6181
 
6182
cat >>confdefs.h <<_ACEOF
6183
@%:@define HAVE_DECL_STRERROR_R $ac_have_decl
6184
_ACEOF
6185
 
6186
for ac_func in strerror_r
6187
do :
6188
  ac_fn_cxx_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
6189
if test "x$ac_cv_func_strerror_r" = x""yes; then :
6190
  cat >>confdefs.h <<_ACEOF
6191
@%:@define HAVE_STRERROR_R 1
6192
_ACEOF
6193
 
6194
fi
6195
done
6196
 
6197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
6198
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
6199
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
6200
  $as_echo_n "(cached) " >&6
6201
else
6202
 
6203
    ac_cv_func_strerror_r_char_p=no
6204
    if test $ac_cv_have_decl_strerror_r = yes; then
6205
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206
/* end confdefs.h.  */
6207
$ac_includes_default
6208
int
6209
main ()
6210
{
6211
 
6212
	  char buf[100];
6213
	  char x = *strerror_r (0, buf, sizeof buf);
6214
	  char *p = strerror_r (0, buf, sizeof buf);
6215
	  return !p || x;
6216
 
6217
  ;
6218
  return 0;
6219
}
6220
_ACEOF
6221
if ac_fn_cxx_try_compile "$LINENO"; then :
6222
  ac_cv_func_strerror_r_char_p=yes
6223
fi
6224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225
    else
6226
      # strerror_r is not declared.  Choose between
6227
      # systems that have relatively inaccessible declarations for the
6228
      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
6229
      # former has a strerror_r that returns char*, while the latter
6230
      # has a strerror_r that returns `int'.
6231
      # This test should segfault on the DEC system.
6232
      if test "$cross_compiling" = yes; then :
6233
  :
6234
else
6235
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236
/* end confdefs.h.  */
6237
$ac_includes_default
6238
	extern char *strerror_r ();
6239
int
6240
main ()
6241
{
6242
char buf[100];
6243
	  char x = *strerror_r (0, buf, sizeof buf);
6244
	  return ! isalpha (x);
6245
  ;
6246
  return 0;
6247
}
6248
_ACEOF
6249
if ac_fn_cxx_try_run "$LINENO"; then :
6250
  ac_cv_func_strerror_r_char_p=yes
6251
fi
6252
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6253
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6254
fi
6255
 
6256
    fi
6257
 
6258
fi
6259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
6260
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
6261
if test $ac_cv_func_strerror_r_char_p = yes; then
6262
 
6263
$as_echo "@%:@define STRERROR_R_CHAR_P 1" >>confdefs.h
6264
 
6265
fi
6266
 
6267
for ac_func in strftime
6268
do :
6269
  ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
6270
if test "x$ac_cv_func_strftime" = x""yes; then :
6271
  cat >>confdefs.h <<_ACEOF
6272
@%:@define HAVE_STRFTIME 1
6273
_ACEOF
6274
 
6275
else
6276
  # strftime is in -lintl on SCO UNIX.
6277
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
6278
$as_echo_n "checking for strftime in -lintl... " >&6; }
6279
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
6280
  $as_echo_n "(cached) " >&6
6281
else
6282
  ac_check_lib_save_LIBS=$LIBS
6283
LIBS="-lintl  $LIBS"
6284
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285
/* end confdefs.h.  */
6286
 
6287
/* Override any GCC internal prototype to avoid an error.
6288
   Use char because int might match the return type of a GCC
6289
   builtin and then its argument prototype would still apply.  */
6290
#ifdef __cplusplus
6291
extern "C"
6292
#endif
6293
char strftime ();
6294
int
6295
main ()
6296
{
6297
return strftime ();
6298
  ;
6299
  return 0;
6300
}
6301
_ACEOF
6302
if ac_fn_cxx_try_link "$LINENO"; then :
6303
  ac_cv_lib_intl_strftime=yes
6304
else
6305
  ac_cv_lib_intl_strftime=no
6306
fi
6307
rm -f core conftest.err conftest.$ac_objext \
6308
    conftest$ac_exeext conftest.$ac_ext
6309
LIBS=$ac_check_lib_save_LIBS
6310
fi
6311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
6312
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
6313
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
6314
  $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h
6315
 
6316
LIBS="-lintl $LIBS"
6317
fi
6318
 
6319
fi
6320
done
6321
 
6322
for ac_func in vprintf
6323
do :
6324
  ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6325
if test "x$ac_cv_func_vprintf" = x""yes; then :
6326
  cat >>confdefs.h <<_ACEOF
6327
@%:@define HAVE_VPRINTF 1
6328
_ACEOF
6329
 
6330
ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6331
if test "x$ac_cv_func__doprnt" = x""yes; then :
6332
 
6333
$as_echo "@%:@define HAVE_DOPRNT 1" >>confdefs.h
6334
 
6335
fi
6336
 
6337
fi
6338
done
6339
 
6340
 
6341
for ac_func in strtoul
6342
do :
6343
  ac_fn_cxx_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
6344
if test "x$ac_cv_func_strtoul" = x""yes; then :
6345
  cat >>confdefs.h <<_ACEOF
6346
@%:@define HAVE_STRTOUL 1
6347
_ACEOF
6348
 
6349
fi
6350
done
6351
 
6352
for ac_func in bzero
6353
do :
6354
  ac_fn_cxx_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
6355
if test "x$ac_cv_func_bzero" = x""yes; then :
6356
  cat >>confdefs.h <<_ACEOF
6357
@%:@define HAVE_BZERO 1
6358
_ACEOF
6359
 
6360
fi
6361
done
6362
 
6363
for ac_func in ftruncate
6364
do :
6365
  ac_fn_cxx_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
6366
if test "x$ac_cv_func_ftruncate" = x""yes; then :
6367
  cat >>confdefs.h <<_ACEOF
6368
@%:@define HAVE_FTRUNCATE 1
6369
_ACEOF
6370
 
6371
fi
6372
done
6373
 
6374
for ac_func in gethostbyname
6375
do :
6376
  ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6377
if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6378
  cat >>confdefs.h <<_ACEOF
6379
@%:@define HAVE_GETHOSTBYNAME 1
6380
_ACEOF
6381
 
6382
fi
6383
done
6384
 
6385
for ac_func in gettimeofday
6386
do :
6387
  ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6388
if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6389
  cat >>confdefs.h <<_ACEOF
6390
@%:@define HAVE_GETTIMEOFDAY 1
6391
_ACEOF
6392
 
6393
fi
6394
done
6395
 
6396
for ac_func in memmove
6397
do :
6398
  ac_fn_cxx_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
6399
if test "x$ac_cv_func_memmove" = x""yes; then :
6400
  cat >>confdefs.h <<_ACEOF
6401
@%:@define HAVE_MEMMOVE 1
6402
_ACEOF
6403
 
6404
fi
6405
done
6406
 
6407
for ac_func in memset
6408
do :
6409
  ac_fn_cxx_check_func "$LINENO" "memset" "ac_cv_func_memset"
6410
if test "x$ac_cv_func_memset" = x""yes; then :
6411
  cat >>confdefs.h <<_ACEOF
6412
@%:@define HAVE_MEMSET 1
6413
_ACEOF
6414
 
6415
fi
6416
done
6417
 
6418
for ac_func in mkdir
6419
do :
6420
  ac_fn_cxx_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
6421
if test "x$ac_cv_func_mkdir" = x""yes; then :
6422
  cat >>confdefs.h <<_ACEOF
6423
@%:@define HAVE_MKDIR 1
6424
_ACEOF
6425
 
6426
fi
6427
done
6428
 
6429
for ac_func in realpath
6430
do :
6431
  ac_fn_cxx_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
6432
if test "x$ac_cv_func_realpath" = x""yes; then :
6433
  cat >>confdefs.h <<_ACEOF
6434
@%:@define HAVE_REALPATH 1
6435
_ACEOF
6436
 
6437
fi
6438
done
6439
 
6440
for ac_func in select
6441
do :
6442
  ac_fn_cxx_check_func "$LINENO" "select" "ac_cv_func_select"
6443
if test "x$ac_cv_func_select" = x""yes; then :
6444
  cat >>confdefs.h <<_ACEOF
6445
@%:@define HAVE_SELECT 1
6446
_ACEOF
6447
 
6448
fi
6449
done
6450
 
6451
for ac_func in socket
6452
do :
6453
  ac_fn_cxx_check_func "$LINENO" "socket" "ac_cv_func_socket"
6454
if test "x$ac_cv_func_socket" = x""yes; then :
6455
  cat >>confdefs.h <<_ACEOF
6456
@%:@define HAVE_SOCKET 1
6457
_ACEOF
6458
 
6459
fi
6460
done
6461
 
6462
for ac_func in strchr
6463
do :
6464
  ac_fn_cxx_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
6465
if test "x$ac_cv_func_strchr" = x""yes; then :
6466
  cat >>confdefs.h <<_ACEOF
6467
@%:@define HAVE_STRCHR 1
6468
_ACEOF
6469
 
6470
fi
6471
done
6472
 
6473
for ac_func in strdup
6474
do :
6475
  ac_fn_cxx_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
6476
if test "x$ac_cv_func_strdup" = x""yes; then :
6477
  cat >>confdefs.h <<_ACEOF
6478
@%:@define HAVE_STRDUP 1
6479
_ACEOF
6480
 
6481
fi
6482
done
6483
 
6484
for ac_func in strerror
6485
do :
6486
  ac_fn_cxx_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
6487
if test "x$ac_cv_func_strerror" = x""yes; then :
6488
  cat >>confdefs.h <<_ACEOF
6489
@%:@define HAVE_STRERROR 1
6490
_ACEOF
6491
 
6492
fi
6493
done
6494
 
6495
for ac_func in strstr
6496
do :
6497
  ac_fn_cxx_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
6498
if test "x$ac_cv_func_strstr" = x""yes; then :
6499
  cat >>confdefs.h <<_ACEOF
6500
@%:@define HAVE_STRSTR 1
6501
_ACEOF
6502
 
6503
fi
6504
done
6505
 
6506
for ac_func in strtol
6507
do :
6508
  ac_fn_cxx_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
6509
if test "x$ac_cv_func_strtol" = x""yes; then :
6510
  cat >>confdefs.h <<_ACEOF
6511
@%:@define HAVE_STRTOL 1
6512
_ACEOF
6513
 
6514
fi
6515
done
6516
 
6517
for ac_func in sqrt
6518
do :
6519
  ac_fn_cxx_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
6520
if test "x$ac_cv_func_sqrt" = x""yes; then :
6521
  cat >>confdefs.h <<_ACEOF
6522
@%:@define HAVE_SQRT 1
6523
_ACEOF
6524
 
6525
fi
6526
done
6527
 
6528
for ac_func in clock_gettime
6529
do :
6530
  ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
6531
if test "x$ac_cv_func_clock_gettime" = x""yes; then :
6532
  cat >>confdefs.h <<_ACEOF
6533
@%:@define HAVE_CLOCK_GETTIME 1
6534
_ACEOF
6535
 
6536
fi
6537
done
6538
 
6539
for ac_func in sched_get_priority_min
6540
do :
6541
  ac_fn_cxx_check_func "$LINENO" "sched_get_priority_min" "ac_cv_func_sched_get_priority_min"
6542
if test "x$ac_cv_func_sched_get_priority_min" = x""yes; then :
6543
  cat >>confdefs.h <<_ACEOF
6544
@%:@define HAVE_SCHED_GET_PRIORITY_MIN 1
6545
_ACEOF
6546
 
6547
fi
6548
done
6549
 
6550
for ac_func in sched_get_priority_max
6551
do :
6552
  ac_fn_cxx_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
6553
if test "x$ac_cv_func_sched_get_priority_max" = x""yes; then :
6554
  cat >>confdefs.h <<_ACEOF
6555
@%:@define HAVE_SCHED_GET_PRIORITY_MAX 1
6556
_ACEOF
6557
 
6558
fi
6559
done
6560
 
6561
 
6562
AX_SIGNED_RIGHT_SHIFT
6563
 
6564
AX_THRIFT_GEN(cpp, C++, yes)
6565
AM_CONDITIONAL(THRIFT_GEN_cpp, test "$ax_thrift_gen_cpp" = "yes")
6566
AX_THRIFT_GEN(java, Java, yes)
6567
AM_CONDITIONAL(THRIFT_GEN_java, test "$ax_thrift_gen_java" = "yes")
6568
AX_THRIFT_GEN(csharp, C#, yes)
6569
AM_CONDITIONAL(THRIFT_GEN_csharp, test "$ax_thrift_gen_csharp" = "yes")
6570
AX_THRIFT_GEN(py, Python, yes)
6571
AM_CONDITIONAL(THRIFT_GEN_py, test "$ax_thrift_gen_py" = "yes")
6572
AX_THRIFT_GEN(rb, Ruby, yes)
6573
AM_CONDITIONAL(THRIFT_GEN_rb, test "$ax_thrift_gen_rb" = "yes")
6574
AX_THRIFT_GEN(perl, Perl, yes)
6575
AM_CONDITIONAL(THRIFT_GEN_perl, test "$ax_thrift_gen_perl" = "yes")
6576
AX_THRIFT_GEN(php, PHP, yes)
6577
AM_CONDITIONAL(THRIFT_GEN_php, test "$ax_thrift_gen_php" = "yes")
6578
AX_THRIFT_GEN(erl, Erlang, yes)
6579
AM_CONDITIONAL(THRIFT_GEN_erl, test "$ax_thrift_gen_erl" = "yes")
6580
AX_THRIFT_GEN(cocoa, Cocoa, yes)
6581
AM_CONDITIONAL(THRIFT_GEN_cocoa, test "$ax_thrift_gen_cocoa" = "yes")
6582
AX_THRIFT_GEN(st, Smalltalk, yes)
6583
AM_CONDITIONAL(THRIFT_GEN_st, test "$ax_thrift_gen_st" = "yes")
6584
AX_THRIFT_GEN(ocaml, OCaml, yes)
6585
AM_CONDITIONAL(THRIFT_GEN_ocaml, test "$ax_thrift_gen_ocaml" = "yes")
6586
AX_THRIFT_GEN(hs, Haskell, yes)
6587
AM_CONDITIONAL(THRIFT_GEN_hs, test "$ax_thrift_gen_hs" = "yes")
6588
AX_THRIFT_GEN(xsd, XSD, yes)
6589
AM_CONDITIONAL(THRIFT_GEN_xsd, test "$ax_thrift_gen_xsd" = "yes")
6590
AX_THRIFT_GEN(html, HTML, yes)
6591
AM_CONDITIONAL(THRIFT_GEN_html, test "$ax_thrift_gen_html" = "yes")
6592
 
6593
ac_config_headers="$ac_config_headers config.h:config.hin"
6594
 
6595
 
6596
ac_config_files="$ac_config_files Makefile compiler/cpp/Makefile lib/Makefile lib/cpp/Makefile lib/cpp/thrift.pc lib/cpp/thrift-nb.pc lib/cpp/thrift-z.pc lib/csharp/Makefile lib/java/Makefile lib/perl/Makefile lib/perl/test/Makefile lib/py/Makefile lib/rb/Makefile test/Makefile test/py/Makefile test/rb/Makefile"
6597
 
6598
 
6599
cat >confcache <<\_ACEOF
6600
# This file is a shell script that caches the results of configure
6601
# tests run on this system so they can be shared between configure
6602
# scripts and configure runs, see configure's option --config-cache.
6603
# It is not useful on other systems.  If it contains results you don't
6604
# want to keep, you may remove or edit it.
6605
#
6606
# config.status only pays attention to the cache file if you give it
6607
# the --recheck option to rerun configure.
6608
#
6609
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6610
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6611
# following values.
6612
 
6613
_ACEOF
6614
 
6615
# The following way of writing the cache mishandles newlines in values,
6616
# but we know of no workaround that is simple, portable, and efficient.
6617
# So, we kill variables containing newlines.
6618
# Ultrix sh set writes to stderr and can't be redirected directly,
6619
# and sets the high bit in the cache file unless we assign to the vars.
6620
(
6621
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6622
    eval ac_val=\$$ac_var
6623
    case $ac_val in #(
6624
    *${as_nl}*)
6625
      case $ac_var in #(
6626
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6627
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6628
      esac
6629
      case $ac_var in #(
6630
      _ | IFS | as_nl) ;; #(
6631
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6632
      *) { eval $ac_var=; unset $ac_var;} ;;
6633
      esac ;;
6634
    esac
6635
  done
6636
 
6637
  (set) 2>&1 |
6638
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6639
    *${as_nl}ac_space=\ *)
6640
      # `set' does not quote correctly, so add quotes: double-quote
6641
      # substitution turns \\\\ into \\, and sed turns \\ into \.
6642
      sed -n \
6643
	"s/'/'\\\\''/g;
6644
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6645
      ;; #(
6646
    *)
6647
      # `set' quotes correctly as required by POSIX, so do not add quotes.
6648
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6649
      ;;
6650
    esac |
6651
    sort
6652
) |
6653
  sed '
6654
     /^ac_cv_env_/b end
6655
     t clear
6656
     :clear
6657
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6658
     t end
6659
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6660
     :end' >>confcache
6661
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6662
  if test -w "$cache_file"; then
6663
    test "x$cache_file" != "x/dev/null" &&
6664
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6665
$as_echo "$as_me: updating cache $cache_file" >&6;}
6666
    cat confcache >$cache_file
6667
  else
6668
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6669
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6670
  fi
6671
fi
6672
rm -f confcache
6673
 
6674
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6675
# Let make expand exec_prefix.
6676
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6677
 
6678
DEFS=-DHAVE_CONFIG_H
6679
 
6680
ac_libobjs=
6681
ac_ltlibobjs=
6682
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
6683
  # 1. Remove the extension, and $U if already installed.
6684
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6685
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6686
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6687
  #    will be set to the directory where LIBOBJS objects are built.
6688
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6689
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6690
done
6691
LIB@&t@OBJS=$ac_libobjs
6692
 
6693
LTLIBOBJS=$ac_ltlibobjs
6694
 
6695
 
6696
 
6697
: ${CONFIG_STATUS=./config.status}
6698
ac_write_fail=0
6699
ac_clean_files_save=$ac_clean_files
6700
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6701
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6702
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6703
as_write_fail=0
6704
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6705
#! $SHELL
6706
# Generated by $as_me.
6707
# Run this file to recreate the current configuration.
6708
# Compiler output produced by configure, useful for debugging
6709
# configure, is in config.log if it exists.
6710
 
6711
debug=false
6712
ac_cs_recheck=false
6713
ac_cs_silent=false
6714
 
6715
SHELL=\${CONFIG_SHELL-$SHELL}
6716
export SHELL
6717
_ASEOF
6718
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6719
## -------------------- ##
6720
## M4sh Initialization. ##
6721
## -------------------- ##
6722
 
6723
# Be more Bourne compatible
6724
DUALCASE=1; export DUALCASE # for MKS sh
6725
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6726
  emulate sh
6727
  NULLCMD=:
6728
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6729
  # is contrary to our usage.  Disable this feature.
6730
  alias -g '${1+"$@"}'='"$@"'
6731
  setopt NO_GLOB_SUBST
6732
else
6733
  case `(set -o) 2>/dev/null` in @%:@(
6734
  *posix*) :
6735
    set -o posix ;; @%:@(
6736
  *) :
6737
     ;;
6738
esac
6739
fi
6740
 
6741
 
6742
as_nl='
6743
'
6744
export as_nl
6745
# Printing a long string crashes Solaris 7 /usr/bin/printf.
6746
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6747
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6748
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6749
# Prefer a ksh shell builtin over an external printf program on Solaris,
6750
# but without wasting forks for bash or zsh.
6751
if test -z "$BASH_VERSION$ZSH_VERSION" \
6752
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6753
  as_echo='print -r --'
6754
  as_echo_n='print -rn --'
6755
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6756
  as_echo='printf %s\n'
6757
  as_echo_n='printf %s'
6758
else
6759
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6760
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6761
    as_echo_n='/usr/ucb/echo -n'
6762
  else
6763
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6764
    as_echo_n_body='eval
6765
      arg=$1;
6766
      case $arg in @%:@(
6767
      *"$as_nl"*)
6768
	expr "X$arg" : "X\\(.*\\)$as_nl";
6769
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6770
      esac;
6771
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6772
    '
6773
    export as_echo_n_body
6774
    as_echo_n='sh -c $as_echo_n_body as_echo'
6775
  fi
6776
  export as_echo_body
6777
  as_echo='sh -c $as_echo_body as_echo'
6778
fi
6779
 
6780
# The user is always right.
6781
if test "${PATH_SEPARATOR+set}" != set; then
6782
  PATH_SEPARATOR=:
6783
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6784
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6785
      PATH_SEPARATOR=';'
6786
  }
6787
fi
6788
 
6789
 
6790
# IFS
6791
# We need space, tab and new line, in precisely that order.  Quoting is
6792
# there to prevent editors from complaining about space-tab.
6793
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6794
# splitting by setting IFS to empty value.)
6795
IFS=" ""	$as_nl"
6796
 
6797
# Find who we are.  Look in the path if we contain no directory separator.
6798
case $0 in @%:@((
6799
  *[\\/]* ) as_myself=$0 ;;
6800
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801
for as_dir in $PATH
6802
do
6803
  IFS=$as_save_IFS
6804
  test -z "$as_dir" && as_dir=.
6805
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6806
  done
6807
IFS=$as_save_IFS
6808
 
6809
     ;;
6810
esac
6811
# We did not find ourselves, most probably we were run as `sh COMMAND'
6812
# in which case we are not to be found in the path.
6813
if test "x$as_myself" = x; then
6814
  as_myself=$0
6815
fi
6816
if test ! -f "$as_myself"; then
6817
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6818
  exit 1
6819
fi
6820
 
6821
# Unset variables that we do not need and which cause bugs (e.g. in
6822
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6823
# suppresses any "Segmentation fault" message there.  '((' could
6824
# trigger a bug in pdksh 5.2.14.
6825
for as_var in BASH_ENV ENV MAIL MAILPATH
6826
do eval test x\${$as_var+set} = xset \
6827
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6828
done
6829
PS1='$ '
6830
PS2='> '
6831
PS4='+ '
6832
 
6833
# NLS nuisances.
6834
LC_ALL=C
6835
export LC_ALL
6836
LANGUAGE=C
6837
export LANGUAGE
6838
 
6839
# CDPATH.
6840
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6841
 
6842
 
6843
@%:@ as_fn_error ERROR [LINENO LOG_FD]
6844
@%:@ ---------------------------------
6845
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6846
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6847
@%:@ script with status $?, using 1 if that was 0.
6848
as_fn_error ()
6849
{
6850
  as_status=$?; test $as_status -eq 0 && as_status=1
6851
  if test "$3"; then
6852
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6853
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6854
  fi
6855
  $as_echo "$as_me: error: $1" >&2
6856
  as_fn_exit $as_status
6857
} @%:@ as_fn_error
6858
 
6859
 
6860
@%:@ as_fn_set_status STATUS
6861
@%:@ -----------------------
6862
@%:@ Set $? to STATUS, without forking.
6863
as_fn_set_status ()
6864
{
6865
  return $1
6866
} @%:@ as_fn_set_status
6867
 
6868
@%:@ as_fn_exit STATUS
6869
@%:@ -----------------
6870
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6871
as_fn_exit ()
6872
{
6873
  set +e
6874
  as_fn_set_status $1
6875
  exit $1
6876
} @%:@ as_fn_exit
6877
 
6878
@%:@ as_fn_unset VAR
6879
@%:@ ---------------
6880
@%:@ Portably unset VAR.
6881
as_fn_unset ()
6882
{
6883
  { eval $1=; unset $1;}
6884
}
6885
as_unset=as_fn_unset
6886
@%:@ as_fn_append VAR VALUE
6887
@%:@ ----------------------
6888
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
6889
@%:@ advantage of any shell optimizations that allow amortized linear growth over
6890
@%:@ repeated appends, instead of the typical quadratic growth present in naive
6891
@%:@ implementations.
6892
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6893
  eval 'as_fn_append ()
6894
  {
6895
    eval $1+=\$2
6896
  }'
6897
else
6898
  as_fn_append ()
6899
  {
6900
    eval $1=\$$1\$2
6901
  }
6902
fi # as_fn_append
6903
 
6904
@%:@ as_fn_arith ARG...
6905
@%:@ ------------------
6906
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
6907
@%:@ global $as_val. Take advantage of shells that can avoid forks. The arguments
6908
@%:@ must be portable across $(()) and expr.
6909
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6910
  eval 'as_fn_arith ()
6911
  {
6912
    as_val=$(( $* ))
6913
  }'
6914
else
6915
  as_fn_arith ()
6916
  {
6917
    as_val=`expr "$@" || test $? -eq 1`
6918
  }
6919
fi # as_fn_arith
6920
 
6921
 
6922
if expr a : '\(a\)' >/dev/null 2>&1 &&
6923
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6924
  as_expr=expr
6925
else
6926
  as_expr=false
6927
fi
6928
 
6929
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6930
  as_basename=basename
6931
else
6932
  as_basename=false
6933
fi
6934
 
6935
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6936
  as_dirname=dirname
6937
else
6938
  as_dirname=false
6939
fi
6940
 
6941
as_me=`$as_basename -- "$0" ||
6942
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6943
	 X"$0" : 'X\(//\)$' \| \
6944
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6945
$as_echo X/"$0" |
6946
    sed '/^.*\/\([^/][^/]*\)\/*$/{
6947
	    s//\1/
6948
	    q
6949
	  }
6950
	  /^X\/\(\/\/\)$/{
6951
	    s//\1/
6952
	    q
6953
	  }
6954
	  /^X\/\(\/\).*/{
6955
	    s//\1/
6956
	    q
6957
	  }
6958
	  s/.*/./; q'`
6959
 
6960
# Avoid depending upon Character Ranges.
6961
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6962
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6963
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6964
as_cr_digits='0123456789'
6965
as_cr_alnum=$as_cr_Letters$as_cr_digits
6966
 
6967
ECHO_C= ECHO_N= ECHO_T=
6968
case `echo -n x` in @%:@(((((
6969
-n*)
6970
  case `echo 'xy\c'` in
6971
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6972
  xy)  ECHO_C='\c';;
6973
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6974
       ECHO_T='	';;
6975
  esac;;
6976
*)
6977
  ECHO_N='-n';;
6978
esac
6979
 
6980
rm -f conf$$ conf$$.exe conf$$.file
6981
if test -d conf$$.dir; then
6982
  rm -f conf$$.dir/conf$$.file
6983
else
6984
  rm -f conf$$.dir
6985
  mkdir conf$$.dir 2>/dev/null
6986
fi
6987
if (echo >conf$$.file) 2>/dev/null; then
6988
  if ln -s conf$$.file conf$$ 2>/dev/null; then
6989
    as_ln_s='ln -s'
6990
    # ... but there are two gotchas:
6991
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6992
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6993
    # In both cases, we have to default to `cp -p'.
6994
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6995
      as_ln_s='cp -p'
6996
  elif ln conf$$.file conf$$ 2>/dev/null; then
6997
    as_ln_s=ln
6998
  else
6999
    as_ln_s='cp -p'
7000
  fi
7001
else
7002
  as_ln_s='cp -p'
7003
fi
7004
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7005
rmdir conf$$.dir 2>/dev/null
7006
 
7007
 
7008
@%:@ as_fn_mkdir_p
7009
@%:@ -------------
7010
@%:@ Create "$as_dir" as a directory, including parents if necessary.
7011
as_fn_mkdir_p ()
7012
{
7013
 
7014
  case $as_dir in #(
7015
  -*) as_dir=./$as_dir;;
7016
  esac
7017
  test -d "$as_dir" || eval $as_mkdir_p || {
7018
    as_dirs=
7019
    while :; do
7020
      case $as_dir in #(
7021
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7022
      *) as_qdir=$as_dir;;
7023
      esac
7024
      as_dirs="'$as_qdir' $as_dirs"
7025
      as_dir=`$as_dirname -- "$as_dir" ||
7026
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7027
	 X"$as_dir" : 'X\(//\)[^/]' \| \
7028
	 X"$as_dir" : 'X\(//\)$' \| \
7029
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7030
$as_echo X"$as_dir" |
7031
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7032
	    s//\1/
7033
	    q
7034
	  }
7035
	  /^X\(\/\/\)[^/].*/{
7036
	    s//\1/
7037
	    q
7038
	  }
7039
	  /^X\(\/\/\)$/{
7040
	    s//\1/
7041
	    q
7042
	  }
7043
	  /^X\(\/\).*/{
7044
	    s//\1/
7045
	    q
7046
	  }
7047
	  s/.*/./; q'`
7048
      test -d "$as_dir" && break
7049
    done
7050
    test -z "$as_dirs" || eval "mkdir $as_dirs"
7051
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7052
 
7053
 
7054
} @%:@ as_fn_mkdir_p
7055
if mkdir -p . 2>/dev/null; then
7056
  as_mkdir_p='mkdir -p "$as_dir"'
7057
else
7058
  test -d ./-p && rmdir ./-p
7059
  as_mkdir_p=false
7060
fi
7061
 
7062
if test -x / >/dev/null 2>&1; then
7063
  as_test_x='test -x'
7064
else
7065
  if ls -dL / >/dev/null 2>&1; then
7066
    as_ls_L_option=L
7067
  else
7068
    as_ls_L_option=
7069
  fi
7070
  as_test_x='
7071
    eval sh -c '\''
7072
      if test -d "$1"; then
7073
	test -d "$1/.";
7074
      else
7075
	case $1 in @%:@(
7076
	-*)set "./$1";;
7077
	esac;
7078
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
7079
	???[sx]*):;;*)false;;esac;fi
7080
    '\'' sh
7081
  '
7082
fi
7083
as_executable_p=$as_test_x
7084
 
7085
# Sed expression to map a string onto a valid CPP name.
7086
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7087
 
7088
# Sed expression to map a string onto a valid variable name.
7089
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7090
 
7091
 
7092
exec 6>&1
7093
## ----------------------------------- ##
7094
## Main body of $CONFIG_STATUS script. ##
7095
## ----------------------------------- ##
7096
_ASEOF
7097
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7098
 
7099
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7100
# Save the log message, to keep $0 and so on meaningful, and to
7101
# report actual input values of CONFIG_FILES etc. instead of their
7102
# values after options handling.
7103
ac_log="
7104
This file was extended by thrift $as_me 0.2.0, which was
7105
generated by GNU Autoconf 2.64.  Invocation command line was
7106
 
7107
  CONFIG_FILES    = $CONFIG_FILES
7108
  CONFIG_HEADERS  = $CONFIG_HEADERS
7109
  CONFIG_LINKS    = $CONFIG_LINKS
7110
  CONFIG_COMMANDS = $CONFIG_COMMANDS
7111
  $ $0 $@
7112
 
7113
on `(hostname || uname -n) 2>/dev/null | sed 1q`
7114
"
7115
 
7116
_ACEOF
7117
 
7118
case $ac_config_files in *"
7119
"*) set x $ac_config_files; shift; ac_config_files=$*;;
7120
esac
7121
 
7122
case $ac_config_headers in *"
7123
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7124
esac
7125
 
7126
 
7127
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7128
# Files that config.status was made for.
7129
config_files="$ac_config_files"
7130
config_headers="$ac_config_headers"
7131
 
7132
_ACEOF
7133
 
7134
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7135
ac_cs_usage="\
7136
\`$as_me' instantiates files and other configuration actions
7137
from templates according to the current configuration.  Unless the files
7138
and actions are specified as TAGs, all are instantiated by default.
7139
 
7140
Usage: $0 [OPTION]... [TAG]...
7141
 
7142
  -h, --help       print this help, then exit
7143
  -V, --version    print version number and configuration settings, then exit
7144
  -q, --quiet, --silent
7145
                   do not print progress messages
7146
  -d, --debug      don't remove temporary files
7147
      --recheck    update $as_me by reconfiguring in the same conditions
7148
      --file=FILE[:TEMPLATE] 
7149
                   instantiate the configuration file FILE
7150
      --header=FILE[:TEMPLATE] 
7151
                   instantiate the configuration header FILE
7152
 
7153
Configuration files:
7154
$config_files
7155
 
7156
Configuration headers:
7157
$config_headers
7158
 
7159
Report bugs to the package provider."
7160
 
7161
_ACEOF
7162
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7163
ac_cs_version="\\
7164
thrift config.status 0.2.0
7165
configured by $0, generated by GNU Autoconf 2.64,
7166
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7167
 
7168
Copyright (C) 2009 Free Software Foundation, Inc.
7169
This config.status script is free software; the Free Software Foundation
7170
gives unlimited permission to copy, distribute and modify it."
7171
 
7172
ac_pwd='$ac_pwd'
7173
srcdir='$srcdir'
7174
INSTALL='$INSTALL'
7175
MKDIR_P='$MKDIR_P'
7176
test -n "\$AWK" || AWK=awk
7177
_ACEOF
7178
 
7179
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7180
# The default lists apply if the user does not specify any file.
7181
ac_need_defaults=:
7182
while test $# != 0
7183
do
7184
  case $1 in
7185
  --*=*)
7186
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7187
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7188
    ac_shift=:
7189
    ;;
7190
  *)
7191
    ac_option=$1
7192
    ac_optarg=$2
7193
    ac_shift=shift
7194
    ;;
7195
  esac
7196
 
7197
  case $ac_option in
7198
  # Handling of the options.
7199
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7200
    ac_cs_recheck=: ;;
7201
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7202
    $as_echo "$ac_cs_version"; exit ;;
7203
  --debug | --debu | --deb | --de | --d | -d )
7204
    debug=: ;;
7205
  --file | --fil | --fi | --f )
7206
    $ac_shift
7207
    case $ac_optarg in
7208
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7209
    esac
7210
    as_fn_append CONFIG_FILES " '$ac_optarg'"
7211
    ac_need_defaults=false;;
7212
  --header | --heade | --head | --hea )
7213
    $ac_shift
7214
    case $ac_optarg in
7215
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7216
    esac
7217
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7218
    ac_need_defaults=false;;
7219
  --he | --h)
7220
    # Conflict between --help and --header
7221
    as_fn_error "ambiguous option: \`$1'
7222
Try \`$0 --help' for more information.";;
7223
  --help | --hel | -h )
7224
    $as_echo "$ac_cs_usage"; exit ;;
7225
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7226
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7227
    ac_cs_silent=: ;;
7228
 
7229
  # This is an error.
7230
  -*) as_fn_error "unrecognized option: \`$1'
7231
Try \`$0 --help' for more information." ;;
7232
 
7233
  *) as_fn_append ac_config_targets " $1"
7234
     ac_need_defaults=false ;;
7235
 
7236
  esac
7237
  shift
7238
done
7239
 
7240
ac_configure_extra_args=
7241
 
7242
if $ac_cs_silent; then
7243
  exec 6>/dev/null
7244
  ac_configure_extra_args="$ac_configure_extra_args --silent"
7245
fi
7246
 
7247
_ACEOF
7248
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7249
if \$ac_cs_recheck; then
7250
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7251
  shift
7252
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7253
  CONFIG_SHELL='$SHELL'
7254
  export CONFIG_SHELL
7255
  exec "\$@"
7256
fi
7257
 
7258
_ACEOF
7259
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7260
exec 5>>config.log
7261
{
7262
  echo
7263
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
7264
@%:@@%:@ Running $as_me. @%:@@%:@
7265
_ASBOX
7266
  $as_echo "$ac_log"
7267
} >&5
7268
 
7269
_ACEOF
7270
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7271
_ACEOF
7272
 
7273
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7274
 
7275
# Handling of arguments.
7276
for ac_config_target in $ac_config_targets
7277
do
7278
  case $ac_config_target in
7279
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
7280
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7281
    "compiler/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES compiler/cpp/Makefile" ;;
7282
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7283
    "lib/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cpp/Makefile" ;;
7284
    "lib/cpp/thrift.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift.pc" ;;
7285
    "lib/cpp/thrift-nb.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift-nb.pc" ;;
7286
    "lib/cpp/thrift-z.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/thrift-z.pc" ;;
7287
    "lib/csharp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/csharp/Makefile" ;;
7288
    "lib/java/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/Makefile" ;;
7289
    "lib/perl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/perl/Makefile" ;;
7290
    "lib/perl/test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/perl/test/Makefile" ;;
7291
    "lib/py/Makefile") CONFIG_FILES="$CONFIG_FILES lib/py/Makefile" ;;
7292
    "lib/rb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rb/Makefile" ;;
7293
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7294
    "test/py/Makefile") CONFIG_FILES="$CONFIG_FILES test/py/Makefile" ;;
7295
    "test/rb/Makefile") CONFIG_FILES="$CONFIG_FILES test/rb/Makefile" ;;
7296
 
7297
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7298
  esac
7299
done
7300
 
7301
 
7302
# If the user did not use the arguments to specify the items to instantiate,
7303
# then the envvar interface is used.  Set only those that are not.
7304
# We use the long form for the default assignment because of an extremely
7305
# bizarre bug on SunOS 4.1.3.
7306
if $ac_need_defaults; then
7307
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7308
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7309
fi
7310
 
7311
# Have a temporary directory for convenience.  Make it in the build tree
7312
# simply because there is no reason against having it here, and in addition,
7313
# creating and moving files from /tmp can sometimes cause problems.
7314
# Hook for its removal unless debugging.
7315
# Note that there is a small window in which the directory will not be cleaned:
7316
# after its creation but before its name has been assigned to `$tmp'.
7317
$debug ||
7318
{
7319
  tmp=
7320
  trap 'exit_status=$?
7321
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7322
' 0
7323
  trap 'as_fn_exit 1' 1 2 13 15
7324
}
7325
# Create a (secure) tmp directory for tmp files.
7326
 
7327
{
7328
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7329
  test -n "$tmp" && test -d "$tmp"
7330
}  ||
7331
{
7332
  tmp=./conf$$-$RANDOM
7333
  (umask 077 && mkdir "$tmp")
7334
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7335
 
7336
# Set up the scripts for CONFIG_FILES section.
7337
# No need to generate them if there are no CONFIG_FILES.
7338
# This happens for instance with `./config.status config.h'.
7339
if test -n "$CONFIG_FILES"; then
7340
 
7341
 
7342
ac_cr=`echo X | tr X '\015'`
7343
# On cygwin, bash can eat \r inside `` if the user requested igncr.
7344
# But we know of no other shell where ac_cr would be empty at this
7345
# point, so we can use a bashism as a fallback.
7346
if test "x$ac_cr" = x; then
7347
  eval ac_cr=\$\'\\r\'
7348
fi
7349
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7350
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7351
  ac_cs_awk_cr='\r'
7352
else
7353
  ac_cs_awk_cr=$ac_cr
7354
fi
7355
 
7356
echo 'BEGIN {' >"$tmp/subs1.awk" &&
7357
_ACEOF
7358
 
7359
 
7360
{
7361
  echo "cat >conf$$subs.awk <<_ACEOF" &&
7362
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7363
  echo "_ACEOF"
7364
} >conf$$subs.sh ||
7365
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7366
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7367
ac_delim='%!_!# '
7368
for ac_last_try in false false false false false :; do
7369
  . ./conf$$subs.sh ||
7370
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7371
 
7372
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7373
  if test $ac_delim_n = $ac_delim_num; then
7374
    break
7375
  elif $ac_last_try; then
7376
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7377
  else
7378
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7379
  fi
7380
done
7381
rm -f conf$$subs.sh
7382
 
7383
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7384
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7385
_ACEOF
7386
sed -n '
7387
h
7388
s/^/S["/; s/!.*/"]=/
7389
p
7390
g
7391
s/^[^!]*!//
7392
:repl
7393
t repl
7394
s/'"$ac_delim"'$//
7395
t delim
7396
:nl
7397
h
7398
s/\(.\{148\}\).*/\1/
7399
t more1
7400
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7401
p
7402
n
7403
b repl
7404
:more1
7405
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7406
p
7407
g
7408
s/.\{148\}//
7409
t nl
7410
:delim
7411
h
7412
s/\(.\{148\}\).*/\1/
7413
t more2
7414
s/["\\]/\\&/g; s/^/"/; s/$/"/
7415
p
7416
b
7417
:more2
7418
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7419
p
7420
g
7421
s/.\{148\}//
7422
t delim
7423
' <conf$$subs.awk | sed '
7424
/^[^""]/{
7425
  N
7426
  s/\n//
7427
}
7428
' >>$CONFIG_STATUS || ac_write_fail=1
7429
rm -f conf$$subs.awk
7430
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7431
_ACAWK
7432
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7433
  for (key in S) S_is_set[key] = 1
7434
  FS = ""
7435
 
7436
}
7437
{
7438
  line = $ 0
7439
  nfields = split(line, field, "@")
7440
  substed = 0
7441
  len = length(field[1])
7442
  for (i = 2; i < nfields; i++) {
7443
    key = field[i]
7444
    keylen = length(key)
7445
    if (S_is_set[key]) {
7446
      value = S[key]
7447
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7448
      len += length(value) + length(field[++i])
7449
      substed = 1
7450
    } else
7451
      len += 1 + keylen
7452
  }
7453
 
7454
  print line
7455
}
7456
 
7457
_ACAWK
7458
_ACEOF
7459
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7460
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7461
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7462
else
7463
  cat
7464
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7465
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
7466
_ACEOF
7467
 
7468
# VPATH may cause trouble with some makes, so we remove $(srcdir),
7469
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7470
# trailing colons and then remove the whole line if VPATH becomes empty
7471
# (actually we leave an empty line to preserve line numbers).
7472
if test "x$srcdir" = x.; then
7473
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
7474
s/:*\$(srcdir):*/:/
7475
s/:*\${srcdir}:*/:/
7476
s/:*@srcdir@:*/:/
7477
s/^\([^=]*=[	 ]*\):*/\1/
7478
s/:*$//
7479
s/^[^=]*=[	 ]*$//
7480
}'
7481
fi
7482
 
7483
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7484
fi # test -n "$CONFIG_FILES"
7485
 
7486
# Set up the scripts for CONFIG_HEADERS section.
7487
# No need to generate them if there are no CONFIG_HEADERS.
7488
# This happens for instance with `./config.status Makefile'.
7489
if test -n "$CONFIG_HEADERS"; then
7490
cat >"$tmp/defines.awk" <<\_ACAWK ||
7491
BEGIN {
7492
_ACEOF
7493
 
7494
# Transform confdefs.h into an awk script `defines.awk', embedded as
7495
# here-document in config.status, that substitutes the proper values into
7496
# config.h.in to produce config.h.
7497
 
7498
# Create a delimiter string that does not exist in confdefs.h, to ease
7499
# handling of long lines.
7500
ac_delim='%!_!# '
7501
for ac_last_try in false false :; do
7502
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7503
  if test -z "$ac_t"; then
7504
    break
7505
  elif $ac_last_try; then
7506
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7507
  else
7508
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7509
  fi
7510
done
7511
 
7512
# For the awk script, D is an array of macro values keyed by name,
7513
# likewise P contains macro parameters if any.  Preserve backslash
7514
# newline sequences.
7515
 
7516
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7517
sed -n '
7518
s/.\{148\}/&'"$ac_delim"'/g
7519
t rset
7520
:rset
7521
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
7522
t def
7523
d
7524
:def
7525
s/\\$//
7526
t bsnl
7527
s/["\\]/\\&/g
7528
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7529
D["\1"]=" \3"/p
7530
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
7531
d
7532
:bsnl
7533
s/["\\]/\\&/g
7534
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7535
D["\1"]=" \3\\\\\\n"\\/p
7536
t cont
7537
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7538
t cont
7539
d
7540
:cont
7541
n
7542
s/.\{148\}/&'"$ac_delim"'/g
7543
t clear
7544
:clear
7545
s/\\$//
7546
t bsnlc
7547
s/["\\]/\\&/g; s/^/"/; s/$/"/p
7548
d
7549
:bsnlc
7550
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7551
b cont
7552
' <confdefs.h | sed '
7553
s/'"$ac_delim"'/"\\\
7554
"/g' >>$CONFIG_STATUS || ac_write_fail=1
7555
 
7556
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7557
  for (key in D) D_is_set[key] = 1
7558
  FS = ""
7559
}
7560
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7561
  line = \$ 0
7562
  split(line, arg, " ")
7563
  if (arg[1] == "#") {
7564
    defundef = arg[2]
7565
    mac1 = arg[3]
7566
  } else {
7567
    defundef = substr(arg[1], 2)
7568
    mac1 = arg[2]
7569
  }
7570
  split(mac1, mac2, "(") #)
7571
  macro = mac2[1]
7572
  prefix = substr(line, 1, index(line, defundef) - 1)
7573
  if (D_is_set[macro]) {
7574
    # Preserve the white space surrounding the "#".
7575
    print prefix "define", macro P[macro] D[macro]
7576
    next
7577
  } else {
7578
    # Replace #undef with comments.  This is necessary, for example,
7579
    # in the case of _POSIX_SOURCE, which is predefined and required
7580
    # on some systems where configure will not decide to define it.
7581
    if (defundef == "undef") {
7582
      print "/*", prefix defundef, macro, "*/"
7583
      next
7584
    }
7585
  }
7586
}
7587
{ print }
7588
_ACAWK
7589
_ACEOF
7590
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7591
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
7592
fi # test -n "$CONFIG_HEADERS"
7593
 
7594
 
7595
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
7596
shift
7597
for ac_tag
7598
do
7599
  case $ac_tag in
7600
  :[FHLC]) ac_mode=$ac_tag; continue;;
7601
  esac
7602
  case $ac_mode$ac_tag in
7603
  :[FHL]*:*);;
7604
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7605
  :[FH]-) ac_tag=-:-;;
7606
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7607
  esac
7608
  ac_save_IFS=$IFS
7609
  IFS=:
7610
  set x $ac_tag
7611
  IFS=$ac_save_IFS
7612
  shift
7613
  ac_file=$1
7614
  shift
7615
 
7616
  case $ac_mode in
7617
  :L) ac_source=$1;;
7618
  :[FH])
7619
    ac_file_inputs=
7620
    for ac_f
7621
    do
7622
      case $ac_f in
7623
      -) ac_f="$tmp/stdin";;
7624
      *) # Look for the file first in the build tree, then in the source tree
7625
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7626
	 # because $ac_f cannot contain `:'.
7627
	 test -f "$ac_f" ||
7628
	   case $ac_f in
7629
	   [\\/$]*) false;;
7630
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7631
	   esac ||
7632
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7633
      esac
7634
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7635
      as_fn_append ac_file_inputs " '$ac_f'"
7636
    done
7637
 
7638
    # Let's still pretend it is `configure' which instantiates (i.e., don't
7639
    # use $as_me), people would be surprised to read:
7640
    #    /* config.h.  Generated by config.status.  */
7641
    configure_input='Generated from '`
7642
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7643
	`' by configure.'
7644
    if test x"$ac_file" != x-; then
7645
      configure_input="$ac_file.  $configure_input"
7646
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7647
$as_echo "$as_me: creating $ac_file" >&6;}
7648
    fi
7649
    # Neutralize special characters interpreted by sed in replacement strings.
7650
    case $configure_input in #(
7651
    *\&* | *\|* | *\\* )
7652
       ac_sed_conf_input=`$as_echo "$configure_input" |
7653
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7654
    *) ac_sed_conf_input=$configure_input;;
7655
    esac
7656
 
7657
    case $ac_tag in
7658
    *:-:* | *:-) cat >"$tmp/stdin" \
7659
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7660
    esac
7661
    ;;
7662
  esac
7663
 
7664
  ac_dir=`$as_dirname -- "$ac_file" ||
7665
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7666
	 X"$ac_file" : 'X\(//\)[^/]' \| \
7667
	 X"$ac_file" : 'X\(//\)$' \| \
7668
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7669
$as_echo X"$ac_file" |
7670
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7671
	    s//\1/
7672
	    q
7673
	  }
7674
	  /^X\(\/\/\)[^/].*/{
7675
	    s//\1/
7676
	    q
7677
	  }
7678
	  /^X\(\/\/\)$/{
7679
	    s//\1/
7680
	    q
7681
	  }
7682
	  /^X\(\/\).*/{
7683
	    s//\1/
7684
	    q
7685
	  }
7686
	  s/.*/./; q'`
7687
  as_dir="$ac_dir"; as_fn_mkdir_p
7688
  ac_builddir=.
7689
 
7690
case "$ac_dir" in
7691
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7692
*)
7693
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7694
  # A ".." for each directory in $ac_dir_suffix.
7695
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7696
  case $ac_top_builddir_sub in
7697
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7698
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7699
  esac ;;
7700
esac
7701
ac_abs_top_builddir=$ac_pwd
7702
ac_abs_builddir=$ac_pwd$ac_dir_suffix
7703
# for backward compatibility:
7704
ac_top_builddir=$ac_top_build_prefix
7705
 
7706
case $srcdir in
7707
  .)  # We are building in place.
7708
    ac_srcdir=.
7709
    ac_top_srcdir=$ac_top_builddir_sub
7710
    ac_abs_top_srcdir=$ac_pwd ;;
7711
  [\\/]* | ?:[\\/]* )  # Absolute name.
7712
    ac_srcdir=$srcdir$ac_dir_suffix;
7713
    ac_top_srcdir=$srcdir
7714
    ac_abs_top_srcdir=$srcdir ;;
7715
  *) # Relative name.
7716
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7717
    ac_top_srcdir=$ac_top_build_prefix$srcdir
7718
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7719
esac
7720
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7721
 
7722
 
7723
  case $ac_mode in
7724
  :F)
7725
  #
7726
  # CONFIG_FILE
7727
  #
7728
 
7729
  case $INSTALL in
7730
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7731
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7732
  esac
7733
  ac_MKDIR_P=$MKDIR_P
7734
  case $MKDIR_P in
7735
  [\\/$]* | ?:[\\/]* ) ;;
7736
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7737
  esac
7738
_ACEOF
7739
 
7740
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7741
# If the template does not know about datarootdir, expand it.
7742
# FIXME: This hack should be removed a few years after 2.60.
7743
ac_datarootdir_hack=; ac_datarootdir_seen=
7744
ac_sed_dataroot='
7745
/datarootdir/ {
7746
  p
7747
  q
7748
}
7749
/@datadir@/p
7750
/@docdir@/p
7751
/@infodir@/p
7752
/@localedir@/p
7753
/@mandir@/p'
7754
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7755
*datarootdir*) ac_datarootdir_seen=yes;;
7756
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7757
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7758
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7759
_ACEOF
7760
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7761
  ac_datarootdir_hack='
7762
  s&@datadir@&$datadir&g
7763
  s&@docdir@&$docdir&g
7764
  s&@infodir@&$infodir&g
7765
  s&@localedir@&$localedir&g
7766
  s&@mandir@&$mandir&g
7767
  s&\\\${datarootdir}&$datarootdir&g' ;;
7768
esac
7769
_ACEOF
7770
 
7771
# Neutralize VPATH when `$srcdir' = `.'.
7772
# Shell code in configure.ac might set extrasub.
7773
# FIXME: do we really want to maintain this feature?
7774
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7775
ac_sed_extra="$ac_vpsub
7776
$extrasub
7777
_ACEOF
7778
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7779
:t
7780
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7781
s|@configure_input@|$ac_sed_conf_input|;t t
7782
s&@top_builddir@&$ac_top_builddir_sub&;t t
7783
s&@top_build_prefix@&$ac_top_build_prefix&;t t
7784
s&@srcdir@&$ac_srcdir&;t t
7785
s&@abs_srcdir@&$ac_abs_srcdir&;t t
7786
s&@top_srcdir@&$ac_top_srcdir&;t t
7787
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7788
s&@builddir@&$ac_builddir&;t t
7789
s&@abs_builddir@&$ac_abs_builddir&;t t
7790
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7791
s&@INSTALL@&$ac_INSTALL&;t t
7792
s&@MKDIR_P@&$ac_MKDIR_P&;t t
7793
$ac_datarootdir_hack
7794
"
7795
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7796
  || as_fn_error "could not create $ac_file" "$LINENO" 5
7797
 
7798
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7799
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7800
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7801
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7802
which seems to be undefined.  Please make sure it is defined." >&5
7803
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7804
which seems to be undefined.  Please make sure it is defined." >&2;}
7805
 
7806
  rm -f "$tmp/stdin"
7807
  case $ac_file in
7808
  -) cat "$tmp/out" && rm -f "$tmp/out";;
7809
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7810
  esac \
7811
  || as_fn_error "could not create $ac_file" "$LINENO" 5
7812
 ;;
7813
  :H)
7814
  #
7815
  # CONFIG_HEADER
7816
  #
7817
  if test x"$ac_file" != x-; then
7818
    {
7819
      $as_echo "/* $configure_input  */" \
7820
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7821
    } >"$tmp/config.h" \
7822
      || as_fn_error "could not create $ac_file" "$LINENO" 5
7823
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7824
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7825
$as_echo "$as_me: $ac_file is unchanged" >&6;}
7826
    else
7827
      rm -f "$ac_file"
7828
      mv "$tmp/config.h" "$ac_file" \
7829
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
7830
    fi
7831
  else
7832
    $as_echo "/* $configure_input  */" \
7833
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7834
      || as_fn_error "could not create -" "$LINENO" 5
7835
  fi
7836
 ;;
7837
 
7838
 
7839
  esac
7840
 
7841
done # for ac_tag
7842
 
7843
 
7844
as_fn_exit 0
7845
_ACEOF
7846
ac_clean_files=$ac_clean_files_save
7847
 
7848
test $ac_write_fail = 0 ||
7849
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7850
 
7851
 
7852
# configure is writing to config.log, and then calls config.status.
7853
# config.status does its own redirection, appending to config.log.
7854
# Unfortunately, on DOS this fails, as config.log is still kept open
7855
# by configure, so config.status won't be able to write to it; its
7856
# output is simply discarded.  So we exec the FD to /dev/null,
7857
# effectively closing config.log, so it can be properly (re)opened and
7858
# appended to by config.status.  When coming back to configure, we
7859
# need to make the FD available again.
7860
if test "$no_create" != yes; then
7861
  ac_cs_success=:
7862
  ac_config_status_args=
7863
  test "$silent" = yes &&
7864
    ac_config_status_args="$ac_config_status_args --quiet"
7865
  exec 5>/dev/null
7866
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7867
  exec 5>>config.log
7868
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7869
  # would make configure fail if this is the last instruction.
7870
  $ac_cs_success || as_fn_exit $?
7871
fi
7872
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7873
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7874
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7875
fi
7876