rm
[svn42.git] / old-door-deamon / libparportled-0.5.1 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-maxled=MAXLED      Set the number of connected LED (Default is 8)"
16 ac_help="$ac_help
17 --with-port=BASEPORT      Set the IO address of parralel port (Default is 0x378)"
18
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
22 build=NONE
23 cache_file=./config.cache
24 exec_prefix=NONE
25 host=NONE
26 no_create=
27 nonopt=NONE
28 no_recursion=
29 prefix=NONE
30 program_prefix=NONE
31 program_suffix=NONE
32 program_transform_name=s,x,x,
33 silent=
34 site=
35 srcdir=
36 target=NONE
37 verbose=
38 x_includes=NONE
39 x_libraries=NONE
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
52
53 # Initialize some other variables.
54 subdirs=
55 MFLAGS= MAKEFLAGS=
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
58 ac_max_here_lines=12
59
60 ac_prev=
61 for ac_option
62 do
63
64   # If the previous option needs an argument, assign it.
65   if test -n "$ac_prev"; then
66     eval "$ac_prev=\$ac_option"
67     ac_prev=
68     continue
69   fi
70
71   case "$ac_option" in
72   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73   *) ac_optarg= ;;
74   esac
75
76   # Accept the important Cygnus configure options, so we can diagnose typos.
77
78   case "$ac_option" in
79
80   -bindir | --bindir | --bindi | --bind | --bin | --bi)
81     ac_prev=bindir ;;
82   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83     bindir="$ac_optarg" ;;
84
85   -build | --build | --buil | --bui | --bu)
86     ac_prev=build ;;
87   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88     build="$ac_optarg" ;;
89
90   -cache-file | --cache-file | --cache-fil | --cache-fi \
91   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92     ac_prev=cache_file ;;
93   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95     cache_file="$ac_optarg" ;;
96
97   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98     ac_prev=datadir ;;
99   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100   | --da=*)
101     datadir="$ac_optarg" ;;
102
103   -disable-* | --disable-*)
104     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105     # Reject names that are not valid shell variable names.
106     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108     fi
109     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110     eval "enable_${ac_feature}=no" ;;
111
112   -enable-* | --enable-*)
113     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114     # Reject names that are not valid shell variable names.
115     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117     fi
118     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119     case "$ac_option" in
120       *=*) ;;
121       *) ac_optarg=yes ;;
122     esac
123     eval "enable_${ac_feature}='$ac_optarg'" ;;
124
125   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127   | --exec | --exe | --ex)
128     ac_prev=exec_prefix ;;
129   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131   | --exec=* | --exe=* | --ex=*)
132     exec_prefix="$ac_optarg" ;;
133
134   -gas | --gas | --ga | --g)
135     # Obsolete; use --with-gas.
136     with_gas=yes ;;
137
138   -help | --help | --hel | --he)
139     # Omit some internal or obsolete options to make the list less imposing.
140     # This message is too long to be a string in the A/UX 3.1 sh.
141     cat << EOF
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
144 Configuration:
145   --cache-file=FILE       cache test results in FILE
146   --help                  print this message
147   --no-create             do not create output files
148   --quiet, --silent       do not print \`checking...' messages
149   --version               print the version of autoconf that created configure
150 Directory and file names:
151   --prefix=PREFIX         install architecture-independent files in PREFIX
152                           [$ac_default_prefix]
153   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
154                           [same as prefix]
155   --bindir=DIR            user executables in DIR [EPREFIX/bin]
156   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
157   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
158   --datadir=DIR           read-only architecture-independent data in DIR
159                           [PREFIX/share]
160   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
161   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
162                           [PREFIX/com]
163   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
164   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
165   --includedir=DIR        C header files in DIR [PREFIX/include]
166   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
167   --infodir=DIR           info documentation in DIR [PREFIX/info]
168   --mandir=DIR            man documentation in DIR [PREFIX/man]
169   --srcdir=DIR            find the sources in DIR [configure dir or ..]
170   --program-prefix=PREFIX prepend PREFIX to installed program names
171   --program-suffix=SUFFIX append SUFFIX to installed program names
172   --program-transform-name=PROGRAM
173                           run sed PROGRAM on installed program names
174 EOF
175     cat << EOF
176 Host type:
177   --build=BUILD           configure for building on BUILD [BUILD=HOST]
178   --host=HOST             configure for HOST [guessed]
179   --target=TARGET         configure for TARGET [TARGET=HOST]
180 Features and packages:
181   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
182   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
183   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
184   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
185   --x-includes=DIR        X include files are in DIR
186   --x-libraries=DIR       X library files are in DIR
187 EOF
188     if test -n "$ac_help"; then
189       echo "--enable and --with options recognized:$ac_help"
190     fi
191     exit 0 ;;
192
193   -host | --host | --hos | --ho)
194     ac_prev=host ;;
195   -host=* | --host=* | --hos=* | --ho=*)
196     host="$ac_optarg" ;;
197
198   -includedir | --includedir | --includedi | --included | --include \
199   | --includ | --inclu | --incl | --inc)
200     ac_prev=includedir ;;
201   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202   | --includ=* | --inclu=* | --incl=* | --inc=*)
203     includedir="$ac_optarg" ;;
204
205   -infodir | --infodir | --infodi | --infod | --info | --inf)
206     ac_prev=infodir ;;
207   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208     infodir="$ac_optarg" ;;
209
210   -libdir | --libdir | --libdi | --libd)
211     ac_prev=libdir ;;
212   -libdir=* | --libdir=* | --libdi=* | --libd=*)
213     libdir="$ac_optarg" ;;
214
215   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216   | --libexe | --libex | --libe)
217     ac_prev=libexecdir ;;
218   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219   | --libexe=* | --libex=* | --libe=*)
220     libexecdir="$ac_optarg" ;;
221
222   -localstatedir | --localstatedir | --localstatedi | --localstated \
223   | --localstate | --localstat | --localsta | --localst \
224   | --locals | --local | --loca | --loc | --lo)
225     ac_prev=localstatedir ;;
226   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229     localstatedir="$ac_optarg" ;;
230
231   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232     ac_prev=mandir ;;
233   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234     mandir="$ac_optarg" ;;
235
236   -nfp | --nfp | --nf)
237     # Obsolete; use --without-fp.
238     with_fp=no ;;
239
240   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241   | --no-cr | --no-c)
242     no_create=yes ;;
243
244   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246     no_recursion=yes ;;
247
248   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250   | --oldin | --oldi | --old | --ol | --o)
251     ac_prev=oldincludedir ;;
252   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255     oldincludedir="$ac_optarg" ;;
256
257   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258     ac_prev=prefix ;;
259   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260     prefix="$ac_optarg" ;;
261
262   -program-prefix | --program-prefix | --program-prefi | --program-pref \
263   | --program-pre | --program-pr | --program-p)
264     ac_prev=program_prefix ;;
265   -program-prefix=* | --program-prefix=* | --program-prefi=* \
266   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267     program_prefix="$ac_optarg" ;;
268
269   -program-suffix | --program-suffix | --program-suffi | --program-suff \
270   | --program-suf | --program-su | --program-s)
271     ac_prev=program_suffix ;;
272   -program-suffix=* | --program-suffix=* | --program-suffi=* \
273   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274     program_suffix="$ac_optarg" ;;
275
276   -program-transform-name | --program-transform-name \
277   | --program-transform-nam | --program-transform-na \
278   | --program-transform-n | --program-transform- \
279   | --program-transform | --program-transfor \
280   | --program-transfo | --program-transf \
281   | --program-trans | --program-tran \
282   | --progr-tra | --program-tr | --program-t)
283     ac_prev=program_transform_name ;;
284   -program-transform-name=* | --program-transform-name=* \
285   | --program-transform-nam=* | --program-transform-na=* \
286   | --program-transform-n=* | --program-transform-=* \
287   | --program-transform=* | --program-transfor=* \
288   | --program-transfo=* | --program-transf=* \
289   | --program-trans=* | --program-tran=* \
290   | --progr-tra=* | --program-tr=* | --program-t=*)
291     program_transform_name="$ac_optarg" ;;
292
293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294   | -silent | --silent | --silen | --sile | --sil)
295     silent=yes ;;
296
297   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298     ac_prev=sbindir ;;
299   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300   | --sbi=* | --sb=*)
301     sbindir="$ac_optarg" ;;
302
303   -sharedstatedir | --sharedstatedir | --sharedstatedi \
304   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305   | --sharedst | --shareds | --shared | --share | --shar \
306   | --sha | --sh)
307     ac_prev=sharedstatedir ;;
308   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311   | --sha=* | --sh=*)
312     sharedstatedir="$ac_optarg" ;;
313
314   -site | --site | --sit)
315     ac_prev=site ;;
316   -site=* | --site=* | --sit=*)
317     site="$ac_optarg" ;;
318
319   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320     ac_prev=srcdir ;;
321   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322     srcdir="$ac_optarg" ;;
323
324   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325   | --syscon | --sysco | --sysc | --sys | --sy)
326     ac_prev=sysconfdir ;;
327   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329     sysconfdir="$ac_optarg" ;;
330
331   -target | --target | --targe | --targ | --tar | --ta | --t)
332     ac_prev=target ;;
333   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334     target="$ac_optarg" ;;
335
336   -v | -verbose | --verbose | --verbos | --verbo | --verb)
337     verbose=yes ;;
338
339   -version | --version | --versio | --versi | --vers)
340     echo "configure generated by autoconf version 2.13"
341     exit 0 ;;
342
343   -with-* | --with-*)
344     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345     # Reject names that are not valid shell variable names.
346     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348     fi
349     ac_package=`echo $ac_package| sed 's/-/_/g'`
350     case "$ac_option" in
351       *=*) ;;
352       *) ac_optarg=yes ;;
353     esac
354     eval "with_${ac_package}='$ac_optarg'" ;;
355
356   -without-* | --without-*)
357     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358     # Reject names that are not valid shell variable names.
359     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361     fi
362     ac_package=`echo $ac_package| sed 's/-/_/g'`
363     eval "with_${ac_package}=no" ;;
364
365   --x)
366     # Obsolete; use --with-x.
367     with_x=yes ;;
368
369   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370   | --x-incl | --x-inc | --x-in | --x-i)
371     ac_prev=x_includes ;;
372   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374     x_includes="$ac_optarg" ;;
375
376   -x-libraries | --x-libraries | --x-librarie | --x-librari \
377   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378     ac_prev=x_libraries ;;
379   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381     x_libraries="$ac_optarg" ;;
382
383   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384     ;;
385
386   *)
387     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388       echo "configure: warning: $ac_option: invalid host type" 1>&2
389     fi
390     if test "x$nonopt" != xNONE; then
391       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
392     fi
393     nonopt="$ac_option"
394     ;;
395
396   esac
397 done
398
399 if test -n "$ac_prev"; then
400   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 fi
402
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404
405 # File descriptor usage:
406 # 0 standard input
407 # 1 file creation
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
414   exec 6>/dev/null
415 else
416   exec 6>&1
417 fi
418 exec 5>./config.log
419
420 echo "\
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
423 " 1>&5
424
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
427 ac_configure_args=
428 for ac_arg
429 do
430   case "$ac_arg" in
431   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432   | --no-cr | --no-c) ;;
433   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438   esac
439 done
440
441 # NLS nuisances.
442 # Only set these to C if already set.  These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
450
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 echo > confdefs.h
455
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=led.c
459
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462   ac_srcdir_defaulted=yes
463   # Try the directory containing this script, then its parent.
464   ac_prog=$0
465   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467   srcdir=$ac_confdir
468   if test ! -r $srcdir/$ac_unique_file; then
469     srcdir=..
470   fi
471 else
472   ac_srcdir_defaulted=no
473 fi
474 if test ! -r $srcdir/$ac_unique_file; then
475   if test "$ac_srcdir_defaulted" = yes; then
476     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477   else
478     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479   fi
480 fi
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485   if test "x$prefix" != xNONE; then
486     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487   else
488     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489   fi
490 fi
491 for ac_site_file in $CONFIG_SITE; do
492   if test -r "$ac_site_file"; then
493     echo "loading site script $ac_site_file"
494     . "$ac_site_file"
495   fi
496 done
497
498 if test -r "$cache_file"; then
499   echo "loading cache $cache_file"
500   . $cache_file
501 else
502   echo "creating cache $cache_file"
503   > $cache_file
504 fi
505
506 ac_ext=c
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
512
513 ac_exeext=
514 ac_objext=o
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
518     ac_n= ac_c='
519 ' ac_t='        '
520   else
521     ac_n=-n ac_c= ac_t=
522   fi
523 else
524   ac_n= ac_c='\c' ac_t=
525 fi
526
527
528
529
530 # Checks for programs.
531 # Extract the first word of "gcc", so it can be a program name with args.
532 set dummy gcc; ac_word=$2
533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
534 echo "configure:535: checking for $ac_word" >&5
535 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
536   echo $ac_n "(cached) $ac_c" 1>&6
537 else
538   if test -n "$CC"; then
539   ac_cv_prog_CC="$CC" # Let the user override the test.
540 else
541   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
542   ac_dummy="$PATH"
543   for ac_dir in $ac_dummy; do
544     test -z "$ac_dir" && ac_dir=.
545     if test -f $ac_dir/$ac_word; then
546       ac_cv_prog_CC="gcc"
547       break
548     fi
549   done
550   IFS="$ac_save_ifs"
551 fi
552 fi
553 CC="$ac_cv_prog_CC"
554 if test -n "$CC"; then
555   echo "$ac_t""$CC" 1>&6
556 else
557   echo "$ac_t""no" 1>&6
558 fi
559
560 if test -z "$CC"; then
561   # Extract the first word of "cc", so it can be a program name with args.
562 set dummy cc; ac_word=$2
563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
564 echo "configure:565: checking for $ac_word" >&5
565 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
566   echo $ac_n "(cached) $ac_c" 1>&6
567 else
568   if test -n "$CC"; then
569   ac_cv_prog_CC="$CC" # Let the user override the test.
570 else
571   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
572   ac_prog_rejected=no
573   ac_dummy="$PATH"
574   for ac_dir in $ac_dummy; do
575     test -z "$ac_dir" && ac_dir=.
576     if test -f $ac_dir/$ac_word; then
577       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
578         ac_prog_rejected=yes
579         continue
580       fi
581       ac_cv_prog_CC="cc"
582       break
583     fi
584   done
585   IFS="$ac_save_ifs"
586 if test $ac_prog_rejected = yes; then
587   # We found a bogon in the path, so make sure we never use it.
588   set dummy $ac_cv_prog_CC
589   shift
590   if test $# -gt 0; then
591     # We chose a different compiler from the bogus one.
592     # However, it has the same basename, so the bogon will be chosen
593     # first if we set CC to just the basename; use the full file name.
594     shift
595     set dummy "$ac_dir/$ac_word" "$@"
596     shift
597     ac_cv_prog_CC="$@"
598   fi
599 fi
600 fi
601 fi
602 CC="$ac_cv_prog_CC"
603 if test -n "$CC"; then
604   echo "$ac_t""$CC" 1>&6
605 else
606   echo "$ac_t""no" 1>&6
607 fi
608
609   if test -z "$CC"; then
610     case "`uname -s`" in
611     *win32* | *WIN32*)
612       # Extract the first word of "cl", so it can be a program name with args.
613 set dummy cl; ac_word=$2
614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
615 echo "configure:616: checking for $ac_word" >&5
616 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
617   echo $ac_n "(cached) $ac_c" 1>&6
618 else
619   if test -n "$CC"; then
620   ac_cv_prog_CC="$CC" # Let the user override the test.
621 else
622   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
623   ac_dummy="$PATH"
624   for ac_dir in $ac_dummy; do
625     test -z "$ac_dir" && ac_dir=.
626     if test -f $ac_dir/$ac_word; then
627       ac_cv_prog_CC="cl"
628       break
629     fi
630   done
631   IFS="$ac_save_ifs"
632 fi
633 fi
634 CC="$ac_cv_prog_CC"
635 if test -n "$CC"; then
636   echo "$ac_t""$CC" 1>&6
637 else
638   echo "$ac_t""no" 1>&6
639 fi
640  ;;
641     esac
642   fi
643   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
644 fi
645
646 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
647 echo "configure:648: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
648
649 ac_ext=c
650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
651 ac_cpp='$CPP $CPPFLAGS'
652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
654 cross_compiling=$ac_cv_prog_cc_cross
655
656 cat > conftest.$ac_ext << EOF
657
658 #line 659 "configure"
659 #include "confdefs.h"
660
661 main(){return(0);}
662 EOF
663 if { (eval echo configure:664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
664   ac_cv_prog_cc_works=yes
665   # If we can't run a trivial program, we are probably using a cross compiler.
666   if (./conftest; exit) 2>/dev/null; then
667     ac_cv_prog_cc_cross=no
668   else
669     ac_cv_prog_cc_cross=yes
670   fi
671 else
672   echo "configure: failed program was:" >&5
673   cat conftest.$ac_ext >&5
674   ac_cv_prog_cc_works=no
675 fi
676 rm -fr conftest*
677 ac_ext=c
678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
679 ac_cpp='$CPP $CPPFLAGS'
680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
682 cross_compiling=$ac_cv_prog_cc_cross
683
684 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
685 if test $ac_cv_prog_cc_works = no; then
686   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
687 fi
688 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
689 echo "configure:690: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
690 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
691 cross_compiling=$ac_cv_prog_cc_cross
692
693 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
694 echo "configure:695: checking whether we are using GNU C" >&5
695 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
696   echo $ac_n "(cached) $ac_c" 1>&6
697 else
698   cat > conftest.c <<EOF
699 #ifdef __GNUC__
700   yes;
701 #endif
702 EOF
703 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
704   ac_cv_prog_gcc=yes
705 else
706   ac_cv_prog_gcc=no
707 fi
708 fi
709
710 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
711
712 if test $ac_cv_prog_gcc = yes; then
713   GCC=yes
714 else
715   GCC=
716 fi
717
718 ac_test_CFLAGS="${CFLAGS+set}"
719 ac_save_CFLAGS="$CFLAGS"
720 CFLAGS=
721 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
722 echo "configure:723: checking whether ${CC-cc} accepts -g" >&5
723 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
724   echo $ac_n "(cached) $ac_c" 1>&6
725 else
726   echo 'void f(){}' > conftest.c
727 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
728   ac_cv_prog_cc_g=yes
729 else
730   ac_cv_prog_cc_g=no
731 fi
732 rm -f conftest*
733
734 fi
735
736 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
737 if test "$ac_test_CFLAGS" = set; then
738   CFLAGS="$ac_save_CFLAGS"
739 elif test $ac_cv_prog_cc_g = yes; then
740   if test "$GCC" = yes; then
741     CFLAGS="-g -O2"
742   else
743     CFLAGS="-g"
744   fi
745 else
746   if test "$GCC" = yes; then
747     CFLAGS="-O2"
748   else
749     CFLAGS=
750   fi
751 fi
752
753
754 # Checks for libraries.
755 # FIXME: Replace `main' with a function in `-lpthread':
756 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
757 echo "configure:758: checking for pthread_create in -lpthread" >&5
758 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
760   echo $ac_n "(cached) $ac_c" 1>&6
761 else
762   ac_save_LIBS="$LIBS"
763 LIBS="-lpthread  $LIBS"
764 cat > conftest.$ac_ext <<EOF
765 #line 766 "configure"
766 #include "confdefs.h"
767 /* Override any gcc2 internal prototype to avoid an error.  */
768 /* We use char because int might match the return type of a gcc2
769     builtin and then its argument prototype would still apply.  */
770 char pthread_create();
771
772 int main() {
773 pthread_create()
774 ; return 0; }
775 EOF
776 if { (eval echo configure:777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
777   rm -rf conftest*
778   eval "ac_cv_lib_$ac_lib_var=yes"
779 else
780   echo "configure: failed program was:" >&5
781   cat conftest.$ac_ext >&5
782   rm -rf conftest*
783   eval "ac_cv_lib_$ac_lib_var=no"
784 fi
785 rm -f conftest*
786 LIBS="$ac_save_LIBS"
787
788 fi
789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
790   echo "$ac_t""yes" 1>&6
791     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
792     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
793   cat >> confdefs.h <<EOF
794 #define $ac_tr_lib 1
795 EOF
796
797   LIBS="-lpthread $LIBS"
798
799 else
800   echo "$ac_t""no" 1>&6
801 fi
802
803
804 # Checks for header files.
805 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
806 echo "configure:807: checking how to run the C preprocessor" >&5
807 # On Suns, sometimes $CPP names a directory.
808 if test -n "$CPP" && test -d "$CPP"; then
809   CPP=
810 fi
811 if test -z "$CPP"; then
812 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
813   echo $ac_n "(cached) $ac_c" 1>&6
814 else
815     # This must be in double quotes, not single quotes, because CPP may get
816   # substituted into the Makefile and "${CC-cc}" will confuse make.
817   CPP="${CC-cc} -E"
818   # On the NeXT, cc -E runs the code through the compiler's parser,
819   # not just through cpp.
820   cat > conftest.$ac_ext <<EOF
821 #line 822 "configure"
822 #include "confdefs.h"
823 #include <assert.h>
824 Syntax Error
825 EOF
826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
827 { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
829 if test -z "$ac_err"; then
830   :
831 else
832   echo "$ac_err" >&5
833   echo "configure: failed program was:" >&5
834   cat conftest.$ac_ext >&5
835   rm -rf conftest*
836   CPP="${CC-cc} -E -traditional-cpp"
837   cat > conftest.$ac_ext <<EOF
838 #line 839 "configure"
839 #include "confdefs.h"
840 #include <assert.h>
841 Syntax Error
842 EOF
843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
844 { (eval echo configure:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
846 if test -z "$ac_err"; then
847   :
848 else
849   echo "$ac_err" >&5
850   echo "configure: failed program was:" >&5
851   cat conftest.$ac_ext >&5
852   rm -rf conftest*
853   CPP="${CC-cc} -nologo -E"
854   cat > conftest.$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
857 #include <assert.h>
858 Syntax Error
859 EOF
860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
861 { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
863 if test -z "$ac_err"; then
864   :
865 else
866   echo "$ac_err" >&5
867   echo "configure: failed program was:" >&5
868   cat conftest.$ac_ext >&5
869   rm -rf conftest*
870   CPP=/lib/cpp
871 fi
872 rm -f conftest*
873 fi
874 rm -f conftest*
875 fi
876 rm -f conftest*
877   ac_cv_prog_CPP="$CPP"
878 fi
879   CPP="$ac_cv_prog_CPP"
880 else
881   ac_cv_prog_CPP="$CPP"
882 fi
883 echo "$ac_t""$CPP" 1>&6
884
885 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
886 echo "configure:887: checking for ANSI C header files" >&5
887 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
888   echo $ac_n "(cached) $ac_c" 1>&6
889 else
890   cat > conftest.$ac_ext <<EOF
891 #line 892 "configure"
892 #include "confdefs.h"
893 #include <stdlib.h>
894 #include <stdarg.h>
895 #include <string.h>
896 #include <float.h>
897 EOF
898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
899 { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
901 if test -z "$ac_err"; then
902   rm -rf conftest*
903   ac_cv_header_stdc=yes
904 else
905   echo "$ac_err" >&5
906   echo "configure: failed program was:" >&5
907   cat conftest.$ac_ext >&5
908   rm -rf conftest*
909   ac_cv_header_stdc=no
910 fi
911 rm -f conftest*
912
913 if test $ac_cv_header_stdc = yes; then
914   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
915 cat > conftest.$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
918 #include <string.h>
919 EOF
920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
921   egrep "memchr" >/dev/null 2>&1; then
922   :
923 else
924   rm -rf conftest*
925   ac_cv_header_stdc=no
926 fi
927 rm -f conftest*
928
929 fi
930
931 if test $ac_cv_header_stdc = yes; then
932   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
933 cat > conftest.$ac_ext <<EOF
934 #line 935 "configure"
935 #include "confdefs.h"
936 #include <stdlib.h>
937 EOF
938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
939   egrep "free" >/dev/null 2>&1; then
940   :
941 else
942   rm -rf conftest*
943   ac_cv_header_stdc=no
944 fi
945 rm -f conftest*
946
947 fi
948
949 if test $ac_cv_header_stdc = yes; then
950   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
951 if test "$cross_compiling" = yes; then
952   :
953 else
954   cat > conftest.$ac_ext <<EOF
955 #line 956 "configure"
956 #include "confdefs.h"
957 #include <ctype.h>
958 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
959 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
961 int main () { int i; for (i = 0; i < 256; i++)
962 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
963 exit (0); }
964
965 EOF
966 if { (eval echo configure:967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
967 then
968   :
969 else
970   echo "configure: failed program was:" >&5
971   cat conftest.$ac_ext >&5
972   rm -fr conftest*
973   ac_cv_header_stdc=no
974 fi
975 rm -fr conftest*
976 fi
977
978 fi
979 fi
980
981 echo "$ac_t""$ac_cv_header_stdc" 1>&6
982 if test $ac_cv_header_stdc = yes; then
983   cat >> confdefs.h <<\EOF
984 #define STDC_HEADERS 1
985 EOF
986
987 fi
988
989 for ac_hdr in stdlib.h unistd.h sys/io.h
990 do
991 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
992 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
993 echo "configure:994: checking for $ac_hdr" >&5
994 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
995   echo $ac_n "(cached) $ac_c" 1>&6
996 else
997   cat > conftest.$ac_ext <<EOF
998 #line 999 "configure"
999 #include "confdefs.h"
1000 #include <$ac_hdr>
1001 EOF
1002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1003 { (eval echo configure:1004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1005 if test -z "$ac_err"; then
1006   rm -rf conftest*
1007   eval "ac_cv_header_$ac_safe=yes"
1008 else
1009   echo "$ac_err" >&5
1010   echo "configure: failed program was:" >&5
1011   cat conftest.$ac_ext >&5
1012   rm -rf conftest*
1013   eval "ac_cv_header_$ac_safe=no"
1014 fi
1015 rm -f conftest*
1016 fi
1017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1018   echo "$ac_t""yes" 1>&6
1019     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1020   cat >> confdefs.h <<EOF
1021 #define $ac_tr_hdr 1
1022 EOF
1023  
1024 else
1025   echo "$ac_t""no" 1>&6
1026 fi
1027 done
1028
1029
1030 # Checks for typedefs, structures, and compiler characteristics.
1031
1032 # Checks for library functions.
1033 for ac_func in malloc
1034 do
1035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1036 echo "configure:1037: checking for $ac_func" >&5
1037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1038   echo $ac_n "(cached) $ac_c" 1>&6
1039 else
1040   cat > conftest.$ac_ext <<EOF
1041 #line 1042 "configure"
1042 #include "confdefs.h"
1043 /* System header to define __stub macros and hopefully few prototypes,
1044     which can conflict with char $ac_func(); below.  */
1045 #include <assert.h>
1046 /* Override any gcc2 internal prototype to avoid an error.  */
1047 /* We use char because int might match the return type of a gcc2
1048     builtin and then its argument prototype would still apply.  */
1049 char $ac_func();
1050
1051 int main() {
1052
1053 /* The GNU C library defines this for functions which it implements
1054     to always fail with ENOSYS.  Some functions are actually named
1055     something starting with __ and the normal name is an alias.  */
1056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1057 choke me
1058 #else
1059 $ac_func();
1060 #endif
1061
1062 ; return 0; }
1063 EOF
1064 if { (eval echo configure:1065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1065   rm -rf conftest*
1066   eval "ac_cv_func_$ac_func=yes"
1067 else
1068   echo "configure: failed program was:" >&5
1069   cat conftest.$ac_ext >&5
1070   rm -rf conftest*
1071   eval "ac_cv_func_$ac_func=no"
1072 fi
1073 rm -f conftest*
1074 fi
1075
1076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1077   echo "$ac_t""yes" 1>&6
1078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1079   cat >> confdefs.h <<EOF
1080 #define $ac_tr_func 1
1081 EOF
1082  
1083 else
1084   echo "$ac_t""no" 1>&6
1085 fi
1086 done
1087
1088
1089 # Checks for options
1090 cat >> confdefs.h <<\EOF
1091 #define MAXLED 8
1092 EOF
1093
1094 cat >> confdefs.h <<\EOF
1095 #define BASEPORT 0x378
1096 EOF
1097
1098
1099 # Check whether --with-maxled or --without-maxled was given.
1100 if test "${with_maxled+set}" = set; then
1101   withval="$with_maxled"
1102    if test "x$withval" != "xno" ; then
1103      if test "x$withval" != "xyes" ; then
1104         cat >> confdefs.h <<EOF
1105 #define MAXLED $withval
1106 EOF
1107
1108         fi
1109  fi 
1110 fi
1111
1112
1113 # Check whether --with-baseport or --without-baseport was given.
1114 if test "${with_baseport+set}" = set; then
1115   withval="$with_baseport"
1116    if test "x$withval" != "xno" ; then
1117      if test "x$withval" != "xyes" ; then
1118         cat >> confdefs.h <<EOF
1119 #define BASEPORT $withval
1120 EOF
1121
1122         fi
1123  fi 
1124 fi
1125
1126
1127
1128
1129 ac_aux_dir=
1130 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1131   if test -f $ac_dir/install-sh; then
1132     ac_aux_dir=$ac_dir
1133     ac_install_sh="$ac_aux_dir/install-sh -c"
1134     break
1135   elif test -f $ac_dir/install.sh; then
1136     ac_aux_dir=$ac_dir
1137     ac_install_sh="$ac_aux_dir/install.sh -c"
1138     break
1139   fi
1140 done
1141 if test -z "$ac_aux_dir"; then
1142   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1143 fi
1144 ac_config_guess=$ac_aux_dir/config.guess
1145 ac_config_sub=$ac_aux_dir/config.sub
1146 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1147
1148 # Find a good install program.  We prefer a C program (faster),
1149 # so one script is as good as another.  But avoid the broken or
1150 # incompatible versions:
1151 # SysV /etc/install, /usr/sbin/install
1152 # SunOS /usr/etc/install
1153 # IRIX /sbin/install
1154 # AIX /bin/install
1155 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1156 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1157 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1158 # ./install, which can be erroneously created by make from ./install.sh.
1159 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1160 echo "configure:1161: checking for a BSD compatible install" >&5
1161 if test -z "$INSTALL"; then
1162 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1163   echo $ac_n "(cached) $ac_c" 1>&6
1164 else
1165     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1166   for ac_dir in $PATH; do
1167     # Account for people who put trailing slashes in PATH elements.
1168     case "$ac_dir/" in
1169     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1170     *)
1171       # OSF1 and SCO ODT 3.0 have their own names for install.
1172       # Don't use installbsd from OSF since it installs stuff as root
1173       # by default.
1174       for ac_prog in ginstall scoinst install; do
1175         if test -f $ac_dir/$ac_prog; then
1176           if test $ac_prog = install &&
1177             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1178             # AIX install.  It has an incompatible calling convention.
1179             :
1180           else
1181             ac_cv_path_install="$ac_dir/$ac_prog -c"
1182             break 2
1183           fi
1184         fi
1185       done
1186       ;;
1187     esac
1188   done
1189   IFS="$ac_save_IFS"
1190
1191 fi
1192   if test "${ac_cv_path_install+set}" = set; then
1193     INSTALL="$ac_cv_path_install"
1194   else
1195     # As a last resort, use the slow shell script.  We don't cache a
1196     # path for INSTALL within a source directory, because that will
1197     # break other packages using the cache if that directory is
1198     # removed, or if the path is relative.
1199     INSTALL="$ac_install_sh"
1200   fi
1201 fi
1202 echo "$ac_t""$INSTALL" 1>&6
1203
1204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1205 # It thinks the first close brace ends the variable substitution.
1206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1207
1208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1209
1210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1211
1212
1213
1214 trap '' 1 2 15
1215 cat > confcache <<\EOF
1216 # This file is a shell script that caches the results of configure
1217 # tests run on this system so they can be shared between configure
1218 # scripts and configure runs.  It is not useful on other systems.
1219 # If it contains results you don't want to keep, you may remove or edit it.
1220 #
1221 # By default, configure uses ./config.cache as the cache file,
1222 # creating it if it does not exist already.  You can give configure
1223 # the --cache-file=FILE option to use a different cache file; that is
1224 # what configure does when it calls configure scripts in
1225 # subdirectories, so they share the cache.
1226 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1227 # config.status only pays attention to the cache file if you give it the
1228 # --recheck option to rerun configure.
1229 #
1230 EOF
1231 # The following way of writing the cache mishandles newlines in values,
1232 # but we know of no workaround that is simple, portable, and efficient.
1233 # So, don't put newlines in cache variables' values.
1234 # Ultrix sh set writes to stderr and can't be redirected directly,
1235 # and sets the high bit in the cache file unless we assign to the vars.
1236 (set) 2>&1 |
1237   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1238   *ac_space=\ *)
1239     # `set' does not quote correctly, so add quotes (double-quote substitution
1240     # turns \\\\ into \\, and sed turns \\ into \).
1241     sed -n \
1242       -e "s/'/'\\\\''/g" \
1243       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1244     ;;
1245   *)
1246     # `set' quotes correctly as required by POSIX, so do not add quotes.
1247     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1248     ;;
1249   esac >> confcache
1250 if cmp -s $cache_file confcache; then
1251   :
1252 else
1253   if test -w $cache_file; then
1254     echo "updating cache $cache_file"
1255     cat confcache > $cache_file
1256   else
1257     echo "not updating unwritable cache $cache_file"
1258   fi
1259 fi
1260 rm -f confcache
1261
1262 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1263
1264 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1265 # Let make expand exec_prefix.
1266 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1267
1268 # Any assignment to VPATH causes Sun make to only execute
1269 # the first set of double-colon rules, so remove it if not needed.
1270 # If there is a colon in the path, we need to keep it.
1271 if test "x$srcdir" = x.; then
1272   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1273 fi
1274
1275 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1276
1277 DEFS=-DHAVE_CONFIG_H
1278
1279 # Without the "./", some shells look in PATH for config.status.
1280 : ${CONFIG_STATUS=./config.status}
1281
1282 echo creating $CONFIG_STATUS
1283 rm -f $CONFIG_STATUS
1284 cat > $CONFIG_STATUS <<EOF
1285 #! /bin/sh
1286 # Generated automatically by configure.
1287 # Run this file to recreate the current configuration.
1288 # This directory was configured as follows,
1289 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1290 #
1291 # $0 $ac_configure_args
1292 #
1293 # Compiler output produced by configure, useful for debugging
1294 # configure, is in ./config.log if it exists.
1295
1296 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1297 for ac_option
1298 do
1299   case "\$ac_option" in
1300   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1301     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1302     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1303   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1304     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1305     exit 0 ;;
1306   -help | --help | --hel | --he | --h)
1307     echo "\$ac_cs_usage"; exit 0 ;;
1308   *) echo "\$ac_cs_usage"; exit 1 ;;
1309   esac
1310 done
1311
1312 ac_given_srcdir=$srcdir
1313 ac_given_INSTALL="$INSTALL"
1314
1315 trap 'rm -fr `echo "Makefile parportled.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1316 EOF
1317 cat >> $CONFIG_STATUS <<EOF
1318
1319 # Protect against being on the right side of a sed subst in config.status.
1320 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1321  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1322 $ac_vpsub
1323 $extrasub
1324 s%@SHELL@%$SHELL%g
1325 s%@CFLAGS@%$CFLAGS%g
1326 s%@CPPFLAGS@%$CPPFLAGS%g
1327 s%@CXXFLAGS@%$CXXFLAGS%g
1328 s%@FFLAGS@%$FFLAGS%g
1329 s%@DEFS@%$DEFS%g
1330 s%@LDFLAGS@%$LDFLAGS%g
1331 s%@LIBS@%$LIBS%g
1332 s%@exec_prefix@%$exec_prefix%g
1333 s%@prefix@%$prefix%g
1334 s%@program_transform_name@%$program_transform_name%g
1335 s%@bindir@%$bindir%g
1336 s%@sbindir@%$sbindir%g
1337 s%@libexecdir@%$libexecdir%g
1338 s%@datadir@%$datadir%g
1339 s%@sysconfdir@%$sysconfdir%g
1340 s%@sharedstatedir@%$sharedstatedir%g
1341 s%@localstatedir@%$localstatedir%g
1342 s%@libdir@%$libdir%g
1343 s%@includedir@%$includedir%g
1344 s%@oldincludedir@%$oldincludedir%g
1345 s%@infodir@%$infodir%g
1346 s%@mandir@%$mandir%g
1347 s%@CC@%$CC%g
1348 s%@CPP@%$CPP%g
1349 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1350 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1351 s%@INSTALL_DATA@%$INSTALL_DATA%g
1352
1353 CEOF
1354 EOF
1355
1356 cat >> $CONFIG_STATUS <<\EOF
1357
1358 # Split the substitutions into bite-sized pieces for seds with
1359 # small command number limits, like on Digital OSF/1 and HP-UX.
1360 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1361 ac_file=1 # Number of current file.
1362 ac_beg=1 # First line for current file.
1363 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1364 ac_more_lines=:
1365 ac_sed_cmds=""
1366 while $ac_more_lines; do
1367   if test $ac_beg -gt 1; then
1368     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1369   else
1370     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1371   fi
1372   if test ! -s conftest.s$ac_file; then
1373     ac_more_lines=false
1374     rm -f conftest.s$ac_file
1375   else
1376     if test -z "$ac_sed_cmds"; then
1377       ac_sed_cmds="sed -f conftest.s$ac_file"
1378     else
1379       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1380     fi
1381     ac_file=`expr $ac_file + 1`
1382     ac_beg=$ac_end
1383     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1384   fi
1385 done
1386 if test -z "$ac_sed_cmds"; then
1387   ac_sed_cmds=cat
1388 fi
1389 EOF
1390
1391 cat >> $CONFIG_STATUS <<EOF
1392
1393 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1394 EOF
1395 cat >> $CONFIG_STATUS <<\EOF
1396 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1397   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1398   case "$ac_file" in
1399   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1400        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1401   *) ac_file_in="${ac_file}.in" ;;
1402   esac
1403
1404   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1405
1406   # Remove last slash and all that follows it.  Not all systems have dirname.
1407   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1408   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1409     # The file is in a subdirectory.
1410     test ! -d "$ac_dir" && mkdir "$ac_dir"
1411     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1412     # A "../" for each directory in $ac_dir_suffix.
1413     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1414   else
1415     ac_dir_suffix= ac_dots=
1416   fi
1417
1418   case "$ac_given_srcdir" in
1419   .)  srcdir=.
1420       if test -z "$ac_dots"; then top_srcdir=.
1421       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1422   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1423   *) # Relative path.
1424     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1425     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1426   esac
1427
1428   case "$ac_given_INSTALL" in
1429   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1430   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1431   esac
1432
1433   echo creating "$ac_file"
1434   rm -f "$ac_file"
1435   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1436   case "$ac_file" in
1437   *Makefile*) ac_comsub="1i\\
1438 # $configure_input" ;;
1439   *) ac_comsub= ;;
1440   esac
1441
1442   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1443   sed -e "$ac_comsub
1444 s%@configure_input@%$configure_input%g
1445 s%@srcdir@%$srcdir%g
1446 s%@top_srcdir@%$top_srcdir%g
1447 s%@INSTALL@%$INSTALL%g
1448 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1449 fi; done
1450 rm -f conftest.s*
1451
1452 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1453 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1454 #
1455 # ac_d sets the value in "#define NAME VALUE" lines.
1456 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1457 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1458 ac_dC='\3'
1459 ac_dD='%g'
1460 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1461 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1462 ac_uB='\([      ]\)%\1#\2define\3'
1463 ac_uC=' '
1464 ac_uD='\4%g'
1465 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1466 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1467 ac_eB='$%\1#\2define\3'
1468 ac_eC=' '
1469 ac_eD='%g'
1470
1471 if test "${CONFIG_HEADERS+set}" != set; then
1472 EOF
1473 cat >> $CONFIG_STATUS <<EOF
1474   CONFIG_HEADERS="parportled.h"
1475 EOF
1476 cat >> $CONFIG_STATUS <<\EOF
1477 fi
1478 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1479   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1480   case "$ac_file" in
1481   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1482        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1483   *) ac_file_in="${ac_file}.in" ;;
1484   esac
1485
1486   echo creating $ac_file
1487
1488   rm -f conftest.frag conftest.in conftest.out
1489   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1490   cat $ac_file_inputs > conftest.in
1491
1492 EOF
1493
1494 # Transform confdefs.h into a sed script conftest.vals that substitutes
1495 # the proper values into config.h.in to produce config.h.  And first:
1496 # Protect against being on the right side of a sed subst in config.status.
1497 # Protect against being in an unquoted here document in config.status.
1498 rm -f conftest.vals
1499 cat > conftest.hdr <<\EOF
1500 s/[\\&%]/\\&/g
1501 s%[\\$`]%\\&%g
1502 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1503 s%ac_d%ac_u%gp
1504 s%ac_u%ac_e%gp
1505 EOF
1506 sed -n -f conftest.hdr confdefs.h > conftest.vals
1507 rm -f conftest.hdr
1508
1509 # This sed command replaces #undef with comments.  This is necessary, for
1510 # example, in the case of _POSIX_SOURCE, which is predefined and required
1511 # on some systems where configure will not decide to define it.
1512 cat >> conftest.vals <<\EOF
1513 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1514 EOF
1515
1516 # Break up conftest.vals because some shells have a limit on
1517 # the size of here documents, and old seds have small limits too.
1518
1519 rm -f conftest.tail
1520 while :
1521 do
1522   ac_lines=`grep -c . conftest.vals`
1523   # grep -c gives empty output for an empty file on some AIX systems.
1524   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1525   # Write a limited-size here document to conftest.frag.
1526   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1527   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1528   echo 'CEOF
1529   sed -f conftest.frag conftest.in > conftest.out
1530   rm -f conftest.in
1531   mv conftest.out conftest.in
1532 ' >> $CONFIG_STATUS
1533   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1534   rm -f conftest.vals
1535   mv conftest.tail conftest.vals
1536 done
1537 rm -f conftest.vals
1538
1539 cat >> $CONFIG_STATUS <<\EOF
1540   rm -f conftest.frag conftest.h
1541   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1542   cat conftest.in >> conftest.h
1543   rm -f conftest.in
1544   if cmp -s $ac_file conftest.h 2>/dev/null; then
1545     echo "$ac_file is unchanged"
1546     rm -f conftest.h
1547   else
1548     # Remove last slash and all that follows it.  Not all systems have dirname.
1549       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1550       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1551       # The file is in a subdirectory.
1552       test ! -d "$ac_dir" && mkdir "$ac_dir"
1553     fi
1554     rm -f $ac_file
1555     mv conftest.h $ac_file
1556   fi
1557 fi; done
1558
1559 EOF
1560 cat >> $CONFIG_STATUS <<EOF
1561
1562 EOF
1563 cat >> $CONFIG_STATUS <<\EOF
1564
1565 exit 0
1566 EOF
1567 chmod +x $CONFIG_STATUS
1568 rm -fr confdefs* $ac_clean_files
1569 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1570