~ubuntu-branches/ubuntu/trusty/u3-tool/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Evgeni Golov
  • Date: 2009-07-28 21:25:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090728212533-w9yk4jkllbb4mtpl
Tags: 0.2-1
* New upstream release.
  Closes: #538078
* debian/watch:
  + Add watch file as upstream has now released a stable version.
* debian/rules:
  + Use dh 7 tiny rules file.
  + But override dh_auto_install, the tool needs root privileges to
    work, so install in /usr/sbin.
* debian/control:
  + Add pkg-config Build-Dep.
  + Standards-Version: 3.8.2, no changes needed.
* debian/docs:
  + Remove commands.txt, it's not shipped by upstream anymore.
* debian/u3-tool.install:
  + Drop the file, upstream's build-system is fine.
* debian/u3-tool.links:
  + It's u3-tool-usb now that needs a manpage link.

Show diffs side-by-side

added added

removed removed

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