Subversion Repositories freemyipod

Rev

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

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