OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [standalone/] [common/] [configure] - Blame information for rev 817

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.