Statistics
| Branch: | Revision:

iof-bird / bird-2.0.1 / configure @ 2b5ca73a

History | View | Annotate | Download (194 KB)

1 6b3f1a54 tiamilani
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69.
4
#
5
#
6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7
#
8
#
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32
33
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in #(
59
      *"$as_nl"*)
60
	expr "X$arg" : "X\\(.*\\)$as_nl";
61
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
81
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""	$as_nl"
88
89
# Find who we are.  Look in the path if we contain no directory separator.
90
as_myself=
91
case $0 in #((
92
  *[\\/]* ) as_myself=$0 ;;
93
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94
for as_dir in $PATH
95
do
96
  IFS=$as_save_IFS
97
  test -z "$as_dir" && as_dir=.
98
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99
  done
100
IFS=$as_save_IFS
101
102
     ;;
103
esac
104
# We did not find ourselves, most probably we were run as `sh COMMAND'
105
# in which case we are not to be found in the path.
106
if test "x$as_myself" = x; then
107
  as_myself=$0
108
fi
109
if test ! -f "$as_myself"; then
110
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111
  exit 1
112
fi
113
114
# Unset variables that we do not need and which cause bugs (e.g. in
115
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116
# suppresses any "Segmentation fault" message there.  '((' could
117
# trigger a bug in pdksh 5.2.14.
118
for as_var in BASH_ENV ENV MAIL MAILPATH
119
do eval test x\${$as_var+set} = xset \
120
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121
done
122
PS1='$ '
123
PS2='> '
124
PS4='+ '
125
126
# NLS nuisances.
127
LC_ALL=C
128
export LC_ALL
129
LANGUAGE=C
130
export LANGUAGE
131
132
# CDPATH.
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135
# Use a proper internal environment variable to ensure we don't fall
136
  # into an infinite loop, continuously re-executing ourselves.
137
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
    _as_can_reexec=no; export _as_can_reexec;
139
    # We cannot yet assume a decent shell, so we have to provide a
140
# neutralization value for shells without unset; and this also
141
# works around shells that cannot unset nonexistent variables.
142
# Preserve -v and -x to the replacement shell.
143
BASH_ENV=/dev/null
144
ENV=/dev/null
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146
case $- in # ((((
147
  *v*x* | *x*v* ) as_opts=-vx ;;
148
  *v* ) as_opts=-v ;;
149
  *x* ) as_opts=-x ;;
150
  * ) as_opts= ;;
151
esac
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
# Admittedly, this is quite paranoid, since all the known shells bail
154
# out after a failed `exec'.
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156
as_fn_exit 255
157
  fi
158
  # We don't want this to propagate to other subprocesses.
159
          { _as_can_reexec=; unset _as_can_reexec;}
160
if test "x$CONFIG_SHELL" = x; then
161
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162
  emulate sh
163
  NULLCMD=:
164
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165
  # is contrary to our usage.  Disable this feature.
166
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167
  setopt NO_GLOB_SUBST
168
else
169
  case \`(set -o) 2>/dev/null\` in #(
170
  *posix*) :
171
    set -o posix ;; #(
172
  *) :
173
     ;;
174
esac
175
fi
176
"
177
  as_required="as_fn_return () { (exit \$1); }
178
as_fn_success () { as_fn_return 0; }
179
as_fn_failure () { as_fn_return 1; }
180
as_fn_ret_success () { return 0; }
181
as_fn_ret_failure () { return 1; }
182
183
exitcode=0
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190
else
191
  exitcode=1; echo positional parameters were not saved.
192
fi
193
test x\$exitcode = x0 || exit 1
194
test -x / || exit 1"
195
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
test \$(( 1 + 1 )) = 2 || exit 1"
200
  if (eval "$as_required") 2>/dev/null; then :
201
  as_have_required=yes
202
else
203
  as_have_required=no
204
fi
205
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207
else
208
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209
as_found=false
210
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211
do
212
  IFS=$as_save_IFS
213
  test -z "$as_dir" && as_dir=.
214
  as_found=:
215
  case $as_dir in #(
216
	 /*)
217
	   for as_base in sh bash ksh sh5; do
218
	     # Try only shells that exist, to save several forks.
219
	     as_shell=$as_dir/$as_base
220
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222
  CONFIG_SHELL=$as_shell as_have_required=yes
223
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224
  break 2
225
fi
226
fi
227
	   done;;
228
       esac
229
  as_found=false
230
done
231
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233
  CONFIG_SHELL=$SHELL as_have_required=yes
234
fi; }
235
IFS=$as_save_IFS
236
237
238
      if test "x$CONFIG_SHELL" != x; then :
239
  export CONFIG_SHELL
240
             # We cannot yet assume a decent shell, so we have to provide a
241
# neutralization value for shells without unset; and this also
242
# works around shells that cannot unset nonexistent variables.
243
# Preserve -v and -x to the replacement shell.
244
BASH_ENV=/dev/null
245
ENV=/dev/null
246
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247
case $- in # ((((
248
  *v*x* | *x*v* ) as_opts=-vx ;;
249
  *v* ) as_opts=-v ;;
250
  *x* ) as_opts=-x ;;
251
  * ) as_opts= ;;
252
esac
253
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254
# Admittedly, this is quite paranoid, since all the known shells bail
255
# out after a failed `exec'.
256
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257
exit 255
258
fi
259
260
    if test x$as_have_required = xno; then :
261
  $as_echo "$0: This script requires a shell more modern than all"
262
  $as_echo "$0: the shells that I found on your system."
263
  if test x${ZSH_VERSION+set} = xset ; then
264
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266
  else
267
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268
$0: including any error possibly output before this
269
$0: message. Then install a modern shell, or manually run
270
$0: the script under such a shell if you do have one."
271
  fi
272
  exit 1
273
fi
274
fi
275
fi
276
SHELL=${CONFIG_SHELL-/bin/sh}
277
export SHELL
278
# Unset more variables known to interfere with behavior of common tools.
279
CLICOLOR_FORCE= GREP_OPTIONS=
280
unset CLICOLOR_FORCE GREP_OPTIONS
281
282
## --------------------- ##
283
## M4sh Shell Functions. ##
284
## --------------------- ##
285
# as_fn_unset VAR
286
# ---------------
287
# Portably unset VAR.
288
as_fn_unset ()
289
{
290
  { eval $1=; unset $1;}
291
}
292
as_unset=as_fn_unset
293
294
# as_fn_set_status STATUS
295
# -----------------------
296
# Set $? to STATUS, without forking.
297
as_fn_set_status ()
298
{
299
  return $1
300
} # as_fn_set_status
301
302
# as_fn_exit STATUS
303
# -----------------
304
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305
as_fn_exit ()
306
{
307
  set +e
308
  as_fn_set_status $1
309
  exit $1
310
} # as_fn_exit
311
312
# as_fn_mkdir_p
313
# -------------
314
# Create "$as_dir" as a directory, including parents if necessary.
315
as_fn_mkdir_p ()
316
{
317
318
  case $as_dir in #(
319
  -*) as_dir=./$as_dir;;
320
  esac
321
  test -d "$as_dir" || eval $as_mkdir_p || {
322
    as_dirs=
323
    while :; do
324
      case $as_dir in #(
325
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326
      *) as_qdir=$as_dir;;
327
      esac
328
      as_dirs="'$as_qdir' $as_dirs"
329
      as_dir=`$as_dirname -- "$as_dir" ||
330
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331
	 X"$as_dir" : 'X\(//\)[^/]' \| \
332
	 X"$as_dir" : 'X\(//\)$' \| \
333
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334
$as_echo X"$as_dir" |
335
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336
	    s//\1/
337
	    q
338
	  }
339
	  /^X\(\/\/\)[^/].*/{
340
	    s//\1/
341
	    q
342
	  }
343
	  /^X\(\/\/\)$/{
344
	    s//\1/
345
	    q
346
	  }
347
	  /^X\(\/\).*/{
348
	    s//\1/
349
	    q
350
	  }
351
	  s/.*/./; q'`
352
      test -d "$as_dir" && break
353
    done
354
    test -z "$as_dirs" || eval "mkdir $as_dirs"
355
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358
} # as_fn_mkdir_p
359
360
# as_fn_executable_p FILE
361
# -----------------------
362
# Test if FILE is an executable regular file.
363
as_fn_executable_p ()
364
{
365
  test -f "$1" && test -x "$1"
366
} # as_fn_executable_p
367
# as_fn_append VAR VALUE
368
# ----------------------
369
# Append the text in VALUE to the end of the definition contained in VAR. Take
370
# advantage of any shell optimizations that allow amortized linear growth over
371
# repeated appends, instead of the typical quadratic growth present in naive
372
# implementations.
373
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374
  eval 'as_fn_append ()
375
  {
376
    eval $1+=\$2
377
  }'
378
else
379
  as_fn_append ()
380
  {
381
    eval $1=\$$1\$2
382
  }
383
fi # as_fn_append
384
385
# as_fn_arith ARG...
386
# ------------------
387
# Perform arithmetic evaluation on the ARGs, and store the result in the
388
# global $as_val. Take advantage of shells that can avoid forks. The arguments
389
# must be portable across $(()) and expr.
390
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391
  eval 'as_fn_arith ()
392
  {
393
    as_val=$(( $* ))
394
  }'
395
else
396
  as_fn_arith ()
397
  {
398
    as_val=`expr "$@" || test $? -eq 1`
399
  }
400
fi # as_fn_arith
401
402
403
# as_fn_error STATUS ERROR [LINENO LOG_FD]
404
# ----------------------------------------
405
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407
# script with STATUS, using 1 if that was 0.
408
as_fn_error ()
409
{
410
  as_status=$1; test $as_status -eq 0 && as_status=1
411
  if test "$4"; then
412
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414
  fi
415
  $as_echo "$as_me: error: $2" >&2
416
  as_fn_exit $as_status
417
} # as_fn_error
418
419
if expr a : '\(a\)' >/dev/null 2>&1 &&
420
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421
  as_expr=expr
422
else
423
  as_expr=false
424
fi
425
426
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427
  as_basename=basename
428
else
429
  as_basename=false
430
fi
431
432
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433
  as_dirname=dirname
434
else
435
  as_dirname=false
436
fi
437
438
as_me=`$as_basename -- "$0" ||
439
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440
	 X"$0" : 'X\(//\)$' \| \
441
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442
$as_echo X/"$0" |
443
    sed '/^.*\/\([^/][^/]*\)\/*$/{
444
	    s//\1/
445
	    q
446
	  }
447
	  /^X\/\(\/\/\)$/{
448
	    s//\1/
449
	    q
450
	  }
451
	  /^X\/\(\/\).*/{
452
	    s//\1/
453
	    q
454
	  }
455
	  s/.*/./; q'`
456
457
# Avoid depending upon Character Ranges.
458
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461
as_cr_digits='0123456789'
462
as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470
  sed -n '
471
    p
472
    /[$]LINENO/=
473
  ' <$as_myself |
474
    sed '
475
      s/[$]LINENO.*/&-/
476
      t lineno
477
      b
478
      :lineno
479
      N
480
      :loop
481
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482
      t loop
483
      s/-\n.*//
484
    ' >$as_me.lineno &&
485
  chmod +x "$as_me.lineno" ||
486
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489
  # already done that, so ensure we don't try to do so again and fall
490
  # in an infinite loop.  This has already happened in practice.
491
  _as_can_reexec=no; export _as_can_reexec
492
  # Don't try to exec as it changes $[0], causing all sort of problems
493
  # (the dirname of $[0] is not the place where we might find the
494
  # original and so on.  Autoconf is especially sensitive to this).
495
  . "./$as_me.lineno"
496
  # Exit status is that of the last command.
497
  exit
498
}
499
500
ECHO_C= ECHO_N= ECHO_T=
501
case `echo -n x` in #(((((
502
-n*)
503
  case `echo 'xy\c'` in
504
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505
  xy)  ECHO_C='\c';;
506
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507
       ECHO_T='	';;
508
  esac;;
509
*)
510
  ECHO_N='-n';;
511
esac
512
513
rm -f conf$$ conf$$.exe conf$$.file
514
if test -d conf$$.dir; then
515
  rm -f conf$$.dir/conf$$.file
516
else
517
  rm -f conf$$.dir
518
  mkdir conf$$.dir 2>/dev/null
519
fi
520
if (echo >conf$$.file) 2>/dev/null; then
521
  if ln -s conf$$.file conf$$ 2>/dev/null; then
522
    as_ln_s='ln -s'
523
    # ... but there are two gotchas:
524
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526
    # In both cases, we have to default to `cp -pR'.
527
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528
      as_ln_s='cp -pR'
529
  elif ln conf$$.file conf$$ 2>/dev/null; then
530
    as_ln_s=ln
531
  else
532
    as_ln_s='cp -pR'
533
  fi
534
else
535
  as_ln_s='cp -pR'
536
fi
537
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538
rmdir conf$$.dir 2>/dev/null
539
540
if mkdir -p . 2>/dev/null; then
541
  as_mkdir_p='mkdir -p "$as_dir"'
542
else
543
  test -d ./-p && rmdir ./-p
544
  as_mkdir_p=false
545
fi
546
547
as_test_x='test -x'
548
as_executable_p=as_fn_executable_p
549
550
# Sed expression to map a string onto a valid CPP name.
551
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553
# Sed expression to map a string onto a valid variable name.
554
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
test -n "$DJDIR" || exec 7<&0 </dev/null
558
exec 6>&1
559
560
# Name of the host.
561
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562
# so uname gets run too.
563
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565
#
566
# Initializations.
567
#
568
ac_default_prefix=/usr/local
569
ac_clean_files=
570
ac_config_libobj_dir=.
571
LIBOBJS=
572
cross_compiling=no
573
subdirs=
574
MFLAGS=
575
MAKEFLAGS=
576
577
# Identity of this package.
578
PACKAGE_NAME=
579
PACKAGE_TARNAME=
580
PACKAGE_VERSION=
581
PACKAGE_STRING=
582
PACKAGE_BUGREPORT=
583
PACKAGE_URL=
584
585
ac_unique_file="conf/confbase.Y"
586
ac_header_list=
587
# Factoring default headers for most tests.
588
ac_includes_default="\
589
#include <stdio.h>
590
#ifdef HAVE_SYS_TYPES_H
591
# include <sys/types.h>
592
#endif
593
#ifdef HAVE_SYS_STAT_H
594
# include <sys/stat.h>
595
#endif
596
#ifdef STDC_HEADERS
597
# include <stdlib.h>
598
# include <stddef.h>
599
#else
600
# ifdef HAVE_STDLIB_H
601
#  include <stdlib.h>
602
# endif
603
#endif
604
#ifdef HAVE_STRING_H
605
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606
#  include <memory.h>
607
# endif
608
# include <string.h>
609
#endif
610
#ifdef HAVE_STRINGS_H
611
# include <strings.h>
612
#endif
613
#ifdef HAVE_INTTYPES_H
614
# include <inttypes.h>
615
#endif
616
#ifdef HAVE_STDINT_H
617
# include <stdint.h>
618
#endif
619
#ifdef HAVE_UNISTD_H
620
# include <unistd.h>
621
#endif"
622
623
ac_subst_vars='LTLIBOBJS
624
LIBOBJS
625
CLIENT_LIBS
626
CLIENT
627
EGREP
628
GREP
629
protocols
630
DAEMON_LIBS
631
iproutedir
632
sysdep_dirs
633
RANLIB
634
INSTALL_DATA
635
INSTALL_SCRIPT
636
INSTALL_PROGRAM
637
CPP
638
host_os
639
host_vendor
640
host_cpu
641
host
642
build_os
643
build_vendor
644
build_cpu
645
build
646
OBJEXT
647
EXEEXT
648
ac_ct_CC
649
CPPFLAGS
650
LDFLAGS
651
CFLAGS
652
CC
653
CONTROL_SOCKET
654
CONFIG_FILE
655
runtimedir
656
srcdir
657
exedir
658
objdir
659
M4
660
BISON
661
FLEX
662
target_alias
663
host_alias
664
build_alias
665
LIBS
666
ECHO_T
667
ECHO_N
668
ECHO_C
669
DEFS
670
mandir
671
localedir
672
libdir
673
psdir
674
pdfdir
675
dvidir
676
htmldir
677
infodir
678
docdir
679
oldincludedir
680
includedir
681
localstatedir
682
sharedstatedir
683
sysconfdir
684
datadir
685
datarootdir
686
libexecdir
687
sbindir
688
bindir
689
program_transform_name
690
prefix
691
exec_prefix
692
PACKAGE_URL
693
PACKAGE_BUGREPORT
694
PACKAGE_STRING
695
PACKAGE_VERSION
696
PACKAGE_TARNAME
697
PACKAGE_NAME
698
PATH_SEPARATOR
699
SHELL'
700
ac_subst_files=''
701
ac_user_opts='
702
enable_option_checking
703
enable_client
704
enable_debug
705
enable_memcheck
706
enable_pthreads
707
enable_libssh
708
enable_mpls_kernel
709
with_protocols
710
with_sysconfig
711
with_runtimedir
712
with_iproutedir
713
'
714
      ac_precious_vars='build_alias
715
host_alias
716
target_alias
717
FLEX
718
BISON
719
M4
720
CC
721
CFLAGS
722
LDFLAGS
723
LIBS
724
CPPFLAGS
725
CPP'
726
727
728
# Initialize some variables set by options.
729
ac_init_help=
730
ac_init_version=false
731
ac_unrecognized_opts=
732
ac_unrecognized_sep=
733
# The variables have the same names as the options, with
734
# dashes changed to underlines.
735
cache_file=/dev/null
736
exec_prefix=NONE
737
no_create=
738
no_recursion=
739
prefix=NONE
740
program_prefix=NONE
741
program_suffix=NONE
742
program_transform_name=s,x,x,
743
silent=
744
site=
745
srcdir=
746
verbose=
747
x_includes=NONE
748
x_libraries=NONE
749
750
# Installation directory options.
751
# These are left unexpanded so users can "make install exec_prefix=/foo"
752
# and all the variables that are supposed to be based on exec_prefix
753
# by default will actually change.
754
# Use braces instead of parens because sh, perl, etc. also accept them.
755
# (The list follows the same order as the GNU Coding Standards.)
756
bindir='${exec_prefix}/bin'
757
sbindir='${exec_prefix}/sbin'
758
libexecdir='${exec_prefix}/libexec'
759
datarootdir='${prefix}/share'
760
datadir='${datarootdir}'
761
sysconfdir='${prefix}/etc'
762
sharedstatedir='${prefix}/com'
763
localstatedir='${prefix}/var'
764
includedir='${prefix}/include'
765
oldincludedir='/usr/include'
766
docdir='${datarootdir}/doc/${PACKAGE}'
767
infodir='${datarootdir}/info'
768
htmldir='${docdir}'
769
dvidir='${docdir}'
770
pdfdir='${docdir}'
771
psdir='${docdir}'
772
libdir='${exec_prefix}/lib'
773
localedir='${datarootdir}/locale'
774
mandir='${datarootdir}/man'
775
776
ac_prev=
777
ac_dashdash=
778
for ac_option
779
do
780
  # If the previous option needs an argument, assign it.
781
  if test -n "$ac_prev"; then
782
    eval $ac_prev=\$ac_option
783
    ac_prev=
784
    continue
785
  fi
786
787
  case $ac_option in
788
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
789
  *=)   ac_optarg= ;;
790
  *)    ac_optarg=yes ;;
791
  esac
792
793
  # Accept the important Cygnus configure options, so we can diagnose typos.
794
795
  case $ac_dashdash$ac_option in
796
  --)
797
    ac_dashdash=yes ;;
798
799
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
800
    ac_prev=bindir ;;
801
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802
    bindir=$ac_optarg ;;
803
804
  -build | --build | --buil | --bui | --bu)
805
    ac_prev=build_alias ;;
806
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807
    build_alias=$ac_optarg ;;
808
809
  -cache-file | --cache-file | --cache-fil | --cache-fi \
810
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811
    ac_prev=cache_file ;;
812
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814
    cache_file=$ac_optarg ;;
815
816
  --config-cache | -C)
817
    cache_file=config.cache ;;
818
819
  -datadir | --datadir | --datadi | --datad)
820
    ac_prev=datadir ;;
821
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
822
    datadir=$ac_optarg ;;
823
824
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825
  | --dataroo | --dataro | --datar)
826
    ac_prev=datarootdir ;;
827
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829
    datarootdir=$ac_optarg ;;
830
831
  -disable-* | --disable-*)
832
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833
    # Reject names that are not valid shell variable names.
834
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835
      as_fn_error $? "invalid feature name: $ac_useropt"
836
    ac_useropt_orig=$ac_useropt
837
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838
    case $ac_user_opts in
839
      *"
840
"enable_$ac_useropt"
841
"*) ;;
842
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
843
	 ac_unrecognized_sep=', ';;
844
    esac
845
    eval enable_$ac_useropt=no ;;
846
847
  -docdir | --docdir | --docdi | --doc | --do)
848
    ac_prev=docdir ;;
849
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850
    docdir=$ac_optarg ;;
851
852
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853
    ac_prev=dvidir ;;
854
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855
    dvidir=$ac_optarg ;;
856
857
  -enable-* | --enable-*)
858
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859
    # Reject names that are not valid shell variable names.
860
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861
      as_fn_error $? "invalid feature name: $ac_useropt"
862
    ac_useropt_orig=$ac_useropt
863
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864
    case $ac_user_opts in
865
      *"
866
"enable_$ac_useropt"
867
"*) ;;
868
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
869
	 ac_unrecognized_sep=', ';;
870
    esac
871
    eval enable_$ac_useropt=\$ac_optarg ;;
872
873
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875
  | --exec | --exe | --ex)
876
    ac_prev=exec_prefix ;;
877
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879
  | --exec=* | --exe=* | --ex=*)
880
    exec_prefix=$ac_optarg ;;
881
882
  -gas | --gas | --ga | --g)
883
    # Obsolete; use --with-gas.
884
    with_gas=yes ;;
885
886
  -help | --help | --hel | --he | -h)
887
    ac_init_help=long ;;
888
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889
    ac_init_help=recursive ;;
890
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891
    ac_init_help=short ;;
892
893
  -host | --host | --hos | --ho)
894
    ac_prev=host_alias ;;
895
  -host=* | --host=* | --hos=* | --ho=*)
896
    host_alias=$ac_optarg ;;
897
898
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899
    ac_prev=htmldir ;;
900
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901
  | --ht=*)
902
    htmldir=$ac_optarg ;;
903
904
  -includedir | --includedir | --includedi | --included | --include \
905
  | --includ | --inclu | --incl | --inc)
906
    ac_prev=includedir ;;
907
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908
  | --includ=* | --inclu=* | --incl=* | --inc=*)
909
    includedir=$ac_optarg ;;
910
911
  -infodir | --infodir | --infodi | --infod | --info | --inf)
912
    ac_prev=infodir ;;
913
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914
    infodir=$ac_optarg ;;
915
916
  -libdir | --libdir | --libdi | --libd)
917
    ac_prev=libdir ;;
918
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
919
    libdir=$ac_optarg ;;
920
921
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922
  | --libexe | --libex | --libe)
923
    ac_prev=libexecdir ;;
924
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925
  | --libexe=* | --libex=* | --libe=*)
926
    libexecdir=$ac_optarg ;;
927
928
  -localedir | --localedir | --localedi | --localed | --locale)
929
    ac_prev=localedir ;;
930
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931
    localedir=$ac_optarg ;;
932
933
  -localstatedir | --localstatedir | --localstatedi | --localstated \
934
  | --localstate | --localstat | --localsta | --localst | --locals)
935
    ac_prev=localstatedir ;;
936
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938
    localstatedir=$ac_optarg ;;
939
940
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941
    ac_prev=mandir ;;
942
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943
    mandir=$ac_optarg ;;
944
945
  -nfp | --nfp | --nf)
946
    # Obsolete; use --without-fp.
947
    with_fp=no ;;
948
949
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950
  | --no-cr | --no-c | -n)
951
    no_create=yes ;;
952
953
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955
    no_recursion=yes ;;
956
957
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959
  | --oldin | --oldi | --old | --ol | --o)
960
    ac_prev=oldincludedir ;;
961
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964
    oldincludedir=$ac_optarg ;;
965
966
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967
    ac_prev=prefix ;;
968
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969
    prefix=$ac_optarg ;;
970
971
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
972
  | --program-pre | --program-pr | --program-p)
973
    ac_prev=program_prefix ;;
974
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
975
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976
    program_prefix=$ac_optarg ;;
977
978
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
979
  | --program-suf | --program-su | --program-s)
980
    ac_prev=program_suffix ;;
981
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
982
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983
    program_suffix=$ac_optarg ;;
984
985
  -program-transform-name | --program-transform-name \
986
  | --program-transform-nam | --program-transform-na \
987
  | --program-transform-n | --program-transform- \
988
  | --program-transform | --program-transfor \
989
  | --program-transfo | --program-transf \
990
  | --program-trans | --program-tran \
991
  | --progr-tra | --program-tr | --program-t)
992
    ac_prev=program_transform_name ;;
993
  -program-transform-name=* | --program-transform-name=* \
994
  | --program-transform-nam=* | --program-transform-na=* \
995
  | --program-transform-n=* | --program-transform-=* \
996
  | --program-transform=* | --program-transfor=* \
997
  | --program-transfo=* | --program-transf=* \
998
  | --program-trans=* | --program-tran=* \
999
  | --progr-tra=* | --program-tr=* | --program-t=*)
1000
    program_transform_name=$ac_optarg ;;
1001
1002
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003
    ac_prev=pdfdir ;;
1004
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005
    pdfdir=$ac_optarg ;;
1006
1007
  -psdir | --psdir | --psdi | --psd | --ps)
1008
    ac_prev=psdir ;;
1009
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010
    psdir=$ac_optarg ;;
1011
1012
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013
  | -silent | --silent | --silen | --sile | --sil)
1014
    silent=yes ;;
1015
1016
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017
    ac_prev=sbindir ;;
1018
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019
  | --sbi=* | --sb=*)
1020
    sbindir=$ac_optarg ;;
1021
1022
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024
  | --sharedst | --shareds | --shared | --share | --shar \
1025
  | --sha | --sh)
1026
    ac_prev=sharedstatedir ;;
1027
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030
  | --sha=* | --sh=*)
1031
    sharedstatedir=$ac_optarg ;;
1032
1033
  -site | --site | --sit)
1034
    ac_prev=site ;;
1035
  -site=* | --site=* | --sit=*)
1036
    site=$ac_optarg ;;
1037
1038
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039
    ac_prev=srcdir ;;
1040
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041
    srcdir=$ac_optarg ;;
1042
1043
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044
  | --syscon | --sysco | --sysc | --sys | --sy)
1045
    ac_prev=sysconfdir ;;
1046
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048
    sysconfdir=$ac_optarg ;;
1049
1050
  -target | --target | --targe | --targ | --tar | --ta | --t)
1051
    ac_prev=target_alias ;;
1052
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053
    target_alias=$ac_optarg ;;
1054
1055
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056
    verbose=yes ;;
1057
1058
  -version | --version | --versio | --versi | --vers | -V)
1059
    ac_init_version=: ;;
1060
1061
  -with-* | --with-*)
1062
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063
    # Reject names that are not valid shell variable names.
1064
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065
      as_fn_error $? "invalid package name: $ac_useropt"
1066
    ac_useropt_orig=$ac_useropt
1067
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068
    case $ac_user_opts in
1069
      *"
1070
"with_$ac_useropt"
1071
"*) ;;
1072
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1073
	 ac_unrecognized_sep=', ';;
1074
    esac
1075
    eval with_$ac_useropt=\$ac_optarg ;;
1076
1077
  -without-* | --without-*)
1078
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079
    # Reject names that are not valid shell variable names.
1080
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081
      as_fn_error $? "invalid package name: $ac_useropt"
1082
    ac_useropt_orig=$ac_useropt
1083
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084
    case $ac_user_opts in
1085
      *"
1086
"with_$ac_useropt"
1087
"*) ;;
1088
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1089
	 ac_unrecognized_sep=', ';;
1090
    esac
1091
    eval with_$ac_useropt=no ;;
1092
1093
  --x)
1094
    # Obsolete; use --with-x.
1095
    with_x=yes ;;
1096
1097
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098
  | --x-incl | --x-inc | --x-in | --x-i)
1099
    ac_prev=x_includes ;;
1100
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102
    x_includes=$ac_optarg ;;
1103
1104
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106
    ac_prev=x_libraries ;;
1107
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109
    x_libraries=$ac_optarg ;;
1110
1111
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1112
Try \`$0 --help' for more information"
1113
    ;;
1114
1115
  *=*)
1116
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1117
    # Reject names that are not valid shell variable names.
1118
    case $ac_envvar in #(
1119
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1120
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1121
    esac
1122
    eval $ac_envvar=\$ac_optarg
1123
    export $ac_envvar ;;
1124
1125
  *)
1126
    # FIXME: should be removed in autoconf 3.0.
1127
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1131
    ;;
1132
1133
  esac
1134
done
1135
1136
if test -n "$ac_prev"; then
1137
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138
  as_fn_error $? "missing argument to $ac_option"
1139
fi
1140
1141
if test -n "$ac_unrecognized_opts"; then
1142
  case $enable_option_checking in
1143
    no) ;;
1144
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1145
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1146
  esac
1147
fi
1148
1149
# Check all directory arguments for consistency.
1150
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1151
		datadir sysconfdir sharedstatedir localstatedir includedir \
1152
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1153
		libdir localedir mandir
1154
do
1155
  eval ac_val=\$$ac_var
1156
  # Remove trailing slashes.
1157
  case $ac_val in
1158
    */ )
1159
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1160
      eval $ac_var=\$ac_val;;
1161
  esac
1162
  # Be sure to have absolute directory names.
1163
  case $ac_val in
1164
    [\\/$]* | ?:[\\/]* )  continue;;
1165
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1166
  esac
1167
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1168
done
1169
1170
# There might be people who depend on the old broken behavior: `$host'
1171
# used to hold the argument of --host etc.
1172
# FIXME: To remove some day.
1173
build=$build_alias
1174
host=$host_alias
1175
target=$target_alias
1176
1177
# FIXME: To remove some day.
1178
if test "x$host_alias" != x; then
1179
  if test "x$build_alias" = x; then
1180
    cross_compiling=maybe
1181
  elif test "x$build_alias" != "x$host_alias"; then
1182
    cross_compiling=yes
1183
  fi
1184
fi
1185
1186
ac_tool_prefix=
1187
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1188
1189
test "$silent" = yes && exec 6>/dev/null
1190
1191
1192
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1193
ac_ls_di=`ls -di .` &&
1194
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1195
  as_fn_error $? "working directory cannot be determined"
1196
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197
  as_fn_error $? "pwd does not report name of working directory"
1198
1199
1200
# Find the source files, if location was not specified.
1201
if test -z "$srcdir"; then
1202
  ac_srcdir_defaulted=yes
1203
  # Try the directory containing this script, then the parent directory.
1204
  ac_confdir=`$as_dirname -- "$as_myself" ||
1205
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1206
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1207
	 X"$as_myself" : 'X\(//\)$' \| \
1208
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1209
$as_echo X"$as_myself" |
1210
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211
	    s//\1/
1212
	    q
1213
	  }
1214
	  /^X\(\/\/\)[^/].*/{
1215
	    s//\1/
1216
	    q
1217
	  }
1218
	  /^X\(\/\/\)$/{
1219
	    s//\1/
1220
	    q
1221
	  }
1222
	  /^X\(\/\).*/{
1223
	    s//\1/
1224
	    q
1225
	  }
1226
	  s/.*/./; q'`
1227
  srcdir=$ac_confdir
1228
  if test ! -r "$srcdir/$ac_unique_file"; then
1229
    srcdir=..
1230
  fi
1231
else
1232
  ac_srcdir_defaulted=no
1233
fi
1234
if test ! -r "$srcdir/$ac_unique_file"; then
1235
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1236
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1237
fi
1238
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1239
ac_abs_confdir=`(
1240
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1241
	pwd)`
1242
# When building in place, set srcdir=.
1243
if test "$ac_abs_confdir" = "$ac_pwd"; then
1244
  srcdir=.
1245
fi
1246
# Remove unnecessary trailing slashes from srcdir.
1247
# Double slashes in file names in object file debugging info
1248
# mess up M-x gdb in Emacs.
1249
case $srcdir in
1250
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1251
esac
1252
for ac_var in $ac_precious_vars; do
1253
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1254
  eval ac_env_${ac_var}_value=\$${ac_var}
1255
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1256
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257
done
1258
1259
#
1260
# Report the --help message.
1261
#
1262
if test "$ac_init_help" = "long"; then
1263
  # Omit some internal or obsolete options to make the list less imposing.
1264
  # This message is too long to be a string in the A/UX 3.1 sh.
1265
  cat <<_ACEOF
1266
\`configure' configures this package to adapt to many kinds of systems.
1267
1268
Usage: $0 [OPTION]... [VAR=VALUE]...
1269
1270
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1271
VAR=VALUE.  See below for descriptions of some of the useful variables.
1272
1273
Defaults for the options are specified in brackets.
1274
1275
Configuration:
1276
  -h, --help              display this help and exit
1277
      --help=short        display options specific to this package
1278
      --help=recursive    display the short help of all the included packages
1279
  -V, --version           display version information and exit
1280
  -q, --quiet, --silent   do not print \`checking ...' messages
1281
      --cache-file=FILE   cache test results in FILE [disabled]
1282
  -C, --config-cache      alias for \`--cache-file=config.cache'
1283
  -n, --no-create         do not create output files
1284
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1285
1286
Installation directories:
1287
  --prefix=PREFIX         install architecture-independent files in PREFIX
1288
                          [$ac_default_prefix]
1289
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1290
                          [PREFIX]
1291
1292
By default, \`make install' will install all the files in
1293
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1294
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1295
for instance \`--prefix=\$HOME'.
1296
1297
For better control, use the options below.
1298
1299
Fine tuning of the installation directories:
1300
  --bindir=DIR            user executables [EPREFIX/bin]
1301
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1302
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1303
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1304
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1305
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1306
  --libdir=DIR            object code libraries [EPREFIX/lib]
1307
  --includedir=DIR        C header files [PREFIX/include]
1308
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1309
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1310
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1311
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1312
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1313
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1314
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1315
  --htmldir=DIR           html documentation [DOCDIR]
1316
  --dvidir=DIR            dvi documentation [DOCDIR]
1317
  --pdfdir=DIR            pdf documentation [DOCDIR]
1318
  --psdir=DIR             ps documentation [DOCDIR]
1319
_ACEOF
1320
1321
  cat <<\_ACEOF
1322
1323
System types:
1324
  --build=BUILD     configure for building on BUILD [guessed]
1325
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1326
_ACEOF
1327
fi
1328
1329
if test -n "$ac_init_help"; then
1330
1331
  cat <<\_ACEOF
1332
1333
Optional Features:
1334
  --disable-option-checking  ignore unrecognized --enable/--with options
1335
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1336
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1337
  --enable-client         enable building of BIRD client [yes]
1338
  --enable-debug          enable internal debugging routines [no]
1339
  --enable-memcheck       check memory allocations when debugging [yes]
1340
  --enable-pthreads       enable POSIX threads support [try]
1341
  --enable-libssh         enable LibSSH support together with RPKI [try]
1342
  --enable-mpls-kernel    enable MPLS support in kernel protocol [try]
1343
1344
Optional Packages:
1345
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1346
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1347
  --with-protocols=LIST   include specified routing protocols [all]
1348
  --with-sysconfig=FILE   use specified BIRD system configuration file
1349
  --with-runtimedir=PATH  path for runtime files [LOCALSTATEDIR/run]
1350
  --with-iproutedir=PATH  path to iproute2 config files [/etc/iproute2]
1351
1352
Some influential environment variables:
1353
  FLEX        location of the Flex program
1354
  BISON       location of the Bison program
1355
  M4          location of the M4 program
1356
  CC          C compiler command
1357
  CFLAGS      C compiler flags
1358
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1359
              nonstandard directory <lib dir>
1360
  LIBS        libraries to pass to the linker, e.g. -l<library>
1361
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1362
              you have headers in a nonstandard directory <include dir>
1363
  CPP         C preprocessor
1364
1365
Use these variables to override the choices made by `configure' or to help
1366
it to find libraries and programs with nonstandard names/locations.
1367
1368
Report bugs to the package provider.
1369
_ACEOF
1370
ac_status=$?
1371
fi
1372
1373
if test "$ac_init_help" = "recursive"; then
1374
  # If there are subdirs, report their specific --help.
1375
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1376
    test -d "$ac_dir" ||
1377
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1378
      continue
1379
    ac_builddir=.
1380
1381
case "$ac_dir" in
1382
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383
*)
1384
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1385
  # A ".." for each directory in $ac_dir_suffix.
1386
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1387
  case $ac_top_builddir_sub in
1388
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390
  esac ;;
1391
esac
1392
ac_abs_top_builddir=$ac_pwd
1393
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394
# for backward compatibility:
1395
ac_top_builddir=$ac_top_build_prefix
1396
1397
case $srcdir in
1398
  .)  # We are building in place.
1399
    ac_srcdir=.
1400
    ac_top_srcdir=$ac_top_builddir_sub
1401
    ac_abs_top_srcdir=$ac_pwd ;;
1402
  [\\/]* | ?:[\\/]* )  # Absolute name.
1403
    ac_srcdir=$srcdir$ac_dir_suffix;
1404
    ac_top_srcdir=$srcdir
1405
    ac_abs_top_srcdir=$srcdir ;;
1406
  *) # Relative name.
1407
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1409
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1410
esac
1411
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1412
1413
    cd "$ac_dir" || { ac_status=$?; continue; }
1414
    # Check for guested configure.
1415
    if test -f "$ac_srcdir/configure.gnu"; then
1416
      echo &&
1417
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418
    elif test -f "$ac_srcdir/configure"; then
1419
      echo &&
1420
      $SHELL "$ac_srcdir/configure" --help=recursive
1421
    else
1422
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1423
    fi || ac_status=$?
1424
    cd "$ac_pwd" || { ac_status=$?; break; }
1425
  done
1426
fi
1427
1428
test -n "$ac_init_help" && exit $ac_status
1429
if $ac_init_version; then
1430
  cat <<\_ACEOF
1431
configure
1432
generated by GNU Autoconf 2.69
1433
1434
Copyright (C) 2012 Free Software Foundation, Inc.
1435
This configure script is free software; the Free Software Foundation
1436
gives unlimited permission to copy, distribute and modify it.
1437
_ACEOF
1438
  exit
1439
fi
1440
1441
## ------------------------ ##
1442
## Autoconf initialization. ##
1443
## ------------------------ ##
1444
1445
# ac_fn_c_try_compile LINENO
1446
# --------------------------
1447
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1448
ac_fn_c_try_compile ()
1449
{
1450
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451
  rm -f conftest.$ac_objext
1452
  if { { ac_try="$ac_compile"
1453
case "(($ac_try" in
1454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455
  *) ac_try_echo=$ac_try;;
1456
esac
1457
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458
$as_echo "$ac_try_echo"; } >&5
1459
  (eval "$ac_compile") 2>conftest.err
1460
  ac_status=$?
1461
  if test -s conftest.err; then
1462
    grep -v '^ *+' conftest.err >conftest.er1
1463
    cat conftest.er1 >&5
1464
    mv -f conftest.er1 conftest.err
1465
  fi
1466
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467
  test $ac_status = 0; } && {
1468
	 test -z "$ac_c_werror_flag" ||
1469
	 test ! -s conftest.err
1470
       } && test -s conftest.$ac_objext; then :
1471
  ac_retval=0
1472
else
1473
  $as_echo "$as_me: failed program was:" >&5
1474
sed 's/^/| /' conftest.$ac_ext >&5
1475
1476
	ac_retval=1
1477
fi
1478
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1479
  as_fn_set_status $ac_retval
1480
1481
} # ac_fn_c_try_compile
1482
1483
# ac_fn_c_try_link LINENO
1484
# -----------------------
1485
# Try to link conftest.$ac_ext, and return whether this succeeded.
1486
ac_fn_c_try_link ()
1487
{
1488
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489
  rm -f conftest.$ac_objext conftest$ac_exeext
1490
  if { { ac_try="$ac_link"
1491
case "(($ac_try" in
1492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493
  *) ac_try_echo=$ac_try;;
1494
esac
1495
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496
$as_echo "$ac_try_echo"; } >&5
1497
  (eval "$ac_link") 2>conftest.err
1498
  ac_status=$?
1499
  if test -s conftest.err; then
1500
    grep -v '^ *+' conftest.err >conftest.er1
1501
    cat conftest.er1 >&5
1502
    mv -f conftest.er1 conftest.err
1503
  fi
1504
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505
  test $ac_status = 0; } && {
1506
	 test -z "$ac_c_werror_flag" ||
1507
	 test ! -s conftest.err
1508
       } && test -s conftest$ac_exeext && {
1509
	 test "$cross_compiling" = yes ||
1510
	 test -x conftest$ac_exeext
1511
       }; then :
1512
  ac_retval=0
1513
else
1514
  $as_echo "$as_me: failed program was:" >&5
1515
sed 's/^/| /' conftest.$ac_ext >&5
1516
1517
	ac_retval=1
1518
fi
1519
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1520
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1521
  # interfere with the next link command; also delete a directory that is
1522
  # left behind by Apple's compiler.  We do this before executing the actions.
1523
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1524
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1525
  as_fn_set_status $ac_retval
1526
1527
} # ac_fn_c_try_link
1528
1529
# ac_fn_c_try_cpp LINENO
1530
# ----------------------
1531
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1532
ac_fn_c_try_cpp ()
1533
{
1534
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1536
case "(($ac_try" in
1537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538
  *) ac_try_echo=$ac_try;;
1539
esac
1540
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541
$as_echo "$ac_try_echo"; } >&5
1542
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1543
  ac_status=$?
1544
  if test -s conftest.err; then
1545
    grep -v '^ *+' conftest.err >conftest.er1
1546
    cat conftest.er1 >&5
1547
    mv -f conftest.er1 conftest.err
1548
  fi
1549
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550
  test $ac_status = 0; } > conftest.i && {
1551
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1552
	 test ! -s conftest.err
1553
       }; then :
1554
  ac_retval=0
1555
else
1556
  $as_echo "$as_me: failed program was:" >&5
1557
sed 's/^/| /' conftest.$ac_ext >&5
1558
1559
    ac_retval=1
1560
fi
1561
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562
  as_fn_set_status $ac_retval
1563
1564
} # ac_fn_c_try_cpp
1565
1566
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1567
# -------------------------------------------------------
1568
# Tests whether HEADER exists and can be compiled using the include files in
1569
# INCLUDES, setting the cache variable VAR accordingly.
1570
ac_fn_c_check_header_compile ()
1571
{
1572
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574
$as_echo_n "checking for $2... " >&6; }
1575
if eval \${$3+:} false; then :
1576
  $as_echo_n "(cached) " >&6
1577
else
1578
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579
/* end confdefs.h.  */
1580
$4
1581
#include <$2>
1582
_ACEOF
1583
if ac_fn_c_try_compile "$LINENO"; then :
1584
  eval "$3=yes"
1585
else
1586
  eval "$3=no"
1587
fi
1588
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1589
fi
1590
eval ac_res=\$$3
1591
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592
$as_echo "$ac_res" >&6; }
1593
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594
1595
} # ac_fn_c_check_header_compile
1596
1597
# ac_fn_c_try_run LINENO
1598
# ----------------------
1599
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1600
# that executables *can* be run.
1601
ac_fn_c_try_run ()
1602
{
1603
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604
  if { { ac_try="$ac_link"
1605
case "(($ac_try" in
1606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607
  *) ac_try_echo=$ac_try;;
1608
esac
1609
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610
$as_echo "$ac_try_echo"; } >&5
1611
  (eval "$ac_link") 2>&5
1612
  ac_status=$?
1613
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1615
  { { case "(($ac_try" in
1616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617
  *) ac_try_echo=$ac_try;;
1618
esac
1619
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620
$as_echo "$ac_try_echo"; } >&5
1621
  (eval "$ac_try") 2>&5
1622
  ac_status=$?
1623
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624
  test $ac_status = 0; }; }; then :
1625
  ac_retval=0
1626
else
1627
  $as_echo "$as_me: program exited with status $ac_status" >&5
1628
       $as_echo "$as_me: failed program was:" >&5
1629
sed 's/^/| /' conftest.$ac_ext >&5
1630
1631
       ac_retval=$ac_status
1632
fi
1633
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
  as_fn_set_status $ac_retval
1636
1637
} # ac_fn_c_try_run
1638
1639
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1640
# ----------------------------------------------------
1641
# Tries to find if the field MEMBER exists in type AGGR, after including
1642
# INCLUDES, setting cache variable VAR accordingly.
1643
ac_fn_c_check_member ()
1644
{
1645
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1647
$as_echo_n "checking for $2.$3... " >&6; }
1648
if eval \${$4+:} false; then :
1649
  $as_echo_n "(cached) " >&6
1650
else
1651
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652
/* end confdefs.h.  */
1653
$5
1654
int
1655
main ()
1656
{
1657
static $2 ac_aggr;
1658
if (ac_aggr.$3)
1659
return 0;
1660
  ;
1661
  return 0;
1662
}
1663
_ACEOF
1664
if ac_fn_c_try_compile "$LINENO"; then :
1665
  eval "$4=yes"
1666
else
1667
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668
/* end confdefs.h.  */
1669
$5
1670
int
1671
main ()
1672
{
1673
static $2 ac_aggr;
1674
if (sizeof ac_aggr.$3)
1675
return 0;
1676
  ;
1677
  return 0;
1678
}
1679
_ACEOF
1680
if ac_fn_c_try_compile "$LINENO"; then :
1681
  eval "$4=yes"
1682
else
1683
  eval "$4=no"
1684
fi
1685
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686
fi
1687
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688
fi
1689
eval ac_res=\$$4
1690
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691
$as_echo "$ac_res" >&6; }
1692
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693
1694
} # ac_fn_c_check_member
1695
1696
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1697
# -------------------------------------------------------
1698
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1699
# the include files in INCLUDES and setting the cache variable VAR
1700
# accordingly.
1701
ac_fn_c_check_header_mongrel ()
1702
{
1703
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704
  if eval \${$3+:} false; then :
1705
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706
$as_echo_n "checking for $2... " >&6; }
1707
if eval \${$3+:} false; then :
1708
  $as_echo_n "(cached) " >&6
1709
fi
1710
eval ac_res=\$$3
1711
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712
$as_echo "$ac_res" >&6; }
1713
else
1714
  # Is the header compilable?
1715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1716
$as_echo_n "checking $2 usability... " >&6; }
1717
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718
/* end confdefs.h.  */
1719
$4
1720
#include <$2>
1721
_ACEOF
1722
if ac_fn_c_try_compile "$LINENO"; then :
1723
  ac_header_compiler=yes
1724
else
1725
  ac_header_compiler=no
1726
fi
1727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1729
$as_echo "$ac_header_compiler" >&6; }
1730
1731
# Is the header present?
1732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1733
$as_echo_n "checking $2 presence... " >&6; }
1734
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735
/* end confdefs.h.  */
1736
#include <$2>
1737
_ACEOF
1738
if ac_fn_c_try_cpp "$LINENO"; then :
1739
  ac_header_preproc=yes
1740
else
1741
  ac_header_preproc=no
1742
fi
1743
rm -f conftest.err conftest.i conftest.$ac_ext
1744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1745
$as_echo "$ac_header_preproc" >&6; }
1746
1747
# So?  What about this header?
1748
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1749
  yes:no: )
1750
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1751
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1752
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754
    ;;
1755
  no:yes:* )
1756
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1757
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1758
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1759
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1760
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1761
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1762
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1763
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1764
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766
    ;;
1767
esac
1768
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769
$as_echo_n "checking for $2... " >&6; }
1770
if eval \${$3+:} false; then :
1771
  $as_echo_n "(cached) " >&6
1772
else
1773
  eval "$3=\$ac_header_compiler"
1774
fi
1775
eval ac_res=\$$3
1776
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777
$as_echo "$ac_res" >&6; }
1778
fi
1779
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781
} # ac_fn_c_check_header_mongrel
1782
cat >config.log <<_ACEOF
1783
This file contains any messages produced by compilers while
1784
running configure, to aid debugging if configure makes a mistake.
1785
1786
It was created by $as_me, which was
1787
generated by GNU Autoconf 2.69.  Invocation command line was
1788
1789
  $ $0 $@
1790
1791
_ACEOF
1792
exec 5>>config.log
1793
{
1794
cat <<_ASUNAME
1795
## --------- ##
1796
## Platform. ##
1797
## --------- ##
1798
1799
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1800
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1801
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1802
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1803
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1804
1805
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1806
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1807
1808
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1809
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1810
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1811
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1812
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1813
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1814
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1815
1816
_ASUNAME
1817
1818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819
for as_dir in $PATH
1820
do
1821
  IFS=$as_save_IFS
1822
  test -z "$as_dir" && as_dir=.
1823
    $as_echo "PATH: $as_dir"
1824
  done
1825
IFS=$as_save_IFS
1826
1827
} >&5
1828
1829
cat >&5 <<_ACEOF
1830
1831
1832
## ----------- ##
1833
## Core tests. ##
1834
## ----------- ##
1835
1836
_ACEOF
1837
1838
1839
# Keep a trace of the command line.
1840
# Strip out --no-create and --no-recursion so they do not pile up.
1841
# Strip out --silent because we don't want to record it for future runs.
1842
# Also quote any args containing shell meta-characters.
1843
# Make two passes to allow for proper duplicate-argument suppression.
1844
ac_configure_args=
1845
ac_configure_args0=
1846
ac_configure_args1=
1847
ac_must_keep_next=false
1848
for ac_pass in 1 2
1849
do
1850
  for ac_arg
1851
  do
1852
    case $ac_arg in
1853
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1854
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1855
    | -silent | --silent | --silen | --sile | --sil)
1856
      continue ;;
1857
    *\'*)
1858
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1859
    esac
1860
    case $ac_pass in
1861
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1862
    2)
1863
      as_fn_append ac_configure_args1 " '$ac_arg'"
1864
      if test $ac_must_keep_next = true; then
1865
	ac_must_keep_next=false # Got value, back to normal.
1866
      else
1867
	case $ac_arg in
1868
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1869
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1870
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1871
	  | -with-* | --with-* | -without-* | --without-* | --x)
1872
	    case "$ac_configure_args0 " in
1873
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1874
	    esac
1875
	    ;;
1876
	  -* ) ac_must_keep_next=true ;;
1877
	esac
1878
      fi
1879
      as_fn_append ac_configure_args " '$ac_arg'"
1880
      ;;
1881
    esac
1882
  done
1883
done
1884
{ ac_configure_args0=; unset ac_configure_args0;}
1885
{ ac_configure_args1=; unset ac_configure_args1;}
1886
1887
# When interrupted or exit'd, cleanup temporary files, and complete
1888
# config.log.  We remove comments because anyway the quotes in there
1889
# would cause problems or look ugly.
1890
# WARNING: Use '\'' to represent an apostrophe within the trap.
1891
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1892
trap 'exit_status=$?
1893
  # Save into config.log some information that might help in debugging.
1894
  {
1895
    echo
1896
1897
    $as_echo "## ---------------- ##
1898
## Cache variables. ##
1899
## ---------------- ##"
1900
    echo
1901
    # The following way of writing the cache mishandles newlines in values,
1902
(
1903
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1904
    eval ac_val=\$$ac_var
1905
    case $ac_val in #(
1906
    *${as_nl}*)
1907
      case $ac_var in #(
1908
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1909
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1910
      esac
1911
      case $ac_var in #(
1912
      _ | IFS | as_nl) ;; #(
1913
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1914
      *) { eval $ac_var=; unset $ac_var;} ;;
1915
      esac ;;
1916
    esac
1917
  done
1918
  (set) 2>&1 |
1919
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1920
    *${as_nl}ac_space=\ *)
1921
      sed -n \
1922
	"s/'\''/'\''\\\\'\'''\''/g;
1923
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1924
      ;; #(
1925
    *)
1926
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1927
      ;;
1928
    esac |
1929
    sort
1930
)
1931
    echo
1932
1933
    $as_echo "## ----------------- ##
1934
## Output variables. ##
1935
## ----------------- ##"
1936
    echo
1937
    for ac_var in $ac_subst_vars
1938
    do
1939
      eval ac_val=\$$ac_var
1940
      case $ac_val in
1941
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1942
      esac
1943
      $as_echo "$ac_var='\''$ac_val'\''"
1944
    done | sort
1945
    echo
1946
1947
    if test -n "$ac_subst_files"; then
1948
      $as_echo "## ------------------- ##
1949
## File substitutions. ##
1950
## ------------------- ##"
1951
      echo
1952
      for ac_var in $ac_subst_files
1953
      do
1954
	eval ac_val=\$$ac_var
1955
	case $ac_val in
1956
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1957
	esac
1958
	$as_echo "$ac_var='\''$ac_val'\''"
1959
      done | sort
1960
      echo
1961
    fi
1962
1963
    if test -s confdefs.h; then
1964
      $as_echo "## ----------- ##
1965
## confdefs.h. ##
1966
## ----------- ##"
1967
      echo
1968
      cat confdefs.h
1969
      echo
1970
    fi
1971
    test "$ac_signal" != 0 &&
1972
      $as_echo "$as_me: caught signal $ac_signal"
1973
    $as_echo "$as_me: exit $exit_status"
1974
  } >&5
1975
  rm -f core *.core core.conftest.* &&
1976
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1977
    exit $exit_status
1978
' 0
1979
for ac_signal in 1 2 13 15; do
1980
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1981
done
1982
ac_signal=0
1983
1984
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1985
rm -f -r conftest* confdefs.h
1986
1987
$as_echo "/* confdefs.h */" > confdefs.h
1988
1989
# Predefined preprocessor variables.
1990
1991
cat >>confdefs.h <<_ACEOF
1992
#define PACKAGE_NAME "$PACKAGE_NAME"
1993
_ACEOF
1994
1995
cat >>confdefs.h <<_ACEOF
1996
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1997
_ACEOF
1998
1999
cat >>confdefs.h <<_ACEOF
2000
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2001
_ACEOF
2002
2003
cat >>confdefs.h <<_ACEOF
2004
#define PACKAGE_STRING "$PACKAGE_STRING"
2005
_ACEOF
2006
2007
cat >>confdefs.h <<_ACEOF
2008
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2009
_ACEOF
2010
2011
cat >>confdefs.h <<_ACEOF
2012
#define PACKAGE_URL "$PACKAGE_URL"
2013
_ACEOF
2014
2015
2016
# Let the site file select an alternate cache file if it wants to.
2017
# Prefer an explicitly selected file to automatically selected ones.
2018
ac_site_file1=NONE
2019
ac_site_file2=NONE
2020
if test -n "$CONFIG_SITE"; then
2021
  # We do not want a PATH search for config.site.
2022
  case $CONFIG_SITE in #((
2023
    -*)  ac_site_file1=./$CONFIG_SITE;;
2024
    */*) ac_site_file1=$CONFIG_SITE;;
2025
    *)   ac_site_file1=./$CONFIG_SITE;;
2026
  esac
2027
elif test "x$prefix" != xNONE; then
2028
  ac_site_file1=$prefix/share/config.site
2029
  ac_site_file2=$prefix/etc/config.site
2030
else
2031
  ac_site_file1=$ac_default_prefix/share/config.site
2032
  ac_site_file2=$ac_default_prefix/etc/config.site
2033
fi
2034
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2035
do
2036
  test "x$ac_site_file" = xNONE && continue
2037
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2038
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2039
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2040
    sed 's/^/| /' "$ac_site_file" >&5
2041
    . "$ac_site_file" \
2042
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2043
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2044
as_fn_error $? "failed to load site script $ac_site_file
2045
See \`config.log' for more details" "$LINENO" 5; }
2046
  fi
2047
done
2048
2049
if test -r "$cache_file"; then
2050
  # Some versions of bash will fail to source /dev/null (special files
2051
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2052
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2053
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2054
$as_echo "$as_me: loading cache $cache_file" >&6;}
2055
    case $cache_file in
2056
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2057
      *)                      . "./$cache_file";;
2058
    esac
2059
  fi
2060
else
2061
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2062
$as_echo "$as_me: creating cache $cache_file" >&6;}
2063
  >$cache_file
2064
fi
2065
2066
as_fn_append ac_header_list " alloca.h"
2067
as_fn_append ac_header_list " syslog.h"
2068
# Check that the precious variables saved in the cache have kept the same
2069
# value.
2070
ac_cache_corrupted=false
2071
for ac_var in $ac_precious_vars; do
2072
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2073
  eval ac_new_set=\$ac_env_${ac_var}_set
2074
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2075
  eval ac_new_val=\$ac_env_${ac_var}_value
2076
  case $ac_old_set,$ac_new_set in
2077
    set,)
2078
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2079
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2080
      ac_cache_corrupted=: ;;
2081
    ,set)
2082
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2083
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2084
      ac_cache_corrupted=: ;;
2085
    ,);;
2086
    *)
2087
      if test "x$ac_old_val" != "x$ac_new_val"; then
2088
	# differences in whitespace do not lead to failure.
2089
	ac_old_val_w=`echo x $ac_old_val`
2090
	ac_new_val_w=`echo x $ac_new_val`
2091
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2092
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2093
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2094
	  ac_cache_corrupted=:
2095
	else
2096
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2097
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2098
	  eval $ac_var=\$ac_old_val
2099
	fi
2100
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2101
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2102
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2103
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2104
      fi;;
2105
  esac
2106
  # Pass precious variables to config.status.
2107
  if test "$ac_new_set" = set; then
2108
    case $ac_new_val in
2109
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2110
    *) ac_arg=$ac_var=$ac_new_val ;;
2111
    esac
2112
    case " $ac_configure_args " in
2113
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2114
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2115
    esac
2116
  fi
2117
done
2118
if $ac_cache_corrupted; then
2119
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2121
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2122
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2123
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2124
fi
2125
## -------------------- ##
2126
## Main body of script. ##
2127
## -------------------- ##
2128
2129
ac_ext=c
2130
ac_cpp='$CPP $CPPFLAGS'
2131
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134
2135
2136
2137
ac_aux_dir=
2138
for ac_dir in tools "$srcdir"/tools; do
2139
  if test -f "$ac_dir/install-sh"; then
2140
    ac_aux_dir=$ac_dir
2141
    ac_install_sh="$ac_aux_dir/install-sh -c"
2142
    break
2143
  elif test -f "$ac_dir/install.sh"; then
2144
    ac_aux_dir=$ac_dir
2145
    ac_install_sh="$ac_aux_dir/install.sh -c"
2146
    break
2147
  elif test -f "$ac_dir/shtool"; then
2148
    ac_aux_dir=$ac_dir
2149
    ac_install_sh="$ac_aux_dir/shtool install -c"
2150
    break
2151
  fi
2152
done
2153
if test -z "$ac_aux_dir"; then
2154
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2155
fi
2156
2157
# These three variables are undocumented and unsupported,
2158
# and are intended to be withdrawn in a future Autoconf release.
2159
# They can cause serious problems if a builder's source tree is in a directory
2160
# whose full name contains unusual characters.
2161
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2162
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2163
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2164
2165
2166
2167
# Check whether --enable-client was given.
2168
if test "${enable_client+set}" = set; then :
2169
  enableval=$enable_client;
2170
else
2171
  enable_client=yes
2172
2173
fi
2174
2175
2176
# Check whether --enable-debug was given.
2177
if test "${enable_debug+set}" = set; then :
2178
  enableval=$enable_debug;
2179
else
2180
  enable_debug=no
2181
2182
fi
2183
2184
2185
# Check whether --enable-memcheck was given.
2186
if test "${enable_memcheck+set}" = set; then :
2187
  enableval=$enable_memcheck;
2188
else
2189
  enable_memcheck=yes
2190
2191
fi
2192
2193
2194
# Check whether --enable-pthreads was given.
2195
if test "${enable_pthreads+set}" = set; then :
2196
  enableval=$enable_pthreads;
2197
else
2198
  enable_pthreads=try
2199
2200
fi
2201
2202
2203
# Check whether --enable-libssh was given.
2204
if test "${enable_libssh+set}" = set; then :
2205
  enableval=$enable_libssh;
2206
else
2207
  enable_libssh=try
2208
2209
fi
2210
2211
2212
# Check whether --enable-mpls-kernel was given.
2213
if test "${enable_mpls_kernel+set}" = set; then :
2214
  enableval=$enable_mpls_kernel;
2215
else
2216
  enable_mpls_kernel=try
2217
2218
fi
2219
2220
2221
2222
# Check whether --with-protocols was given.
2223
if test "${with_protocols+set}" = set; then :
2224
  withval=$with_protocols;
2225
else
2226
  with_protocols="all"
2227
2228
fi
2229
2230
2231
2232
# Check whether --with-sysconfig was given.
2233
if test "${with_sysconfig+set}" = set; then :
2234
  withval=$with_sysconfig;
2235
2236
fi
2237
2238
2239
2240
# Check whether --with-runtimedir was given.
2241
if test "${with_runtimedir+set}" = set; then :
2242
  withval=$with_runtimedir; runtimedir="$with_runtimedir"
2243
else
2244
  runtimedir="\$(localstatedir)/run"
2245
2246
fi
2247
2248
2249
2250
# Check whether --with-iproutedir was given.
2251
if test "${with_iproutedir+set}" = set; then :
2252
  withval=$with_iproutedir; given_iproutedir="yes"
2253
2254
fi
2255
2256
2257
2258
2259
2260
2261
2262
if test "$srcdir" = . ; then
2263
  # Building in current directory => create obj directory holding all objects
2264
  objdir=obj
2265
else
2266
  # Building in separate directory
2267
  objdir=.
2268
fi
2269
2270
exedir=.
2271
2272
2273
2274
2275
2276
2277
2278
if test "$enable_debug" = yes ; then
2279
  CONFIG_FILE="bird.conf"
2280
  CONTROL_SOCKET="bird.ctl"
2281
else
2282
  CONFIG_FILE="\$(sysconfdir)/bird.conf"
2283
  CONTROL_SOCKET="$runtimedir/bird.ctl"
2284
fi
2285
2286
2287
2288
ac_ext=c
2289
ac_cpp='$CPP $CPPFLAGS'
2290
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293
if test -n "$ac_tool_prefix"; then
2294
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2295
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2297
$as_echo_n "checking for $ac_word... " >&6; }
2298
if ${ac_cv_prog_CC+:} false; then :
2299
  $as_echo_n "(cached) " >&6
2300
else
2301
  if test -n "$CC"; then
2302
  ac_cv_prog_CC="$CC" # Let the user override the test.
2303
else
2304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305
for as_dir in $PATH
2306
do
2307
  IFS=$as_save_IFS
2308
  test -z "$as_dir" && as_dir=.
2309
    for ac_exec_ext in '' $ac_executable_extensions; do
2310
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2312
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2313
    break 2
2314
  fi
2315
done
2316
  done
2317
IFS=$as_save_IFS
2318
2319
fi
2320
fi
2321
CC=$ac_cv_prog_CC
2322
if test -n "$CC"; then
2323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2324
$as_echo "$CC" >&6; }
2325
else
2326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2327
$as_echo "no" >&6; }
2328
fi
2329
2330
2331
fi
2332
if test -z "$ac_cv_prog_CC"; then
2333
  ac_ct_CC=$CC
2334
  # Extract the first word of "gcc", so it can be a program name with args.
2335
set dummy gcc; ac_word=$2
2336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2337
$as_echo_n "checking for $ac_word... " >&6; }
2338
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2339
  $as_echo_n "(cached) " >&6
2340
else
2341
  if test -n "$ac_ct_CC"; then
2342
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2343
else
2344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345
for as_dir in $PATH
2346
do
2347
  IFS=$as_save_IFS
2348
  test -z "$as_dir" && as_dir=.
2349
    for ac_exec_ext in '' $ac_executable_extensions; do
2350
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2351
    ac_cv_prog_ac_ct_CC="gcc"
2352
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2353
    break 2
2354
  fi
2355
done
2356
  done
2357
IFS=$as_save_IFS
2358
2359
fi
2360
fi
2361
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2362
if test -n "$ac_ct_CC"; then
2363
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2364
$as_echo "$ac_ct_CC" >&6; }
2365
else
2366
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2367
$as_echo "no" >&6; }
2368
fi
2369
2370
  if test "x$ac_ct_CC" = x; then
2371
    CC=""
2372
  else
2373
    case $cross_compiling:$ac_tool_warned in
2374
yes:)
2375
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2376
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2377
ac_tool_warned=yes ;;
2378
esac
2379
    CC=$ac_ct_CC
2380
  fi
2381
else
2382
  CC="$ac_cv_prog_CC"
2383
fi
2384
2385
if test -z "$CC"; then
2386
          if test -n "$ac_tool_prefix"; then
2387
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2388
set dummy ${ac_tool_prefix}cc; ac_word=$2
2389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2390
$as_echo_n "checking for $ac_word... " >&6; }
2391
if ${ac_cv_prog_CC+:} false; then :
2392
  $as_echo_n "(cached) " >&6
2393
else
2394
  if test -n "$CC"; then
2395
  ac_cv_prog_CC="$CC" # Let the user override the test.
2396
else
2397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398
for as_dir in $PATH
2399
do
2400
  IFS=$as_save_IFS
2401
  test -z "$as_dir" && as_dir=.
2402
    for ac_exec_ext in '' $ac_executable_extensions; do
2403
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2405
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2406
    break 2
2407
  fi
2408
done
2409
  done
2410
IFS=$as_save_IFS
2411
2412
fi
2413
fi
2414
CC=$ac_cv_prog_CC
2415
if test -n "$CC"; then
2416
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2417
$as_echo "$CC" >&6; }
2418
else
2419
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420
$as_echo "no" >&6; }
2421
fi
2422
2423
2424
  fi
2425
fi
2426
if test -z "$CC"; then
2427
  # Extract the first word of "cc", so it can be a program name with args.
2428
set dummy cc; ac_word=$2
2429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2430
$as_echo_n "checking for $ac_word... " >&6; }
2431
if ${ac_cv_prog_CC+:} false; then :
2432
  $as_echo_n "(cached) " >&6
2433
else
2434
  if test -n "$CC"; then
2435
  ac_cv_prog_CC="$CC" # Let the user override the test.
2436
else
2437
  ac_prog_rejected=no
2438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439
for as_dir in $PATH
2440
do
2441
  IFS=$as_save_IFS
2442
  test -z "$as_dir" && as_dir=.
2443
    for ac_exec_ext in '' $ac_executable_extensions; do
2444
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2445
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2446
       ac_prog_rejected=yes
2447
       continue
2448
     fi
2449
    ac_cv_prog_CC="cc"
2450
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2451
    break 2
2452
  fi
2453
done
2454
  done
2455
IFS=$as_save_IFS
2456
2457
if test $ac_prog_rejected = yes; then
2458
  # We found a bogon in the path, so make sure we never use it.
2459
  set dummy $ac_cv_prog_CC
2460
  shift
2461
  if test $# != 0; then
2462
    # We chose a different compiler from the bogus one.
2463
    # However, it has the same basename, so the bogon will be chosen
2464
    # first if we set CC to just the basename; use the full file name.
2465
    shift
2466
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2467
  fi
2468
fi
2469
fi
2470
fi
2471
CC=$ac_cv_prog_CC
2472
if test -n "$CC"; then
2473
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2474
$as_echo "$CC" >&6; }
2475
else
2476
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2477
$as_echo "no" >&6; }
2478
fi
2479
2480
2481
fi
2482
if test -z "$CC"; then
2483
  if test -n "$ac_tool_prefix"; then
2484
  for ac_prog in cl.exe
2485
  do
2486
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2487
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2488
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489
$as_echo_n "checking for $ac_word... " >&6; }
2490
if ${ac_cv_prog_CC+:} false; then :
2491
  $as_echo_n "(cached) " >&6
2492
else
2493
  if test -n "$CC"; then
2494
  ac_cv_prog_CC="$CC" # Let the user override the test.
2495
else
2496
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497
for as_dir in $PATH
2498
do
2499
  IFS=$as_save_IFS
2500
  test -z "$as_dir" && as_dir=.
2501
    for ac_exec_ext in '' $ac_executable_extensions; do
2502
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2504
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505
    break 2
2506
  fi
2507
done
2508
  done
2509
IFS=$as_save_IFS
2510
2511
fi
2512
fi
2513
CC=$ac_cv_prog_CC
2514
if test -n "$CC"; then
2515
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2516
$as_echo "$CC" >&6; }
2517
else
2518
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519
$as_echo "no" >&6; }
2520
fi
2521
2522
2523
    test -n "$CC" && break
2524
  done
2525
fi
2526
if test -z "$CC"; then
2527
  ac_ct_CC=$CC
2528
  for ac_prog in cl.exe
2529
do
2530
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2531
set dummy $ac_prog; ac_word=$2
2532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533
$as_echo_n "checking for $ac_word... " >&6; }
2534
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2535
  $as_echo_n "(cached) " >&6
2536
else
2537
  if test -n "$ac_ct_CC"; then
2538
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2539
else
2540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541
for as_dir in $PATH
2542
do
2543
  IFS=$as_save_IFS
2544
  test -z "$as_dir" && as_dir=.
2545
    for ac_exec_ext in '' $ac_executable_extensions; do
2546
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547
    ac_cv_prog_ac_ct_CC="$ac_prog"
2548
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549
    break 2
2550
  fi
2551
done
2552
  done
2553
IFS=$as_save_IFS
2554
2555
fi
2556
fi
2557
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2558
if test -n "$ac_ct_CC"; then
2559
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2560
$as_echo "$ac_ct_CC" >&6; }
2561
else
2562
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563
$as_echo "no" >&6; }
2564
fi
2565
2566
2567
  test -n "$ac_ct_CC" && break
2568
done
2569
2570
  if test "x$ac_ct_CC" = x; then
2571
    CC=""
2572
  else
2573
    case $cross_compiling:$ac_tool_warned in
2574
yes:)
2575
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2576
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2577
ac_tool_warned=yes ;;
2578
esac
2579
    CC=$ac_ct_CC
2580
  fi
2581
fi
2582
2583
fi
2584
2585
2586
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2587
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2588
as_fn_error $? "no acceptable C compiler found in \$PATH
2589
See \`config.log' for more details" "$LINENO" 5; }
2590
2591
# Provide some information about the compiler.
2592
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2593
set X $ac_compile
2594
ac_compiler=$2
2595
for ac_option in --version -v -V -qversion; do
2596
  { { ac_try="$ac_compiler $ac_option >&5"
2597
case "(($ac_try" in
2598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599
  *) ac_try_echo=$ac_try;;
2600
esac
2601
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2602
$as_echo "$ac_try_echo"; } >&5
2603
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2604
  ac_status=$?
2605
  if test -s conftest.err; then
2606
    sed '10a\
2607
... rest of stderr output deleted ...
2608
         10q' conftest.err >conftest.er1
2609
    cat conftest.er1 >&5
2610
  fi
2611
  rm -f conftest.er1 conftest.err
2612
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2613
  test $ac_status = 0; }
2614
done
2615
2616
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617
/* end confdefs.h.  */
2618
2619
int
2620
main ()
2621
{
2622
2623
  ;
2624
  return 0;
2625
}
2626
_ACEOF
2627
ac_clean_files_save=$ac_clean_files
2628
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2629
# Try to create an executable without -o first, disregard a.out.
2630
# It will help us diagnose broken compilers, and finding out an intuition
2631
# of exeext.
2632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2633
$as_echo_n "checking whether the C compiler works... " >&6; }
2634
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2635
2636
# The possible output files:
2637
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2638
2639
ac_rmfiles=
2640
for ac_file in $ac_files
2641
do
2642
  case $ac_file in
2643
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2644
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2645
  esac
2646
done
2647
rm -f $ac_rmfiles
2648
2649
if { { ac_try="$ac_link_default"
2650
case "(($ac_try" in
2651
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652
  *) ac_try_echo=$ac_try;;
2653
esac
2654
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2655
$as_echo "$ac_try_echo"; } >&5
2656
  (eval "$ac_link_default") 2>&5
2657
  ac_status=$?
2658
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2659
  test $ac_status = 0; }; then :
2660
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2661
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2662
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2663
# so that the user can short-circuit this test for compilers unknown to
2664
# Autoconf.
2665
for ac_file in $ac_files ''
2666
do
2667
  test -f "$ac_file" || continue
2668
  case $ac_file in
2669
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2670
	;;
2671
    [ab].out )
2672
	# We found the default executable, but exeext='' is most
2673
	# certainly right.
2674
	break;;
2675
    *.* )
2676
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2677
	then :; else
2678
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2679
	fi
2680
	# We set ac_cv_exeext here because the later test for it is not
2681
	# safe: cross compilers may not add the suffix if given an `-o'
2682
	# argument, so we may need to know it at that point already.
2683
	# Even if this section looks crufty: it has the advantage of
2684
	# actually working.
2685
	break;;
2686
    * )
2687
	break;;
2688
  esac
2689
done
2690
test "$ac_cv_exeext" = no && ac_cv_exeext=
2691
2692
else
2693
  ac_file=''
2694
fi
2695
if test -z "$ac_file"; then :
2696
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697
$as_echo "no" >&6; }
2698
$as_echo "$as_me: failed program was:" >&5
2699
sed 's/^/| /' conftest.$ac_ext >&5
2700
2701
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703
as_fn_error 77 "C compiler cannot create executables
2704
See \`config.log' for more details" "$LINENO" 5; }
2705
else
2706
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2707
$as_echo "yes" >&6; }
2708
fi
2709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2710
$as_echo_n "checking for C compiler default output file name... " >&6; }
2711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2712
$as_echo "$ac_file" >&6; }
2713
ac_exeext=$ac_cv_exeext
2714
2715
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2716
ac_clean_files=$ac_clean_files_save
2717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2718
$as_echo_n "checking for suffix of executables... " >&6; }
2719
if { { ac_try="$ac_link"
2720
case "(($ac_try" in
2721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722
  *) ac_try_echo=$ac_try;;
2723
esac
2724
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2725
$as_echo "$ac_try_echo"; } >&5
2726
  (eval "$ac_link") 2>&5
2727
  ac_status=$?
2728
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2729
  test $ac_status = 0; }; then :
2730
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2731
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2732
# work properly (i.e., refer to `conftest.exe'), while it won't with
2733
# `rm'.
2734
for ac_file in conftest.exe conftest conftest.*; do
2735
  test -f "$ac_file" || continue
2736
  case $ac_file in
2737
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2738
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2739
	  break;;
2740
    * ) break;;
2741
  esac
2742
done
2743
else
2744
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2745
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2746
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2747
See \`config.log' for more details" "$LINENO" 5; }
2748
fi
2749
rm -f conftest conftest$ac_cv_exeext
2750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2751
$as_echo "$ac_cv_exeext" >&6; }
2752
2753
rm -f conftest.$ac_ext
2754
EXEEXT=$ac_cv_exeext
2755
ac_exeext=$EXEEXT
2756
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757
/* end confdefs.h.  */
2758
#include <stdio.h>
2759
int
2760
main ()
2761
{
2762
FILE *f = fopen ("conftest.out", "w");
2763
 return ferror (f) || fclose (f) != 0;
2764
2765
  ;
2766
  return 0;
2767
}
2768
_ACEOF
2769
ac_clean_files="$ac_clean_files conftest.out"
2770
# Check that the compiler produces executables we can run.  If not, either
2771
# the compiler is broken, or we cross compile.
2772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2773
$as_echo_n "checking whether we are cross compiling... " >&6; }
2774
if test "$cross_compiling" != yes; then
2775
  { { ac_try="$ac_link"
2776
case "(($ac_try" in
2777
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778
  *) ac_try_echo=$ac_try;;
2779
esac
2780
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781
$as_echo "$ac_try_echo"; } >&5
2782
  (eval "$ac_link") 2>&5
2783
  ac_status=$?
2784
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785
  test $ac_status = 0; }
2786
  if { ac_try='./conftest$ac_cv_exeext'
2787
  { { case "(($ac_try" in
2788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789
  *) ac_try_echo=$ac_try;;
2790
esac
2791
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792
$as_echo "$ac_try_echo"; } >&5
2793
  (eval "$ac_try") 2>&5
2794
  ac_status=$?
2795
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2796
  test $ac_status = 0; }; }; then
2797
    cross_compiling=no
2798
  else
2799
    if test "$cross_compiling" = maybe; then
2800
	cross_compiling=yes
2801
    else
2802
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2803
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2804
as_fn_error $? "cannot run C compiled programs.
2805
If you meant to cross compile, use \`--host'.
2806
See \`config.log' for more details" "$LINENO" 5; }
2807
    fi
2808
  fi
2809
fi
2810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2811
$as_echo "$cross_compiling" >&6; }
2812
2813
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2814
ac_clean_files=$ac_clean_files_save
2815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2816
$as_echo_n "checking for suffix of object files... " >&6; }
2817
if ${ac_cv_objext+:} false; then :
2818
  $as_echo_n "(cached) " >&6
2819
else
2820
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821
/* end confdefs.h.  */
2822
2823
int
2824
main ()
2825
{
2826
2827
  ;
2828
  return 0;
2829
}
2830
_ACEOF
2831
rm -f conftest.o conftest.obj
2832
if { { ac_try="$ac_compile"
2833
case "(($ac_try" in
2834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835
  *) ac_try_echo=$ac_try;;
2836
esac
2837
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838
$as_echo "$ac_try_echo"; } >&5
2839
  (eval "$ac_compile") 2>&5
2840
  ac_status=$?
2841
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2842
  test $ac_status = 0; }; then :
2843
  for ac_file in conftest.o conftest.obj conftest.*; do
2844
  test -f "$ac_file" || continue;
2845
  case $ac_file in
2846
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2847
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2848
       break;;
2849
  esac
2850
done
2851
else
2852
  $as_echo "$as_me: failed program was:" >&5
2853
sed 's/^/| /' conftest.$ac_ext >&5
2854
2855
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2856
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857
as_fn_error $? "cannot compute suffix of object files: cannot compile
2858
See \`config.log' for more details" "$LINENO" 5; }
2859
fi
2860
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2861
fi
2862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2863
$as_echo "$ac_cv_objext" >&6; }
2864
OBJEXT=$ac_cv_objext
2865
ac_objext=$OBJEXT
2866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2867
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2868
if ${ac_cv_c_compiler_gnu+:} false; then :
2869
  $as_echo_n "(cached) " >&6
2870
else
2871
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872
/* end confdefs.h.  */
2873
2874
int
2875
main ()
2876
{
2877
#ifndef __GNUC__
2878
       choke me
2879
#endif
2880
2881
  ;
2882
  return 0;
2883
}
2884
_ACEOF
2885
if ac_fn_c_try_compile "$LINENO"; then :
2886
  ac_compiler_gnu=yes
2887
else
2888
  ac_compiler_gnu=no
2889
fi
2890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2892
2893
fi
2894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2895
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2896
if test $ac_compiler_gnu = yes; then
2897
  GCC=yes
2898
else
2899
  GCC=
2900
fi
2901
ac_test_CFLAGS=${CFLAGS+set}
2902
ac_save_CFLAGS=$CFLAGS
2903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2904
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2905
if ${ac_cv_prog_cc_g+:} false; then :
2906
  $as_echo_n "(cached) " >&6
2907
else
2908
  ac_save_c_werror_flag=$ac_c_werror_flag
2909
   ac_c_werror_flag=yes
2910
   ac_cv_prog_cc_g=no
2911
   CFLAGS="-g"
2912
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913
/* end confdefs.h.  */
2914
2915
int
2916
main ()
2917
{
2918
2919
  ;
2920
  return 0;
2921
}
2922
_ACEOF
2923
if ac_fn_c_try_compile "$LINENO"; then :
2924
  ac_cv_prog_cc_g=yes
2925
else
2926
  CFLAGS=""
2927
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2928
/* end confdefs.h.  */
2929
2930
int
2931
main ()
2932
{
2933
2934
  ;
2935
  return 0;
2936
}
2937
_ACEOF
2938
if ac_fn_c_try_compile "$LINENO"; then :
2939
2940
else
2941
  ac_c_werror_flag=$ac_save_c_werror_flag
2942
	 CFLAGS="-g"
2943
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944
/* end confdefs.h.  */
2945
2946
int
2947
main ()
2948
{
2949
2950
  ;
2951
  return 0;
2952
}
2953
_ACEOF
2954
if ac_fn_c_try_compile "$LINENO"; then :
2955
  ac_cv_prog_cc_g=yes
2956
fi
2957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958
fi
2959
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960
fi
2961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962
   ac_c_werror_flag=$ac_save_c_werror_flag
2963
fi
2964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2965
$as_echo "$ac_cv_prog_cc_g" >&6; }
2966
if test "$ac_test_CFLAGS" = set; then
2967
  CFLAGS=$ac_save_CFLAGS
2968
elif test $ac_cv_prog_cc_g = yes; then
2969
  if test "$GCC" = yes; then
2970
    CFLAGS="-g -O2"
2971
  else
2972
    CFLAGS="-g"
2973
  fi
2974
else
2975
  if test "$GCC" = yes; then
2976
    CFLAGS="-O2"
2977
  else
2978
    CFLAGS=
2979
  fi
2980
fi
2981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2982
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2983
if ${ac_cv_prog_cc_c89+:} false; then :
2984
  $as_echo_n "(cached) " >&6
2985
else
2986
  ac_cv_prog_cc_c89=no
2987
ac_save_CC=$CC
2988
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2989
/* end confdefs.h.  */
2990
#include <stdarg.h>
2991
#include <stdio.h>
2992
struct stat;
2993
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2994
struct buf { int x; };
2995
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2996
static char *e (p, i)
2997
     char **p;
2998
     int i;
2999
{
3000
  return p[i];
3001
}
3002
static char *f (char * (*g) (char **, int), char **p, ...)
3003
{
3004
  char *s;
3005
  va_list v;
3006
  va_start (v,p);
3007
  s = g (p, va_arg (v,int));
3008
  va_end (v);
3009
  return s;
3010
}
3011
3012
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3013
   function prototypes and stuff, but not '\xHH' hex character constants.
3014
   These don't provoke an error unfortunately, instead are silently treated
3015
   as 'x'.  The following induces an error, until -std is added to get
3016
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3017
   array size at least.  It's necessary to write '\x00'==0 to get something
3018
   that's true only with -std.  */
3019
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3020
3021
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3022
   inside strings and character constants.  */
3023
#define FOO(x) 'x'
3024
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3025
3026
int test (int i, double x);
3027
struct s1 {int (*f) (int a);};
3028
struct s2 {int (*f) (double a);};
3029
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3030
int argc;
3031
char **argv;
3032
int
3033
main ()
3034
{
3035
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3036
  ;
3037
  return 0;
3038
}
3039
_ACEOF
3040
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3041
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3042
do
3043
  CC="$ac_save_CC $ac_arg"
3044
  if ac_fn_c_try_compile "$LINENO"; then :
3045
  ac_cv_prog_cc_c89=$ac_arg
3046
fi
3047
rm -f core conftest.err conftest.$ac_objext
3048
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3049
done
3050
rm -f conftest.$ac_ext
3051
CC=$ac_save_CC
3052
3053
fi
3054
# AC_CACHE_VAL
3055
case "x$ac_cv_prog_cc_c89" in
3056
  x)
3057
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3058
$as_echo "none needed" >&6; } ;;
3059
  xno)
3060
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3061
$as_echo "unsupported" >&6; } ;;
3062
  *)
3063
    CC="$CC $ac_cv_prog_cc_c89"
3064
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3065
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3066
esac
3067
if test "x$ac_cv_prog_cc_c89" != xno; then :
3068
3069
fi
3070
3071
ac_ext=c
3072
ac_cpp='$CPP $CPPFLAGS'
3073
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3076
3077
3078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
3079
$as_echo_n "checking for library containing clock_gettime... " >&6; }
3080
if ${ac_cv_search_clock_gettime+:} false; then :
3081
  $as_echo_n "(cached) " >&6
3082
else
3083
  ac_func_search_save_LIBS=$LIBS
3084
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085
/* end confdefs.h.  */
3086
3087
/* Override any GCC internal prototype to avoid an error.
3088
   Use char because int might match the return type of a GCC
3089
   builtin and then its argument prototype would still apply.  */
3090
#ifdef __cplusplus
3091
extern "C"
3092
#endif
3093
char clock_gettime ();
3094
int
3095
main ()
3096
{
3097
return clock_gettime ();
3098
  ;
3099
  return 0;
3100
}
3101
_ACEOF
3102
for ac_lib in '' rt posix4; do
3103
  if test -z "$ac_lib"; then
3104
    ac_res="none required"
3105
  else
3106
    ac_res=-l$ac_lib
3107
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3108
  fi
3109
  if ac_fn_c_try_link "$LINENO"; then :
3110
  ac_cv_search_clock_gettime=$ac_res
3111
fi
3112
rm -f core conftest.err conftest.$ac_objext \
3113
    conftest$ac_exeext
3114
  if ${ac_cv_search_clock_gettime+:} false; then :
3115
  break
3116
fi
3117
done
3118
if ${ac_cv_search_clock_gettime+:} false; then :
3119
3120
else
3121
  ac_cv_search_clock_gettime=no
3122
fi
3123
rm conftest.$ac_ext
3124
LIBS=$ac_func_search_save_LIBS
3125
fi
3126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
3127
$as_echo "$ac_cv_search_clock_gettime" >&6; }
3128
ac_res=$ac_cv_search_clock_gettime
3129
if test "$ac_res" != no; then :
3130
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3131
3132
else
3133
  as_fn_error $? "Function clock_gettime not available." "$LINENO" 5
3134
3135
fi
3136
3137
3138
# Make sure we can run config.sub.
3139
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3140
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3141
3142
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3143
$as_echo_n "checking build system type... " >&6; }
3144
if ${ac_cv_build+:} false; then :
3145
  $as_echo_n "(cached) " >&6
3146
else
3147
  ac_build_alias=$build_alias
3148
test "x$ac_build_alias" = x &&
3149
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3150
test "x$ac_build_alias" = x &&
3151
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3152
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3153
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3154
3155
fi
3156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3157
$as_echo "$ac_cv_build" >&6; }
3158
case $ac_cv_build in
3159
*-*-*) ;;
3160
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3161
esac
3162
build=$ac_cv_build
3163
ac_save_IFS=$IFS; IFS='-'
3164
set x $ac_cv_build
3165
shift
3166
build_cpu=$1
3167
build_vendor=$2
3168
shift; shift
3169
# Remember, the first character of IFS is used to create $*,
3170
# except with old shells:
3171
build_os=$*
3172
IFS=$ac_save_IFS
3173
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3174
3175
3176
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3177
$as_echo_n "checking host system type... " >&6; }
3178
if ${ac_cv_host+:} false; then :
3179
  $as_echo_n "(cached) " >&6
3180
else
3181
  if test "x$host_alias" = x; then
3182
  ac_cv_host=$ac_cv_build
3183
else
3184
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3185
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3186
fi
3187
3188
fi
3189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3190
$as_echo "$ac_cv_host" >&6; }
3191
case $ac_cv_host in
3192
*-*-*) ;;
3193
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3194
esac
3195
host=$ac_cv_host
3196
ac_save_IFS=$IFS; IFS='-'
3197
set x $ac_cv_host
3198
shift
3199
host_cpu=$1
3200
host_vendor=$2
3201
shift; shift
3202
# Remember, the first character of IFS is used to create $*,
3203
# except with old shells:
3204
host_os=$*
3205
IFS=$ac_save_IFS
3206
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3207
3208
3209
3210
# Store this value because ac_test_CFLAGS is overwritten by AC_PROG_CC
3211
if test "$ac_test_CFLAGS" != set ; then
3212
  bird_cflags_default=yes
3213
fi
3214
3215
ac_ext=c
3216
ac_cpp='$CPP $CPPFLAGS'
3217
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220
if test -n "$ac_tool_prefix"; then
3221
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3222
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224
$as_echo_n "checking for $ac_word... " >&6; }
3225
if ${ac_cv_prog_CC+:} false; then :
3226
  $as_echo_n "(cached) " >&6
3227
else
3228
  if test -n "$CC"; then
3229
  ac_cv_prog_CC="$CC" # Let the user override the test.
3230
else
3231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232
for as_dir in $PATH
3233
do
3234
  IFS=$as_save_IFS
3235
  test -z "$as_dir" && as_dir=.
3236
    for ac_exec_ext in '' $ac_executable_extensions; do
3237
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3239
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240
    break 2
3241
  fi
3242
done
3243
  done
3244
IFS=$as_save_IFS
3245
3246
fi
3247
fi
3248
CC=$ac_cv_prog_CC
3249
if test -n "$CC"; then
3250
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251
$as_echo "$CC" >&6; }
3252
else
3253
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254
$as_echo "no" >&6; }
3255
fi
3256
3257
3258
fi
3259
if test -z "$ac_cv_prog_CC"; then
3260
  ac_ct_CC=$CC
3261
  # Extract the first word of "gcc", so it can be a program name with args.
3262
set dummy gcc; ac_word=$2
3263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264
$as_echo_n "checking for $ac_word... " >&6; }
3265
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3266
  $as_echo_n "(cached) " >&6
3267
else
3268
  if test -n "$ac_ct_CC"; then
3269
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3270
else
3271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272
for as_dir in $PATH
3273
do
3274
  IFS=$as_save_IFS
3275
  test -z "$as_dir" && as_dir=.
3276
    for ac_exec_ext in '' $ac_executable_extensions; do
3277
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278
    ac_cv_prog_ac_ct_CC="gcc"
3279
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280
    break 2
3281
  fi
3282
done
3283
  done
3284
IFS=$as_save_IFS
3285
3286
fi
3287
fi
3288
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3289
if test -n "$ac_ct_CC"; then
3290
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3291
$as_echo "$ac_ct_CC" >&6; }
3292
else
3293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294
$as_echo "no" >&6; }
3295
fi
3296
3297
  if test "x$ac_ct_CC" = x; then
3298
    CC=""
3299
  else
3300
    case $cross_compiling:$ac_tool_warned in
3301
yes:)
3302
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304
ac_tool_warned=yes ;;
3305
esac
3306
    CC=$ac_ct_CC
3307
  fi
3308
else
3309
  CC="$ac_cv_prog_CC"
3310
fi
3311
3312
if test -z "$CC"; then
3313
          if test -n "$ac_tool_prefix"; then
3314
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3315
set dummy ${ac_tool_prefix}cc; ac_word=$2
3316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317
$as_echo_n "checking for $ac_word... " >&6; }
3318
if ${ac_cv_prog_CC+:} false; then :
3319
  $as_echo_n "(cached) " >&6
3320
else
3321
  if test -n "$CC"; then
3322
  ac_cv_prog_CC="$CC" # Let the user override the test.
3323
else
3324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325
for as_dir in $PATH
3326
do
3327
  IFS=$as_save_IFS
3328
  test -z "$as_dir" && as_dir=.
3329
    for ac_exec_ext in '' $ac_executable_extensions; do
3330
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3332
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333
    break 2
3334
  fi
3335
done
3336
  done
3337
IFS=$as_save_IFS
3338
3339
fi
3340
fi
3341
CC=$ac_cv_prog_CC
3342
if test -n "$CC"; then
3343
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3344
$as_echo "$CC" >&6; }
3345
else
3346
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347
$as_echo "no" >&6; }
3348
fi
3349
3350
3351
  fi
3352
fi
3353
if test -z "$CC"; then
3354
  # Extract the first word of "cc", so it can be a program name with args.
3355
set dummy cc; ac_word=$2
3356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357
$as_echo_n "checking for $ac_word... " >&6; }
3358
if ${ac_cv_prog_CC+:} false; then :
3359
  $as_echo_n "(cached) " >&6
3360
else
3361
  if test -n "$CC"; then
3362
  ac_cv_prog_CC="$CC" # Let the user override the test.
3363
else
3364
  ac_prog_rejected=no
3365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366
for as_dir in $PATH
3367
do
3368
  IFS=$as_save_IFS
3369
  test -z "$as_dir" && as_dir=.
3370
    for ac_exec_ext in '' $ac_executable_extensions; do
3371
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3373
       ac_prog_rejected=yes
3374
       continue
3375
     fi
3376
    ac_cv_prog_CC="cc"
3377
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378
    break 2
3379
  fi
3380
done
3381
  done
3382
IFS=$as_save_IFS
3383
3384
if test $ac_prog_rejected = yes; then
3385
  # We found a bogon in the path, so make sure we never use it.
3386
  set dummy $ac_cv_prog_CC
3387
  shift
3388
  if test $# != 0; then
3389
    # We chose a different compiler from the bogus one.
3390
    # However, it has the same basename, so the bogon will be chosen
3391
    # first if we set CC to just the basename; use the full file name.
3392
    shift
3393
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3394
  fi
3395
fi
3396
fi
3397
fi
3398
CC=$ac_cv_prog_CC
3399
if test -n "$CC"; then
3400
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3401
$as_echo "$CC" >&6; }
3402
else
3403
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404
$as_echo "no" >&6; }
3405
fi
3406
3407
3408
fi
3409
if test -z "$CC"; then
3410
  if test -n "$ac_tool_prefix"; then
3411
  for ac_prog in cl.exe
3412
  do
3413
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3414
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416
$as_echo_n "checking for $ac_word... " >&6; }
3417
if ${ac_cv_prog_CC+:} false; then :
3418
  $as_echo_n "(cached) " >&6
3419
else
3420
  if test -n "$CC"; then
3421
  ac_cv_prog_CC="$CC" # Let the user override the test.
3422
else
3423
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424
for as_dir in $PATH
3425
do
3426
  IFS=$as_save_IFS
3427
  test -z "$as_dir" && as_dir=.
3428
    for ac_exec_ext in '' $ac_executable_extensions; do
3429
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3431
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432
    break 2
3433
  fi
3434
done
3435
  done
3436
IFS=$as_save_IFS
3437
3438
fi
3439
fi
3440
CC=$ac_cv_prog_CC
3441
if test -n "$CC"; then
3442
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443
$as_echo "$CC" >&6; }
3444
else
3445
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446
$as_echo "no" >&6; }
3447
fi
3448
3449
3450
    test -n "$CC" && break
3451
  done
3452
fi
3453
if test -z "$CC"; then
3454
  ac_ct_CC=$CC
3455
  for ac_prog in cl.exe
3456
do
3457
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3458
set dummy $ac_prog; ac_word=$2
3459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460
$as_echo_n "checking for $ac_word... " >&6; }
3461
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3462
  $as_echo_n "(cached) " >&6
3463
else
3464
  if test -n "$ac_ct_CC"; then
3465
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3466
else
3467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468
for as_dir in $PATH
3469
do
3470
  IFS=$as_save_IFS
3471
  test -z "$as_dir" && as_dir=.
3472
    for ac_exec_ext in '' $ac_executable_extensions; do
3473
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474
    ac_cv_prog_ac_ct_CC="$ac_prog"
3475
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476
    break 2
3477
  fi
3478
done
3479
  done
3480
IFS=$as_save_IFS
3481
3482
fi
3483
fi
3484
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3485
if test -n "$ac_ct_CC"; then
3486
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3487
$as_echo "$ac_ct_CC" >&6; }
3488
else
3489
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490
$as_echo "no" >&6; }
3491
fi
3492
3493
3494
  test -n "$ac_ct_CC" && break
3495
done
3496
3497
  if test "x$ac_ct_CC" = x; then
3498
    CC=""
3499
  else
3500
    case $cross_compiling:$ac_tool_warned in
3501
yes:)
3502
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3503
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3504
ac_tool_warned=yes ;;
3505
esac
3506
    CC=$ac_ct_CC
3507
  fi
3508
fi
3509
3510
fi
3511
3512
3513
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515
as_fn_error $? "no acceptable C compiler found in \$PATH
3516
See \`config.log' for more details" "$LINENO" 5; }
3517
3518
# Provide some information about the compiler.
3519
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3520
set X $ac_compile
3521
ac_compiler=$2
3522
for ac_option in --version -v -V -qversion; do
3523
  { { ac_try="$ac_compiler $ac_option >&5"
3524
case "(($ac_try" in
3525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526
  *) ac_try_echo=$ac_try;;
3527
esac
3528
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529
$as_echo "$ac_try_echo"; } >&5
3530
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3531
  ac_status=$?
3532
  if test -s conftest.err; then
3533
    sed '10a\
3534
... rest of stderr output deleted ...
3535
         10q' conftest.err >conftest.er1
3536
    cat conftest.er1 >&5
3537
  fi
3538
  rm -f conftest.er1 conftest.err
3539
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540
  test $ac_status = 0; }
3541
done
3542
3543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545
if ${ac_cv_c_compiler_gnu+:} false; then :
3546
  $as_echo_n "(cached) " >&6
3547
else
3548
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549
/* end confdefs.h.  */
3550
3551
int
3552
main ()
3553
{
3554
#ifndef __GNUC__
3555
       choke me
3556
#endif
3557
3558
  ;
3559
  return 0;
3560
}
3561
_ACEOF
3562
if ac_fn_c_try_compile "$LINENO"; then :
3563
  ac_compiler_gnu=yes
3564
else
3565
  ac_compiler_gnu=no
3566
fi
3567
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569
3570
fi
3571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573
if test $ac_compiler_gnu = yes; then
3574
  GCC=yes
3575
else
3576
  GCC=
3577
fi
3578
ac_test_CFLAGS=${CFLAGS+set}
3579
ac_save_CFLAGS=$CFLAGS
3580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3582
if ${ac_cv_prog_cc_g+:} false; then :
3583
  $as_echo_n "(cached) " >&6
3584
else
3585
  ac_save_c_werror_flag=$ac_c_werror_flag
3586
   ac_c_werror_flag=yes
3587
   ac_cv_prog_cc_g=no
3588
   CFLAGS="-g"
3589
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590
/* end confdefs.h.  */
3591
3592
int
3593
main ()
3594
{
3595
3596
  ;
3597
  return 0;
3598
}
3599
_ACEOF
3600
if ac_fn_c_try_compile "$LINENO"; then :
3601
  ac_cv_prog_cc_g=yes
3602
else
3603
  CFLAGS=""
3604
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605
/* end confdefs.h.  */
3606
3607
int
3608
main ()
3609
{
3610
3611
  ;
3612
  return 0;
3613
}
3614
_ACEOF
3615
if ac_fn_c_try_compile "$LINENO"; then :
3616
3617
else
3618
  ac_c_werror_flag=$ac_save_c_werror_flag
3619
	 CFLAGS="-g"
3620
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621
/* end confdefs.h.  */
3622
3623
int
3624
main ()
3625
{
3626
3627
  ;
3628
  return 0;
3629
}
3630
_ACEOF
3631
if ac_fn_c_try_compile "$LINENO"; then :
3632
  ac_cv_prog_cc_g=yes
3633
fi
3634
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635
fi
3636
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637
fi
3638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639
   ac_c_werror_flag=$ac_save_c_werror_flag
3640
fi
3641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642
$as_echo "$ac_cv_prog_cc_g" >&6; }
3643
if test "$ac_test_CFLAGS" = set; then
3644
  CFLAGS=$ac_save_CFLAGS
3645
elif test $ac_cv_prog_cc_g = yes; then
3646
  if test "$GCC" = yes; then
3647
    CFLAGS="-g -O2"
3648
  else
3649
    CFLAGS="-g"
3650
  fi
3651
else
3652
  if test "$GCC" = yes; then
3653
    CFLAGS="-O2"
3654
  else
3655
    CFLAGS=
3656
  fi
3657
fi
3658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660
if ${ac_cv_prog_cc_c89+:} false; then :
3661
  $as_echo_n "(cached) " >&6
3662
else
3663
  ac_cv_prog_cc_c89=no
3664
ac_save_CC=$CC
3665
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666
/* end confdefs.h.  */
3667
#include <stdarg.h>
3668
#include <stdio.h>
3669
struct stat;
3670
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3671
struct buf { int x; };
3672
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673
static char *e (p, i)
3674
     char **p;
3675
     int i;
3676
{
3677
  return p[i];
3678
}
3679
static char *f (char * (*g) (char **, int), char **p, ...)
3680
{
3681
  char *s;
3682
  va_list v;
3683
  va_start (v,p);
3684
  s = g (p, va_arg (v,int));
3685
  va_end (v);
3686
  return s;
3687
}
3688
3689
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3690
   function prototypes and stuff, but not '\xHH' hex character constants.
3691
   These don't provoke an error unfortunately, instead are silently treated
3692
   as 'x'.  The following induces an error, until -std is added to get
3693
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3694
   array size at least.  It's necessary to write '\x00'==0 to get something
3695
   that's true only with -std.  */
3696
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3697
3698
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699
   inside strings and character constants.  */
3700
#define FOO(x) 'x'
3701
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3702
3703
int test (int i, double x);
3704
struct s1 {int (*f) (int a);};
3705
struct s2 {int (*f) (double a);};
3706
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3707
int argc;
3708
char **argv;
3709
int
3710
main ()
3711
{
3712
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3713
  ;
3714
  return 0;
3715
}
3716
_ACEOF
3717
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3718
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3719
do
3720
  CC="$ac_save_CC $ac_arg"
3721
  if ac_fn_c_try_compile "$LINENO"; then :
3722
  ac_cv_prog_cc_c89=$ac_arg
3723
fi
3724
rm -f core conftest.err conftest.$ac_objext
3725
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3726
done
3727
rm -f conftest.$ac_ext
3728
CC=$ac_save_CC
3729
3730
fi
3731
# AC_CACHE_VAL
3732
case "x$ac_cv_prog_cc_c89" in
3733
  x)
3734
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735
$as_echo "none needed" >&6; } ;;
3736
  xno)
3737
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3738
$as_echo "unsupported" >&6; } ;;
3739
  *)
3740
    CC="$CC $ac_cv_prog_cc_c89"
3741
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3742
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3743
esac
3744
if test "x$ac_cv_prog_cc_c89" != xno; then :
3745
3746
fi
3747
3748
ac_ext=c
3749
ac_cpp='$CPP $CPPFLAGS'
3750
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3755
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3756
if ${ac_cv_prog_cc_c99+:} false; then :
3757
  $as_echo_n "(cached) " >&6
3758
else
3759
  ac_cv_prog_cc_c99=no
3760
ac_save_CC=$CC
3761
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762
/* end confdefs.h.  */
3763
#include <stdarg.h>
3764
#include <stdbool.h>
3765
#include <stdlib.h>
3766
#include <wchar.h>
3767
#include <stdio.h>
3768
3769
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3770
#define debug(...) fprintf (stderr, __VA_ARGS__)
3771
#define showlist(...) puts (#__VA_ARGS__)
3772
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3773
static void
3774
test_varargs_macros (void)
3775
{
3776
  int x = 1234;
3777
  int y = 5678;
3778
  debug ("Flag");
3779
  debug ("X = %d\n", x);
3780
  showlist (The first, second, and third items.);
3781
  report (x>y, "x is %d but y is %d", x, y);
3782
}
3783
3784
// Check long long types.
3785
#define BIG64 18446744073709551615ull
3786
#define BIG32 4294967295ul
3787
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3788
#if !BIG_OK
3789
  your preprocessor is broken;
3790
#endif
3791
#if BIG_OK
3792
#else
3793
  your preprocessor is broken;
3794
#endif
3795
static long long int bignum = -9223372036854775807LL;
3796
static unsigned long long int ubignum = BIG64;
</