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