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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [io/] [usb/] [slave/] [current/] [host/] [configure] - Blame information for rev 786

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

powered by: WebSVN 2.1.0

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