1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65 for InitNG 0.7-GIT.
4
#
5
# Report bugs to <http://initng.sourceforge.net/trac>.
6
#
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10
# Inc.
11
#
12
#
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
18
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
  emulate sh
23
  NULLCMD=:
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
  # is contrary to our usage.  Disable this feature.
26
  alias -g '${1+"$@"}'='"$@"'
27
  setopt NO_GLOB_SUBST
28
else
29
  case `(set -o) 2>/dev/null` in #(
30
  *posix*) :
31
    set -o posix ;; #(
32
  *) :
33
     ;;
34
esac
35
fi
36
37
38
as_nl='
39
'
40
export as_nl
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49
  as_echo='print -r --'
50
  as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52
  as_echo='printf %s\n'
53
  as_echo_n='printf %s'
54
else
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
    as_echo_n='/usr/ucb/echo -n'
58
  else
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
    as_echo_n_body='eval
61
      arg=$1;
62
      case $arg in #(
63
      *"$as_nl"*)
64
	expr "X$arg" : "X\\(.*\\)$as_nl";
65
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66
      esac;
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
    '
69
    export as_echo_n_body
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
71
  fi
72
  export as_echo_body
73
  as_echo='sh -c $as_echo_body as_echo'
74
fi
75
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
78
  PATH_SEPARATOR=:
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
      PATH_SEPARATOR=';'
82
  }
83
fi
84
85
86
# IFS
87
# We need space, tab and new line, in precisely that order.  Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
91
IFS=" ""	$as_nl"
92
93
# Find who we are.  Look in the path if we contain no directory separator.
94
case $0 in #((
95
  *[\\/]* ) as_myself=$0 ;;
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97
for as_dir in $PATH
98
do
99
  IFS=$as_save_IFS
100
  test -z "$as_dir" && as_dir=.
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102
  done
103
IFS=$as_save_IFS
104
105
     ;;
106
esac
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
110
  as_myself=$0
111
fi
112
if test ! -f "$as_myself"; then
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114
  exit 1
115
fi
116
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there.  '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124
done
125
PS1='$ '
126
PS2='> '
127
PS4='+ '
128
129
# NLS nuisances.
130
LC_ALL=C
131
export LC_ALL
132
LANGUAGE=C
133
export LANGUAGE
134
135
# CDPATH.
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138
if test "x$CONFIG_SHELL" = x; then
139
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
  emulate sh
141
  NULLCMD=:
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
  # is contrary to our usage.  Disable this feature.
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
  setopt NO_GLOB_SUBST
146
else
147
  case \`(set -o) 2>/dev/null\` in #(
148
  *posix*) :
149
    set -o posix ;; #(
150
  *) :
151
     ;;
152
esac
153
fi
154
"
155
  as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
160
161
exitcode=0
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168
else
169
  exitcode=1; echo positional parameters were not saved.
170
fi
171
test x\$exitcode = x0 || exit 1"
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
  if (eval "$as_required") 2>/dev/null; then :
178
  as_have_required=yes
179
else
180
  as_have_required=no
181
fi
182
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184
else
185
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186
as_found=false
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
do
189
  IFS=$as_save_IFS
190
  test -z "$as_dir" && as_dir=.
191
  as_found=:
192
  case $as_dir in #(
193
	 /*)
194
	   for as_base in sh bash ksh sh5; do
195
	     # Try only shells that exist, to save several forks.
196
	     as_shell=$as_dir/$as_base
197
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
  CONFIG_SHELL=$as_shell as_have_required=yes
200
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201
  break 2
202
fi
203
fi
204
	   done;;
205
       esac
206
  as_found=false
207
done
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
  CONFIG_SHELL=$SHELL as_have_required=yes
211
fi; }
212
IFS=$as_save_IFS
213
214
215
      if test "x$CONFIG_SHELL" != x; then :
216
  # We cannot yet assume a decent shell, so we have to provide a
217
	# neutralization value for shells without unset; and this also
218
	# works around shells that cannot unset nonexistent variables.
219
	BASH_ENV=/dev/null
220
	ENV=/dev/null
221
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222
	export CONFIG_SHELL
223
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
fi
225
226
    if test x$as_have_required = xno; then :
227
  $as_echo "$0: This script requires a shell more modern than all"
228
  $as_echo "$0: the shells that I found on your system."
229
  if test x${ZSH_VERSION+set} = xset ; then
230
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232
  else
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234
$0: http://initng.sourceforge.net/trac about your system,
235
$0: including any error possibly output before this
236
$0: message. Then install a modern shell, or manually run
237
$0: the script under such a shell if you do have one."
238
  fi
239
  exit 1
240
fi
241
fi
242
fi
243
SHELL=${CONFIG_SHELL-/bin/sh}
244
export SHELL
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
248
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
252
# as_fn_unset VAR
253
# ---------------
254
# Portably unset VAR.
255
as_fn_unset ()
256
{
257
  { eval $1=; unset $1;}
258
}
259
as_unset=as_fn_unset
260
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
264
as_fn_set_status ()
265
{
266
  return $1
267
} # as_fn_set_status
268
269
# as_fn_exit STATUS
270
# -----------------
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272
as_fn_exit ()
273
{
274
  set +e
275
  as_fn_set_status $1
276
  exit $1
277
} # as_fn_exit
278
279
# as_fn_mkdir_p
280
# -------------
281
# Create "$as_dir" as a directory, including parents if necessary.
282
as_fn_mkdir_p ()
283
{
284
285
  case $as_dir in #(
286
  -*) as_dir=./$as_dir;;
287
  esac
288
  test -d "$as_dir" || eval $as_mkdir_p || {
289
    as_dirs=
290
    while :; do
291
      case $as_dir in #(
292
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293
      *) as_qdir=$as_dir;;
294
      esac
295
      as_dirs="'$as_qdir' $as_dirs"
296
      as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
	 X"$as_dir" : 'X\(//\)[^/]' \| \
299
	 X"$as_dir" : 'X\(//\)$' \| \
300
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303
	    s//\1/
304
	    q
305
	  }
306
	  /^X\(\/\/\)[^/].*/{
307
	    s//\1/
308
	    q
309
	  }
310
	  /^X\(\/\/\)$/{
311
	    s//\1/
312
	    q
313
	  }
314
	  /^X\(\/\).*/{
315
	    s//\1/
316
	    q
317
	  }
318
	  s/.*/./; q'`
319
      test -d "$as_dir" && break
320
    done
321
    test -z "$as_dirs" || eval "mkdir $as_dirs"
322
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325
} # as_fn_mkdir_p
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
331
# implementations.
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
  eval 'as_fn_append ()
334
  {
335
    eval $1+=\$2
336
  }'
337
else
338
  as_fn_append ()
339
  {
340
    eval $1=\$$1\$2
341
  }
342
fi # as_fn_append
343
344
# as_fn_arith ARG...
345
# ------------------
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350
  eval 'as_fn_arith ()
351
  {
352
    as_val=$(( $* ))
353
  }'
354
else
355
  as_fn_arith ()
356
  {
357
    as_val=`expr "$@" || test $? -eq 1`
358
  }
359
fi # as_fn_arith
360
361
362
# as_fn_error ERROR [LINENO LOG_FD]
363
# ---------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with status $?, using 1 if that was 0.
367
as_fn_error ()
368
{
369
  as_status=$?; test $as_status -eq 0 && as_status=1
370
  if test "$3"; then
371
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373
  fi
374
  $as_echo "$as_me: error: $1" >&2
375
  as_fn_exit $as_status
376
} # as_fn_error
377
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380
  as_expr=expr
381
else
382
  as_expr=false
383
fi
384
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386
  as_basename=basename
387
else
388
  as_basename=false
389
fi
390
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392
  as_dirname=dirname
393
else
394
  as_dirname=false
395
fi
396
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
	 X"$0" : 'X\(//\)$' \| \
400
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401
$as_echo X/"$0" |
402
    sed '/^.*\/\([^/][^/]*\)\/*$/{
403
	    s//\1/
404
	    q
405
	  }
406
	  /^X\/\(\/\/\)$/{
407
	    s//\1/
408
	    q
409
	  }
410
	  /^X\/\(\/\).*/{
411
	    s//\1/
412
	    q
413
	  }
414
	  s/.*/./; q'`
415
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429
  sed -n '
430
    p
431
    /[$]LINENO/=
432
  ' <$as_myself |
433
    sed '
434
      s/[$]LINENO.*/&-/
435
      t lineno
436
      b
437
      :lineno
438
      N
439
      :loop
440
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441
      t loop
442
      s/-\n.*//
443
    ' >$as_me.lineno &&
444
  chmod +x "$as_me.lineno" ||
445
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447
  # Don't try to exec as it changes $[0], causing all sort of problems
448
  # (the dirname of $[0] is not the place where we might find the
449
  # original and so on.  Autoconf is especially sensitive to this).
450
  . "./$as_me.lineno"
451
  # Exit status is that of the last command.
452
  exit
453
}
454
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
457
-n*)
458
  case `echo 'xy\c'` in
459
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460
  xy)  ECHO_C='\c';;
461
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462
       ECHO_T='	';;
463
  esac;;
464
*)
465
  ECHO_N='-n';;
466
esac
467
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
  rm -f conf$$.dir/conf$$.file
471
else
472
  rm -f conf$$.dir
473
  mkdir conf$$.dir 2>/dev/null
474
fi
475
if (echo >conf$$.file) 2>/dev/null; then
476
  if ln -s conf$$.file conf$$ 2>/dev/null; then
477
    as_ln_s='ln -s'
478
    # ... but there are two gotchas:
479
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
    # In both cases, we have to default to `cp -p'.
482
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483
      as_ln_s='cp -p'
484
  elif ln conf$$.file conf$$ 2>/dev/null; then
485
    as_ln_s=ln
486
  else
487
    as_ln_s='cp -p'
488
  fi
489
else
490
  as_ln_s='cp -p'
491
fi
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
494
495
if mkdir -p . 2>/dev/null; then
496
  as_mkdir_p='mkdir -p "$as_dir"'
497
else
498
  test -d ./-p && rmdir ./-p
499
  as_mkdir_p=false
500
fi
501
502
if test -x / >/dev/null 2>&1; then
503
  as_test_x='test -x'
504
else
505
  if ls -dL / >/dev/null 2>&1; then
506
    as_ls_L_option=L
507
  else
508
    as_ls_L_option=
509
  fi
510
  as_test_x='
511
    eval sh -c '\''
512
      if test -d "$1"; then
513
	test -d "$1/.";
514
      else
515
	case $1 in #(
516
	-*)set "./$1";;
517
	esac;
518
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
	???[sx]*):;;*)false;;esac;fi
520
    '\'' sh
521
  '
522
fi
523
as_executable_p=$as_test_x
524
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
test -n "$DJDIR" || exec 7<&0 </dev/null
533
exec 6>&1
534
535
# Name of the host.
536
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537
# so uname gets run too.
538
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540
#
541
# Initializations.
542
#
543
ac_default_prefix=/usr/local
544
ac_clean_files=
545
ac_config_libobj_dir=.
546
LIBOBJS=
547
cross_compiling=no
548
subdirs=
549
MFLAGS=
550
MAKEFLAGS=
551
552
# Identity of this package.
553
PACKAGE_NAME='InitNG'
554
PACKAGE_TARNAME='initng'
555
PACKAGE_VERSION='0.7-GIT'
556
PACKAGE_STRING='InitNG 0.7-GIT'
557
PACKAGE_BUGREPORT='http://initng.sourceforge.net/trac'
558
PACKAGE_URL=''
559
560
# Factoring default headers for most tests.
561
ac_includes_default="\
562
#include <stdio.h>
563
#ifdef HAVE_SYS_TYPES_H
564
# include <sys/types.h>
565
#endif
566
#ifdef HAVE_SYS_STAT_H
567
# include <sys/stat.h>
568
#endif
569
#ifdef STDC_HEADERS
570
# include <stdlib.h>
571
# include <stddef.h>
572
#else
573
# ifdef HAVE_STDLIB_H
574
#  include <stdlib.h>
575
# endif
576
#endif
577
#ifdef HAVE_STRING_H
578
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
579
#  include <memory.h>
580
# endif
581
# include <string.h>
582
#endif
583
#ifdef HAVE_STRINGS_H
584
# include <strings.h>
585
#endif
586
#ifdef HAVE_INTTYPES_H
587
# include <inttypes.h>
588
#endif
589
#ifdef HAVE_STDINT_H
590
# include <stdint.h>
591
#endif
592
#ifdef HAVE_UNISTD_H
593
# include <unistd.h>
594
#endif"
595
596
ac_subst_vars='LTLIBOBJS
597
DBUS_LIBS
598
DBUS_CFLAGS
599
PKG_CONFIG
600
LIBOBJS
601
EGREP
602
GREP
603
CPP
604
OBJEXT
605
EXEEXT
606
ac_ct_CC
607
CPPFLAGS
608
LDFLAGS
609
CFLAGS
610
CC
611
target_alias
612
host_alias
613
build_alias
614
LIBS
615
ECHO_T
616
ECHO_N
617
ECHO_C
618
DEFS
619
mandir
620
localedir
621
libdir
622
psdir
623
pdfdir
624
dvidir
625
htmldir
626
infodir
627
docdir
628
oldincludedir
629
includedir
630
localstatedir
631
sharedstatedir
632
sysconfdir
633
datadir
634
datarootdir
635
libexecdir
636
sbindir
637
bindir
638
program_transform_name
639
prefix
640
exec_prefix
641
PACKAGE_URL
642
PACKAGE_BUGREPORT
643
PACKAGE_STRING
644
PACKAGE_VERSION
645
PACKAGE_TARNAME
646
PACKAGE_NAME
647
PATH_SEPARATOR
648
SHELL'
649
ac_subst_files=''
650
ac_user_opts='
651
enable_option_checking
652
'
653
      ac_precious_vars='build_alias
654
host_alias
655
target_alias
656
CC
657
CFLAGS
658
LDFLAGS
659
LIBS
660
CPPFLAGS
661
CPP
662
PKG_CONFIG
663
DBUS_CFLAGS
664
DBUS_LIBS'
665
666
667
# Initialize some variables set by options.
668
ac_init_help=
669
ac_init_version=false
670
ac_unrecognized_opts=
671
ac_unrecognized_sep=
672
# The variables have the same names as the options, with
673
# dashes changed to underlines.
674
cache_file=/dev/null
675
exec_prefix=NONE
676
no_create=
677
no_recursion=
678
prefix=NONE
679
program_prefix=NONE
680
program_suffix=NONE
681
program_transform_name=s,x,x,
682
silent=
683
site=
684
srcdir=
685
verbose=
686
x_includes=NONE
687
x_libraries=NONE
688
689
# Installation directory options.
690
# These are left unexpanded so users can "make install exec_prefix=/foo"
691
# and all the variables that are supposed to be based on exec_prefix
692
# by default will actually change.
693
# Use braces instead of parens because sh, perl, etc. also accept them.
694
# (The list follows the same order as the GNU Coding Standards.)
695
bindir='${exec_prefix}/bin'
696
sbindir='${exec_prefix}/sbin'
697
libexecdir='${exec_prefix}/libexec'
698
datarootdir='${prefix}/share'
699
datadir='${datarootdir}'
700
sysconfdir='${prefix}/etc'
701
sharedstatedir='${prefix}/com'
702
localstatedir='${prefix}/var'
703
includedir='${prefix}/include'
704
oldincludedir='/usr/include'
705
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
706
infodir='${datarootdir}/info'
707
htmldir='${docdir}'
708
dvidir='${docdir}'
709
pdfdir='${docdir}'
710
psdir='${docdir}'
711
libdir='${exec_prefix}/lib'
712
localedir='${datarootdir}/locale'
713
mandir='${datarootdir}/man'
714
715
ac_prev=
716
ac_dashdash=
717
for ac_option
718
do
719
  # If the previous option needs an argument, assign it.
720
  if test -n "$ac_prev"; then
721
    eval $ac_prev=\$ac_option
722
    ac_prev=
723
    continue
724
  fi
725
726
  case $ac_option in
727
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
728
  *)	ac_optarg=yes ;;
729
  esac
730
731
  # Accept the important Cygnus configure options, so we can diagnose typos.
732
733
  case $ac_dashdash$ac_option in
734
  --)
735
    ac_dashdash=yes ;;
736
737
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
738
    ac_prev=bindir ;;
739
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
740
    bindir=$ac_optarg ;;
741
742
  -build | --build | --buil | --bui | --bu)
743
    ac_prev=build_alias ;;
744
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
745
    build_alias=$ac_optarg ;;
746
747
  -cache-file | --cache-file | --cache-fil | --cache-fi \
748
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
749
    ac_prev=cache_file ;;
750
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
751
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
752
    cache_file=$ac_optarg ;;
753
754
  --config-cache | -C)
755
    cache_file=config.cache ;;
756
757
  -datadir | --datadir | --datadi | --datad)
758
    ac_prev=datadir ;;
759
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
760
    datadir=$ac_optarg ;;
761
762
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
763
  | --dataroo | --dataro | --datar)
764
    ac_prev=datarootdir ;;
765
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
766
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
767
    datarootdir=$ac_optarg ;;
768
769
  -disable-* | --disable-*)
770
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
771
    # Reject names that are not valid shell variable names.
772
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
773
      as_fn_error "invalid feature name: $ac_useropt"
774
    ac_useropt_orig=$ac_useropt
775
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
776
    case $ac_user_opts in
777
      *"
778
"enable_$ac_useropt"
779
"*) ;;
780
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
781
	 ac_unrecognized_sep=', ';;
782
    esac
783
    eval enable_$ac_useropt=no ;;
784
785
  -docdir | --docdir | --docdi | --doc | --do)
786
    ac_prev=docdir ;;
787
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
788
    docdir=$ac_optarg ;;
789
790
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
791
    ac_prev=dvidir ;;
792
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
793
    dvidir=$ac_optarg ;;
794
795
  -enable-* | --enable-*)
796
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
797
    # Reject names that are not valid shell variable names.
798
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
799
      as_fn_error "invalid feature name: $ac_useropt"
800
    ac_useropt_orig=$ac_useropt
801
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
802
    case $ac_user_opts in
803
      *"
804
"enable_$ac_useropt"
805
"*) ;;
806
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
807
	 ac_unrecognized_sep=', ';;
808
    esac
809
    eval enable_$ac_useropt=\$ac_optarg ;;
810
811
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
812
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
813
  | --exec | --exe | --ex)
814
    ac_prev=exec_prefix ;;
815
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
816
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
817
  | --exec=* | --exe=* | --ex=*)
818
    exec_prefix=$ac_optarg ;;
819
820
  -gas | --gas | --ga | --g)
821
    # Obsolete; use --with-gas.
822
    with_gas=yes ;;
823
824
  -help | --help | --hel | --he | -h)
825
    ac_init_help=long ;;
826
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
827
    ac_init_help=recursive ;;
828
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
829
    ac_init_help=short ;;
830
831
  -host | --host | --hos | --ho)
832
    ac_prev=host_alias ;;
833
  -host=* | --host=* | --hos=* | --ho=*)
834
    host_alias=$ac_optarg ;;
835
836
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
837
    ac_prev=htmldir ;;
838
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
839
  | --ht=*)
840
    htmldir=$ac_optarg ;;
841
842
  -includedir | --includedir | --includedi | --included | --include \
843
  | --includ | --inclu | --incl | --inc)
844
    ac_prev=includedir ;;
845
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
846
  | --includ=* | --inclu=* | --incl=* | --inc=*)
847
    includedir=$ac_optarg ;;
848
849
  -infodir | --infodir | --infodi | --infod | --info | --inf)
850
    ac_prev=infodir ;;
851
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
852
    infodir=$ac_optarg ;;
853
854
  -libdir | --libdir | --libdi | --libd)
855
    ac_prev=libdir ;;
856
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
857
    libdir=$ac_optarg ;;
858
859
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
860
  | --libexe | --libex | --libe)
861
    ac_prev=libexecdir ;;
862
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
863
  | --libexe=* | --libex=* | --libe=*)
864
    libexecdir=$ac_optarg ;;
865
866
  -localedir | --localedir | --localedi | --localed | --locale)
867
    ac_prev=localedir ;;
868
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
869
    localedir=$ac_optarg ;;
870
871
  -localstatedir | --localstatedir | --localstatedi | --localstated \
872
  | --localstate | --localstat | --localsta | --localst | --locals)
873
    ac_prev=localstatedir ;;
874
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
875
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
876
    localstatedir=$ac_optarg ;;
877
878
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
879
    ac_prev=mandir ;;
880
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
881
    mandir=$ac_optarg ;;
882
883
  -nfp | --nfp | --nf)
884
    # Obsolete; use --without-fp.
885
    with_fp=no ;;
886
887
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
888
  | --no-cr | --no-c | -n)
889
    no_create=yes ;;
890
891
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
892
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
893
    no_recursion=yes ;;
894
895
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
896
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
897
  | --oldin | --oldi | --old | --ol | --o)
898
    ac_prev=oldincludedir ;;
899
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
900
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
901
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
902
    oldincludedir=$ac_optarg ;;
903
904
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
905
    ac_prev=prefix ;;
906
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
907
    prefix=$ac_optarg ;;
908
909
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
910
  | --program-pre | --program-pr | --program-p)
911
    ac_prev=program_prefix ;;
912
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
913
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
914
    program_prefix=$ac_optarg ;;
915
916
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
917
  | --program-suf | --program-su | --program-s)
918
    ac_prev=program_suffix ;;
919
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
920
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
921
    program_suffix=$ac_optarg ;;
922
923
  -program-transform-name | --program-transform-name \
924
  | --program-transform-nam | --program-transform-na \
925
  | --program-transform-n | --program-transform- \
926
  | --program-transform | --program-transfor \
927
  | --program-transfo | --program-transf \
928
  | --program-trans | --program-tran \
929
  | --progr-tra | --program-tr | --program-t)
930
    ac_prev=program_transform_name ;;
931
  -program-transform-name=* | --program-transform-name=* \
932
  | --program-transform-nam=* | --program-transform-na=* \
933
  | --program-transform-n=* | --program-transform-=* \
934
  | --program-transform=* | --program-transfor=* \
935
  | --program-transfo=* | --program-transf=* \
936
  | --program-trans=* | --program-tran=* \
937
  | --progr-tra=* | --program-tr=* | --program-t=*)
938
    program_transform_name=$ac_optarg ;;
939
940
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
941
    ac_prev=pdfdir ;;
942
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
943
    pdfdir=$ac_optarg ;;
944
945
  -psdir | --psdir | --psdi | --psd | --ps)
946
    ac_prev=psdir ;;
947
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
948
    psdir=$ac_optarg ;;
949
950
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
951
  | -silent | --silent | --silen | --sile | --sil)
952
    silent=yes ;;
953
954
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
955
    ac_prev=sbindir ;;
956
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
957
  | --sbi=* | --sb=*)
958
    sbindir=$ac_optarg ;;
959
960
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
961
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
962
  | --sharedst | --shareds | --shared | --share | --shar \
963
  | --sha | --sh)
964
    ac_prev=sharedstatedir ;;
965
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
966
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
967
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
968
  | --sha=* | --sh=*)
969
    sharedstatedir=$ac_optarg ;;
970
971
  -site | --site | --sit)
972
    ac_prev=site ;;
973
  -site=* | --site=* | --sit=*)
974
    site=$ac_optarg ;;
975
976
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
977
    ac_prev=srcdir ;;
978
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979
    srcdir=$ac_optarg ;;
980
981
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
982
  | --syscon | --sysco | --sysc | --sys | --sy)
983
    ac_prev=sysconfdir ;;
984
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
985
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
986
    sysconfdir=$ac_optarg ;;
987
988
  -target | --target | --targe | --targ | --tar | --ta | --t)
989
    ac_prev=target_alias ;;
990
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
991
    target_alias=$ac_optarg ;;
992
993
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
994
    verbose=yes ;;
995
996
  -version | --version | --versio | --versi | --vers | -V)
997
    ac_init_version=: ;;
998
999
  -with-* | --with-*)
1000
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1001
    # Reject names that are not valid shell variable names.
1002
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003
      as_fn_error "invalid package name: $ac_useropt"
1004
    ac_useropt_orig=$ac_useropt
1005
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006
    case $ac_user_opts in
1007
      *"
1008
"with_$ac_useropt"
1009
"*) ;;
1010
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1011
	 ac_unrecognized_sep=', ';;
1012
    esac
1013
    eval with_$ac_useropt=\$ac_optarg ;;
1014
1015
  -without-* | --without-*)
1016
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1017
    # Reject names that are not valid shell variable names.
1018
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019
      as_fn_error "invalid package name: $ac_useropt"
1020
    ac_useropt_orig=$ac_useropt
1021
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022
    case $ac_user_opts in
1023
      *"
1024
"with_$ac_useropt"
1025
"*) ;;
1026
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1027
	 ac_unrecognized_sep=', ';;
1028
    esac
1029
    eval with_$ac_useropt=no ;;
1030
1031
  --x)
1032
    # Obsolete; use --with-x.
1033
    with_x=yes ;;
1034
1035
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1036
  | --x-incl | --x-inc | --x-in | --x-i)
1037
    ac_prev=x_includes ;;
1038
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1039
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1040
    x_includes=$ac_optarg ;;
1041
1042
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1043
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1044
    ac_prev=x_libraries ;;
1045
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1046
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1047
    x_libraries=$ac_optarg ;;
1048
1049
  -*) as_fn_error "unrecognized option: \`$ac_option'
1050
Try \`$0 --help' for more information."
1051
    ;;
1052
1053
  *=*)
1054
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1055
    # Reject names that are not valid shell variable names.
1056
    case $ac_envvar in #(
1057
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1058
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1059
    esac
1060
    eval $ac_envvar=\$ac_optarg
1061
    export $ac_envvar ;;
1062
1063
  *)
1064
    # FIXME: should be removed in autoconf 3.0.
1065
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1066
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1068
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1069
    ;;
1070
1071
  esac
1072
done
1073
1074
if test -n "$ac_prev"; then
1075
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1076
  as_fn_error "missing argument to $ac_option"
1077
fi
1078
1079
if test -n "$ac_unrecognized_opts"; then
1080
  case $enable_option_checking in
1081
    no) ;;
1082
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1083
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1084
  esac
1085
fi
1086
1087
# Check all directory arguments for consistency.
1088
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1089
		datadir sysconfdir sharedstatedir localstatedir includedir \
1090
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1091
		libdir localedir mandir
1092
do
1093
  eval ac_val=\$$ac_var
1094
  # Remove trailing slashes.
1095
  case $ac_val in
1096
    */ )
1097
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1098
      eval $ac_var=\$ac_val;;
1099
  esac
1100
  # Be sure to have absolute directory names.
1101
  case $ac_val in
1102
    [\\/$]* | ?:[\\/]* )  continue;;
1103
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1104
  esac
1105
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1106
done
1107
1108
# There might be people who depend on the old broken behavior: `$host'
1109
# used to hold the argument of --host etc.
1110
# FIXME: To remove some day.
1111
build=$build_alias
1112
host=$host_alias
1113
target=$target_alias
1114
1115
# FIXME: To remove some day.
1116
if test "x$host_alias" != x; then
1117
  if test "x$build_alias" = x; then
1118
    cross_compiling=maybe
1119
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1120
    If a cross compiler is detected then cross compile mode will be used." >&2
1121
  elif test "x$build_alias" != "x$host_alias"; then
1122
    cross_compiling=yes
1123
  fi
1124
fi
1125
1126
ac_tool_prefix=
1127
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1128
1129
test "$silent" = yes && exec 6>/dev/null
1130
1131
1132
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1133
ac_ls_di=`ls -di .` &&
1134
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1135
  as_fn_error "working directory cannot be determined"
1136
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1137
  as_fn_error "pwd does not report name of working directory"
1138
1139
1140
# Find the source files, if location was not specified.
1141
if test -z "$srcdir"; then
1142
  ac_srcdir_defaulted=yes
1143
  # Try the directory containing this script, then the parent directory.
1144
  ac_confdir=`$as_dirname -- "$as_myself" ||
1145
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1146
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1147
	 X"$as_myself" : 'X\(//\)$' \| \
1148
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1149
$as_echo X"$as_myself" |
1150
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1151
	    s//\1/
1152
	    q
1153
	  }
1154
	  /^X\(\/\/\)[^/].*/{
1155
	    s//\1/
1156
	    q
1157
	  }
1158
	  /^X\(\/\/\)$/{
1159
	    s//\1/
1160
	    q
1161
	  }
1162
	  /^X\(\/\).*/{
1163
	    s//\1/
1164
	    q
1165
	  }
1166
	  s/.*/./; q'`
1167
  srcdir=$ac_confdir
1168
  if test ! -r "$srcdir/$ac_unique_file"; then
1169
    srcdir=..
1170
  fi
1171
else
1172
  ac_srcdir_defaulted=no
1173
fi
1174
if test ! -r "$srcdir/$ac_unique_file"; then
1175
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1176
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1177
fi
1178
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1179
ac_abs_confdir=`(
1180
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1181
	pwd)`
1182
# When building in place, set srcdir=.
1183
if test "$ac_abs_confdir" = "$ac_pwd"; then
1184
  srcdir=.
1185
fi
1186
# Remove unnecessary trailing slashes from srcdir.
1187
# Double slashes in file names in object file debugging info
1188
# mess up M-x gdb in Emacs.
1189
case $srcdir in
1190
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1191
esac
1192
for ac_var in $ac_precious_vars; do
1193
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1194
  eval ac_env_${ac_var}_value=\$${ac_var}
1195
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1196
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1197
done
1198
1199
#
1200
# Report the --help message.
1201
#
1202
if test "$ac_init_help" = "long"; then
1203
  # Omit some internal or obsolete options to make the list less imposing.
1204
  # This message is too long to be a string in the A/UX 3.1 sh.
1205
  cat <<_ACEOF
1206
\`configure' configures InitNG 0.7-GIT to adapt to many kinds of systems.
1207
1208
Usage: $0 [OPTION]... [VAR=VALUE]...
1209
1210
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1211
VAR=VALUE.  See below for descriptions of some of the useful variables.
1212
1213
Defaults for the options are specified in brackets.
1214
1215
Configuration:
1216
  -h, --help              display this help and exit
1217
      --help=short        display options specific to this package
1218
      --help=recursive    display the short help of all the included packages
1219
  -V, --version           display version information and exit
1220
  -q, --quiet, --silent   do not print \`checking...' messages
1221
      --cache-file=FILE   cache test results in FILE [disabled]
1222
  -C, --config-cache      alias for \`--cache-file=config.cache'
1223
  -n, --no-create         do not create output files
1224
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1225
1226
Installation directories:
1227
  --prefix=PREFIX         install architecture-independent files in PREFIX
1228
                          [$ac_default_prefix]
1229
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1230
                          [PREFIX]
1231
1232
By default, \`make install' will install all the files in
1233
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1234
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1235
for instance \`--prefix=\$HOME'.
1236
1237
For better control, use the options below.
1238
1239
Fine tuning of the installation directories:
1240
  --bindir=DIR            user executables [EPREFIX/bin]
1241
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1242
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1243
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1244
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1245
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1246
  --libdir=DIR            object code libraries [EPREFIX/lib]
1247
  --includedir=DIR        C header files [PREFIX/include]
1248
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1249
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1250
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1251
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1252
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1253
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1254
  --docdir=DIR            documentation root [DATAROOTDIR/doc/initng]
1255
  --htmldir=DIR           html documentation [DOCDIR]
1256
  --dvidir=DIR            dvi documentation [DOCDIR]
1257
  --pdfdir=DIR            pdf documentation [DOCDIR]
1258
  --psdir=DIR             ps documentation [DOCDIR]
1259
_ACEOF
1260
1261
  cat <<\_ACEOF
1262
_ACEOF
1263
fi
1264
1265
if test -n "$ac_init_help"; then
1266
  case $ac_init_help in
1267
     short | recursive ) echo "Configuration of InitNG 0.7-GIT:";;
1268
   esac
1269
  cat <<\_ACEOF
1270
1271
Some influential environment variables:
1272
  CC          C compiler command
1273
  CFLAGS      C compiler flags
1274
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1275
              nonstandard directory <lib dir>
1276
  LIBS        libraries to pass to the linker, e.g. -l<library>
1277
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1278
              you have headers in a nonstandard directory <include dir>
1279
  CPP         C preprocessor
1280
  PKG_CONFIG  path to pkg-config utility
1281
  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1282
  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1283
1284
Use these variables to override the choices made by `configure' or to help
1285
it to find libraries and programs with nonstandard names/locations.
1286
1287
Report bugs to <http://initng.sourceforge.net/trac>.
1288
_ACEOF
1289
ac_status=$?
1290
fi
1291
1292
if test "$ac_init_help" = "recursive"; then
1293
  # If there are subdirs, report their specific --help.
1294
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1295
    test -d "$ac_dir" ||
1296
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1297
      continue
1298
    ac_builddir=.
1299
1300
case "$ac_dir" in
1301
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1302
*)
1303
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1304
  # A ".." for each directory in $ac_dir_suffix.
1305
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1306
  case $ac_top_builddir_sub in
1307
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1308
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1309
  esac ;;
1310
esac
1311
ac_abs_top_builddir=$ac_pwd
1312
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1313
# for backward compatibility:
1314
ac_top_builddir=$ac_top_build_prefix
1315
1316
case $srcdir in
1317
  .)  # We are building in place.
1318
    ac_srcdir=.
1319
    ac_top_srcdir=$ac_top_builddir_sub
1320
    ac_abs_top_srcdir=$ac_pwd ;;
1321
  [\\/]* | ?:[\\/]* )  # Absolute name.
1322
    ac_srcdir=$srcdir$ac_dir_suffix;
1323
    ac_top_srcdir=$srcdir
1324
    ac_abs_top_srcdir=$srcdir ;;
1325
  *) # Relative name.
1326
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1327
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1328
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1329
esac
1330
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1331
1332
    cd "$ac_dir" || { ac_status=$?; continue; }
1333
    # Check for guested configure.
1334
    if test -f "$ac_srcdir/configure.gnu"; then
1335
      echo &&
1336
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1337
    elif test -f "$ac_srcdir/configure"; then
1338
      echo &&
1339
      $SHELL "$ac_srcdir/configure" --help=recursive
1340
    else
1341
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1342
    fi || ac_status=$?
1343
    cd "$ac_pwd" || { ac_status=$?; break; }
1344
  done
1345
fi
1346
1347
test -n "$ac_init_help" && exit $ac_status
1348
if $ac_init_version; then
1349
  cat <<\_ACEOF
1350
InitNG configure 0.7-GIT
1351
generated by GNU Autoconf 2.65
1352
1353
Copyright (C) 2009 Free Software Foundation, Inc.
1354
This configure script is free software; the Free Software Foundation
1355
gives unlimited permission to copy, distribute and modify it.
1356
_ACEOF
1357
  exit
1358
fi
1359
1360
## ------------------------ ##
1361
## Autoconf initialization. ##
1362
## ------------------------ ##
1363
1364
# ac_fn_c_try_compile LINENO
1365
# --------------------------
1366
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1367
ac_fn_c_try_compile ()
1368
{
1369
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1370
  rm -f conftest.$ac_objext
1371
  if { { ac_try="$ac_compile"
1372
case "(($ac_try" in
1373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1374
  *) ac_try_echo=$ac_try;;
1375
esac
1376
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1377
$as_echo "$ac_try_echo"; } >&5
1378
  (eval "$ac_compile") 2>conftest.err
1379
  ac_status=$?
1380
  if test -s conftest.err; then
1381
    grep -v '^ *+' conftest.err >conftest.er1
1382
    cat conftest.er1 >&5
1383
    mv -f conftest.er1 conftest.err
1384
  fi
1385
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1386
  test $ac_status = 0; } && {
1387
	 test -z "$ac_c_werror_flag" ||
1388
	 test ! -s conftest.err
1389
       } && test -s conftest.$ac_objext; then :
1390
  ac_retval=0
1391
else
1392
  $as_echo "$as_me: failed program was:" >&5
1393
sed 's/^/| /' conftest.$ac_ext >&5
1394
1395
	ac_retval=1
1396
fi
1397
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1398
  as_fn_set_status $ac_retval
1399
1400
} # ac_fn_c_try_compile
1401
1402
# ac_fn_c_try_cpp LINENO
1403
# ----------------------
1404
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1405
ac_fn_c_try_cpp ()
1406
{
1407
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1408
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1409
case "(($ac_try" in
1410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1411
  *) ac_try_echo=$ac_try;;
1412
esac
1413
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1414
$as_echo "$ac_try_echo"; } >&5
1415
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1416
  ac_status=$?
1417
  if test -s conftest.err; then
1418
    grep -v '^ *+' conftest.err >conftest.er1
1419
    cat conftest.er1 >&5
1420
    mv -f conftest.er1 conftest.err
1421
  fi
1422
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1423
  test $ac_status = 0; } >/dev/null && {
1424
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1425
	 test ! -s conftest.err
1426
       }; then :
1427
  ac_retval=0
1428
else
1429
  $as_echo "$as_me: failed program was:" >&5
1430
sed 's/^/| /' conftest.$ac_ext >&5
1431
1432
    ac_retval=1
1433
fi
1434
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1435
  as_fn_set_status $ac_retval
1436
1437
} # ac_fn_c_try_cpp
1438
1439
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1440
# -------------------------------------------------------
1441
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1442
# the include files in INCLUDES and setting the cache variable VAR
1443
# accordingly.
1444
ac_fn_c_check_header_mongrel ()
1445
{
1446
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1447
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1448
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1449
$as_echo_n "checking for $2... " >&6; }
1450
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1451
  $as_echo_n "(cached) " >&6
1452
fi
1453
eval ac_res=\$$3
1454
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1455
$as_echo "$ac_res" >&6; }
1456
else
1457
  # Is the header compilable?
1458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1459
$as_echo_n "checking $2 usability... " >&6; }
1460
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1461
/* end confdefs.h.  */
1462
$4
1463
#include <$2>
1464
_ACEOF
1465
if ac_fn_c_try_compile "$LINENO"; then :
1466
  ac_header_compiler=yes
1467
else
1468
  ac_header_compiler=no
1469
fi
1470
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1472
$as_echo "$ac_header_compiler" >&6; }
1473
1474
# Is the header present?
1475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1476
$as_echo_n "checking $2 presence... " >&6; }
1477
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1478
/* end confdefs.h.  */
1479
#include <$2>
1480
_ACEOF
1481
if ac_fn_c_try_cpp "$LINENO"; then :
1482
  ac_header_preproc=yes
1483
else
1484
  ac_header_preproc=no
1485
fi
1486
rm -f conftest.err conftest.$ac_ext
1487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1488
$as_echo "$ac_header_preproc" >&6; }
1489
1490
# So?  What about this header?
1491
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1492
  yes:no: )
1493
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1494
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1495
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1496
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1497
    ;;
1498
  no:yes:* )
1499
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1500
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1501
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1502
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1503
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1504
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1505
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1506
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1507
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1508
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1509
( cat <<\_ASBOX
1510
## ------------------------------------------------- ##
1511
## Report this to http://initng.sourceforge.net/trac ##
1512
## ------------------------------------------------- ##
1513
_ASBOX
1514
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1515
    ;;
1516
esac
1517
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1518
$as_echo_n "checking for $2... " >&6; }
1519
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1520
  $as_echo_n "(cached) " >&6
1521
else
1522
  eval "$3=\$ac_header_compiler"
1523
fi
1524
eval ac_res=\$$3
1525
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1526
$as_echo "$ac_res" >&6; }
1527
fi
1528
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1529
1530
} # ac_fn_c_check_header_mongrel
1531
1532
# ac_fn_c_try_run LINENO
1533
# ----------------------
1534
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1535
# that executables *can* be run.
1536
ac_fn_c_try_run ()
1537
{
1538
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539
  if { { ac_try="$ac_link"
1540
case "(($ac_try" in
1541
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542
  *) ac_try_echo=$ac_try;;
1543
esac
1544
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545
$as_echo "$ac_try_echo"; } >&5
1546
  (eval "$ac_link") 2>&5
1547
  ac_status=$?
1548
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1550
  { { case "(($ac_try" in
1551
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552
  *) ac_try_echo=$ac_try;;
1553
esac
1554
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555
$as_echo "$ac_try_echo"; } >&5
1556
  (eval "$ac_try") 2>&5
1557
  ac_status=$?
1558
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559
  test $ac_status = 0; }; }; then :
1560
  ac_retval=0
1561
else
1562
  $as_echo "$as_me: program exited with status $ac_status" >&5
1563
       $as_echo "$as_me: failed program was:" >&5
1564
sed 's/^/| /' conftest.$ac_ext >&5
1565
1566
       ac_retval=$ac_status
1567
fi
1568
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1569
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570
  as_fn_set_status $ac_retval
1571
1572
} # ac_fn_c_try_run
1573
1574
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1575
# -------------------------------------------------------
1576
# Tests whether HEADER exists and can be compiled using the include files in
1577
# INCLUDES, setting the cache variable VAR accordingly.
1578
ac_fn_c_check_header_compile ()
1579
{
1580
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1582
$as_echo_n "checking for $2... " >&6; }
1583
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1584
  $as_echo_n "(cached) " >&6
1585
else
1586
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587
/* end confdefs.h.  */
1588
$4
1589
#include <$2>
1590
_ACEOF
1591
if ac_fn_c_try_compile "$LINENO"; then :
1592
  eval "$3=yes"
1593
else
1594
  eval "$3=no"
1595
fi
1596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1597
fi
1598
eval ac_res=\$$3
1599
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600
$as_echo "$ac_res" >&6; }
1601
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1602
1603
} # ac_fn_c_check_header_compile
1604
1605
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1606
# -------------------------------------------
1607
# Tests whether TYPE exists after having included INCLUDES, setting cache
1608
# variable VAR accordingly.
1609
ac_fn_c_check_type ()
1610
{
1611
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613
$as_echo_n "checking for $2... " >&6; }
1614
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615
  $as_echo_n "(cached) " >&6
1616
else
1617
  eval "$3=no"
1618
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619
/* end confdefs.h.  */
1620
$4
1621
int
1622
main ()
1623
{
1624
if (sizeof ($2))
1625
	 return 0;
1626
  ;
1627
  return 0;
1628
}
1629
_ACEOF
1630
if ac_fn_c_try_compile "$LINENO"; then :
1631
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632
/* end confdefs.h.  */
1633
$4
1634
int
1635
main ()
1636
{
1637
if (sizeof (($2)))
1638
	    return 0;
1639
  ;
1640
  return 0;
1641
}
1642
_ACEOF
1643
if ac_fn_c_try_compile "$LINENO"; then :
1644
1645
else
1646
  eval "$3=yes"
1647
fi
1648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649
fi
1650
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651
fi
1652
eval ac_res=\$$3
1653
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654
$as_echo "$ac_res" >&6; }
1655
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656
1657
} # ac_fn_c_check_type
1658
1659
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1660
# ----------------------------------------------------
1661
# Tries to find if the field MEMBER exists in type AGGR, after including
1662
# INCLUDES, setting cache variable VAR accordingly.
1663
ac_fn_c_check_member ()
1664
{
1665
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1667
$as_echo_n "checking for $2.$3... " >&6; }
1668
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1669
  $as_echo_n "(cached) " >&6
1670
else
1671
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672
/* end confdefs.h.  */
1673
$5
1674
int
1675
main ()
1676
{
1677
static $2 ac_aggr;
1678
if (ac_aggr.$3)
1679
return 0;
1680
  ;
1681
  return 0;
1682
}
1683
_ACEOF
1684
if ac_fn_c_try_compile "$LINENO"; then :
1685
  eval "$4=yes"
1686
else
1687
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688
/* end confdefs.h.  */
1689
$5
1690
int
1691
main ()
1692
{
1693
static $2 ac_aggr;
1694
if (sizeof ac_aggr.$3)
1695
return 0;
1696
  ;
1697
  return 0;
1698
}
1699
_ACEOF
1700
if ac_fn_c_try_compile "$LINENO"; then :
1701
  eval "$4=yes"
1702
else
1703
  eval "$4=no"
1704
fi
1705
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706
fi
1707
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708
fi
1709
eval ac_res=\$$4
1710
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711
$as_echo "$ac_res" >&6; }
1712
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713
1714
} # ac_fn_c_check_member
1715
1716
# ac_fn_c_find_uintX_t LINENO BITS VAR
1717
# ------------------------------------
1718
# Finds an unsigned integer type with width BITS, setting cache variable VAR
1719
# accordingly.
1720
ac_fn_c_find_uintX_t ()
1721
{
1722
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1724
$as_echo_n "checking for uint$2_t... " >&6; }
1725
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1726
  $as_echo_n "(cached) " >&6
1727
else
1728
  eval "$3=no"
1729
     # Order is important - never check a type that is potentially smaller
1730
     # than half of the expected target width.
1731
     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1732
	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1733
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734
/* end confdefs.h.  */
1735
$ac_includes_default
1736
int
1737
main ()
1738
{
1739
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1740
test_array [0] = 0
1741
1742
  ;
1743
  return 0;
1744
}
1745
_ACEOF
1746
if ac_fn_c_try_compile "$LINENO"; then :
1747
  case $ac_type in #(
1748
  uint$2_t) :
1749
    eval "$3=yes" ;; #(
1750
  *) :
1751
    eval "$3=\$ac_type" ;;
1752
esac
1753
fi
1754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755
       eval as_val=\$$3
1756
   if test "x$as_val" = x""no; then :
1757
1758
else
1759
  break
1760
fi
1761
     done
1762
fi
1763
eval ac_res=\$$3
1764
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765
$as_echo "$ac_res" >&6; }
1766
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767
1768
} # ac_fn_c_find_uintX_t
1769
1770
# ac_fn_c_try_link LINENO
1771
# -----------------------
1772
# Try to link conftest.$ac_ext, and return whether this succeeded.
1773
ac_fn_c_try_link ()
1774
{
1775
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776
  rm -f conftest.$ac_objext conftest$ac_exeext
1777
  if { { ac_try="$ac_link"
1778
case "(($ac_try" in
1779
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780
  *) ac_try_echo=$ac_try;;
1781
esac
1782
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783
$as_echo "$ac_try_echo"; } >&5
1784
  (eval "$ac_link") 2>conftest.err
1785
  ac_status=$?
1786
  if test -s conftest.err; then
1787
    grep -v '^ *+' conftest.err >conftest.er1
1788
    cat conftest.er1 >&5
1789
    mv -f conftest.er1 conftest.err
1790
  fi
1791
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792
  test $ac_status = 0; } && {
1793
	 test -z "$ac_c_werror_flag" ||
1794
	 test ! -s conftest.err
1795
       } && test -s conftest$ac_exeext && {
1796
	 test "$cross_compiling" = yes ||
1797
	 $as_test_x conftest$ac_exeext
1798
       }; then :
1799
  ac_retval=0
1800
else
1801
  $as_echo "$as_me: failed program was:" >&5
1802
sed 's/^/| /' conftest.$ac_ext >&5
1803
1804
	ac_retval=1
1805
fi
1806
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808
  # interfere with the next link command; also delete a directory that is
1809
  # left behind by Apple's compiler.  We do this before executing the actions.
1810
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812
  as_fn_set_status $ac_retval
1813
1814
} # ac_fn_c_try_link
1815
1816
# ac_fn_c_check_func LINENO FUNC VAR
1817
# ----------------------------------
1818
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1819
ac_fn_c_check_func ()
1820
{
1821
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823
$as_echo_n "checking for $2... " >&6; }
1824
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825
  $as_echo_n "(cached) " >&6
1826
else
1827
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828
/* end confdefs.h.  */
1829
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1831
#define $2 innocuous_$2
1832
1833
/* System header to define __stub macros and hopefully few prototypes,
1834
    which can conflict with char $2 (); below.
1835
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836
    <limits.h> exists even on freestanding compilers.  */
1837
1838
#ifdef __STDC__
1839
# include <limits.h>
1840
#else
1841
# include <assert.h>
1842
#endif
1843
1844
#undef $2
1845
1846
/* Override any GCC internal prototype to avoid an error.
1847
   Use char because int might match the return type of a GCC
1848
   builtin and then its argument prototype would still apply.  */
1849
#ifdef __cplusplus
1850
extern "C"
1851
#endif
1852
char $2 ();
1853
/* The GNU C library defines this for functions which it implements
1854
    to always fail with ENOSYS.  Some functions are actually named
1855
    something starting with __ and the normal name is an alias.  */
1856
#if defined __stub_$2 || defined __stub___$2
1857
choke me
1858
#endif
1859
1860
int
1861
main ()
1862
{
1863
return $2 ();
1864
  ;
1865
  return 0;
1866
}
1867
_ACEOF
1868
if ac_fn_c_try_link "$LINENO"; then :
1869
  eval "$3=yes"
1870
else
1871
  eval "$3=no"
1872
fi
1873
rm -f core conftest.err conftest.$ac_objext \
1874
    conftest$ac_exeext conftest.$ac_ext
1875
fi
1876
eval ac_res=\$$3
1877
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878
$as_echo "$ac_res" >&6; }
1879
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880
1881
} # ac_fn_c_check_func
1882
cat >config.log <<_ACEOF
1883
This file contains any messages produced by compilers while
1884
running configure, to aid debugging if configure makes a mistake.
1885
1886
It was created by InitNG $as_me 0.7-GIT, which was
1887
generated by GNU Autoconf 2.65.  Invocation command line was
1888
1889
  $ $0 $@
1890
1891
_ACEOF
1892
exec 5>>config.log
1893
{
1894
cat <<_ASUNAME
1895
## --------- ##
1896
## Platform. ##
1897
## --------- ##
1898
1899
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904
1905
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1907
1908
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1909
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1910
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1912
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1913
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1914
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1915
1916
_ASUNAME
1917
1918
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919
for as_dir in $PATH
1920
do
1921
  IFS=$as_save_IFS
1922
  test -z "$as_dir" && as_dir=.
1923
    $as_echo "PATH: $as_dir"
1924
  done
1925
IFS=$as_save_IFS
1926
1927
} >&5
1928
1929
cat >&5 <<_ACEOF
1930
1931
1932
## ----------- ##
1933
## Core tests. ##
1934
## ----------- ##
1935
1936
_ACEOF
1937
1938
1939
# Keep a trace of the command line.
1940
# Strip out --no-create and --no-recursion so they do not pile up.
1941
# Strip out --silent because we don't want to record it for future runs.
1942
# Also quote any args containing shell meta-characters.
1943
# Make two passes to allow for proper duplicate-argument suppression.
1944
ac_configure_args=
1945
ac_configure_args0=
1946
ac_configure_args1=
1947
ac_must_keep_next=false
1948
for ac_pass in 1 2
1949
do
1950
  for ac_arg
1951
  do
1952
    case $ac_arg in
1953
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955
    | -silent | --silent | --silen | --sile | --sil)
1956
      continue ;;
1957
    *\'*)
1958
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959
    esac
1960
    case $ac_pass in
1961
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1962
    2)
1963
      as_fn_append ac_configure_args1 " '$ac_arg'"
1964
      if test $ac_must_keep_next = true; then
1965
	ac_must_keep_next=false # Got value, back to normal.
1966
      else
1967
	case $ac_arg in
1968
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1969
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971
	  | -with-* | --with-* | -without-* | --without-* | --x)
1972
	    case "$ac_configure_args0 " in
1973
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974
	    esac
1975
	    ;;
1976
	  -* ) ac_must_keep_next=true ;;
1977
	esac
1978
      fi
1979
      as_fn_append ac_configure_args " '$ac_arg'"
1980
      ;;
1981
    esac
1982
  done
1983
done
1984
{ ac_configure_args0=; unset ac_configure_args0;}
1985
{ ac_configure_args1=; unset ac_configure_args1;}
1986
1987
# When interrupted or exit'd, cleanup temporary files, and complete
1988
# config.log.  We remove comments because anyway the quotes in there
1989
# would cause problems or look ugly.
1990
# WARNING: Use '\'' to represent an apostrophe within the trap.
1991
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992
trap 'exit_status=$?
1993
  # Save into config.log some information that might help in debugging.
1994
  {
1995
    echo
1996
1997
    cat <<\_ASBOX
1998
## ---------------- ##
1999
## Cache variables. ##
2000
## ---------------- ##
2001
_ASBOX
2002
    echo
2003
    # The following way of writing the cache mishandles newlines in values,
2004
(
2005
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006
    eval ac_val=\$$ac_var
2007
    case $ac_val in #(
2008
    *${as_nl}*)
2009
      case $ac_var in #(
2010
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012
      esac
2013
      case $ac_var in #(
2014
      _ | IFS | as_nl) ;; #(
2015
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016
      *) { eval $ac_var=; unset $ac_var;} ;;
2017
      esac ;;
2018
    esac
2019
  done
2020
  (set) 2>&1 |
2021
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022
    *${as_nl}ac_space=\ *)
2023
      sed -n \
2024
	"s/'\''/'\''\\\\'\'''\''/g;
2025
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026
      ;; #(
2027
    *)
2028
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029
      ;;
2030
    esac |
2031
    sort
2032
)
2033
    echo
2034
2035
    cat <<\_ASBOX
2036
## ----------------- ##
2037
## Output variables. ##
2038
## ----------------- ##
2039
_ASBOX
2040
    echo
2041
    for ac_var in $ac_subst_vars
2042
    do
2043
      eval ac_val=\$$ac_var
2044
      case $ac_val in
2045
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046
      esac
2047
      $as_echo "$ac_var='\''$ac_val'\''"
2048
    done | sort
2049
    echo
2050
2051
    if test -n "$ac_subst_files"; then
2052
      cat <<\_ASBOX
2053
## ------------------- ##
2054
## File substitutions. ##
2055
## ------------------- ##
2056
_ASBOX
2057
      echo
2058
      for ac_var in $ac_subst_files
2059
      do
2060
	eval ac_val=\$$ac_var
2061
	case $ac_val in
2062
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063
	esac
2064
	$as_echo "$ac_var='\''$ac_val'\''"
2065
      done | sort
2066
      echo
2067
    fi
2068
2069
    if test -s confdefs.h; then
2070
      cat <<\_ASBOX
2071
## ----------- ##
2072
## confdefs.h. ##
2073
## ----------- ##
2074
_ASBOX
2075
      echo
2076
      cat confdefs.h
2077
      echo
2078
    fi
2079
    test "$ac_signal" != 0 &&
2080
      $as_echo "$as_me: caught signal $ac_signal"
2081
    $as_echo "$as_me: exit $exit_status"
2082
  } >&5
2083
  rm -f core *.core core.conftest.* &&
2084
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085
    exit $exit_status
2086
' 0
2087
for ac_signal in 1 2 13 15; do
2088
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2089
done
2090
ac_signal=0
2091
2092
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2093
rm -f -r conftest* confdefs.h
2094
2095
$as_echo "/* confdefs.h */" > confdefs.h
2096
2097
# Predefined preprocessor variables.
2098
2099
cat >>confdefs.h <<_ACEOF
2100
#define PACKAGE_NAME "$PACKAGE_NAME"
2101
_ACEOF
2102
2103
cat >>confdefs.h <<_ACEOF
2104
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105
_ACEOF
2106
2107
cat >>confdefs.h <<_ACEOF
2108
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2109
_ACEOF
2110
2111
cat >>confdefs.h <<_ACEOF
2112
#define PACKAGE_STRING "$PACKAGE_STRING"
2113
_ACEOF
2114
2115
cat >>confdefs.h <<_ACEOF
2116
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117
_ACEOF
2118
2119
cat >>confdefs.h <<_ACEOF
2120
#define PACKAGE_URL "$PACKAGE_URL"
2121
_ACEOF
2122
2123
2124
# Let the site file select an alternate cache file if it wants to.
2125
# Prefer an explicitly selected file to automatically selected ones.
2126
ac_site_file1=NONE
2127
ac_site_file2=NONE
2128
if test -n "$CONFIG_SITE"; then
2129
  ac_site_file1=$CONFIG_SITE
2130
elif test "x$prefix" != xNONE; then
2131
  ac_site_file1=$prefix/share/config.site
2132
  ac_site_file2=$prefix/etc/config.site
2133
else
2134
  ac_site_file1=$ac_default_prefix/share/config.site
2135
  ac_site_file2=$ac_default_prefix/etc/config.site
2136
fi
2137
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2138
do
2139
  test "x$ac_site_file" = xNONE && continue
2140
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2141
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2142
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2143
    sed 's/^/| /' "$ac_site_file" >&5
2144
    . "$ac_site_file"
2145
  fi
2146
done
2147
2148
if test -r "$cache_file"; then
2149
  # Some versions of bash will fail to source /dev/null (special files
2150
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2151
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2152
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153
$as_echo "$as_me: loading cache $cache_file" >&6;}
2154
    case $cache_file in
2155
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156
      *)                      . "./$cache_file";;
2157
    esac
2158
  fi
2159
else
2160
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161
$as_echo "$as_me: creating cache $cache_file" >&6;}
2162
  >$cache_file
2163
fi
2164
2165
# Check that the precious variables saved in the cache have kept the same
2166
# value.
2167
ac_cache_corrupted=false
2168
for ac_var in $ac_precious_vars; do
2169
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170
  eval ac_new_set=\$ac_env_${ac_var}_set
2171
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172
  eval ac_new_val=\$ac_env_${ac_var}_value
2173
  case $ac_old_set,$ac_new_set in
2174
    set,)
2175
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177
      ac_cache_corrupted=: ;;
2178
    ,set)
2179
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181
      ac_cache_corrupted=: ;;
2182
    ,);;
2183
    *)
2184
      if test "x$ac_old_val" != "x$ac_new_val"; then
2185
	# differences in whitespace do not lead to failure.
2186
	ac_old_val_w=`echo x $ac_old_val`
2187
	ac_new_val_w=`echo x $ac_new_val`
2188
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191
	  ac_cache_corrupted=:
2192
	else
2193
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195
	  eval $ac_var=\$ac_old_val
2196
	fi
2197
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2198
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2199
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2200
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2201
      fi;;
2202
  esac
2203
  # Pass precious variables to config.status.
2204
  if test "$ac_new_set" = set; then
2205
    case $ac_new_val in
2206
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207
    *) ac_arg=$ac_var=$ac_new_val ;;
2208
    esac
2209
    case " $ac_configure_args " in
2210
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2211
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212
    esac
2213
  fi
2214
done
2215
if $ac_cache_corrupted; then
2216
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221
fi
2222
## -------------------- ##
2223
## Main body of script. ##
2224
## -------------------- ##
2225
2226
ac_ext=c
2227
ac_cpp='$CPP $CPPFLAGS'
2228
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231
2232
2233
2234
ac_config_files="$ac_config_files config.jam"
2235
2236
ac_config_headers="$ac_config_headers config.h initng-paths.h"
2237
2238
2239
# Checks for programs.
2240
ac_ext=c
2241
ac_cpp='$CPP $CPPFLAGS'
2242
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245
if test -n "$ac_tool_prefix"; then
2246
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2247
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2249
$as_echo_n "checking for $ac_word... " >&6; }
2250
if test "${ac_cv_prog_CC+set}" = set; then :
2251
  $as_echo_n "(cached) " >&6
2252
else
2253
  if test -n "$CC"; then
2254
  ac_cv_prog_CC="$CC" # Let the user override the test.
2255
else
2256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257
for as_dir in $PATH
2258
do
2259
  IFS=$as_save_IFS
2260
  test -z "$as_dir" && as_dir=.
2261
    for ac_exec_ext in '' $ac_executable_extensions; do
2262
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2264
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2265
    break 2
2266
  fi
2267
done
2268
  done
2269
IFS=$as_save_IFS
2270
2271
fi
2272
fi
2273
CC=$ac_cv_prog_CC
2274
if test -n "$CC"; then
2275
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2276
$as_echo "$CC" >&6; }
2277
else
2278
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2279
$as_echo "no" >&6; }
2280
fi
2281
2282
2283
fi
2284
if test -z "$ac_cv_prog_CC"; then
2285
  ac_ct_CC=$CC
2286
  # Extract the first word of "gcc", so it can be a program name with args.
2287
set dummy gcc; ac_word=$2
2288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2289
$as_echo_n "checking for $ac_word... " >&6; }
2290
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2291
  $as_echo_n "(cached) " >&6
2292
else
2293
  if test -n "$ac_ct_CC"; then
2294
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2295
else
2296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297
for as_dir in $PATH
2298
do
2299
  IFS=$as_save_IFS
2300
  test -z "$as_dir" && as_dir=.
2301
    for ac_exec_ext in '' $ac_executable_extensions; do
2302
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303
    ac_cv_prog_ac_ct_CC="gcc"
2304
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2305
    break 2
2306
  fi
2307
done
2308
  done
2309
IFS=$as_save_IFS
2310
2311
fi
2312
fi
2313
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2314
if test -n "$ac_ct_CC"; then
2315
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2316
$as_echo "$ac_ct_CC" >&6; }
2317
else
2318
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2319
$as_echo "no" >&6; }
2320
fi
2321
2322
  if test "x$ac_ct_CC" = x; then
2323
    CC=""
2324
  else
2325
    case $cross_compiling:$ac_tool_warned in
2326
yes:)
2327
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2328
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2329
ac_tool_warned=yes ;;
2330
esac
2331
    CC=$ac_ct_CC
2332
  fi
2333
else
2334
  CC="$ac_cv_prog_CC"
2335
fi
2336
2337
if test -z "$CC"; then
2338
          if test -n "$ac_tool_prefix"; then
2339
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2340
set dummy ${ac_tool_prefix}cc; ac_word=$2
2341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2342
$as_echo_n "checking for $ac_word... " >&6; }
2343
if test "${ac_cv_prog_CC+set}" = set; then :
2344
  $as_echo_n "(cached) " >&6
2345
else
2346
  if test -n "$CC"; then
2347
  ac_cv_prog_CC="$CC" # Let the user override the test.
2348
else
2349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350
for as_dir in $PATH
2351
do
2352
  IFS=$as_save_IFS
2353
  test -z "$as_dir" && as_dir=.
2354
    for ac_exec_ext in '' $ac_executable_extensions; do
2355
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2357
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2358
    break 2
2359
  fi
2360
done
2361
  done
2362
IFS=$as_save_IFS
2363
2364
fi
2365
fi
2366
CC=$ac_cv_prog_CC
2367
if test -n "$CC"; then
2368
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2369
$as_echo "$CC" >&6; }
2370
else
2371
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2372
$as_echo "no" >&6; }
2373
fi
2374
2375
2376
  fi
2377
fi
2378
if test -z "$CC"; then
2379
  # Extract the first word of "cc", so it can be a program name with args.
2380
set dummy cc; ac_word=$2
2381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2382
$as_echo_n "checking for $ac_word... " >&6; }
2383
if test "${ac_cv_prog_CC+set}" = set; then :
2384
  $as_echo_n "(cached) " >&6
2385
else
2386
  if test -n "$CC"; then
2387
  ac_cv_prog_CC="$CC" # Let the user override the test.
2388
else
2389
  ac_prog_rejected=no
2390
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391
for as_dir in $PATH
2392
do
2393
  IFS=$as_save_IFS
2394
  test -z "$as_dir" && as_dir=.
2395
    for ac_exec_ext in '' $ac_executable_extensions; do
2396
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2398
       ac_prog_rejected=yes
2399
       continue
2400
     fi
2401
    ac_cv_prog_CC="cc"
2402
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403
    break 2
2404
  fi
2405
done
2406
  done
2407
IFS=$as_save_IFS
2408
2409
if test $ac_prog_rejected = yes; then
2410
  # We found a bogon in the path, so make sure we never use it.
2411
  set dummy $ac_cv_prog_CC
2412
  shift
2413
  if test $# != 0; then
2414
    # We chose a different compiler from the bogus one.
2415
    # However, it has the same basename, so the bogon will be chosen
2416
    # first if we set CC to just the basename; use the full file name.
2417
    shift
2418
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2419
  fi
2420
fi
2421
fi
2422
fi
2423
CC=$ac_cv_prog_CC
2424
if test -n "$CC"; then
2425
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2426
$as_echo "$CC" >&6; }
2427
else
2428
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429
$as_echo "no" >&6; }
2430
fi
2431
2432
2433
fi
2434
if test -z "$CC"; then
2435
  if test -n "$ac_tool_prefix"; then
2436
  for ac_prog in cl.exe
2437
  do
2438
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2439
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441
$as_echo_n "checking for $ac_word... " >&6; }
2442
if test "${ac_cv_prog_CC+set}" = set; then :
2443
  $as_echo_n "(cached) " >&6
2444
else
2445
  if test -n "$CC"; then
2446
  ac_cv_prog_CC="$CC" # Let the user override the test.
2447
else
2448
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449
for as_dir in $PATH
2450
do
2451
  IFS=$as_save_IFS
2452
  test -z "$as_dir" && as_dir=.
2453
    for ac_exec_ext in '' $ac_executable_extensions; do
2454
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2456
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457
    break 2
2458
  fi
2459
done
2460
  done
2461
IFS=$as_save_IFS
2462
2463
fi
2464
fi
2465
CC=$ac_cv_prog_CC
2466
if test -n "$CC"; then
2467
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2468
$as_echo "$CC" >&6; }
2469
else
2470
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471
$as_echo "no" >&6; }
2472
fi
2473
2474
2475
    test -n "$CC" && break
2476
  done
2477
fi
2478
if test -z "$CC"; then
2479
  ac_ct_CC=$CC
2480
  for ac_prog in cl.exe
2481
do
2482
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2483
set dummy $ac_prog; ac_word=$2
2484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485
$as_echo_n "checking for $ac_word... " >&6; }
2486
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2487
  $as_echo_n "(cached) " >&6
2488
else
2489
  if test -n "$ac_ct_CC"; then
2490
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2491
else
2492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493
for as_dir in $PATH
2494
do
2495
  IFS=$as_save_IFS
2496
  test -z "$as_dir" && as_dir=.
2497
    for ac_exec_ext in '' $ac_executable_extensions; do
2498
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499
    ac_cv_prog_ac_ct_CC="$ac_prog"
2500
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501
    break 2
2502
  fi
2503
done
2504
  done
2505
IFS=$as_save_IFS
2506
2507
fi
2508
fi
2509
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510
if test -n "$ac_ct_CC"; then
2511
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2512
$as_echo "$ac_ct_CC" >&6; }
2513
else
2514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515
$as_echo "no" >&6; }
2516
fi
2517
2518
2519
  test -n "$ac_ct_CC" && break
2520
done
2521
2522
  if test "x$ac_ct_CC" = x; then
2523
    CC=""
2524
  else
2525
    case $cross_compiling:$ac_tool_warned in
2526
yes:)
2527
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2528
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2529
ac_tool_warned=yes ;;
2530
esac
2531
    CC=$ac_ct_CC
2532
  fi
2533
fi
2534
2535
fi
2536
2537
2538
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540
as_fn_error "no acceptable C compiler found in \$PATH
2541
See \`config.log' for more details." "$LINENO" 5; }
2542
2543
# Provide some information about the compiler.
2544
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2545
set X $ac_compile
2546
ac_compiler=$2
2547
for ac_option in --version -v -V -qversion; do
2548
  { { ac_try="$ac_compiler $ac_option >&5"
2549
case "(($ac_try" in
2550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551
  *) ac_try_echo=$ac_try;;
2552
esac
2553
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2554
$as_echo "$ac_try_echo"; } >&5
2555
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2556
  ac_status=$?
2557
  if test -s conftest.err; then
2558
    sed '10a\
2559
... rest of stderr output deleted ...
2560
         10q' conftest.err >conftest.er1
2561
    cat conftest.er1 >&5
2562
  fi
2563
  rm -f conftest.er1 conftest.err
2564
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2565
  test $ac_status = 0; }
2566
done
2567
2568
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569
/* end confdefs.h.  */
2570
2571
int
2572
main ()
2573
{
2574
2575
  ;
2576
  return 0;
2577
}
2578
_ACEOF
2579
ac_clean_files_save=$ac_clean_files
2580
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2581
# Try to create an executable without -o first, disregard a.out.
2582
# It will help us diagnose broken compilers, and finding out an intuition
2583
# of exeext.
2584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2585
$as_echo_n "checking whether the C compiler works... " >&6; }
2586
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2587
2588
# The possible output files:
2589
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2590
2591
ac_rmfiles=
2592
for ac_file in $ac_files
2593
do
2594
  case $ac_file in
2595
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2596
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2597
  esac
2598
done
2599
rm -f $ac_rmfiles
2600
2601
if { { ac_try="$ac_link_default"
2602
case "(($ac_try" in
2603
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604
  *) ac_try_echo=$ac_try;;
2605
esac
2606
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2607
$as_echo "$ac_try_echo"; } >&5
2608
  (eval "$ac_link_default") 2>&5
2609
  ac_status=$?
2610
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2611
  test $ac_status = 0; }; then :
2612
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2613
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2614
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2615
# so that the user can short-circuit this test for compilers unknown to
2616
# Autoconf.
2617
for ac_file in $ac_files ''
2618
do
2619
  test -f "$ac_file" || continue
2620
  case $ac_file in
2621
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2622
	;;
2623
    [ab].out )
2624
	# We found the default executable, but exeext='' is most
2625
	# certainly right.
2626
	break;;
2627
    *.* )
2628
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2629
	then :; else
2630
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2631
	fi
2632
	# We set ac_cv_exeext here because the later test for it is not
2633
	# safe: cross compilers may not add the suffix if given an `-o'
2634
	# argument, so we may need to know it at that point already.
2635
	# Even if this section looks crufty: it has the advantage of
2636
	# actually working.
2637
	break;;
2638
    * )
2639
	break;;
2640
  esac
2641
done
2642
test "$ac_cv_exeext" = no && ac_cv_exeext=
2643
2644
else
2645
  ac_file=''
2646
fi
2647
if test -z "$ac_file"; then :
2648
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649
$as_echo "no" >&6; }
2650
$as_echo "$as_me: failed program was:" >&5
2651
sed 's/^/| /' conftest.$ac_ext >&5
2652
2653
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655
{ as_fn_set_status 77
2656
as_fn_error "C compiler cannot create executables
2657
See \`config.log' for more details." "$LINENO" 5; }; }
2658
else
2659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2660
$as_echo "yes" >&6; }
2661
fi
2662
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2663
$as_echo_n "checking for C compiler default output file name... " >&6; }
2664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2665
$as_echo "$ac_file" >&6; }
2666
ac_exeext=$ac_cv_exeext
2667
2668
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2669
ac_clean_files=$ac_clean_files_save
2670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2671
$as_echo_n "checking for suffix of executables... " >&6; }
2672
if { { ac_try="$ac_link"
2673
case "(($ac_try" in
2674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675
  *) ac_try_echo=$ac_try;;
2676
esac
2677
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2678
$as_echo "$ac_try_echo"; } >&5
2679
  (eval "$ac_link") 2>&5
2680
  ac_status=$?
2681
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682
  test $ac_status = 0; }; then :
2683
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2684
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2685
# work properly (i.e., refer to `conftest.exe'), while it won't with
2686
# `rm'.
2687
for ac_file in conftest.exe conftest conftest.*; do
2688
  test -f "$ac_file" || continue
2689
  case $ac_file in
2690
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2691
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2692
	  break;;
2693
    * ) break;;
2694
  esac
2695
done
2696
else
2697
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699
as_fn_error "cannot compute suffix of executables: cannot compile and link
2700
See \`config.log' for more details." "$LINENO" 5; }
2701
fi
2702
rm -f conftest conftest$ac_cv_exeext
2703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2704
$as_echo "$ac_cv_exeext" >&6; }
2705
2706
rm -f conftest.$ac_ext
2707
EXEEXT=$ac_cv_exeext
2708
ac_exeext=$EXEEXT
2709
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710
/* end confdefs.h.  */
2711
#include <stdio.h>
2712
int
2713
main ()
2714
{
2715
FILE *f = fopen ("conftest.out", "w");
2716
 return ferror (f) || fclose (f) != 0;
2717
2718
  ;
2719
  return 0;
2720
}
2721
_ACEOF
2722
ac_clean_files="$ac_clean_files conftest.out"
2723
# Check that the compiler produces executables we can run.  If not, either
2724
# the compiler is broken, or we cross compile.
2725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2726
$as_echo_n "checking whether we are cross compiling... " >&6; }
2727
if test "$cross_compiling" != yes; then
2728
  { { ac_try="$ac_link"
2729
case "(($ac_try" in
2730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731
  *) ac_try_echo=$ac_try;;
2732
esac
2733
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2734
$as_echo "$ac_try_echo"; } >&5
2735
  (eval "$ac_link") 2>&5
2736
  ac_status=$?
2737
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2738
  test $ac_status = 0; }
2739
  if { ac_try='./conftest$ac_cv_exeext'
2740
  { { case "(($ac_try" in
2741
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742
  *) ac_try_echo=$ac_try;;
2743
esac
2744
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2745
$as_echo "$ac_try_echo"; } >&5
2746
  (eval "$ac_try") 2>&5
2747
  ac_status=$?
2748
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2749
  test $ac_status = 0; }; }; then
2750
    cross_compiling=no
2751
  else
2752
    if test "$cross_compiling" = maybe; then
2753
	cross_compiling=yes
2754
    else
2755
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757
as_fn_error "cannot run C compiled programs.
2758
If you meant to cross compile, use \`--host'.
2759
See \`config.log' for more details." "$LINENO" 5; }
2760
    fi
2761
  fi
2762
fi
2763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2764
$as_echo "$cross_compiling" >&6; }
2765
2766
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2767
ac_clean_files=$ac_clean_files_save
2768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2769
$as_echo_n "checking for suffix of object files... " >&6; }
2770
if test "${ac_cv_objext+set}" = set; then :
2771
  $as_echo_n "(cached) " >&6
2772
else
2773
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774
/* end confdefs.h.  */
2775
2776
int
2777
main ()
2778
{
2779
2780
  ;
2781
  return 0;
2782
}
2783
_ACEOF
2784
rm -f conftest.o conftest.obj
2785
if { { ac_try="$ac_compile"
2786
case "(($ac_try" in
2787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788
  *) ac_try_echo=$ac_try;;
2789
esac
2790
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791
$as_echo "$ac_try_echo"; } >&5
2792
  (eval "$ac_compile") 2>&5
2793
  ac_status=$?
2794
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795
  test $ac_status = 0; }; then :
2796
  for ac_file in conftest.o conftest.obj conftest.*; do
2797
  test -f "$ac_file" || continue;
2798
  case $ac_file in
2799
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2800
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2801
       break;;
2802
  esac
2803
done
2804
else
2805
  $as_echo "$as_me: failed program was:" >&5
2806
sed 's/^/| /' conftest.$ac_ext >&5
2807
2808
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2809
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2810
as_fn_error "cannot compute suffix of object files: cannot compile
2811
See \`config.log' for more details." "$LINENO" 5; }
2812
fi
2813
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2814
fi
2815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2816
$as_echo "$ac_cv_objext" >&6; }
2817
OBJEXT=$ac_cv_objext
2818
ac_objext=$OBJEXT
2819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2820
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2821
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2822
  $as_echo_n "(cached) " >&6
2823
else
2824
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825
/* end confdefs.h.  */
2826
2827
int
2828
main ()
2829
{
2830
#ifndef __GNUC__
2831
       choke me
2832
#endif
2833
2834
  ;
2835
  return 0;
2836
}
2837
_ACEOF
2838
if ac_fn_c_try_compile "$LINENO"; then :
2839
  ac_compiler_gnu=yes
2840
else
2841
  ac_compiler_gnu=no
2842
fi
2843
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2845
2846
fi
2847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2848
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2849
if test $ac_compiler_gnu = yes; then
2850
  GCC=yes
2851
else
2852
  GCC=
2853
fi
2854
ac_test_CFLAGS=${CFLAGS+set}
2855
ac_save_CFLAGS=$CFLAGS
2856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2857
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2858
if test "${ac_cv_prog_cc_g+set}" = set; then :
2859
  $as_echo_n "(cached) " >&6
2860
else
2861
  ac_save_c_werror_flag=$ac_c_werror_flag
2862
   ac_c_werror_flag=yes
2863
   ac_cv_prog_cc_g=no
2864
   CFLAGS="-g"
2865
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866
/* end confdefs.h.  */
2867
2868
int
2869
main ()
2870
{
2871
2872
  ;
2873
  return 0;
2874
}
2875
_ACEOF
2876
if ac_fn_c_try_compile "$LINENO"; then :
2877
  ac_cv_prog_cc_g=yes
2878
else
2879
  CFLAGS=""
2880
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881
/* end confdefs.h.  */
2882
2883
int
2884
main ()
2885
{
2886
2887
  ;
2888
  return 0;
2889
}
2890
_ACEOF
2891
if ac_fn_c_try_compile "$LINENO"; then :
2892
2893
else
2894
  ac_c_werror_flag=$ac_save_c_werror_flag
2895
	 CFLAGS="-g"
2896
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897
/* end confdefs.h.  */
2898
2899
int
2900
main ()
2901
{
2902
2903
  ;
2904
  return 0;
2905
}
2906
_ACEOF
2907
if ac_fn_c_try_compile "$LINENO"; then :
2908
  ac_cv_prog_cc_g=yes
2909
fi
2910
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911
fi
2912
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913
fi
2914
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915
   ac_c_werror_flag=$ac_save_c_werror_flag
2916
fi
2917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2918
$as_echo "$ac_cv_prog_cc_g" >&6; }
2919
if test "$ac_test_CFLAGS" = set; then
2920
  CFLAGS=$ac_save_CFLAGS
2921
elif test $ac_cv_prog_cc_g = yes; then
2922
  if test "$GCC" = yes; then
2923
    CFLAGS="-g -O2"
2924
  else
2925
    CFLAGS="-g"
2926
  fi
2927
else
2928
  if test "$GCC" = yes; then
2929
    CFLAGS="-O2"
2930
  else
2931
    CFLAGS=
2932
  fi
2933
fi
2934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2935
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2936
if test "${ac_cv_prog_cc_c89+set}" = set; then :
2937
  $as_echo_n "(cached) " >&6
2938
else
2939
  ac_cv_prog_cc_c89=no
2940
ac_save_CC=$CC
2941
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942
/* end confdefs.h.  */
2943
#include <stdarg.h>
2944
#include <stdio.h>
2945
#include <sys/types.h>
2946
#include <sys/stat.h>
2947
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2948
struct buf { int x; };
2949
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2950
static char *e (p, i)
2951
     char **p;
2952
     int i;
2953
{
2954
  return p[i];
2955
}
2956
static char *f (char * (*g) (char **, int), char **p, ...)
2957
{
2958
  char *s;
2959
  va_list v;
2960
  va_start (v,p);
2961
  s = g (p, va_arg (v,int));
2962
  va_end (v);
2963
  return s;
2964
}
2965
2966
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2967
   function prototypes and stuff, but not '\xHH' hex character constants.
2968
   These don't provoke an error unfortunately, instead are silently treated
2969
   as 'x'.  The following induces an error, until -std is added to get
2970
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2971
   array size at least.  It's necessary to write '\x00'==0 to get something
2972
   that's true only with -std.  */
2973
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2974
2975
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2976
   inside strings and character constants.  */
2977
#define FOO(x) 'x'
2978
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2979
2980
int test (int i, double x);
2981
struct s1 {int (*f) (int a);};
2982
struct s2 {int (*f) (double a);};
2983
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2984
int argc;
2985
char **argv;
2986
int
2987
main ()
2988
{
2989
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2990
  ;
2991
  return 0;
2992
}
2993
_ACEOF
2994
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2995
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2996
do
2997
  CC="$ac_save_CC $ac_arg"
2998
  if ac_fn_c_try_compile "$LINENO"; then :
2999
  ac_cv_prog_cc_c89=$ac_arg
3000
fi
3001
rm -f core conftest.err conftest.$ac_objext
3002
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3003
done
3004
rm -f conftest.$ac_ext
3005
CC=$ac_save_CC
3006
3007
fi
3008
# AC_CACHE_VAL
3009
case "x$ac_cv_prog_cc_c89" in
3010
  x)
3011
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3012
$as_echo "none needed" >&6; } ;;
3013
  xno)
3014
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3015
$as_echo "unsupported" >&6; } ;;
3016
  *)
3017
    CC="$CC $ac_cv_prog_cc_c89"
3018
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3019
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3020
esac
3021
if test "x$ac_cv_prog_cc_c89" != xno; then :
3022
3023
fi
3024
3025
ac_ext=c
3026
ac_cpp='$CPP $CPPFLAGS'
3027
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030
3031
3032
# Checks for libraries.
3033
3034
# Checks for header files.
3035
3036
ac_ext=c
3037
ac_cpp='$CPP $CPPFLAGS'
3038
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3042
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3043
# On Suns, sometimes $CPP names a directory.
3044
if test -n "$CPP" && test -d "$CPP"; then
3045
  CPP=
3046
fi
3047
if test -z "$CPP"; then
3048
  if test "${ac_cv_prog_CPP+set}" = set; then :
3049
  $as_echo_n "(cached) " >&6
3050
else
3051
      # Double quotes because CPP needs to be expanded
3052
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3053
    do
3054
      ac_preproc_ok=false
3055
for ac_c_preproc_warn_flag in '' yes
3056
do
3057
  # Use a header file that comes with gcc, so configuring glibc
3058
  # with a fresh cross-compiler works.
3059
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060
  # <limits.h> exists even on freestanding compilers.
3061
  # On the NeXT, cc -E runs the code through the compiler's parser,
3062
  # not just through cpp. "Syntax error" is here to catch this case.
3063
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064
/* end confdefs.h.  */
3065
#ifdef __STDC__
3066
# include <limits.h>
3067
#else
3068
# include <assert.h>
3069
#endif
3070
		     Syntax error
3071
_ACEOF
3072
if ac_fn_c_try_cpp "$LINENO"; then :
3073
3074
else
3075
  # Broken: fails on valid input.
3076
continue
3077
fi
3078
rm -f conftest.err conftest.$ac_ext
3079
3080
  # OK, works on sane cases.  Now check whether nonexistent headers
3081
  # can be detected and how.
3082
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083
/* end confdefs.h.  */
3084
#include <ac_nonexistent.h>
3085
_ACEOF
3086
if ac_fn_c_try_cpp "$LINENO"; then :
3087
  # Broken: success on invalid input.
3088
continue
3089
else
3090
  # Passes both tests.
3091
ac_preproc_ok=:
3092
break
3093
fi
3094
rm -f conftest.err conftest.$ac_ext
3095
3096
done
3097
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098
rm -f conftest.err conftest.$ac_ext
3099
if $ac_preproc_ok; then :
3100
  break
3101
fi
3102
3103
    done
3104
    ac_cv_prog_CPP=$CPP
3105
3106
fi
3107
  CPP=$ac_cv_prog_CPP
3108
else
3109
  ac_cv_prog_CPP=$CPP
3110
fi
3111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3112
$as_echo "$CPP" >&6; }
3113
ac_preproc_ok=false
3114
for ac_c_preproc_warn_flag in '' yes
3115
do
3116
  # Use a header file that comes with gcc, so configuring glibc
3117
  # with a fresh cross-compiler works.
3118
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119
  # <limits.h> exists even on freestanding compilers.
3120
  # On the NeXT, cc -E runs the code through the compiler's parser,
3121
  # not just through cpp. "Syntax error" is here to catch this case.
3122
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123
/* end confdefs.h.  */
3124
#ifdef __STDC__
3125
# include <limits.h>
3126
#else
3127
# include <assert.h>
3128
#endif
3129
		     Syntax error
3130
_ACEOF
3131
if ac_fn_c_try_cpp "$LINENO"; then :
3132
3133
else
3134
  # Broken: fails on valid input.
3135
continue
3136
fi
3137
rm -f conftest.err conftest.$ac_ext
3138
3139
  # OK, works on sane cases.  Now check whether nonexistent headers
3140
  # can be detected and how.
3141
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142
/* end confdefs.h.  */
3143
#include <ac_nonexistent.h>
3144
_ACEOF
3145
if ac_fn_c_try_cpp "$LINENO"; then :
3146
  # Broken: success on invalid input.
3147
continue
3148
else
3149
  # Passes both tests.
3150
ac_preproc_ok=:
3151
break
3152
fi
3153
rm -f conftest.err conftest.$ac_ext
3154
3155
done
3156
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3157
rm -f conftest.err conftest.$ac_ext
3158
if $ac_preproc_ok; then :
3159
3160
else
3161
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3164
See \`config.log' for more details." "$LINENO" 5; }
3165
fi
3166
3167
ac_ext=c
3168
ac_cpp='$CPP $CPPFLAGS'
3169
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172
3173
3174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3175
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3176
if test "${ac_cv_path_GREP+set}" = set; then :
3177
  $as_echo_n "(cached) " >&6
3178
else
3179
  if test -z "$GREP"; then
3180
  ac_path_GREP_found=false
3181
  # Loop through the user's path and test for each of PROGNAME-LIST
3182
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3184
do
3185
  IFS=$as_save_IFS
3186
  test -z "$as_dir" && as_dir=.
3187
    for ac_prog in grep ggrep; do
3188
    for ac_exec_ext in '' $ac_executable_extensions; do
3189
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3190
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3191
# Check for GNU ac_path_GREP and select it if it is found.
3192
  # Check for GNU $ac_path_GREP
3193
case `"$ac_path_GREP" --version 2>&1` in
3194
*GNU*)
3195
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3196
*)
3197
  ac_count=0
3198
  $as_echo_n 0123456789 >"conftest.in"
3199
  while :
3200
  do
3201
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3202
    mv "conftest.tmp" "conftest.in"
3203
    cp "conftest.in" "conftest.nl"
3204
    $as_echo 'GREP' >> "conftest.nl"
3205
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3206
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3207
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3208
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3209
      # Best one so far, save it but keep looking for a better one
3210
      ac_cv_path_GREP="$ac_path_GREP"
3211
      ac_path_GREP_max=$ac_count
3212
    fi
3213
    # 10*(2^10) chars as input seems more than enough
3214
    test $ac_count -gt 10 && break
3215
  done
3216
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3217
esac
3218
3219
      $ac_path_GREP_found && break 3
3220
    done
3221
  done
3222
  done
3223
IFS=$as_save_IFS
3224
  if test -z "$ac_cv_path_GREP"; then
3225
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3226
  fi
3227
else
3228
  ac_cv_path_GREP=$GREP
3229
fi
3230
3231
fi
3232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3233
$as_echo "$ac_cv_path_GREP" >&6; }
3234
 GREP="$ac_cv_path_GREP"
3235
3236
3237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3238
$as_echo_n "checking for egrep... " >&6; }
3239
if test "${ac_cv_path_EGREP+set}" = set; then :
3240
  $as_echo_n "(cached) " >&6
3241
else
3242
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3243
   then ac_cv_path_EGREP="$GREP -E"
3244
   else
3245
     if test -z "$EGREP"; then
3246
  ac_path_EGREP_found=false
3247
  # Loop through the user's path and test for each of PROGNAME-LIST
3248
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3250
do
3251
  IFS=$as_save_IFS
3252
  test -z "$as_dir" && as_dir=.
3253
    for ac_prog in egrep; do
3254
    for ac_exec_ext in '' $ac_executable_extensions; do
3255
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3256
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3257
# Check for GNU ac_path_EGREP and select it if it is found.
3258
  # Check for GNU $ac_path_EGREP
3259
case `"$ac_path_EGREP" --version 2>&1` in
3260
*GNU*)
3261
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3262
*)
3263
  ac_count=0
3264
  $as_echo_n 0123456789 >"conftest.in"
3265
  while :
3266
  do
3267
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3268
    mv "conftest.tmp" "conftest.in"
3269
    cp "conftest.in" "conftest.nl"
3270
    $as_echo 'EGREP' >> "conftest.nl"
3271
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3272
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3273
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3274
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3275
      # Best one so far, save it but keep looking for a better one
3276
      ac_cv_path_EGREP="$ac_path_EGREP"
3277
      ac_path_EGREP_max=$ac_count
3278
    fi
3279
    # 10*(2^10) chars as input seems more than enough
3280
    test $ac_count -gt 10 && break
3281
  done
3282
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3283
esac
3284
3285
      $ac_path_EGREP_found && break 3
3286
    done
3287
  done
3288
  done
3289
IFS=$as_save_IFS
3290
  if test -z "$ac_cv_path_EGREP"; then
3291
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3292
  fi
3293
else
3294
  ac_cv_path_EGREP=$EGREP
3295
fi
3296
3297
   fi
3298
fi
3299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3300
$as_echo "$ac_cv_path_EGREP" >&6; }
3301
 EGREP="$ac_cv_path_EGREP"
3302
3303
3304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3305
$as_echo_n "checking for ANSI C header files... " >&6; }
3306
if test "${ac_cv_header_stdc+set}" = set; then :
3307
  $as_echo_n "(cached) " >&6
3308
else
3309
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310
/* end confdefs.h.  */
3311
#include <stdlib.h>
3312
#include <stdarg.h>
3313
#include <string.h>
3314
#include <float.h>
3315
3316
int
3317
main ()
3318
{
3319
3320
  ;
3321
  return 0;
3322
}
3323
_ACEOF
3324
if ac_fn_c_try_compile "$LINENO"; then :
3325
  ac_cv_header_stdc=yes
3326
else
3327
  ac_cv_header_stdc=no
3328
fi
3329
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330
3331
if test $ac_cv_header_stdc = yes; then
3332
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3333
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334
/* end confdefs.h.  */
3335
#include <string.h>
3336
3337
_ACEOF
3338
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3339
  $EGREP "memchr" >/dev/null 2>&1; then :
3340
3341
else
3342
  ac_cv_header_stdc=no
3343
fi
3344
rm -f conftest*
3345
3346
fi
3347
3348
if test $ac_cv_header_stdc = yes; then
3349
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3350
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351
/* end confdefs.h.  */
3352
#include <stdlib.h>
3353
3354
_ACEOF
3355
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3356
  $EGREP "free" >/dev/null 2>&1; then :
3357
3358
else
3359
  ac_cv_header_stdc=no
3360
fi
3361
rm -f conftest*
3362
3363
fi
3364
3365
if test $ac_cv_header_stdc = yes; then
3366
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3367
  if test "$cross_compiling" = yes; then :
3368
  :
3369
else
3370
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371
/* end confdefs.h.  */
3372
#include <ctype.h>
3373
#include <stdlib.h>
3374
#if ((' ' & 0x0FF) == 0x020)
3375
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3376
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3377
#else
3378
# define ISLOWER(c) \
3379
		   (('a' <= (c) && (c) <= 'i') \
3380
		     || ('j' <= (c) && (c) <= 'r') \
3381
		     || ('s' <= (c) && (c) <= 'z'))
3382
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3383
#endif
3384
3385
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3386
int
3387
main ()
3388
{
3389
  int i;
3390
  for (i = 0; i < 256; i++)
3391
    if (XOR (islower (i), ISLOWER (i))
3392
	|| toupper (i) != TOUPPER (i))
3393
      return 2;
3394
  return 0;
3395
}
3396
_ACEOF
3397
if ac_fn_c_try_run "$LINENO"; then :
3398
3399
else
3400
  ac_cv_header_stdc=no
3401
fi
3402
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3403
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3404
fi
3405
3406
fi
3407
fi
3408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3409
$as_echo "$ac_cv_header_stdc" >&6; }
3410
if test $ac_cv_header_stdc = yes; then
3411
3412
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3413
3414
fi
3415
3416
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3417
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3418
		  inttypes.h stdint.h unistd.h
3419
do :
3420
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3421
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3422
"
3423
eval as_val=\$$as_ac_Header
3424
   if test "x$as_val" = x""yes; then :
3425
  cat >>confdefs.h <<_ACEOF
3426
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3427
_ACEOF
3428
3429
fi
3430
3431
done
3432
3433
3434
for ac_header in arpa/inet.h fcntl.h limits.h netinet/in.h shadow.h stddef.h stdint.h stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utmp.h
3435
do :
3436
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3437
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3438
eval as_val=\$$as_ac_Header
3439
   if test "x$as_val" = x""yes; then :
3440
  cat >>confdefs.h <<_ACEOF
3441
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3442
_ACEOF
3443
3444
fi
3445
3446
done
3447
3448
3449
# Checks for typedefs, structures, and compiler characteristics.
3450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3451
$as_echo_n "checking for inline... " >&6; }
3452
if test "${ac_cv_c_inline+set}" = set; then :
3453
  $as_echo_n "(cached) " >&6
3454
else
3455
  ac_cv_c_inline=no
3456
for ac_kw in inline __inline__ __inline; do
3457
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458
/* end confdefs.h.  */
3459
#ifndef __cplusplus
3460
typedef int foo_t;
3461
static $ac_kw foo_t static_foo () {return 0; }
3462
$ac_kw foo_t foo () {return 0; }
3463
#endif
3464
3465
_ACEOF
3466
if ac_fn_c_try_compile "$LINENO"; then :
3467
  ac_cv_c_inline=$ac_kw
3468
fi
3469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470
  test "$ac_cv_c_inline" != no && break
3471
done
3472
3473
fi
3474
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3475
$as_echo "$ac_cv_c_inline" >&6; }
3476
3477
case $ac_cv_c_inline in
3478
  inline | yes) ;;
3479
  *)
3480
    case $ac_cv_c_inline in
3481
      no) ac_val=;;
3482
      *) ac_val=$ac_cv_c_inline;;
3483
    esac
3484
    cat >>confdefs.h <<_ACEOF
3485
#ifndef __cplusplus
3486
#define inline $ac_val
3487
#endif
3488
_ACEOF
3489
    ;;
3490
esac
3491
3492
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
3493
if test "x$ac_cv_type_pid_t" = x""yes; then :
3494
3495
else
3496
3497
cat >>confdefs.h <<_ACEOF
3498
#define pid_t int
3499
_ACEOF
3500
3501
fi
3502
3503
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3504
if test "x$ac_cv_type_size_t" = x""yes; then :
3505
3506
else
3507
3508
cat >>confdefs.h <<_ACEOF
3509
#define size_t unsigned int
3510
_ACEOF
3511
3512
fi
3513
3514
ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
3515
if test "x$ac_cv_type_ssize_t" = x""yes; then :
3516
3517
else
3518
3519
cat >>confdefs.h <<_ACEOF
3520
#define ssize_t int
3521
_ACEOF
3522
3523
fi
3524
3525
ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
3526
if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
3527
3528
cat >>confdefs.h <<_ACEOF
3529
#define HAVE_STRUCT_STAT_ST_RDEV 1
3530
_ACEOF
3531
3532
3533
fi
3534
3535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
3536
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
3537
if test "${ac_cv_header_stdbool_h+set}" = set; then :
3538
  $as_echo_n "(cached) " >&6
3539
else
3540
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541
/* end confdefs.h.  */
3542
3543
#include <stdbool.h>
3544
#ifndef bool
3545
 "error: bool is not defined"
3546
#endif
3547
#ifndef false
3548
 "error: false is not defined"
3549
#endif
3550
#if false
3551
 "error: false is not 0"
3552
#endif
3553
#ifndef true
3554
 "error: true is not defined"
3555
#endif
3556
#if true != 1
3557
 "error: true is not 1"
3558
#endif
3559
#ifndef __bool_true_false_are_defined
3560
 "error: __bool_true_false_are_defined is not defined"
3561
#endif
3562
3563
	struct s { _Bool s: 1; _Bool t; } s;
3564
3565
	char a[true == 1 ? 1 : -1];
3566
	char b[false == 0 ? 1 : -1];
3567
	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
3568
	char d[(bool) 0.5 == true ? 1 : -1];
3569
	bool e = &s;
3570
	char f[(_Bool) 0.0 == false ? 1 : -1];
3571
	char g[true];
3572
	char h[sizeof (_Bool)];
3573
	char i[sizeof s.t];
3574
	enum { j = false, k = true, l = false * true, m = true * 256 };
3575
	/* The following fails for
3576
	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
3577
	_Bool n[m];
3578
	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
3579
	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
3580
#	if defined __xlc__ || defined __GNUC__
3581
	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
3582
	    reported by James Lemley on 2005-10-05; see
3583
	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
3584
	    This test is not quite right, since xlc is allowed to
3585
	    reject this program, as the initializer for xlcbug is
3586
	    not one of the forms that C requires support for.
3587
	    However, doing the test right would require a runtime
3588
	    test, and that would make cross-compilation harder.
3589
	    Let us hope that IBM fixes the xlc bug, and also adds
3590
	    support for this kind of constant expression.  In the
3591
	    meantime, this test will reject xlc, which is OK, since
3592
	    our stdbool.h substitute should suffice.  We also test
3593
	    this with GCC, where it should work, to detect more
3594
	    quickly whether someone messes up the test in the
3595
	    future.  */
3596
	 char digs[] = "0123456789";
3597
	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
3598
#	endif
3599
	/* Catch a bug in an HP-UX C compiler.  See
3600
	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
3601
	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
3602
	 */
3603
	_Bool q = true;
3604
	_Bool *pq = &q;
3605
3606
int
3607
main ()
3608
{
3609
3610
	*pq |= q;
3611
	*pq |= ! q;
3612
	/* Refer to every declared value, to avoid compiler optimizations.  */
3613
	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
3614
		+ !m + !n + !o + !p + !q + !pq);
3615
3616
  ;
3617
  return 0;
3618
}
3619
_ACEOF
3620
if ac_fn_c_try_compile "$LINENO"; then :
3621
  ac_cv_header_stdbool_h=yes
3622
else
3623
  ac_cv_header_stdbool_h=no
3624
fi
3625
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626
fi
3627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
3628
$as_echo "$ac_cv_header_stdbool_h" >&6; }
3629
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
3630
if test "x$ac_cv_type__Bool" = x""yes; then :
3631
3632
cat >>confdefs.h <<_ACEOF
3633
#define HAVE__BOOL 1
3634
_ACEOF
3635
3636
3637
fi
3638
3639
if test $ac_cv_header_stdbool_h = yes; then
3640
3641
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
3642
3643
fi
3644
3645
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
3646
case $ac_cv_c_uint32_t in #(
3647
  no|yes) ;; #(
3648
  *)
3649
3650
$as_echo "#define _UINT32_T 1" >>confdefs.h
3651
3652
3653
cat >>confdefs.h <<_ACEOF
3654
#define uint32_t $ac_cv_c_uint32_t
3655
_ACEOF
3656
;;
3657
  esac
3658
3659
3660
# Checks for library functions.
3661
for ac_header in vfork.h
3662
do :
3663
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
3664
if test "x$ac_cv_header_vfork_h" = x""yes; then :
3665
  cat >>confdefs.h <<_ACEOF
3666
#define HAVE_VFORK_H 1
3667
_ACEOF
3668
3669
fi
3670
3671
done
3672
3673
for ac_func in fork vfork
3674
do :
3675
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3676
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3677
eval as_val=\$$as_ac_var
3678
   if test "x$as_val" = x""yes; then :
3679
  cat >>confdefs.h <<_ACEOF
3680
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3681
_ACEOF
3682
3683
fi
3684
done
3685
3686
if test "x$ac_cv_func_fork" = xyes; then
3687
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
3688
$as_echo_n "checking for working fork... " >&6; }
3689
if test "${ac_cv_func_fork_works+set}" = set; then :
3690
  $as_echo_n "(cached) " >&6
3691
else
3692
  if test "$cross_compiling" = yes; then :
3693
  ac_cv_func_fork_works=cross
3694
else
3695
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696
/* end confdefs.h.  */
3697
$ac_includes_default
3698
int
3699
main ()
3700
{
3701
3702
	  /* By Ruediger Kuhlmann. */
3703
	  return fork () < 0;
3704
3705
  ;
3706
  return 0;
3707
}
3708
_ACEOF
3709
if ac_fn_c_try_run "$LINENO"; then :
3710
  ac_cv_func_fork_works=yes
3711
else
3712
  ac_cv_func_fork_works=no
3713
fi
3714
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3715
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3716
fi
3717
3718
fi
3719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
3720
$as_echo "$ac_cv_func_fork_works" >&6; }
3721
3722
else
3723
  ac_cv_func_fork_works=$ac_cv_func_fork
3724
fi
3725
if test "x$ac_cv_func_fork_works" = xcross; then
3726
  case $host in
3727
    *-*-amigaos* | *-*-msdosdjgpp*)
3728
      # Override, as these systems have only a dummy fork() stub
3729
      ac_cv_func_fork_works=no
3730
      ;;
3731
    *)
3732
      ac_cv_func_fork_works=yes
3733
      ;;
3734
  esac
3735
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
3736
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
3737
fi
3738
ac_cv_func_vfork_works=$ac_cv_func_vfork
3739
if test "x$ac_cv_func_vfork" = xyes; then
3740
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
3741
$as_echo_n "checking for working vfork... " >&6; }
3742
if test "${ac_cv_func_vfork_works+set}" = set; then :
3743
  $as_echo_n "(cached) " >&6
3744
else
3745
  if test "$cross_compiling" = yes; then :
3746
  ac_cv_func_vfork_works=cross
3747
else
3748
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749
/* end confdefs.h.  */
3750
/* Thanks to Paul Eggert for this test.  */
3751
$ac_includes_default
3752
#include <sys/wait.h>
3753
#ifdef HAVE_VFORK_H
3754
# include <vfork.h>
3755
#endif
3756
/* On some sparc systems, changes by the child to local and incoming
3757
   argument registers are propagated back to the parent.  The compiler
3758
   is told about this with #include <vfork.h>, but some compilers
3759
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
3760
   static variable whose address is put into a register that is
3761
   clobbered by the vfork.  */
3762
static void
3763
#ifdef __cplusplus
3764
sparc_address_test (int arg)
3765
# else
3766
sparc_address_test (arg) int arg;
3767
#endif
3768
{
3769
  static pid_t child;
3770
  if (!child) {
3771
    child = vfork ();
3772
    if (child < 0) {
3773
      perror ("vfork");
3774
      _exit(2);
3775
    }
3776
    if (!child) {
3777
      arg = getpid();
3778
      write(-1, "", 0);
3779
      _exit (arg);
3780
    }
3781
  }
3782
}
3783
3784
int
3785
main ()
3786
{
3787
  pid_t parent = getpid ();
3788
  pid_t child;
3789
3790
  sparc_address_test (0);
3791
3792
  child = vfork ();
3793
3794
  if (child == 0) {
3795
    /* Here is another test for sparc vfork register problems.  This
3796
       test uses lots of local variables, at least as many local
3797
       variables as main has allocated so far including compiler
3798
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
3799
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
3800
       reuse the register of parent for one of the local variables,
3801
       since it will think that parent can't possibly be used any more
3802
       in this routine.  Assigning to the local variable will thus
3803
       munge parent in the parent process.  */
3804
    pid_t
3805
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3806
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3807
    /* Convince the compiler that p..p7 are live; otherwise, it might
3808
       use the same hardware register for all 8 local variables.  */
3809
    if (p != p1 || p != p2 || p != p3 || p != p4
3810
	|| p != p5 || p != p6 || p != p7)
3811
      _exit(1);
3812
3813
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
3814
       from child file descriptors.  If the child closes a descriptor
3815
       before it execs or exits, this munges the parent's descriptor
3816
       as well.  Test for this by closing stdout in the child.  */
3817
    _exit(close(fileno(stdout)) != 0);
3818
  } else {
3819
    int status;
3820
    struct stat st;
3821
3822
    while (wait(&status) != child)
3823
      ;
3824
    return (
3825
	 /* Was there some problem with vforking?  */
3826
	 child < 0
3827
3828
	 /* Did the child fail?  (This shouldn't happen.)  */
3829
	 || status
3830
3831
	 /* Did the vfork/compiler bug occur?  */
3832
	 || parent != getpid()
3833
3834
	 /* Did the file descriptor bug occur?  */
3835
	 || fstat(fileno(stdout), &st) != 0
3836
	 );
3837
  }
3838
}
3839
_ACEOF
3840
if ac_fn_c_try_run "$LINENO"; then :
3841
  ac_cv_func_vfork_works=yes
3842
else
3843
  ac_cv_func_vfork_works=no
3844
fi
3845
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3846
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3847
fi
3848
3849
fi
3850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
3851
$as_echo "$ac_cv_func_vfork_works" >&6; }
3852
3853
fi;
3854
if test "x$ac_cv_func_fork_works" = xcross; then
3855
  ac_cv_func_vfork_works=$ac_cv_func_vfork
3856
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
3857
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
3858
fi
3859
3860
if test "x$ac_cv_func_vfork_works" = xyes; then
3861
3862
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
3863
3864
else
3865
3866
$as_echo "#define vfork fork" >>confdefs.h
3867
3868
fi
3869
if test "x$ac_cv_func_fork_works" = xyes; then
3870
3871
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
3872
3873
fi
3874
3875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
3876
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
3877
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
3878
  $as_echo_n "(cached) " >&6
3879
else
3880
  rm -f conftest.sym conftest.file
3881
echo >conftest.file
3882
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
3883
  if test "$cross_compiling" = yes; then :
3884
  ac_cv_func_lstat_dereferences_slashed_symlink=no
3885
else
3886
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887
/* end confdefs.h.  */
3888
$ac_includes_default
3889
int
3890
main ()
3891
{
3892
struct stat sbuf;
3893
     /* Linux will dereference the symlink and fail, as required by POSIX.
3894
	That is better in the sense that it means we will not
3895
	have to compile and use the lstat wrapper.  */
3896
     return lstat ("conftest.sym/", &sbuf) == 0;
3897
  ;
3898
  return 0;
3899
}
3900
_ACEOF
3901
if ac_fn_c_try_run "$LINENO"; then :
3902
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
3903
else
3904
  ac_cv_func_lstat_dereferences_slashed_symlink=no
3905
fi
3906
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3907
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3908
fi
3909
3910
else
3911
  # If the `ln -s' command failed, then we probably don't even
3912
  # have an lstat function.
3913
  ac_cv_func_lstat_dereferences_slashed_symlink=no
3914
fi
3915
rm -f conftest.sym conftest.file
3916
3917
fi
3918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
3919
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
3920
3921
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
3922
3923
cat >>confdefs.h <<_ACEOF
3924
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
3925
_ACEOF
3926
3927
3928
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
3929
  case " $LIBOBJS " in
3930
  *" lstat.$ac_objext "* ) ;;
3931
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
3932
 ;;
3933
esac
3934
3935
fi
3936
3937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
3938
$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
3939
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
3940
  $as_echo_n "(cached) " >&6
3941
else
3942
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943
/* end confdefs.h.  */
3944
#include <sys/types.h>
3945
int
3946
main ()
3947
{
3948
return makedev(0, 0);
3949
  ;
3950
  return 0;
3951
}
3952
_ACEOF
3953
if ac_fn_c_try_link "$LINENO"; then :
3954
  ac_cv_header_sys_types_h_makedev=yes
3955
else
3956
  ac_cv_header_sys_types_h_makedev=no
3957
fi
3958
rm -f core conftest.err conftest.$ac_objext \
3959
    conftest$ac_exeext conftest.$ac_ext
3960
3961
fi
3962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
3963
$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
3964
3965
if test $ac_cv_header_sys_types_h_makedev = no; then
3966
ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
3967
if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
3968
3969
$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
3970
3971
fi
3972
3973
3974
3975
  if test $ac_cv_header_sys_mkdev_h = no; then
3976
    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
3977
if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
3978
3979
$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
3980
3981
fi
3982
3983
3984
  fi
3985
fi
3986
3987
for ac_header in stdlib.h
3988
do :
3989
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
3990
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
3991
  cat >>confdefs.h <<_ACEOF
3992
#define HAVE_STDLIB_H 1
3993
_ACEOF
3994
3995
fi
3996
3997
done
3998
3999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4000
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4001
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
4002
  $as_echo_n "(cached) " >&6
4003
else
4004
  if test "$cross_compiling" = yes; then :
4005
  ac_cv_func_malloc_0_nonnull=no
4006
else
4007
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008
/* end confdefs.h.  */
4009
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
4010
# include <stdlib.h>
4011
#else
4012
char *malloc ();
4013
#endif
4014
4015
int
4016
main ()
4017
{
4018
return ! malloc (0);
4019
  ;
4020
  return 0;
4021
}
4022
_ACEOF
4023
if ac_fn_c_try_run "$LINENO"; then :
4024
  ac_cv_func_malloc_0_nonnull=yes
4025
else
4026
  ac_cv_func_malloc_0_nonnull=no
4027
fi
4028
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4029
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4030
fi
4031
4032
fi
4033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4034
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4035
if test $ac_cv_func_malloc_0_nonnull = yes; then :
4036
4037
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4038
4039
else
4040
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4041
4042
   case " $LIBOBJS " in
4043
  *" malloc.$ac_objext "* ) ;;
4044
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4045
 ;;
4046
esac
4047
4048
4049
$as_echo "#define malloc rpl_malloc" >>confdefs.h
4050
4051
fi
4052
4053
4054
for ac_header in stdlib.h
4055
do :
4056
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4057
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4058
  cat >>confdefs.h <<_ACEOF
4059
#define HAVE_STDLIB_H 1
4060
_ACEOF
4061
4062
fi
4063
4064
done
4065
4066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4067
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4068
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
4069
  $as_echo_n "(cached) " >&6
4070
else
4071
  if test "$cross_compiling" = yes; then :
4072
  ac_cv_func_realloc_0_nonnull=no
4073
else
4074
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075
/* end confdefs.h.  */
4076
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
4077
# include <stdlib.h>
4078
#else
4079
char *realloc ();
4080
#endif
4081
4082
int
4083
main ()
4084
{
4085
return ! realloc (0, 0);
4086
  ;
4087
  return 0;
4088
}
4089
_ACEOF
4090
if ac_fn_c_try_run "$LINENO"; then :
4091
  ac_cv_func_realloc_0_nonnull=yes
4092
else
4093
  ac_cv_func_realloc_0_nonnull=no
4094
fi
4095
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4096
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4097
fi
4098
4099
fi
4100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4101
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4102
if test $ac_cv_func_realloc_0_nonnull = yes; then :
4103
4104
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4105
4106
else
4107
  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4108
4109
   case " $LIBOBJS " in
4110
  *" realloc.$ac_objext "* ) ;;
4111
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4112
 ;;
4113
esac
4114
4115
4116
$as_echo "#define realloc rpl_realloc" >>confdefs.h
4117
4118
fi
4119
4120
4121
for ac_func in alarm dup2 getcwd getspnam gettimeofday memmove memset mkdir mkfifo putenv select setenv socket strchr strcspn strdup strerror strncasecmp strrchr strstr strtol
4122
do :
4123
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4124
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4125
eval as_val=\$$as_ac_var
4126
   if test "x$as_val" = x""yes; then :
4127
  cat >>confdefs.h <<_ACEOF
4128
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4129
_ACEOF
4130
4131
fi
4132
done
4133
4134
4135
# Checks for addional, third-party libraries
4136
4137
4138
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4139
	if test -n "$ac_tool_prefix"; then
4140
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4141
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4142
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143
$as_echo_n "checking for $ac_word... " >&6; }
4144
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4145
  $as_echo_n "(cached) " >&6
4146
else
4147
  case $PKG_CONFIG in
4148
  [\\/]* | ?:[\\/]*)
4149
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4150
  ;;
4151
  *)
4152
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153
for as_dir in $PATH
4154
do
4155
  IFS=$as_save_IFS
4156
  test -z "$as_dir" && as_dir=.
4157
    for ac_exec_ext in '' $ac_executable_extensions; do
4158
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4160
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161
    break 2
4162
  fi
4163
done
4164
  done
4165
IFS=$as_save_IFS
4166
4167
  ;;
4168
esac
4169
fi
4170
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4171
if test -n "$PKG_CONFIG"; then
4172
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4173
$as_echo "$PKG_CONFIG" >&6; }
4174
else
4175
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176
$as_echo "no" >&6; }
4177
fi
4178
4179
4180
fi
4181
if test -z "$ac_cv_path_PKG_CONFIG"; then
4182
  ac_pt_PKG_CONFIG=$PKG_CONFIG
4183
  # Extract the first word of "pkg-config", so it can be a program name with args.
4184
set dummy pkg-config; ac_word=$2
4185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186
$as_echo_n "checking for $ac_word... " >&6; }
4187
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4188
  $as_echo_n "(cached) " >&6
4189
else
4190
  case $ac_pt_PKG_CONFIG in
4191
  [\\/]* | ?:[\\/]*)
4192
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4193
  ;;
4194
  *)
4195
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196
for as_dir in $PATH
4197
do
4198
  IFS=$as_save_IFS
4199
  test -z "$as_dir" && as_dir=.
4200
    for ac_exec_ext in '' $ac_executable_extensions; do
4201
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4202
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4203
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204
    break 2
4205
  fi
4206
done
4207
  done
4208
IFS=$as_save_IFS
4209
4210
  ;;
4211
esac
4212
fi
4213
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4214
if test -n "$ac_pt_PKG_CONFIG"; then
4215
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4216
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4217
else
4218
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219
$as_echo "no" >&6; }
4220
fi
4221
4222
  if test "x$ac_pt_PKG_CONFIG" = x; then
4223
    PKG_CONFIG=""
4224
  else
4225
    case $cross_compiling:$ac_tool_warned in
4226
yes:)
4227
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4228
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4229
ac_tool_warned=yes ;;
4230
esac
4231
    PKG_CONFIG=$ac_pt_PKG_CONFIG
4232
  fi
4233
else
4234
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4235
fi
4236
4237
fi
4238
if test -n "$PKG_CONFIG"; then
4239
	_pkg_min_version=0.9.0
4240
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4241
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4242
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4243
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4244
$as_echo "yes" >&6; }
4245
	else
4246
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247
$as_echo "no" >&6; }
4248
		PKG_CONFIG=""
4249
	fi
4250
4251
fi
4252
4253
pkg_failed=no
4254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
4255
$as_echo_n "checking for DBUS... " >&6; }
4256
4257
if test -n "$DBUS_CFLAGS"; then
4258
    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
4259
 elif test -n "$PKG_CONFIG"; then
4260
    if test -n "$PKG_CONFIG" && \
4261
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
4262
  ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
4263
  ac_status=$?
4264
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265
  test $ac_status = 0; }; then
4266
  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
4267
else
4268
  pkg_failed=yes
4269
fi
4270
 else
4271
    pkg_failed=untried
4272
fi
4273
if test -n "$DBUS_LIBS"; then
4274
    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
4275
 elif test -n "$PKG_CONFIG"; then
4276
    if test -n "$PKG_CONFIG" && \
4277
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
4278
  ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
4279
  ac_status=$?
4280
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4281
  test $ac_status = 0; }; then
4282
  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
4283
else
4284
  pkg_failed=yes
4285
fi
4286
 else
4287
    pkg_failed=untried
4288
fi
4289
4290
4291
4292
if test $pkg_failed = yes; then
4293
4294
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4295
        _pkg_short_errors_supported=yes
4296
else
4297
        _pkg_short_errors_supported=no
4298
fi
4299
        if test $_pkg_short_errors_supported = yes; then
4300
	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
4301
        else
4302
	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
4303
        fi
4304
	# Put the nasty error message in config.log where it belongs
4305
	echo "$DBUS_PKG_ERRORS" >&5
4306
4307
	as_fn_error "Package requirements (dbus-1) were not met:
4308
4309
$DBUS_PKG_ERRORS
4310
4311
Consider adjusting the PKG_CONFIG_PATH environment variable if you
4312
installed software in a non-standard prefix.
4313
4314
Alternatively, you may set the environment variables DBUS_CFLAGS
4315
and DBUS_LIBS to avoid the need to call pkg-config.
4316
See the pkg-config man page for more details.
4317
" "$LINENO" 5
4318
elif test $pkg_failed = untried; then
4319
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321
as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
4322
is in your PATH or set the PKG_CONFIG environment variable to the full
4323
path to pkg-config.
4324
4325
Alternatively, you may set the environment variables DBUS_CFLAGS
4326
and DBUS_LIBS to avoid the need to call pkg-config.
4327
See the pkg-config man page for more details.
4328
4329
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4330
See \`config.log' for more details." "$LINENO" 5; }
4331
else
4332
	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
4333
	DBUS_LIBS=$pkg_cv_DBUS_LIBS
4334
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4335
$as_echo "yes" >&6; }
4336
	:
4337
fi
4338
4339
4340
# Handle the case when no prefix is given. And the special case when a path
4341
# contains more than 2 slashes, these paths seem to be correct but jam fails
4342
# on them.
4343
if test $prefix = NONE; then :
4344
  prefix="$ac_default_prefix"
4345
else
4346
  prefix=`echo "$prefix" | sed -e 's:///*:/:g'`
4347
fi
4348
if test $exec_prefix = NONE; then :
4349
  exec_prefix="\$(prefix)"
4350
else
4351
  exec_prefix=`echo "$exec_prefix" | sed -e 's:///*:/:g'`
4352
fi
4353
4354
prefix=`echo "$prefix" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4355
exec_prefix=`echo "$exec_prefix" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4356
bindir=`echo "$bindir" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4357
sbindir=`echo "$sbindir" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4358
libexecdir=`echo "$libexecdir" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4359
datadir=`echo "$datadir" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4360
sysconfdir=`echo "$sysconfdir" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4361
sharedstatedir=`echo "$sharedstatedir" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4362
localstatedir=`echo "$localstatedir" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4363
libdir=`echo "$libdir" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4364
includedir=`echo "$includedir" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4365
oldincludedir=`echo "$oldincludedir" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4366
infodir=`echo "$infodir" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4367
mandir=`echo "$mandir" | sed -e 's/\${\([a-zA-Z_][a-zA-Z_]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`
4368
4369
#hack to get the order right :-/ (autoconf --trace reports wrong order...)
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
cat >confcache <<\_ACEOF
4386
# This file is a shell script that caches the results of configure
4387
# tests run on this system so they can be shared between configure
4388
# scripts and configure runs, see configure's option --config-cache.
4389
# It is not useful on other systems.  If it contains results you don't
4390
# want to keep, you may remove or edit it.
4391
#
4392
# config.status only pays attention to the cache file if you give it
4393
# the --recheck option to rerun configure.
4394
#
4395
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4396
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4397
# following values.
4398
4399
_ACEOF
4400
4401
# The following way of writing the cache mishandles newlines in values,
4402
# but we know of no workaround that is simple, portable, and efficient.
4403
# So, we kill variables containing newlines.
4404
# Ultrix sh set writes to stderr and can't be redirected directly,
4405
# and sets the high bit in the cache file unless we assign to the vars.
4406
(
4407
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4408
    eval ac_val=\$$ac_var
4409
    case $ac_val in #(
4410
    *${as_nl}*)
4411
      case $ac_var in #(
4412
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4413
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4414
      esac
4415
      case $ac_var in #(
4416
      _ | IFS | as_nl) ;; #(
4417
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4418
      *) { eval $ac_var=; unset $ac_var;} ;;
4419
      esac ;;
4420
    esac
4421
  done
4422
4423
  (set) 2>&1 |
4424
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4425
    *${as_nl}ac_space=\ *)
4426
      # `set' does not quote correctly, so add quotes: double-quote
4427
      # substitution turns \\\\ into \\, and sed turns \\ into \.
4428
      sed -n \
4429
	"s/'/'\\\\''/g;
4430
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4431
      ;; #(
4432
    *)
4433
      # `set' quotes correctly as required by POSIX, so do not add quotes.
4434
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4435
      ;;
4436
    esac |
4437
    sort
4438
) |
4439
  sed '
4440
     /^ac_cv_env_/b end
4441
     t clear
4442
     :clear
4443
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4444
     t end
4445
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4446
     :end' >>confcache
4447
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4448
  if test -w "$cache_file"; then
4449
    test "x$cache_file" != "x/dev/null" &&
4450
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4451
$as_echo "$as_me: updating cache $cache_file" >&6;}
4452
    cat confcache >$cache_file
4453
  else
4454
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4455
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4456
  fi
4457
fi
4458
rm -f confcache
4459
4460
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4461
# Let make expand exec_prefix.
4462
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4463
4464
DEFS=-DHAVE_CONFIG_H
4465
4466
ac_libobjs=
4467
ac_ltlibobjs=
4468
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4469
  # 1. Remove the extension, and $U if already installed.
4470
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4471
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4472
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4473
  #    will be set to the directory where LIBOBJS objects are built.
4474
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4475
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4476
done
4477
LIBOBJS=$ac_libobjs
4478
4479
LTLIBOBJS=$ac_ltlibobjs
4480
4481
4482
4483
: ${CONFIG_STATUS=./config.status}
4484
ac_write_fail=0
4485
ac_clean_files_save=$ac_clean_files
4486
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4487
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4488
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4489
as_write_fail=0
4490
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4491
#! $SHELL
4492
# Generated by $as_me.
4493
# Run this file to recreate the current configuration.
4494
# Compiler output produced by configure, useful for debugging
4495
# configure, is in config.log if it exists.
4496
4497
debug=false
4498
ac_cs_recheck=false
4499
ac_cs_silent=false
4500
4501
SHELL=\${CONFIG_SHELL-$SHELL}
4502
export SHELL
4503
_ASEOF
4504
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4505
## -------------------- ##
4506
## M4sh Initialization. ##
4507
## -------------------- ##
4508
4509
# Be more Bourne compatible
4510
DUALCASE=1; export DUALCASE # for MKS sh
4511
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4512
  emulate sh
4513
  NULLCMD=:
4514
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4515
  # is contrary to our usage.  Disable this feature.
4516
  alias -g '${1+"$@"}'='"$@"'
4517
  setopt NO_GLOB_SUBST
4518
else
4519
  case `(set -o) 2>/dev/null` in #(
4520
  *posix*) :
4521
    set -o posix ;; #(
4522
  *) :
4523
     ;;
4524
esac
4525
fi
4526
4527
4528
as_nl='
4529
'
4530
export as_nl
4531
# Printing a long string crashes Solaris 7 /usr/bin/printf.
4532
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4533
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4534
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4535
# Prefer a ksh shell builtin over an external printf program on Solaris,
4536
# but without wasting forks for bash or zsh.
4537
if test -z "$BASH_VERSION$ZSH_VERSION" \
4538
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4539
  as_echo='print -r --'
4540
  as_echo_n='print -rn --'
4541
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4542
  as_echo='printf %s\n'
4543
  as_echo_n='printf %s'
4544
else
4545
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4546
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4547
    as_echo_n='/usr/ucb/echo -n'
4548
  else
4549
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4550
    as_echo_n_body='eval
4551
      arg=$1;
4552
      case $arg in #(
4553
      *"$as_nl"*)
4554
	expr "X$arg" : "X\\(.*\\)$as_nl";
4555
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4556
      esac;
4557
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4558
    '
4559
    export as_echo_n_body
4560
    as_echo_n='sh -c $as_echo_n_body as_echo'
4561
  fi
4562
  export as_echo_body
4563
  as_echo='sh -c $as_echo_body as_echo'
4564
fi
4565
4566
# The user is always right.
4567
if test "${PATH_SEPARATOR+set}" != set; then
4568
  PATH_SEPARATOR=:
4569
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4570
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4571
      PATH_SEPARATOR=';'
4572
  }
4573
fi
4574
4575
4576
# IFS
4577
# We need space, tab and new line, in precisely that order.  Quoting is
4578
# there to prevent editors from complaining about space-tab.
4579
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4580
# splitting by setting IFS to empty value.)
4581
IFS=" ""	$as_nl"
4582
4583
# Find who we are.  Look in the path if we contain no directory separator.
4584
case $0 in #((
4585
  *[\\/]* ) as_myself=$0 ;;
4586
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587
for as_dir in $PATH
4588
do
4589
  IFS=$as_save_IFS
4590
  test -z "$as_dir" && as_dir=.
4591
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4592
  done
4593
IFS=$as_save_IFS
4594
4595
     ;;
4596
esac
4597
# We did not find ourselves, most probably we were run as `sh COMMAND'
4598
# in which case we are not to be found in the path.
4599
if test "x$as_myself" = x; then
4600
  as_myself=$0
4601
fi
4602
if test ! -f "$as_myself"; then
4603
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4604
  exit 1
4605
fi
4606
4607
# Unset variables that we do not need and which cause bugs (e.g. in
4608
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4609
# suppresses any "Segmentation fault" message there.  '((' could
4610
# trigger a bug in pdksh 5.2.14.
4611
for as_var in BASH_ENV ENV MAIL MAILPATH
4612
do eval test x\${$as_var+set} = xset \
4613
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4614
done
4615
PS1='$ '
4616
PS2='> '
4617
PS4='+ '
4618
4619
# NLS nuisances.
4620
LC_ALL=C
4621
export LC_ALL
4622
LANGUAGE=C
4623
export LANGUAGE
4624
4625
# CDPATH.
4626
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4627
4628
4629
# as_fn_error ERROR [LINENO LOG_FD]
4630
# ---------------------------------
4631
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4632
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4633
# script with status $?, using 1 if that was 0.
4634
as_fn_error ()
4635
{
4636
  as_status=$?; test $as_status -eq 0 && as_status=1
4637
  if test "$3"; then
4638
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4639
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4640
  fi
4641
  $as_echo "$as_me: error: $1" >&2
4642
  as_fn_exit $as_status
4643
} # as_fn_error
4644
4645
4646
# as_fn_set_status STATUS
4647
# -----------------------
4648
# Set $? to STATUS, without forking.
4649
as_fn_set_status ()
4650
{
4651
  return $1
4652
} # as_fn_set_status
4653
4654
# as_fn_exit STATUS
4655
# -----------------
4656
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4657
as_fn_exit ()
4658
{
4659
  set +e
4660
  as_fn_set_status $1
4661
  exit $1
4662
} # as_fn_exit
4663
4664
# as_fn_unset VAR
4665
# ---------------
4666
# Portably unset VAR.
4667
as_fn_unset ()
4668
{
4669
  { eval $1=; unset $1;}
4670
}
4671
as_unset=as_fn_unset
4672
# as_fn_append VAR VALUE
4673
# ----------------------
4674
# Append the text in VALUE to the end of the definition contained in VAR. Take
4675
# advantage of any shell optimizations that allow amortized linear growth over
4676
# repeated appends, instead of the typical quadratic growth present in naive
4677
# implementations.
4678
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4679
  eval 'as_fn_append ()
4680
  {
4681
    eval $1+=\$2
4682
  }'
4683
else
4684
  as_fn_append ()
4685
  {
4686
    eval $1=\$$1\$2
4687
  }
4688
fi # as_fn_append
4689
4690
# as_fn_arith ARG...
4691
# ------------------
4692
# Perform arithmetic evaluation on the ARGs, and store the result in the
4693
# global $as_val. Take advantage of shells that can avoid forks. The arguments
4694
# must be portable across $(()) and expr.
4695
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4696
  eval 'as_fn_arith ()
4697
  {
4698
    as_val=$(( $* ))
4699
  }'
4700
else
4701
  as_fn_arith ()
4702
  {
4703
    as_val=`expr "$@" || test $? -eq 1`
4704
  }
4705
fi # as_fn_arith
4706
4707
4708
if expr a : '\(a\)' >/dev/null 2>&1 &&
4709
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4710
  as_expr=expr
4711
else
4712
  as_expr=false
4713
fi
4714
4715
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4716
  as_basename=basename
4717
else
4718
  as_basename=false
4719
fi
4720
4721
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4722
  as_dirname=dirname
4723
else
4724
  as_dirname=false
4725
fi
4726
4727
as_me=`$as_basename -- "$0" ||
4728
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4729
	 X"$0" : 'X\(//\)$' \| \
4730
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4731
$as_echo X/"$0" |
4732
    sed '/^.*\/\([^/][^/]*\)\/*$/{
4733
	    s//\1/
4734
	    q
4735
	  }
4736
	  /^X\/\(\/\/\)$/{
4737
	    s//\1/
4738
	    q
4739
	  }
4740
	  /^X\/\(\/\).*/{
4741
	    s//\1/
4742
	    q
4743
	  }
4744
	  s/.*/./; q'`
4745
4746
# Avoid depending upon Character Ranges.
4747
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4748
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4749
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4750
as_cr_digits='0123456789'
4751
as_cr_alnum=$as_cr_Letters$as_cr_digits
4752
4753
ECHO_C= ECHO_N= ECHO_T=
4754
case `echo -n x` in #(((((
4755
-n*)
4756
  case `echo 'xy\c'` in
4757
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4758
  xy)  ECHO_C='\c';;
4759
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4760
       ECHO_T='	';;
4761
  esac;;
4762
*)
4763
  ECHO_N='-n';;
4764
esac
4765
4766
rm -f conf$$ conf$$.exe conf$$.file
4767
if test -d conf$$.dir; then
4768
  rm -f conf$$.dir/conf$$.file
4769
else
4770
  rm -f conf$$.dir
4771
  mkdir conf$$.dir 2>/dev/null
4772
fi
4773
if (echo >conf$$.file) 2>/dev/null; then
4774
  if ln -s conf$$.file conf$$ 2>/dev/null; then
4775
    as_ln_s='ln -s'
4776
    # ... but there are two gotchas:
4777
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4778
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4779
    # In both cases, we have to default to `cp -p'.
4780
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4781
      as_ln_s='cp -p'
4782
  elif ln conf$$.file conf$$ 2>/dev/null; then
4783
    as_ln_s=ln
4784
  else
4785
    as_ln_s='cp -p'
4786
  fi
4787
else
4788
  as_ln_s='cp -p'
4789
fi
4790
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4791
rmdir conf$$.dir 2>/dev/null
4792
4793
4794
# as_fn_mkdir_p
4795
# -------------
4796
# Create "$as_dir" as a directory, including parents if necessary.
4797
as_fn_mkdir_p ()
4798
{
4799
4800
  case $as_dir in #(
4801
  -*) as_dir=./$as_dir;;
4802
  esac
4803
  test -d "$as_dir" || eval $as_mkdir_p || {
4804
    as_dirs=
4805
    while :; do
4806
      case $as_dir in #(
4807
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4808
      *) as_qdir=$as_dir;;
4809
      esac
4810
      as_dirs="'$as_qdir' $as_dirs"
4811
      as_dir=`$as_dirname -- "$as_dir" ||
4812
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4813
	 X"$as_dir" : 'X\(//\)[^/]' \| \
4814
	 X"$as_dir" : 'X\(//\)$' \| \
4815
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4816
$as_echo X"$as_dir" |
4817
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4818
	    s//\1/
4819
	    q
4820
	  }
4821
	  /^X\(\/\/\)[^/].*/{
4822
	    s//\1/
4823
	    q
4824
	  }
4825
	  /^X\(\/\/\)$/{
4826
	    s//\1/
4827
	    q
4828
	  }
4829
	  /^X\(\/\).*/{
4830
	    s//\1/
4831
	    q
4832
	  }
4833
	  s/.*/./; q'`
4834
      test -d "$as_dir" && break
4835
    done
4836
    test -z "$as_dirs" || eval "mkdir $as_dirs"
4837
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4838
4839
4840
} # as_fn_mkdir_p
4841
if mkdir -p . 2>/dev/null; then
4842
  as_mkdir_p='mkdir -p "$as_dir"'
4843
else
4844
  test -d ./-p && rmdir ./-p
4845
  as_mkdir_p=false
4846
fi
4847
4848
if test -x / >/dev/null 2>&1; then
4849
  as_test_x='test -x'
4850
else
4851
  if ls -dL / >/dev/null 2>&1; then
4852
    as_ls_L_option=L
4853
  else
4854
    as_ls_L_option=
4855
  fi
4856
  as_test_x='
4857
    eval sh -c '\''
4858
      if test -d "$1"; then
4859
	test -d "$1/.";
4860
      else
4861
	case $1 in #(
4862
	-*)set "./$1";;
4863
	esac;
4864
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4865
	???[sx]*):;;*)false;;esac;fi
4866
    '\'' sh
4867
  '
4868
fi
4869
as_executable_p=$as_test_x
4870
4871
# Sed expression to map a string onto a valid CPP name.
4872
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4873
4874
# Sed expression to map a string onto a valid variable name.
4875
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4876
4877
4878
exec 6>&1
4879
## ----------------------------------- ##
4880
## Main body of $CONFIG_STATUS script. ##
4881
## ----------------------------------- ##
4882
_ASEOF
4883
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4884
4885
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4886
# Save the log message, to keep $0 and so on meaningful, and to
4887
# report actual input values of CONFIG_FILES etc. instead of their
4888
# values after options handling.
4889
ac_log="
4890
This file was extended by InitNG $as_me 0.7-GIT, which was
4891
generated by GNU Autoconf 2.65.  Invocation command line was
4892
4893
  CONFIG_FILES    = $CONFIG_FILES
4894
  CONFIG_HEADERS  = $CONFIG_HEADERS
4895
  CONFIG_LINKS    = $CONFIG_LINKS
4896
  CONFIG_COMMANDS = $CONFIG_COMMANDS
4897
  $ $0 $@
4898
4899
on `(hostname || uname -n) 2>/dev/null | sed 1q`
4900
"
4901
4902
_ACEOF
4903
4904
case $ac_config_files in *"
4905
"*) set x $ac_config_files; shift; ac_config_files=$*;;
4906
esac
4907
4908
case $ac_config_headers in *"
4909
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4910
esac
4911
4912
4913
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4914
# Files that config.status was made for.
4915
config_files="$ac_config_files"
4916
config_headers="$ac_config_headers"
4917
4918
_ACEOF
4919
4920
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4921
ac_cs_usage="\
4922
\`$as_me' instantiates files and other configuration actions
4923
from templates according to the current configuration.  Unless the files
4924
and actions are specified as TAGs, all are instantiated by default.
4925
4926
Usage: $0 [OPTION]... [TAG]...
4927
4928
  -h, --help       print this help, then exit
4929
  -V, --version    print version number and configuration settings, then exit
4930
      --config     print configuration, then exit
4931
  -q, --quiet, --silent
4932
                   do not print progress messages
4933
  -d, --debug      don't remove temporary files
4934
      --recheck    update $as_me by reconfiguring in the same conditions
4935
      --file=FILE[:TEMPLATE]
4936
                   instantiate the configuration file FILE
4937
      --header=FILE[:TEMPLATE]
4938
                   instantiate the configuration header FILE
4939
4940
Configuration files:
4941
$config_files
4942
4943
Configuration headers:
4944
$config_headers
4945
4946
Report bugs to <http://initng.sourceforge.net/trac>."
4947
4948
_ACEOF
4949
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4950
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4951
ac_cs_version="\\
4952
InitNG config.status 0.7-GIT
4953
configured by $0, generated by GNU Autoconf 2.65,
4954
  with options \\"\$ac_cs_config\\"
4955
4956
Copyright (C) 2009 Free Software Foundation, Inc.
4957
This config.status script is free software; the Free Software Foundation
4958
gives unlimited permission to copy, distribute and modify it."
4959
4960
ac_pwd='$ac_pwd'
4961
srcdir='$srcdir'
4962
test -n "\$AWK" || AWK=awk
4963
_ACEOF
4964
4965
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4966
# The default lists apply if the user does not specify any file.
4967
ac_need_defaults=:
4968
while test $# != 0
4969
do
4970
  case $1 in
4971
  --*=*)
4972
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4973
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4974
    ac_shift=:
4975
    ;;
4976
  *)
4977
    ac_option=$1
4978
    ac_optarg=$2
4979
    ac_shift=shift
4980
    ;;
4981
  esac
4982
4983
  case $ac_option in
4984
  # Handling of the options.
4985
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4986
    ac_cs_recheck=: ;;
4987
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4988
    $as_echo "$ac_cs_version"; exit ;;
4989
  --config | --confi | --conf | --con | --co | --c )
4990
    $as_echo "$ac_cs_config"; exit ;;
4991
  --debug | --debu | --deb | --de | --d | -d )
4992
    debug=: ;;
4993
  --file | --fil | --fi | --f )
4994
    $ac_shift
4995
    case $ac_optarg in
4996
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4997
    esac
4998
    as_fn_append CONFIG_FILES " '$ac_optarg'"
4999
    ac_need_defaults=false;;
5000
  --header | --heade | --head | --hea )
5001
    $ac_shift
5002
    case $ac_optarg in
5003
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5004
    esac
5005
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5006
    ac_need_defaults=false;;
5007
  --he | --h)
5008
    # Conflict between --help and --header
5009
    as_fn_error "ambiguous option: \`$1'
5010
Try \`$0 --help' for more information.";;
5011
  --help | --hel | -h )
5012
    $as_echo "$ac_cs_usage"; exit ;;
5013
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5014
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5015
    ac_cs_silent=: ;;
5016
5017
  # This is an error.
5018
  -*) as_fn_error "unrecognized option: \`$1'
5019
Try \`$0 --help' for more information." ;;
5020
5021
  *) as_fn_append ac_config_targets " $1"
5022
     ac_need_defaults=false ;;
5023
5024
  esac
5025
  shift
5026
done
5027
5028
ac_configure_extra_args=
5029
5030
if $ac_cs_silent; then
5031
  exec 6>/dev/null
5032
  ac_configure_extra_args="$ac_configure_extra_args --silent"
5033
fi
5034
5035
_ACEOF
5036
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5037
if \$ac_cs_recheck; then
5038
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5039
  shift
5040
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5041
  CONFIG_SHELL='$SHELL'
5042
  export CONFIG_SHELL
5043
  exec "\$@"
5044
fi
5045
5046
_ACEOF
5047
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5048
exec 5>>config.log
5049
{
5050
  echo
5051
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5052
## Running $as_me. ##
5053
_ASBOX
5054
  $as_echo "$ac_log"
5055
} >&5
5056
5057
_ACEOF
5058
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5059
_ACEOF
5060
5061
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5062
5063
# Handling of arguments.
5064
for ac_config_target in $ac_config_targets
5065
do
5066
  case $ac_config_target in
5067
    "config.jam") CONFIG_FILES="$CONFIG_FILES config.jam" ;;
5068
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5069
    "initng-paths.h") CONFIG_HEADERS="$CONFIG_HEADERS initng-paths.h" ;;
5070
5071
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5072
  esac
5073
done
5074
5075
5076
# If the user did not use the arguments to specify the items to instantiate,
5077
# then the envvar interface is used.  Set only those that are not.
5078
# We use the long form for the default assignment because of an extremely
5079
# bizarre bug on SunOS 4.1.3.
5080
if $ac_need_defaults; then
5081
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5082
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5083
fi
5084
5085
# Have a temporary directory for convenience.  Make it in the build tree
5086
# simply because there is no reason against having it here, and in addition,
5087
# creating and moving files from /tmp can sometimes cause problems.
5088
# Hook for its removal unless debugging.
5089
# Note that there is a small window in which the directory will not be cleaned:
5090
# after its creation but before its name has been assigned to `$tmp'.
5091
$debug ||
5092
{
5093
  tmp=
5094
  trap 'exit_status=$?
5095
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5096
' 0
5097
  trap 'as_fn_exit 1' 1 2 13 15
5098
}
5099
# Create a (secure) tmp directory for tmp files.
5100
5101
{
5102
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5103
  test -n "$tmp" && test -d "$tmp"
5104
}  ||
5105
{
5106
  tmp=./conf$$-$RANDOM
5107
  (umask 077 && mkdir "$tmp")
5108
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5109
5110
# Set up the scripts for CONFIG_FILES section.
5111
# No need to generate them if there are no CONFIG_FILES.
5112
# This happens for instance with `./config.status config.h'.
5113
if test -n "$CONFIG_FILES"; then
5114
5115
5116
ac_cr=`echo X | tr X '\015'`
5117
# On cygwin, bash can eat \r inside `` if the user requested igncr.
5118
# But we know of no other shell where ac_cr would be empty at this
5119
# point, so we can use a bashism as a fallback.
5120
if test "x$ac_cr" = x; then
5121
  eval ac_cr=\$\'\\r\'
5122
fi
5123
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5124
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5125
  ac_cs_awk_cr='\r'
5126
else
5127
  ac_cs_awk_cr=$ac_cr
5128
fi
5129
5130
echo 'BEGIN {' >"$tmp/subs1.awk" &&
5131
_ACEOF
5132
5133
5134
{
5135
  echo "cat >conf$$subs.awk <<_ACEOF" &&
5136
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5137
  echo "_ACEOF"
5138
} >conf$$subs.sh ||
5139
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5140
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5141
ac_delim='%!_!# '
5142
for ac_last_try in false false false false false :; do
5143
  . ./conf$$subs.sh ||
5144
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5145
5146
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5147
  if test $ac_delim_n = $ac_delim_num; then
5148
    break
5149
  elif $ac_last_try; then
5150
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5151
  else
5152
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5153
  fi
5154
done
5155
rm -f conf$$subs.sh
5156
5157
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5158
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5159
_ACEOF
5160
sed -n '
5161
h
5162
s/^/S["/; s/!.*/"]=/
5163
p
5164
g
5165
s/^[^!]*!//
5166
:repl
5167
t repl
5168
s/'"$ac_delim"'$//
5169
t delim
5170
:nl
5171
h
5172
s/\(.\{148\}\)..*/\1/
5173
t more1
5174
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5175
p
5176
n
5177
b repl
5178
:more1
5179
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5180
p
5181
g
5182
s/.\{148\}//
5183
t nl
5184
:delim
5185
h
5186
s/\(.\{148\}\)..*/\1/
5187
t more2
5188
s/["\\]/\\&/g; s/^/"/; s/$/"/
5189
p
5190
b
5191
:more2
5192
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5193
p
5194
g
5195
s/.\{148\}//
5196
t delim
5197
' <conf$$subs.awk | sed '
5198
/^[^""]/{
5199
  N
5200
  s/\n//
5201
}
5202
' >>$CONFIG_STATUS || ac_write_fail=1
5203
rm -f conf$$subs.awk
5204
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5205
_ACAWK
5206
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5207
  for (key in S) S_is_set[key] = 1
5208
  FS = ""
5209
5210
}
5211
{
5212
  line = $ 0
5213
  nfields = split(line, field, "@")
5214
  substed = 0
5215
  len = length(field[1])
5216
  for (i = 2; i < nfields; i++) {
5217
    key = field[i]
5218
    keylen = length(key)
5219
    if (S_is_set[key]) {
5220
      value = S[key]
5221
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5222
      len += length(value) + length(field[++i])
5223
      substed = 1
5224
    } else
5225
      len += 1 + keylen
5226
  }
5227
5228
  print line
5229
}
5230
5231
_ACAWK
5232
_ACEOF
5233
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5234
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5235
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5236
else
5237
  cat
5238
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5239
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
5240
_ACEOF
5241
5242
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5243
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5244
# trailing colons and then remove the whole line if VPATH becomes empty
5245
# (actually we leave an empty line to preserve line numbers).
5246
if test "x$srcdir" = x.; then
5247
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
5248
s/:*\$(srcdir):*/:/
5249
s/:*\${srcdir}:*/:/
5250
s/:*@srcdir@:*/:/
5251
s/^\([^=]*=[	 ]*\):*/\1/
5252
s/:*$//
5253
s/^[^=]*=[	 ]*$//
5254
}'
5255
fi
5256
5257
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5258
fi # test -n "$CONFIG_FILES"
5259
5260
# Set up the scripts for CONFIG_HEADERS section.
5261
# No need to generate them if there are no CONFIG_HEADERS.
5262
# This happens for instance with `./config.status Makefile'.
5263
if test -n "$CONFIG_HEADERS"; then
5264
cat >"$tmp/defines.awk" <<\_ACAWK ||
5265
BEGIN {
5266
_ACEOF
5267
5268
# Transform confdefs.h into an awk script `defines.awk', embedded as
5269
# here-document in config.status, that substitutes the proper values into
5270
# config.h.in to produce config.h.
5271
5272
# Create a delimiter string that does not exist in confdefs.h, to ease
5273
# handling of long lines.
5274
ac_delim='%!_!# '
5275
for ac_last_try in false false :; do
5276
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5277
  if test -z "$ac_t"; then
5278
    break
5279
  elif $ac_last_try; then
5280
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5281
  else
5282
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5283
  fi
5284
done
5285
5286
# For the awk script, D is an array of macro values keyed by name,
5287
# likewise P contains macro parameters if any.  Preserve backslash
5288
# newline sequences.
5289
5290
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5291
sed -n '
5292
s/.\{148\}/&'"$ac_delim"'/g
5293
t rset
5294
:rset
5295
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5296
t def
5297
d
5298
:def
5299
s/\\$//
5300
t bsnl
5301
s/["\\]/\\&/g
5302
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5303
D["\1"]=" \3"/p
5304
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5305
d
5306
:bsnl
5307
s/["\\]/\\&/g
5308
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5309
D["\1"]=" \3\\\\\\n"\\/p
5310
t cont
5311
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5312
t cont
5313
d
5314
:cont
5315
n
5316
s/.\{148\}/&'"$ac_delim"'/g
5317
t clear
5318
:clear
5319
s/\\$//
5320
t bsnlc
5321
s/["\\]/\\&/g; s/^/"/; s/$/"/p
5322
d
5323
:bsnlc
5324
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5325
b cont
5326
' <confdefs.h | sed '
5327
s/'"$ac_delim"'/"\\\
5328
"/g' >>$CONFIG_STATUS || ac_write_fail=1
5329
5330
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5331
  for (key in D) D_is_set[key] = 1
5332
  FS = ""
5333
}
5334
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5335
  line = \$ 0
5336
  split(line, arg, " ")
5337
  if (arg[1] == "#") {
5338
    defundef = arg[2]
5339
    mac1 = arg[3]
5340
  } else {
5341
    defundef = substr(arg[1], 2)
5342
    mac1 = arg[2]
5343
  }
5344
  split(mac1, mac2, "(") #)
5345
  macro = mac2[1]
5346
  prefix = substr(line, 1, index(line, defundef) - 1)
5347
  if (D_is_set[macro]) {
5348
    # Preserve the white space surrounding the "#".
5349
    print prefix "define", macro P[macro] D[macro]
5350
    next
5351
  } else {
5352
    # Replace #undef with comments.  This is necessary, for example,
5353
    # in the case of _POSIX_SOURCE, which is predefined and required
5354
    # on some systems where configure will not decide to define it.
5355
    if (defundef == "undef") {
5356
      print "/*", prefix defundef, macro, "*/"
5357
      next
5358
    }
5359
  }
5360
}
5361
{ print }
5362
_ACAWK
5363
_ACEOF
5364
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5365
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
5366
fi # test -n "$CONFIG_HEADERS"
5367
5368
5369
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
5370
shift
5371
for ac_tag
5372
do
5373
  case $ac_tag in
5374
  :[FHLC]) ac_mode=$ac_tag; continue;;
5375
  esac
5376
  case $ac_mode$ac_tag in
5377
  :[FHL]*:*);;
5378
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5379
  :[FH]-) ac_tag=-:-;;
5380
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5381
  esac
5382
  ac_save_IFS=$IFS
5383
  IFS=:
5384
  set x $ac_tag
5385
  IFS=$ac_save_IFS
5386
  shift
5387
  ac_file=$1
5388
  shift
5389
5390
  case $ac_mode in
5391
  :L) ac_source=$1;;
5392
  :[FH])
5393
    ac_file_inputs=
5394
    for ac_f
5395
    do
5396
      case $ac_f in
5397
      -) ac_f="$tmp/stdin";;
5398
      *) # Look for the file first in the build tree, then in the source tree
5399
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5400
	 # because $ac_f cannot contain `:'.
5401
	 test -f "$ac_f" ||
5402
	   case $ac_f in
5403
	   [\\/$]*) false;;
5404
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5405
	   esac ||
5406
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5407
      esac
5408
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5409
      as_fn_append ac_file_inputs " '$ac_f'"
5410
    done
5411
5412
    # Let's still pretend it is `configure' which instantiates (i.e., don't
5413
    # use $as_me), people would be surprised to read:
5414
    #    /* config.h.  Generated by config.status.  */
5415
    configure_input='Generated from '`
5416
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5417
	`' by configure.'
5418
    if test x"$ac_file" != x-; then
5419
      configure_input="$ac_file.  $configure_input"
5420
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5421
$as_echo "$as_me: creating $ac_file" >&6;}
5422
    fi
5423
    # Neutralize special characters interpreted by sed in replacement strings.
5424
    case $configure_input in #(
5425
    *\&* | *\|* | *\\* )
5426
       ac_sed_conf_input=`$as_echo "$configure_input" |
5427
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5428
    *) ac_sed_conf_input=$configure_input;;
5429
    esac
5430
5431
    case $ac_tag in
5432
    *:-:* | *:-) cat >"$tmp/stdin" \
5433
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5434
    esac
5435
    ;;
5436
  esac
5437
5438
  ac_dir=`$as_dirname -- "$ac_file" ||
5439
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5440
	 X"$ac_file" : 'X\(//\)[^/]' \| \
5441
	 X"$ac_file" : 'X\(//\)$' \| \
5442
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5443
$as_echo X"$ac_file" |
5444
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5445
	    s//\1/
5446
	    q
5447
	  }
5448
	  /^X\(\/\/\)[^/].*/{
5449
	    s//\1/
5450
	    q
5451
	  }
5452
	  /^X\(\/\/\)$/{
5453
	    s//\1/
5454
	    q
5455
	  }
5456
	  /^X\(\/\).*/{
5457
	    s//\1/
5458
	    q
5459
	  }
5460
	  s/.*/./; q'`
5461
  as_dir="$ac_dir"; as_fn_mkdir_p
5462
  ac_builddir=.
5463
5464
case "$ac_dir" in
5465
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5466
*)
5467
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5468
  # A ".." for each directory in $ac_dir_suffix.
5469
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5470
  case $ac_top_builddir_sub in
5471
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5472
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5473
  esac ;;
5474
esac
5475
ac_abs_top_builddir=$ac_pwd
5476
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5477
# for backward compatibility:
5478
ac_top_builddir=$ac_top_build_prefix
5479
5480
case $srcdir in
5481
  .)  # We are building in place.
5482
    ac_srcdir=.
5483
    ac_top_srcdir=$ac_top_builddir_sub
5484
    ac_abs_top_srcdir=$ac_pwd ;;
5485
  [\\/]* | ?:[\\/]* )  # Absolute name.
5486
    ac_srcdir=$srcdir$ac_dir_suffix;
5487
    ac_top_srcdir=$srcdir
5488
    ac_abs_top_srcdir=$srcdir ;;
5489
  *) # Relative name.
5490
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5491
    ac_top_srcdir=$ac_top_build_prefix$srcdir
5492
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5493
esac
5494
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5495
5496
5497
  case $ac_mode in
5498
  :F)
5499
  #
5500
  # CONFIG_FILE
5501
  #
5502
5503
_ACEOF
5504
5505
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5506
# If the template does not know about datarootdir, expand it.
5507
# FIXME: This hack should be removed a few years after 2.60.
5508
ac_datarootdir_hack=; ac_datarootdir_seen=
5509
ac_sed_dataroot='
5510
/datarootdir/ {
5511
  p
5512
  q
5513
}
5514
/@datadir@/p
5515
/@docdir@/p
5516
/@infodir@/p
5517
/@localedir@/p
5518
/@mandir@/p'
5519
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5520
*datarootdir*) ac_datarootdir_seen=yes;;
5521
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5522
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5523
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5524
_ACEOF
5525
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5526
  ac_datarootdir_hack='
5527
  s&@datadir@&$datadir&g
5528
  s&@docdir@&$docdir&g
5529
  s&@infodir@&$infodir&g
5530
  s&@localedir@&$localedir&g
5531
  s&@mandir@&$mandir&g
5532
  s&\\\${datarootdir}&$datarootdir&g' ;;
5533
esac
5534
_ACEOF
5535
5536
# Neutralize VPATH when `$srcdir' = `.'.
5537
# Shell code in configure.ac might set extrasub.
5538
# FIXME: do we really want to maintain this feature?
5539
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5540
ac_sed_extra="$ac_vpsub
5541
$extrasub
5542
_ACEOF
5543
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5544
:t
5545
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5546
s|@configure_input@|$ac_sed_conf_input|;t t
5547
s&@top_builddir@&$ac_top_builddir_sub&;t t
5548
s&@top_build_prefix@&$ac_top_build_prefix&;t t
5549
s&@srcdir@&$ac_srcdir&;t t
5550
s&@abs_srcdir@&$ac_abs_srcdir&;t t
5551
s&@top_srcdir@&$ac_top_srcdir&;t t
5552
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5553
s&@builddir@&$ac_builddir&;t t
5554
s&@abs_builddir@&$ac_abs_builddir&;t t
5555
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5556
$ac_datarootdir_hack
5557
"
5558
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5559
  || as_fn_error "could not create $ac_file" "$LINENO" 5
5560
5561
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5562
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5563
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5564
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5565
which seems to be undefined.  Please make sure it is defined." >&5
5566
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5567
which seems to be undefined.  Please make sure it is defined." >&2;}
5568
5569
  rm -f "$tmp/stdin"
5570
  case $ac_file in
5571
  -) cat "$tmp/out" && rm -f "$tmp/out";;
5572
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5573
  esac \
5574
  || as_fn_error "could not create $ac_file" "$LINENO" 5
5575
 ;;
5576
  :H)
5577
  #
5578
  # CONFIG_HEADER
5579
  #
5580
  if test x"$ac_file" != x-; then
5581
    {
5582
      $as_echo "/* $configure_input  */" \
5583
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5584
    } >"$tmp/config.h" \
5585
      || as_fn_error "could not create $ac_file" "$LINENO" 5
5586
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5587
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5588
$as_echo "$as_me: $ac_file is unchanged" >&6;}
5589
    else
5590
      rm -f "$ac_file"
5591
      mv "$tmp/config.h" "$ac_file" \
5592
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
5593
    fi
5594
  else
5595
    $as_echo "/* $configure_input  */" \
5596
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5597
      || as_fn_error "could not create -" "$LINENO" 5
5598
  fi
5599
 ;;
5600
5601
5602
  esac
5603
5604
done # for ac_tag
5605
5606
5607
as_fn_exit 0
5608
_ACEOF
5609
ac_clean_files=$ac_clean_files_save
5610
5611
test $ac_write_fail = 0 ||
5612
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5613
5614
5615
# configure is writing to config.log, and then calls config.status.
5616
# config.status does its own redirection, appending to config.log.
5617
# Unfortunately, on DOS this fails, as config.log is still kept open
5618
# by configure, so config.status won't be able to write to it; its
5619
# output is simply discarded.  So we exec the FD to /dev/null,
5620
# effectively closing config.log, so it can be properly (re)opened and
5621
# appended to by config.status.  When coming back to configure, we
5622
# need to make the FD available again.
5623
if test "$no_create" != yes; then
5624
  ac_cs_success=:
5625
  ac_config_status_args=
5626
  test "$silent" = yes &&
5627
    ac_config_status_args="$ac_config_status_args --quiet"
5628
  exec 5>/dev/null
5629
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5630
  exec 5>>config.log
5631
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5632
  # would make configure fail if this is the last instruction.
5633
  $ac_cs_success || as_fn_exit $?
5634
fi
5635
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5636
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5637
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5638
fi