Increase version
[ftdi_eeprom] / configure
CommitLineData
50850385
TJ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
e61fbf76 3# Generated by Autoconf 2.52.
50850385 4#
e61fbf76 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
50850385
TJ
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
e61fbf76
TJ
10# Avoid depending upon Character Ranges.
11as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14as_cr_digits='0123456789'
15as_cr_alnum=$as_cr_Letters$as_cr_digits
50850385 16
e61fbf76
TJ
17# Sed expression to map a string onto a valid variable name.
18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
50850385 19
e61fbf76
TJ
20# Sed expression to map a string onto a valid CPP name.
21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
50850385
TJ
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29fi
30
50850385 31# Name of the executable.
e61fbf76 32as_me=`echo "$0" |sed 's,.*[\\/],,'`
50850385
TJ
33
34if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36else
37 as_expr=false
38fi
39
40rm -f conf$$ conf$$.exe conf$$.file
41echo >conf$$.file
42if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53else
54 as_ln_s='cp -p'
55fi
56rm -f conf$$ conf$$.exe conf$$.file
57
58as_executable_p="test -f"
59
e61fbf76
TJ
60# Support unset when possible.
61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63else
64 as_unset=false
65fi
50850385 66
e61fbf76
TJ
67# NLS nuisances.
68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
50850385
TJ
76
77# IFS
78# We need space, tab and new line, in precisely that order.
79as_nl='
80'
81IFS=" $as_nl"
82
83# CDPATH.
e61fbf76 84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
50850385
TJ
85
86# Name of the host.
87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88# so uname gets run too.
89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91exec 6>&1
92
93#
94# Initializations.
95#
96ac_default_prefix=/usr/local
97cross_compiling=no
98subdirs=
e61fbf76 99MFLAGS= MAKEFLAGS=
50850385
TJ
100SHELL=${CONFIG_SHELL-/bin/sh}
101
102# Maximum number of lines to put in a shell here document.
103# This variable seems obsolete. It should probably be removed, and
104# only ac_max_sed_lines should be used.
105: ${ac_max_here_lines=38}
106
3bb2c27e 107ac_unique_file="configure.in"
50850385
TJ
108
109# Initialize some variables set by options.
110ac_init_help=
111ac_init_version=false
112# The variables have the same names as the options, with
113# dashes changed to underlines.
114cache_file=/dev/null
115exec_prefix=NONE
116no_create=
117no_recursion=
118prefix=NONE
119program_prefix=NONE
120program_suffix=NONE
121program_transform_name=s,x,x,
122silent=
123site=
124srcdir=
125verbose=
126x_includes=NONE
127x_libraries=NONE
128
129# Installation directory options.
130# These are left unexpanded so users can "make install exec_prefix=/foo"
131# and all the variables that are supposed to be based on exec_prefix
132# by default will actually change.
133# Use braces instead of parens because sh, perl, etc. also accept them.
134bindir='${exec_prefix}/bin'
135sbindir='${exec_prefix}/sbin'
136libexecdir='${exec_prefix}/libexec'
137datadir='${prefix}/share'
138sysconfdir='${prefix}/etc'
139sharedstatedir='${prefix}/com'
140localstatedir='${prefix}/var'
141libdir='${exec_prefix}/lib'
142includedir='${prefix}/include'
143oldincludedir='/usr/include'
144infodir='${prefix}/info'
145mandir='${prefix}/man'
146
e61fbf76
TJ
147# Identity of this package.
148PACKAGE_NAME=
149PACKAGE_TARNAME=
150PACKAGE_VERSION=
151PACKAGE_STRING=
152PACKAGE_BUGREPORT=
153
50850385
TJ
154ac_prev=
155for ac_option
156do
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
160 ac_prev=
161 continue
162 fi
163
164 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
165
166 # Accept the important Cygnus configure options, so we can diagnose typos.
167
168 case $ac_option in
169
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
171 ac_prev=bindir ;;
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173 bindir=$ac_optarg ;;
174
175 -build | --build | --buil | --bui | --bu)
176 ac_prev=build_alias ;;
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build_alias=$ac_optarg ;;
179
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file=$ac_optarg ;;
186
187 --config-cache | -C)
188 cache_file=config.cache ;;
189
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
191 ac_prev=datadir ;;
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
193 | --da=*)
194 datadir=$ac_optarg ;;
195
196 -disable-* | --disable-*)
197 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198 # Reject names that are not valid shell variable names.
199 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201 { (exit 1); exit 1; }; }
202 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203 eval "enable_$ac_feature=no" ;;
204
205 -enable-* | --enable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 case $ac_option in
213 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
214 *) ac_optarg=yes ;;
215 esac
216 eval "enable_$ac_feature='$ac_optarg'" ;;
217
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220 | --exec | --exe | --ex)
221 ac_prev=exec_prefix ;;
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224 | --exec=* | --exe=* | --ex=*)
225 exec_prefix=$ac_optarg ;;
226
227 -gas | --gas | --ga | --g)
228 # Obsolete; use --with-gas.
229 with_gas=yes ;;
230
231 -help | --help | --hel | --he | -h)
232 ac_init_help=long ;;
233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234 ac_init_help=recursive ;;
235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236 ac_init_help=short ;;
237
238 -host | --host | --hos | --ho)
239 ac_prev=host_alias ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host_alias=$ac_optarg ;;
242
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir=$ac_optarg ;;
249
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 ac_prev=infodir ;;
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir=$ac_optarg ;;
254
255 -libdir | --libdir | --libdi | --libd)
256 ac_prev=libdir ;;
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir=$ac_optarg ;;
259
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir=$ac_optarg ;;
266
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir=$ac_optarg ;;
275
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 ac_prev=mandir ;;
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir=$ac_optarg ;;
280
281 -nfp | --nfp | --nf)
282 # Obsolete; use --without-fp.
283 with_fp=no ;;
284
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e61fbf76 286 | --no-cr | --no-c)
50850385
TJ
287 no_create=yes ;;
288
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 no_recursion=yes ;;
292
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir=$ac_optarg ;;
301
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 ac_prev=prefix ;;
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix=$ac_optarg ;;
306
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix=$ac_optarg ;;
313
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix=$ac_optarg ;;
320
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name=$ac_optarg ;;
337
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
340 silent=yes ;;
341
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 ac_prev=sbindir ;;
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 | --sbi=* | --sb=*)
346 sbindir=$ac_optarg ;;
347
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
351 | --sha | --sh)
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 | --sha=* | --sh=*)
357 sharedstatedir=$ac_optarg ;;
358
359 -site | --site | --sit)
360 ac_prev=site ;;
361 -site=* | --site=* | --sit=*)
362 site=$ac_optarg ;;
363
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 ac_prev=srcdir ;;
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir=$ac_optarg ;;
368
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir=$ac_optarg ;;
375
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target_alias ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target_alias=$ac_optarg ;;
380
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 verbose=yes ;;
383
384 -version | --version | --versio | --versi | --vers | -V)
385 ac_init_version=: ;;
386
387 -with-* | --with-*)
388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389 # Reject names that are not valid shell variable names.
390 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391 { echo "$as_me: error: invalid package name: $ac_package" >&2
392 { (exit 1); exit 1; }; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
394 case $ac_option in
395 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
396 *) ac_optarg=yes ;;
397 esac
398 eval "with_$ac_package='$ac_optarg'" ;;
399
400 -without-* | --without-*)
401 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid package name: $ac_package" >&2
405 { (exit 1); exit 1; }; }
406 ac_package=`echo $ac_package | sed 's/-/_/g'`
407 eval "with_$ac_package=no" ;;
408
409 --x)
410 # Obsolete; use --with-x.
411 with_x=yes ;;
412
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes=$ac_optarg ;;
419
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries=$ac_optarg ;;
426
427 -*) { echo "$as_me: error: unrecognized option: $ac_option
428Try \`$0 --help' for more information." >&2
429 { (exit 1); exit 1; }; }
430 ;;
431
432 *=*)
433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437 { (exit 1); exit 1; }; }
438 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439 eval "$ac_envvar='$ac_optarg'"
440 export $ac_envvar ;;
441
442 *)
443 # FIXME: should be removed in autoconf 3.0.
444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
448 ;;
449
450 esac
451done
452
453if test -n "$ac_prev"; then
454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455 { echo "$as_me: error: missing argument to $ac_option" >&2
456 { (exit 1); exit 1; }; }
457fi
458
459# Be sure to have absolute paths.
460for ac_var in exec_prefix prefix
461do
462 eval ac_val=$`echo $ac_var`
463 case $ac_val in
464 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
e61fbf76 465 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
50850385
TJ
466 { (exit 1); exit 1; }; };;
467 esac
468done
469
470# Be sure to have absolute paths.
471for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472 localstatedir libdir includedir oldincludedir infodir mandir
473do
474 eval ac_val=$`echo $ac_var`
475 case $ac_val in
476 [\\/$]* | ?:[\\/]* ) ;;
e61fbf76 477 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
50850385
TJ
478 { (exit 1); exit 1; }; };;
479 esac
480done
481
482# There might be people who depend on the old broken behavior: `$host'
483# used to hold the argument of --host etc.
50850385
TJ
484build=$build_alias
485host=$host_alias
486target=$target_alias
487
e61fbf76 488# FIXME: should be removed in autoconf 3.0.
50850385
TJ
489if test "x$host_alias" != x; then
490 if test "x$build_alias" = x; then
491 cross_compiling=maybe
492 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493 If a cross compiler is detected then cross compile mode will be used." >&2
494 elif test "x$build_alias" != "x$host_alias"; then
495 cross_compiling=yes
496 fi
497fi
498
499ac_tool_prefix=
500test -n "$host_alias" && ac_tool_prefix=$host_alias-
501
502test "$silent" = yes && exec 6>/dev/null
503
50850385
TJ
504# Find the source files, if location was not specified.
505if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
e61fbf76
TJ
508 ac_prog=$0
509 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
50850385
TJ
511 srcdir=$ac_confdir
512 if test ! -r $srcdir/$ac_unique_file; then
513 srcdir=..
514 fi
515else
516 ac_srcdir_defaulted=no
517fi
518if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
e61fbf76 520 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
50850385
TJ
521 { (exit 1); exit 1; }; }
522 else
e61fbf76 523 { echo "$as_me: error: cannot find sources in $srcdir" >&2
50850385
TJ
524 { (exit 1); exit 1; }; }
525 fi
526fi
527srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528ac_env_build_alias_set=${build_alias+set}
529ac_env_build_alias_value=$build_alias
530ac_cv_env_build_alias_set=${build_alias+set}
531ac_cv_env_build_alias_value=$build_alias
532ac_env_host_alias_set=${host_alias+set}
533ac_env_host_alias_value=$host_alias
534ac_cv_env_host_alias_set=${host_alias+set}
535ac_cv_env_host_alias_value=$host_alias
536ac_env_target_alias_set=${target_alias+set}
537ac_env_target_alias_value=$target_alias
538ac_cv_env_target_alias_set=${target_alias+set}
539ac_cv_env_target_alias_value=$target_alias
540ac_env_CC_set=${CC+set}
541ac_env_CC_value=$CC
542ac_cv_env_CC_set=${CC+set}
543ac_cv_env_CC_value=$CC
544ac_env_CFLAGS_set=${CFLAGS+set}
545ac_env_CFLAGS_value=$CFLAGS
546ac_cv_env_CFLAGS_set=${CFLAGS+set}
547ac_cv_env_CFLAGS_value=$CFLAGS
548ac_env_LDFLAGS_set=${LDFLAGS+set}
549ac_env_LDFLAGS_value=$LDFLAGS
550ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551ac_cv_env_LDFLAGS_value=$LDFLAGS
552ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553ac_env_CPPFLAGS_value=$CPPFLAGS
554ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555ac_cv_env_CPPFLAGS_value=$CPPFLAGS
50850385
TJ
556
557#
558# Report the --help message.
559#
560if test "$ac_init_help" = "long"; then
561 # Omit some internal or obsolete options to make the list less imposing.
562 # This message is too long to be a string in the A/UX 3.1 sh.
e61fbf76 563 cat <<EOF
50850385
TJ
564\`configure' configures this package to adapt to many kinds of systems.
565
566Usage: $0 [OPTION]... [VAR=VALUE]...
567
568To assign environment variables (e.g., CC, CFLAGS...), specify them as
569VAR=VALUE. See below for descriptions of some of the useful variables.
570
571Defaults for the options are specified in brackets.
572
573Configuration:
574 -h, --help display this help and exit
575 --help=short display options specific to this package
576 --help=recursive display the short help of all the included packages
577 -V, --version display version information and exit
578 -q, --quiet, --silent do not print \`checking...' messages
579 --cache-file=FILE cache test results in FILE [disabled]
580 -C, --config-cache alias for \`--cache-file=config.cache'
581 -n, --no-create do not create output files
582 --srcdir=DIR find the sources in DIR [configure dir or \`..']
583
e61fbf76 584EOF
50850385 585
e61fbf76 586 cat <<EOF
50850385
TJ
587Installation directories:
588 --prefix=PREFIX install architecture-independent files in PREFIX
589 [$ac_default_prefix]
590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
591 [PREFIX]
592
593By default, \`make install' will install all the files in
594\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
595an installation prefix other than \`$ac_default_prefix' using \`--prefix',
596for instance \`--prefix=\$HOME'.
597
598For better control, use the options below.
599
600Fine tuning of the installation directories:
601 --bindir=DIR user executables [EPREFIX/bin]
602 --sbindir=DIR system admin executables [EPREFIX/sbin]
603 --libexecdir=DIR program executables [EPREFIX/libexec]
604 --datadir=DIR read-only architecture-independent data [PREFIX/share]
605 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
606 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
607 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
608 --libdir=DIR object code libraries [EPREFIX/lib]
609 --includedir=DIR C header files [PREFIX/include]
610 --oldincludedir=DIR C header files for non-gcc [/usr/include]
611 --infodir=DIR info documentation [PREFIX/info]
612 --mandir=DIR man documentation [PREFIX/man]
e61fbf76 613EOF
50850385 614
e61fbf76 615 cat <<\EOF
50850385
TJ
616
617Program names:
618 --program-prefix=PREFIX prepend PREFIX to installed program names
619 --program-suffix=SUFFIX append SUFFIX to installed program names
620 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
e61fbf76 621EOF
50850385
TJ
622fi
623
624if test -n "$ac_init_help"; then
625
e61fbf76 626 cat <<\EOF
50850385 627
50850385
TJ
628Some influential environment variables:
629 CC C compiler command
630 CFLAGS C compiler flags
631 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
632 nonstandard directory <lib dir>
633 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
634 headers in a nonstandard directory <include dir>
50850385
TJ
635
636Use these variables to override the choices made by `configure' or to help
637it to find libraries and programs with nonstandard names/locations.
638
e61fbf76 639EOF
50850385
TJ
640fi
641
642if test "$ac_init_help" = "recursive"; then
643 # If there are subdirs, report their specific --help.
644 ac_popdir=`pwd`
e61fbf76
TJ
645 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
646 cd $ac_subdir
647 # A "../" for each directory in /$ac_subdir.
648 ac_dots=`echo $ac_subdir |
649 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
650
651 case $srcdir in
652 .) # No --srcdir option. We are building in place.
653 ac_sub_srcdir=$srcdir ;;
654 [\\/]* | ?:[\\/]* ) # Absolute path.
655 ac_sub_srcdir=$srcdir/$ac_subdir ;;
656 *) # Relative path.
657 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
658 esac
50850385 659
50850385 660 # Check for guested configure; otherwise get Cygnus style configure.
e61fbf76 661 if test -f $ac_sub_srcdir/configure.gnu; then
50850385 662 echo
e61fbf76
TJ
663 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
664 elif test -f $ac_sub_srcdir/configure; then
50850385 665 echo
e61fbf76
TJ
666 $SHELL $ac_sub_srcdir/configure --help=recursive
667 elif test -f $ac_sub_srcdir/configure.ac ||
668 test -f $ac_sub_srcdir/configure.in; then
50850385
TJ
669 echo
670 $ac_configure --help
671 else
e61fbf76 672 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
50850385
TJ
673 fi
674 cd $ac_popdir
675 done
676fi
677
678test -n "$ac_init_help" && exit 0
679if $ac_init_version; then
e61fbf76 680 cat <<\EOF
50850385 681
e61fbf76 682Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
50850385
TJ
683Free Software Foundation, Inc.
684This configure script is free software; the Free Software Foundation
685gives unlimited permission to copy, distribute and modify it.
e61fbf76 686EOF
50850385
TJ
687 exit 0
688fi
689exec 5>config.log
e61fbf76 690cat >&5 <<EOF
50850385
TJ
691This file contains any messages produced by compilers while
692running configure, to aid debugging if configure makes a mistake.
693
694It was created by $as_me, which was
e61fbf76 695generated by GNU Autoconf 2.52. Invocation command line was
50850385
TJ
696
697 $ $0 $@
698
e61fbf76 699EOF
50850385
TJ
700{
701cat <<_ASUNAME
e61fbf76
TJ
702## ---------- ##
703## Platform. ##
704## ---------- ##
50850385
TJ
705
706hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
707uname -m = `(uname -m) 2>/dev/null || echo unknown`
708uname -r = `(uname -r) 2>/dev/null || echo unknown`
709uname -s = `(uname -s) 2>/dev/null || echo unknown`
710uname -v = `(uname -v) 2>/dev/null || echo unknown`
711
712/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
713/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
714
715/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
716/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
717/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
718hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
719/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
720/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
721/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
722
e61fbf76 723PATH = $PATH
50850385 724
e61fbf76 725_ASUNAME
50850385
TJ
726} >&5
727
e61fbf76
TJ
728cat >&5 <<EOF
729## ------------ ##
730## Core tests. ##
731## ------------ ##
50850385 732
e61fbf76 733EOF
50850385
TJ
734
735# Keep a trace of the command line.
736# Strip out --no-create and --no-recursion so they do not pile up.
737# Also quote any args containing shell meta-characters.
738ac_configure_args=
739ac_sep=
740for ac_arg
741do
742 case $ac_arg in
743 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e61fbf76 744 | --no-cr | --no-c) ;;
50850385 745 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
e61fbf76 746 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
50850385 747 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
e61fbf76
TJ
748 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
749 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
750 ac_sep=" " ;;
751 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
752 ac_sep=" " ;;
50850385
TJ
753 esac
754 # Get rid of the leading space.
755done
756
757# When interrupted or exit'd, cleanup temporary files, and complete
758# config.log. We remove comments because anyway the quotes in there
759# would cause problems or look ugly.
50850385
TJ
760trap 'exit_status=$?
761 # Save into config.log some information that might help in debugging.
e61fbf76
TJ
762 echo >&5
763 echo "## ----------------- ##" >&5
764 echo "## Cache variables. ##" >&5
765 echo "## ----------------- ##" >&5
766 echo >&5
767 # The following way of writing the cache mishandles newlines in values,
50850385
TJ
768{
769 (set) 2>&1 |
770 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
771 *ac_space=\ *)
772 sed -n \
773 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
775 ;;
776 *)
777 sed -n \
778 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
779 ;;
780 esac;
e61fbf76
TJ
781} >&5
782 sed "/^$/d" confdefs.h >conftest.log
783 if test -s conftest.log; then
784 echo >&5
785 echo "## ------------ ##" >&5
786 echo "## confdefs.h. ##" >&5
787 echo "## ------------ ##" >&5
788 echo >&5
789 cat conftest.log >&5
790 fi
791 (echo; echo) >&5
792 test "$ac_signal" != 0 &&
793 echo "$as_me: caught signal $ac_signal" >&5
794 echo "$as_me: exit $exit_status" >&5
795 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
50850385
TJ
796 exit $exit_status
797 ' 0
798for ac_signal in 1 2 13 15; do
799 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
800done
801ac_signal=0
802
803# confdefs.h avoids OS command line length limits that DEFS can exceed.
804rm -rf conftest* confdefs.h
805# AIX cpp loses on an empty file, so make sure it contains at least a newline.
806echo >confdefs.h
807
50850385
TJ
808# Let the site file select an alternate cache file if it wants to.
809# Prefer explicitly selected file to automatically selected ones.
810if test -z "$CONFIG_SITE"; then
811 if test "x$prefix" != xNONE; then
812 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
813 else
814 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
815 fi
816fi
817for ac_site_file in $CONFIG_SITE; do
818 if test -r "$ac_site_file"; then
3bb2c27e 819 { echo "$as_me:819: loading site script $ac_site_file" >&5
50850385 820echo "$as_me: loading site script $ac_site_file" >&6;}
e61fbf76 821 cat "$ac_site_file" >&5
50850385
TJ
822 . "$ac_site_file"
823 fi
824done
825
826if test -r "$cache_file"; then
827 # Some versions of bash will fail to source /dev/null (special
828 # files actually), so we avoid doing that.
829 if test -f "$cache_file"; then
3bb2c27e 830 { echo "$as_me:830: loading cache $cache_file" >&5
50850385
TJ
831echo "$as_me: loading cache $cache_file" >&6;}
832 case $cache_file in
833 [\\/]* | ?:[\\/]* ) . $cache_file;;
834 *) . ./$cache_file;;
835 esac
836 fi
837else
3bb2c27e 838 { echo "$as_me:838: creating cache $cache_file" >&5
50850385
TJ
839echo "$as_me: creating cache $cache_file" >&6;}
840 >$cache_file
841fi
842
843# Check that the precious variables saved in the cache have kept the same
844# value.
845ac_cache_corrupted=false
846for ac_var in `(set) 2>&1 |
847 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
848 eval ac_old_set=\$ac_cv_env_${ac_var}_set
849 eval ac_new_set=\$ac_env_${ac_var}_set
850 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
851 eval ac_new_val="\$ac_env_${ac_var}_value"
852 case $ac_old_set,$ac_new_set in
853 set,)
3bb2c27e 854 { echo "$as_me:854: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
50850385
TJ
855echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
856 ac_cache_corrupted=: ;;
857 ,set)
3bb2c27e 858 { echo "$as_me:858: error: \`$ac_var' was not set in the previous run" >&5
50850385
TJ
859echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
860 ac_cache_corrupted=: ;;
861 ,);;
862 *)
863 if test "x$ac_old_val" != "x$ac_new_val"; then
3bb2c27e 864 { echo "$as_me:864: error: \`$ac_var' has changed since the previous run:" >&5
50850385 865echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3bb2c27e 866 { echo "$as_me:866: former value: $ac_old_val" >&5
50850385 867echo "$as_me: former value: $ac_old_val" >&2;}
3bb2c27e 868 { echo "$as_me:868: current value: $ac_new_val" >&5
50850385
TJ
869echo "$as_me: current value: $ac_new_val" >&2;}
870 ac_cache_corrupted=:
871 fi;;
872 esac
e61fbf76
TJ
873 # Pass precious variables to config.status. It doesn't matter if
874 # we pass some twice (in addition to the command line arguments).
50850385
TJ
875 if test "$ac_new_set" = set; then
876 case $ac_new_val in
877 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
e61fbf76
TJ
878 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
879 ac_configure_args="$ac_configure_args '$ac_arg'"
880 ;;
881 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
882 ;;
50850385
TJ
883 esac
884 fi
885done
886if $ac_cache_corrupted; then
3bb2c27e 887 { echo "$as_me:887: error: changes in the environment can compromise the build" >&5
50850385 888echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3bb2c27e 889 { { echo "$as_me:889: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
50850385
TJ
890echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
891 { (exit 1); exit 1; }; }
892fi
893
894ac_ext=c
895ac_cpp='$CPP $CPPFLAGS'
896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
898ac_compiler_gnu=$ac_cv_c_compiler_gnu
899
e61fbf76
TJ
900case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
901 *c*,-n*) ECHO_N= ECHO_C='
902' ECHO_T=' ' ;;
903 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
904 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
905esac
906echo "#! $SHELL" >conftest.sh
907echo "exit 0" >>conftest.sh
908chmod +x conftest.sh
3bb2c27e 909if { (echo "$as_me:909: PATH=\".;.\"; conftest.sh") >&5
e61fbf76
TJ
910 (PATH=".;."; conftest.sh) 2>&5
911 ac_status=$?
3bb2c27e 912 echo "$as_me:912: \$? = $ac_status" >&5
e61fbf76
TJ
913 (exit $ac_status); }; then
914 ac_path_separator=';'
915else
916 ac_path_separator=:
917fi
918PATH_SEPARATOR="$ac_path_separator"
919rm -f conftest.sh
50850385 920
3bb2c27e
GE
921ac_config_headers="$ac_config_headers config.h"
922
923ac_config_commands="$ac_config_commands default-1"
924
50850385 925ac_aux_dir=
3bb2c27e 926for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
50850385
TJ
927 if test -f $ac_dir/install-sh; then
928 ac_aux_dir=$ac_dir
929 ac_install_sh="$ac_aux_dir/install-sh -c"
930 break
931 elif test -f $ac_dir/install.sh; then
932 ac_aux_dir=$ac_dir
933 ac_install_sh="$ac_aux_dir/install.sh -c"
934 break
935 elif test -f $ac_dir/shtool; then
936 ac_aux_dir=$ac_dir
937 ac_install_sh="$ac_aux_dir/shtool install -c"
938 break
939 fi
940done
941if test -z "$ac_aux_dir"; then
3bb2c27e
GE
942 { { echo "$as_me:942: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
943echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
50850385
TJ
944 { (exit 1); exit 1; }; }
945fi
946ac_config_guess="$SHELL $ac_aux_dir/config.guess"
947ac_config_sub="$SHELL $ac_aux_dir/config.sub"
948ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
949
3bb2c27e 950# Find a good install program. We prefer a C program (faster),
50850385
TJ
951# so one script is as good as another. But avoid the broken or
952# incompatible versions:
953# SysV /etc/install, /usr/sbin/install
954# SunOS /usr/etc/install
955# IRIX /sbin/install
956# AIX /bin/install
957# AmigaOS /C/install, which installs bootblocks on floppy discs
958# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
959# AFS /usr/afsws/bin/install, which mishandles nonexistent args
960# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
961# ./install, which can be erroneously created by make from ./install.sh.
3bb2c27e 962echo "$as_me:962: checking for a BSD compatible install" >&5
e61fbf76 963echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
50850385
TJ
964if test -z "$INSTALL"; then
965if test "${ac_cv_path_install+set}" = set; then
966 echo $ECHO_N "(cached) $ECHO_C" >&6
967else
e61fbf76
TJ
968 ac_save_IFS=$IFS; IFS=$ac_path_separator
969 for ac_dir in $PATH; do
970 IFS=$ac_save_IFS
971 # Account for people who put trailing slashes in PATH elements.
972 case $ac_dir/ in
973 / | ./ | .// | /cC/* \
974 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
975 | /usr/ucb/* ) ;;
976 *)
977 # OSF1 and SCO ODT 3.0 have their own names for install.
978 # Don't use installbsd from OSF since it installs stuff as root
979 # by default.
980 for ac_prog in ginstall scoinst install; do
981 if $as_executable_p "$ac_dir/$ac_prog"; then
982 if test $ac_prog = install &&
983 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
984 # AIX install. It has an incompatible calling convention.
985 :
986 elif test $ac_prog = install &&
987 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
988 # program-specific install script used by HP pwplus--don't use.
989 :
990 else
991 ac_cv_path_install="$ac_dir/$ac_prog -c"
992 break 2
993 fi
994 fi
50850385 995 done
e61fbf76
TJ
996 ;;
997 esac
998 done
50850385
TJ
999
1000fi
1001 if test "${ac_cv_path_install+set}" = set; then
1002 INSTALL=$ac_cv_path_install
1003 else
1004 # As a last resort, use the slow shell script. We don't cache a
1005 # path for INSTALL within a source directory, because that will
1006 # break other packages using the cache if that directory is
1007 # removed, or if the path is relative.
1008 INSTALL=$ac_install_sh
1009 fi
1010fi
3bb2c27e 1011echo "$as_me:1011: result: $INSTALL" >&5
50850385
TJ
1012echo "${ECHO_T}$INSTALL" >&6
1013
1014# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1015# It thinks the first close brace ends the variable substitution.
1016test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1017
1018test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1019
1020test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1021
3bb2c27e 1022echo "$as_me:1022: checking whether build environment is sane" >&5
50850385
TJ
1023echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1024# Just in case
1025sleep 1
3bb2c27e 1026echo timestamp > conftestfile
50850385
TJ
1027# Do `set' in a subshell so we don't clobber the current shell's
1028# arguments. Must try -L first in case configure is actually a
1029# symlink; some systems play weird games with the mod time of symlinks
1030# (eg FreeBSD returns the mod time of the symlink's containing
1031# directory).
1032if (
3bb2c27e 1033 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
50850385
TJ
1034 if test "$*" = "X"; then
1035 # -L didn't work.
3bb2c27e 1036 set X `ls -t $srcdir/configure conftestfile`
50850385 1037 fi
3bb2c27e
GE
1038 if test "$*" != "X $srcdir/configure conftestfile" \
1039 && test "$*" != "X conftestfile $srcdir/configure"; then
50850385
TJ
1040
1041 # If neither matched, then we have a broken ls. This can happen
1042 # if, for instance, CONFIG_SHELL is bash and it inherits a
1043 # broken ls alias from the environment. This has actually
1044 # happened. Such a system could not be considered "sane".
3bb2c27e 1045 { { echo "$as_me:1045: error: ls -t appears to fail. Make sure there is not a broken
50850385
TJ
1046alias in your environment" >&5
1047echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1048alias in your environment" >&2;}
1049 { (exit 1); exit 1; }; }
1050 fi
1051
3bb2c27e 1052 test "$2" = conftestfile
50850385
TJ
1053 )
1054then
1055 # Ok.
1056 :
1057else
3bb2c27e 1058 { { echo "$as_me:1058: error: newly created file is older than distributed files!
50850385
TJ
1059Check your system clock" >&5
1060echo "$as_me: error: newly created file is older than distributed files!
1061Check your system clock" >&2;}
1062 { (exit 1); exit 1; }; }
1063fi
3bb2c27e
GE
1064rm -f conftest*
1065echo "$as_me:1065: result: yes" >&5
50850385 1066echo "${ECHO_T}yes" >&6
3bb2c27e
GE
1067test "$program_prefix" != NONE &&
1068 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1069# Use a double $ so make ignores it.
1070test "$program_suffix" != NONE &&
1071 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1072# Double any \ or $. echo might interpret backslashes.
1073# By default was `s,x,x', remove it if useless.
1074cat <<\_ACEOF >conftest.sed
1075s/[\\$]/&&/g;s/;s,x,x,$//
1076_ACEOF
1077program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1078rm conftest.sed
50850385 1079
3bb2c27e 1080echo "$as_me:1080: checking whether ${MAKE-make} sets \${MAKE}" >&5
50850385
TJ
1081echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1082set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1083if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1084 echo $ECHO_N "(cached) $ECHO_C" >&6
1085else
e61fbf76 1086 cat >conftest.make <<\EOF
50850385
TJ
1087all:
1088 @echo 'ac_maketemp="${MAKE}"'
e61fbf76 1089EOF
50850385
TJ
1090# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1091eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1092if test -n "$ac_maketemp"; then
1093 eval ac_cv_prog_make_${ac_make}_set=yes
1094else
1095 eval ac_cv_prog_make_${ac_make}_set=no
1096fi
1097rm -f conftest.make
1098fi
1099if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3bb2c27e 1100 echo "$as_me:1100: result: yes" >&5
50850385
TJ
1101echo "${ECHO_T}yes" >&6
1102 SET_MAKE=
1103else
3bb2c27e 1104 echo "$as_me:1104: result: no" >&5
50850385
TJ
1105echo "${ECHO_T}no" >&6
1106 SET_MAKE="MAKE=${MAKE-make}"
1107fi
1108
3bb2c27e
GE
1109PACKAGE=ftdi_eeprom
1110
1111VERSION=0.2
1112
1113if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1114 { { echo "$as_me:1114: error: source directory already configured; run \"make distclean\" there first" >&5
50850385
TJ
1115echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1116 { (exit 1); exit 1; }; }
1117fi
1118
e61fbf76 1119cat >>confdefs.h <<EOF
50850385 1120#define PACKAGE "$PACKAGE"
e61fbf76 1121EOF
50850385 1122
e61fbf76 1123cat >>confdefs.h <<EOF
50850385 1124#define VERSION "$VERSION"
e61fbf76 1125EOF
50850385 1126
3bb2c27e
GE
1127missing_dir=`cd $ac_aux_dir && pwd`
1128echo "$as_me:1128: checking for working aclocal" >&5
1129echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1130# Run test in a subshell; some versions of sh will print an error if
1131# an executable is not found, even if stderr is redirected.
1132# Redirect stdin to placate older versions of autoconf. Sigh.
1133if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1134 ACLOCAL=aclocal
1135 echo "$as_me:1135: result: found" >&5
1136echo "${ECHO_T}found" >&6
1137else
1138 ACLOCAL="$missing_dir/missing aclocal"
1139 echo "$as_me:1139: result: missing" >&5
1140echo "${ECHO_T}missing" >&6
1141fi
1142
1143echo "$as_me:1143: checking for working autoconf" >&5
1144echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1145# Run test in a subshell; some versions of sh will print an error if
1146# an executable is not found, even if stderr is redirected.
1147# Redirect stdin to placate older versions of autoconf. Sigh.
1148if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1149 AUTOCONF=autoconf
1150 echo "$as_me:1150: result: found" >&5
1151echo "${ECHO_T}found" >&6
1152else
1153 AUTOCONF="$missing_dir/missing autoconf"
1154 echo "$as_me:1154: result: missing" >&5
1155echo "${ECHO_T}missing" >&6
1156fi
1157
1158echo "$as_me:1158: checking for working automake" >&5
1159echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1160# Run test in a subshell; some versions of sh will print an error if
1161# an executable is not found, even if stderr is redirected.
1162# Redirect stdin to placate older versions of autoconf. Sigh.
1163if (automake --version) < /dev/null > /dev/null 2>&1; then
1164 AUTOMAKE=automake
1165 echo "$as_me:1165: result: found" >&5
1166echo "${ECHO_T}found" >&6
1167else
1168 AUTOMAKE="$missing_dir/missing automake"
1169 echo "$as_me:1169: result: missing" >&5
1170echo "${ECHO_T}missing" >&6
1171fi
1172
1173echo "$as_me:1173: checking for working autoheader" >&5
1174echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1175# Run test in a subshell; some versions of sh will print an error if
1176# an executable is not found, even if stderr is redirected.
1177# Redirect stdin to placate older versions of autoconf. Sigh.
1178if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1179 AUTOHEADER=autoheader
1180 echo "$as_me:1180: result: found" >&5
1181echo "${ECHO_T}found" >&6
1182else
1183 AUTOHEADER="$missing_dir/missing autoheader"
1184 echo "$as_me:1184: result: missing" >&5
1185echo "${ECHO_T}missing" >&6
1186fi
1187
1188echo "$as_me:1188: checking for working makeinfo" >&5
1189echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1190# Run test in a subshell; some versions of sh will print an error if
1191# an executable is not found, even if stderr is redirected.
1192# Redirect stdin to placate older versions of autoconf. Sigh.
1193if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1194 MAKEINFO=makeinfo
1195 echo "$as_me:1195: result: found" >&5
1196echo "${ECHO_T}found" >&6
1197else
1198 MAKEINFO="$missing_dir/missing makeinfo"
1199 echo "$as_me:1199: result: missing" >&5
1200echo "${ECHO_T}missing" >&6
50850385 1201fi
50850385 1202
3bb2c27e
GE
1203ac_ext=c
1204ac_cpp='$CPP $CPPFLAGS'
1205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1207ac_compiler_gnu=$ac_cv_c_compiler_gnu
50850385 1208
3bb2c27e 1209ac_ext=c
50850385
TJ
1210ac_cpp='$CPP $CPPFLAGS'
1211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1213ac_compiler_gnu=$ac_cv_c_compiler_gnu
1214if test -n "$ac_tool_prefix"; then
1215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1216set dummy ${ac_tool_prefix}gcc; ac_word=$2
3bb2c27e 1217echo "$as_me:1217: checking for $ac_word" >&5
50850385
TJ
1218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219if test "${ac_cv_prog_CC+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1221else
1222 if test -n "$CC"; then
1223 ac_cv_prog_CC="$CC" # Let the user override the test.
1224else
e61fbf76
TJ
1225 ac_save_IFS=$IFS; IFS=$ac_path_separator
1226ac_dummy="$PATH"
1227for ac_dir in $ac_dummy; do
1228 IFS=$ac_save_IFS
1229 test -z "$ac_dir" && ac_dir=.
1230 $as_executable_p "$ac_dir/$ac_word" || continue
1231ac_cv_prog_CC="${ac_tool_prefix}gcc"
3bb2c27e 1232echo "$as_me:1232: found $ac_dir/$ac_word" >&5
e61fbf76 1233break
50850385
TJ
1234done
1235
1236fi
1237fi
1238CC=$ac_cv_prog_CC
1239if test -n "$CC"; then
3bb2c27e 1240 echo "$as_me:1240: result: $CC" >&5
50850385
TJ
1241echo "${ECHO_T}$CC" >&6
1242else
3bb2c27e 1243 echo "$as_me:1243: result: no" >&5
50850385
TJ
1244echo "${ECHO_T}no" >&6
1245fi
1246
1247fi
1248if test -z "$ac_cv_prog_CC"; then
1249 ac_ct_CC=$CC
1250 # Extract the first word of "gcc", so it can be a program name with args.
1251set dummy gcc; ac_word=$2
3bb2c27e 1252echo "$as_me:1252: checking for $ac_word" >&5
50850385
TJ
1253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1254if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1255 echo $ECHO_N "(cached) $ECHO_C" >&6
1256else
1257 if test -n "$ac_ct_CC"; then
1258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1259else
e61fbf76
TJ
1260 ac_save_IFS=$IFS; IFS=$ac_path_separator
1261ac_dummy="$PATH"
1262for ac_dir in $ac_dummy; do
1263 IFS=$ac_save_IFS
1264 test -z "$ac_dir" && ac_dir=.
1265 $as_executable_p "$ac_dir/$ac_word" || continue
1266ac_cv_prog_ac_ct_CC="gcc"
3bb2c27e 1267echo "$as_me:1267: found $ac_dir/$ac_word" >&5
e61fbf76 1268break
50850385
TJ
1269done
1270
1271fi
1272fi
1273ac_ct_CC=$ac_cv_prog_ac_ct_CC
1274if test -n "$ac_ct_CC"; then
3bb2c27e 1275 echo "$as_me:1275: result: $ac_ct_CC" >&5
50850385
TJ
1276echo "${ECHO_T}$ac_ct_CC" >&6
1277else
3bb2c27e 1278 echo "$as_me:1278: result: no" >&5
50850385
TJ
1279echo "${ECHO_T}no" >&6
1280fi
1281
1282 CC=$ac_ct_CC
1283else
1284 CC="$ac_cv_prog_CC"
1285fi
1286
1287if test -z "$CC"; then
1288 if test -n "$ac_tool_prefix"; then
1289 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1290set dummy ${ac_tool_prefix}cc; ac_word=$2
3bb2c27e 1291echo "$as_me:1291: checking for $ac_word" >&5
50850385
TJ
1292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1293if test "${ac_cv_prog_CC+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1295else
1296 if test -n "$CC"; then
1297 ac_cv_prog_CC="$CC" # Let the user override the test.
1298else
e61fbf76
TJ
1299 ac_save_IFS=$IFS; IFS=$ac_path_separator
1300ac_dummy="$PATH"
1301for ac_dir in $ac_dummy; do
1302 IFS=$ac_save_IFS
1303 test -z "$ac_dir" && ac_dir=.
1304 $as_executable_p "$ac_dir/$ac_word" || continue
1305ac_cv_prog_CC="${ac_tool_prefix}cc"
3bb2c27e 1306echo "$as_me:1306: found $ac_dir/$ac_word" >&5
e61fbf76 1307break
50850385
TJ
1308done
1309
1310fi
1311fi
1312CC=$ac_cv_prog_CC
1313if test -n "$CC"; then
3bb2c27e 1314 echo "$as_me:1314: result: $CC" >&5
50850385
TJ
1315echo "${ECHO_T}$CC" >&6
1316else
3bb2c27e 1317 echo "$as_me:1317: result: no" >&5
50850385
TJ
1318echo "${ECHO_T}no" >&6
1319fi
1320
1321fi
1322if test -z "$ac_cv_prog_CC"; then
1323 ac_ct_CC=$CC
1324 # Extract the first word of "cc", so it can be a program name with args.
1325set dummy cc; ac_word=$2
3bb2c27e 1326echo "$as_me:1326: checking for $ac_word" >&5
50850385
TJ
1327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1328if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1329 echo $ECHO_N "(cached) $ECHO_C" >&6
1330else
1331 if test -n "$ac_ct_CC"; then
1332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1333else
e61fbf76
TJ
1334 ac_save_IFS=$IFS; IFS=$ac_path_separator
1335ac_dummy="$PATH"
1336for ac_dir in $ac_dummy; do
1337 IFS=$ac_save_IFS
1338 test -z "$ac_dir" && ac_dir=.
1339 $as_executable_p "$ac_dir/$ac_word" || continue
1340ac_cv_prog_ac_ct_CC="cc"
3bb2c27e 1341echo "$as_me:1341: found $ac_dir/$ac_word" >&5
e61fbf76 1342break
50850385
TJ
1343done
1344
1345fi
1346fi
1347ac_ct_CC=$ac_cv_prog_ac_ct_CC
1348if test -n "$ac_ct_CC"; then
3bb2c27e 1349 echo "$as_me:1349: result: $ac_ct_CC" >&5
50850385
TJ
1350echo "${ECHO_T}$ac_ct_CC" >&6
1351else
3bb2c27e 1352 echo "$as_me:1352: result: no" >&5
50850385
TJ
1353echo "${ECHO_T}no" >&6
1354fi
1355
1356 CC=$ac_ct_CC
1357else
1358 CC="$ac_cv_prog_CC"
1359fi
1360
1361fi
1362if test -z "$CC"; then
1363 # Extract the first word of "cc", so it can be a program name with args.
1364set dummy cc; ac_word=$2
3bb2c27e 1365echo "$as_me:1365: checking for $ac_word" >&5
50850385
TJ
1366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367if test "${ac_cv_prog_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369else
1370 if test -n "$CC"; then
1371 ac_cv_prog_CC="$CC" # Let the user override the test.
1372else
1373 ac_prog_rejected=no
e61fbf76
TJ
1374 ac_save_IFS=$IFS; IFS=$ac_path_separator
1375ac_dummy="$PATH"
1376for ac_dir in $ac_dummy; do
1377 IFS=$ac_save_IFS
1378 test -z "$ac_dir" && ac_dir=.
1379 $as_executable_p "$ac_dir/$ac_word" || continue
1380if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1381 ac_prog_rejected=yes
1382 continue
1383fi
1384ac_cv_prog_CC="cc"
3bb2c27e 1385echo "$as_me:1385: found $ac_dir/$ac_word" >&5
e61fbf76 1386break
50850385
TJ
1387done
1388
1389if test $ac_prog_rejected = yes; then
1390 # We found a bogon in the path, so make sure we never use it.
1391 set dummy $ac_cv_prog_CC
1392 shift
1393 if test $# != 0; then
1394 # We chose a different compiler from the bogus one.
1395 # However, it has the same basename, so the bogon will be chosen
1396 # first if we set CC to just the basename; use the full file name.
1397 shift
e61fbf76 1398 set dummy "$ac_dir/$ac_word" ${1+"$@"}
50850385
TJ
1399 shift
1400 ac_cv_prog_CC="$@"
1401 fi
1402fi
1403fi
1404fi
1405CC=$ac_cv_prog_CC
1406if test -n "$CC"; then
3bb2c27e 1407 echo "$as_me:1407: result: $CC" >&5
50850385
TJ
1408echo "${ECHO_T}$CC" >&6
1409else
3bb2c27e 1410 echo "$as_me:1410: result: no" >&5
50850385
TJ
1411echo "${ECHO_T}no" >&6
1412fi
1413
1414fi
1415if test -z "$CC"; then
1416 if test -n "$ac_tool_prefix"; then
1417 for ac_prog in cl
1418 do
1419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1420set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3bb2c27e 1421echo "$as_me:1421: checking for $ac_word" >&5
50850385
TJ
1422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423if test "${ac_cv_prog_CC+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1425else
1426 if test -n "$CC"; then
1427 ac_cv_prog_CC="$CC" # Let the user override the test.
1428else
e61fbf76
TJ
1429 ac_save_IFS=$IFS; IFS=$ac_path_separator
1430ac_dummy="$PATH"
1431for ac_dir in $ac_dummy; do
1432 IFS=$ac_save_IFS
1433 test -z "$ac_dir" && ac_dir=.
1434 $as_executable_p "$ac_dir/$ac_word" || continue
1435ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3bb2c27e 1436echo "$as_me:1436: found $ac_dir/$ac_word" >&5
e61fbf76 1437break
50850385
TJ
1438done
1439
1440fi
1441fi
1442CC=$ac_cv_prog_CC
1443if test -n "$CC"; then
3bb2c27e 1444 echo "$as_me:1444: result: $CC" >&5
50850385
TJ
1445echo "${ECHO_T}$CC" >&6
1446else
3bb2c27e 1447 echo "$as_me:1447: result: no" >&5
50850385
TJ
1448echo "${ECHO_T}no" >&6
1449fi
1450
1451 test -n "$CC" && break
1452 done
1453fi
1454if test -z "$CC"; then
1455 ac_ct_CC=$CC
1456 for ac_prog in cl
1457do
1458 # Extract the first word of "$ac_prog", so it can be a program name with args.
1459set dummy $ac_prog; ac_word=$2
3bb2c27e 1460echo "$as_me:1460: checking for $ac_word" >&5
50850385
TJ
1461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464else
1465 if test -n "$ac_ct_CC"; then
1466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1467else
e61fbf76
TJ
1468 ac_save_IFS=$IFS; IFS=$ac_path_separator
1469ac_dummy="$PATH"
1470for ac_dir in $ac_dummy; do
1471 IFS=$ac_save_IFS
1472 test -z "$ac_dir" && ac_dir=.
1473 $as_executable_p "$ac_dir/$ac_word" || continue
1474ac_cv_prog_ac_ct_CC="$ac_prog"
3bb2c27e 1475echo "$as_me:1475: found $ac_dir/$ac_word" >&5
e61fbf76 1476break
50850385
TJ
1477done
1478
1479fi
1480fi
1481ac_ct_CC=$ac_cv_prog_ac_ct_CC
1482if test -n "$ac_ct_CC"; then
3bb2c27e 1483 echo "$as_me:1483: result: $ac_ct_CC" >&5
50850385
TJ
1484echo "${ECHO_T}$ac_ct_CC" >&6
1485else
3bb2c27e 1486 echo "$as_me:1486: result: no" >&5
50850385
TJ
1487echo "${ECHO_T}no" >&6
1488fi
1489
1490 test -n "$ac_ct_CC" && break
1491done
1492
1493 CC=$ac_ct_CC
1494fi
1495
1496fi
1497
3bb2c27e 1498test -z "$CC" && { { echo "$as_me:1498: error: no acceptable cc found in \$PATH" >&5
e61fbf76 1499echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
50850385
TJ
1500 { (exit 1); exit 1; }; }
1501
1502# Provide some information about the compiler.
3bb2c27e 1503echo "$as_me:1503:" \
50850385
TJ
1504 "checking for C compiler version" >&5
1505ac_compiler=`set X $ac_compile; echo $2`
3bb2c27e 1506{ (eval echo "$as_me:1506: \"$ac_compiler --version </dev/null >&5\"") >&5
50850385
TJ
1507 (eval $ac_compiler --version </dev/null >&5) 2>&5
1508 ac_status=$?
3bb2c27e 1509 echo "$as_me:1509: \$? = $ac_status" >&5
50850385 1510 (exit $ac_status); }
3bb2c27e 1511{ (eval echo "$as_me:1511: \"$ac_compiler -v </dev/null >&5\"") >&5
50850385
TJ
1512 (eval $ac_compiler -v </dev/null >&5) 2>&5
1513 ac_status=$?
3bb2c27e 1514 echo "$as_me:1514: \$? = $ac_status" >&5
50850385 1515 (exit $ac_status); }
3bb2c27e 1516{ (eval echo "$as_me:1516: \"$ac_compiler -V </dev/null >&5\"") >&5
50850385
TJ
1517 (eval $ac_compiler -V </dev/null >&5) 2>&5
1518 ac_status=$?
3bb2c27e 1519 echo "$as_me:1519: \$? = $ac_status" >&5
50850385
TJ
1520 (exit $ac_status); }
1521
1522cat >conftest.$ac_ext <<_ACEOF
3bb2c27e 1523#line 1523 "configure"
50850385
TJ
1524#include "confdefs.h"
1525
50850385
TJ
1526int
1527main ()
1528{
1529
1530 ;
1531 return 0;
1532}
1533_ACEOF
1534ac_clean_files_save=$ac_clean_files
1535ac_clean_files="$ac_clean_files a.out a.exe"
1536# Try to create an executable without -o first, disregard a.out.
1537# It will help us diagnose broken compilers, and finding out an intuition
1538# of exeext.
3bb2c27e 1539echo "$as_me:1539: checking for C compiler default output" >&5
50850385
TJ
1540echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1541ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3bb2c27e 1542if { (eval echo "$as_me:1542: \"$ac_link_default\"") >&5
50850385
TJ
1543 (eval $ac_link_default) 2>&5
1544 ac_status=$?
3bb2c27e 1545 echo "$as_me:1545: \$? = $ac_status" >&5
50850385
TJ
1546 (exit $ac_status); }; then
1547 # Find the output, starting from the most likely. This scheme is
1548# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1549# resort.
e61fbf76 1550for ac_file in `ls a.exe conftest.exe 2>/dev/null;
50850385
TJ
1551 ls a.out conftest 2>/dev/null;
1552 ls a.* conftest.* 2>/dev/null`; do
1553 case $ac_file in
e61fbf76 1554 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
50850385
TJ
1555 a.out ) # We found the default executable, but exeext='' is most
1556 # certainly right.
1557 break;;
1558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1559 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1560 export ac_cv_exeext
1561 break;;
1562 * ) break;;
1563 esac
1564done
1565else
1566 echo "$as_me: failed program was:" >&5
1567cat conftest.$ac_ext >&5
3bb2c27e 1568{ { echo "$as_me:1568: error: C compiler cannot create executables" >&5
50850385
TJ
1569echo "$as_me: error: C compiler cannot create executables" >&2;}
1570 { (exit 77); exit 77; }; }
1571fi
1572
1573ac_exeext=$ac_cv_exeext
3bb2c27e 1574echo "$as_me:1574: result: $ac_file" >&5
50850385
TJ
1575echo "${ECHO_T}$ac_file" >&6
1576
1577# Check the compiler produces executables we can run. If not, either
1578# the compiler is broken, or we cross compile.
3bb2c27e 1579echo "$as_me:1579: checking whether the C compiler works" >&5
50850385
TJ
1580echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1581# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1582# If not cross compiling, check that we can run a simple program.
1583if test "$cross_compiling" != yes; then
1584 if { ac_try='./$ac_file'
3bb2c27e 1585 { (eval echo "$as_me:1585: \"$ac_try\"") >&5
50850385
TJ
1586 (eval $ac_try) 2>&5
1587 ac_status=$?
3bb2c27e 1588 echo "$as_me:1588: \$? = $ac_status" >&5
50850385
TJ
1589 (exit $ac_status); }; }; then
1590 cross_compiling=no
1591 else
1592 if test "$cross_compiling" = maybe; then
1593 cross_compiling=yes
1594 else
3bb2c27e 1595 { { echo "$as_me:1595: error: cannot run C compiled programs.
50850385
TJ
1596If you meant to cross compile, use \`--host'." >&5
1597echo "$as_me: error: cannot run C compiled programs.
1598If you meant to cross compile, use \`--host'." >&2;}
1599 { (exit 1); exit 1; }; }
1600 fi
1601 fi
1602fi
3bb2c27e 1603echo "$as_me:1603: result: yes" >&5
50850385
TJ
1604echo "${ECHO_T}yes" >&6
1605
1606rm -f a.out a.exe conftest$ac_cv_exeext
1607ac_clean_files=$ac_clean_files_save
1608# Check the compiler produces executables we can run. If not, either
1609# the compiler is broken, or we cross compile.
3bb2c27e 1610echo "$as_me:1610: checking whether we are cross compiling" >&5
50850385 1611echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3bb2c27e 1612echo "$as_me:1612: result: $cross_compiling" >&5
50850385
TJ
1613echo "${ECHO_T}$cross_compiling" >&6
1614
3bb2c27e 1615echo "$as_me:1615: checking for executable suffix" >&5
e61fbf76 1616echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
3bb2c27e 1617if { (eval echo "$as_me:1617: \"$ac_link\"") >&5
50850385
TJ
1618 (eval $ac_link) 2>&5
1619 ac_status=$?
3bb2c27e 1620 echo "$as_me:1620: \$? = $ac_status" >&5
50850385
TJ
1621 (exit $ac_status); }; then
1622 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1623# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1624# work properly (i.e., refer to `conftest.exe'), while it won't with
1625# `rm'.
1626for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1627 case $ac_file in
1628 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1629 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1630 export ac_cv_exeext
1631 break;;
1632 * ) break;;
1633 esac
1634done
1635else
3bb2c27e 1636 { { echo "$as_me:1636: error: cannot compute EXEEXT: cannot compile and link" >&5
e61fbf76 1637echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
50850385
TJ
1638 { (exit 1); exit 1; }; }
1639fi
1640
1641rm -f conftest$ac_cv_exeext
3bb2c27e 1642echo "$as_me:1642: result: $ac_cv_exeext" >&5
50850385
TJ
1643echo "${ECHO_T}$ac_cv_exeext" >&6
1644
1645rm -f conftest.$ac_ext
1646EXEEXT=$ac_cv_exeext
1647ac_exeext=$EXEEXT
3bb2c27e 1648echo "$as_me:1648: checking for object suffix" >&5
e61fbf76 1649echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
50850385
TJ
1650if test "${ac_cv_objext+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653 cat >conftest.$ac_ext <<_ACEOF
3bb2c27e 1654#line 1654 "configure"
50850385
TJ
1655#include "confdefs.h"
1656
50850385
TJ
1657int
1658main ()
1659{
1660
1661 ;
1662 return 0;
1663}
1664_ACEOF
1665rm -f conftest.o conftest.obj
3bb2c27e 1666if { (eval echo "$as_me:1666: \"$ac_compile\"") >&5
50850385
TJ
1667 (eval $ac_compile) 2>&5
1668 ac_status=$?
3bb2c27e 1669 echo "$as_me:1669: \$? = $ac_status" >&5
50850385
TJ
1670 (exit $ac_status); }; then
1671 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1672 case $ac_file in
1673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1674 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1675 break;;
1676 esac
1677done
1678else
1679 echo "$as_me: failed program was:" >&5
1680cat conftest.$ac_ext >&5
3bb2c27e 1681{ { echo "$as_me:1681: error: cannot compute OBJEXT: cannot compile" >&5
e61fbf76 1682echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
50850385
TJ
1683 { (exit 1); exit 1; }; }
1684fi
1685
1686rm -f conftest.$ac_cv_objext conftest.$ac_ext
1687fi
3bb2c27e 1688echo "$as_me:1688: result: $ac_cv_objext" >&5
50850385
TJ
1689echo "${ECHO_T}$ac_cv_objext" >&6
1690OBJEXT=$ac_cv_objext
1691ac_objext=$OBJEXT
3bb2c27e 1692echo "$as_me:1692: checking whether we are using the GNU C compiler" >&5
50850385
TJ
1693echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1694if test "${ac_cv_c_compiler_gnu+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696else
1697 cat >conftest.$ac_ext <<_ACEOF
3bb2c27e 1698#line 1698 "configure"
50850385
TJ
1699#include "confdefs.h"
1700
50850385
TJ
1701int
1702main ()
1703{
1704#ifndef __GNUC__
1705 choke me
1706#endif
1707
1708 ;
1709 return 0;
1710}
1711_ACEOF
1712rm -f conftest.$ac_objext
3bb2c27e 1713if { (eval echo "$as_me:1713: \"$ac_compile\"") >&5
50850385
TJ
1714 (eval $ac_compile) 2>&5
1715 ac_status=$?
3bb2c27e 1716 echo "$as_me:1716: \$? = $ac_status" >&5
50850385
TJ
1717 (exit $ac_status); } &&
1718 { ac_try='test -s conftest.$ac_objext'
3bb2c27e 1719 { (eval echo "$as_me:1719: \"$ac_try\"") >&5
50850385
TJ
1720 (eval $ac_try) 2>&5
1721 ac_status=$?
3bb2c27e 1722 echo "$as_me:1722: \$? = $ac_status" >&5
50850385
TJ
1723 (exit $ac_status); }; }; then
1724 ac_compiler_gnu=yes
1725else
1726 echo "$as_me: failed program was:" >&5
1727cat conftest.$ac_ext >&5
1728ac_compiler_gnu=no
1729fi
1730rm -f conftest.$ac_objext conftest.$ac_ext
1731ac_cv_c_compiler_gnu=$ac_compiler_gnu
1732
1733fi
3bb2c27e 1734echo "$as_me:1734: result: $ac_cv_c_compiler_gnu" >&5
50850385
TJ
1735echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1736GCC=`test $ac_compiler_gnu = yes && echo yes`
1737ac_test_CFLAGS=${CFLAGS+set}
1738ac_save_CFLAGS=$CFLAGS
1739CFLAGS="-g"
3bb2c27e 1740echo "$as_me:1740: checking whether $CC accepts -g" >&5
50850385
TJ
1741echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1742if test "${ac_cv_prog_cc_g+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 cat >conftest.$ac_ext <<_ACEOF
3bb2c27e 1746#line 1746 "configure"
50850385
TJ
1747#include "confdefs.h"
1748
50850385
TJ
1749int
1750main ()
1751{
1752
1753 ;
1754 return 0;
1755}
1756_ACEOF
1757rm -f conftest.$ac_objext
3bb2c27e 1758if { (eval echo "$as_me:1758: \"$ac_compile\"") >&5
50850385
TJ
1759 (eval $ac_compile) 2>&5
1760 ac_status=$?
3bb2c27e 1761 echo "$as_me:1761: \$? = $ac_status" >&5
50850385
TJ
1762 (exit $ac_status); } &&
1763 { ac_try='test -s conftest.$ac_objext'
3bb2c27e 1764 { (eval echo "$as_me:1764: \"$ac_try\"") >&5
50850385
TJ
1765 (eval $ac_try) 2>&5
1766 ac_status=$?
3bb2c27e 1767 echo "$as_me:1767: \$? = $ac_status" >&5
50850385
TJ
1768 (exit $ac_status); }; }; then
1769 ac_cv_prog_cc_g=yes
1770else
1771 echo "$as_me: failed program was:" >&5
1772cat conftest.$ac_ext >&5
1773ac_cv_prog_cc_g=no
1774fi
1775rm -f conftest.$ac_objext conftest.$ac_ext
1776fi
3bb2c27e 1777echo "$as_me:1777: result: $ac_cv_prog_cc_g" >&5
50850385
TJ
1778echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1779if test "$ac_test_CFLAGS" = set; then
1780 CFLAGS=$ac_save_CFLAGS
1781elif test $ac_cv_prog_cc_g = yes; then
1782 if test "$GCC" = yes; then
1783 CFLAGS="-g -O2"
1784 else
1785 CFLAGS="-g"
1786 fi
1787else
1788 if test "$GCC" = yes; then
1789 CFLAGS="-O2"
1790 else
1791 CFLAGS=
1792 fi
1793fi
1794# Some people use a C++ compiler to compile C. Since we use `exit',
1795# in C++ we need to declare it. In case someone uses the same compiler
1796# for both compiling C and C++ we need to have the C++ compiler decide
1797# the declaration of exit, since it's the most demanding environment.
1798cat >conftest.$ac_ext <<_ACEOF
1799#ifndef __cplusplus
1800 choke me
1801#endif
1802_ACEOF
1803rm -f conftest.$ac_objext
3bb2c27e 1804if { (eval echo "$as_me:1804: \"$ac_compile\"") >&5
50850385
TJ
1805 (eval $ac_compile) 2>&5
1806 ac_status=$?
3bb2c27e 1807 echo "$as_me:1807: \$? = $ac_status" >&5
50850385
TJ
1808 (exit $ac_status); } &&
1809 { ac_try='test -s conftest.$ac_objext'
3bb2c27e 1810 { (eval echo "$as_me:1810: \"$ac_try\"") >&5
50850385
TJ
1811 (eval $ac_try) 2>&5
1812 ac_status=$?
3bb2c27e 1813 echo "$as_me:1813: \$? = $ac_status" >&5
50850385
TJ
1814 (exit $ac_status); }; }; then
1815 for ac_declaration in \
1816 ''\
1817 '#include <stdlib.h>' \
1818 'extern "C" void std::exit (int) throw (); using std::exit;' \
1819 'extern "C" void std::exit (int); using std::exit;' \
1820 'extern "C" void exit (int) throw ();' \
1821 'extern "C" void exit (int);' \
1822 'void exit (int);'
1823do
1824 cat >conftest.$ac_ext <<_ACEOF
3bb2c27e 1825#line 1825 "configure"
50850385
TJ
1826#include "confdefs.h"
1827#include <stdlib.h>
1828$ac_declaration
50850385
TJ
1829int
1830main ()
1831{
1832exit (42);
1833 ;
1834 return 0;
1835}
1836_ACEOF
1837rm -f conftest.$ac_objext
3bb2c27e 1838if { (eval echo "$as_me:1838: \"$ac_compile\"") >&5
50850385
TJ
1839 (eval $ac_compile) 2>&5
1840 ac_status=$?
3bb2c27e 1841 echo "$as_me:1841: \$? = $ac_status" >&5
50850385
TJ
1842 (exit $ac_status); } &&
1843 { ac_try='test -s conftest.$ac_objext'
3bb2c27e 1844 { (eval echo "$as_me:1844: \"$ac_try\"") >&5
50850385
TJ
1845 (eval $ac_try) 2>&5
1846 ac_status=$?
3bb2c27e 1847 echo "$as_me:1847: \$? = $ac_status" >&5
50850385
TJ
1848 (exit $ac_status); }; }; then
1849 :
1850else
1851 echo "$as_me: failed program was:" >&5
1852cat conftest.$ac_ext >&5
1853continue
1854fi
1855rm -f conftest.$ac_objext conftest.$ac_ext
1856 cat >conftest.$ac_ext <<_ACEOF
3bb2c27e 1857#line 1857 "configure"
50850385
TJ
1858#include "confdefs.h"
1859$ac_declaration
50850385
TJ
1860int
1861main ()
1862{
1863exit (42);
1864 ;
1865 return 0;
1866}
1867_ACEOF
1868rm -f conftest.$ac_objext
3bb2c27e 1869if { (eval echo "$as_me:1869: \"$ac_compile\"") >&5
50850385
TJ
1870 (eval $ac_compile) 2>&5
1871 ac_status=$?
3bb2c27e 1872 echo "$as_me:1872: \$? = $ac_status" >&5
50850385
TJ
1873 (exit $ac_status); } &&
1874 { ac_try='test -s conftest.$ac_objext'
3bb2c27e 1875 { (eval echo "$as_me:1875: \"$ac_try\"") >&5
50850385
TJ
1876 (eval $ac_try) 2>&5
1877 ac_status=$?
3bb2c27e 1878 echo "$as_me:1878: \$? = $ac_status" >&5
50850385
TJ
1879 (exit $ac_status); }; }; then
1880 break
1881else
1882 echo "$as_me: failed program was:" >&5
1883cat conftest.$ac_ext >&5
1884fi
1885rm -f conftest.$ac_objext conftest.$ac_ext
1886done
1887rm -f conftest*
1888if test -n "$ac_declaration"; then
1889 echo '#ifdef __cplusplus' >>confdefs.h
1890 echo $ac_declaration >>confdefs.h
1891 echo '#endif' >>confdefs.h
1892fi
1893
1894else
1895 echo "$as_me: failed program was:" >&5
1896cat conftest.$ac_ext >&5
1897fi
1898rm -f conftest.$ac_objext conftest.$ac_ext
1899ac_ext=c
1900ac_cpp='$CPP $CPPFLAGS'
1901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
3bb2c27e 1905echo "$as_me:1905: checking for cfg_getstr in -lconfuse" >&5
50850385
TJ
1906echo $ECHO_N "checking for cfg_getstr in -lconfuse... $ECHO_C" >&6
1907if test "${ac_cv_lib_confuse_cfg_getstr+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909else
1910 ac_check_lib_save_LIBS=$LIBS
1911LIBS="-lconfuse $LIBS"
1912cat >conftest.$ac_ext <<_ACEOF
3bb2c27e 1913#line 1913 "configure"
50850385
TJ
1914#include "confdefs.h"
1915
1916/* Override any gcc2 internal prototype to avoid an error. */
1917#ifdef __cplusplus
1918extern "C"
1919#endif
1920/* We use char because int might match the return type of a gcc2
1921 builtin and then its argument prototype would still apply. */
1922char cfg_getstr ();
50850385
TJ
1923int
1924main ()
1925{
1926cfg_getstr ();
1927 ;
1928 return 0;
1929}
1930_ACEOF
1931rm -f conftest.$ac_objext conftest$ac_exeext
3bb2c27e 1932if { (eval echo "$as_me:1932: \"$ac_link\"") >&5
50850385
TJ
1933 (eval $ac_link) 2>&5
1934 ac_status=$?
3bb2c27e 1935 echo "$as_me:1935: \$? = $ac_status" >&5
50850385
TJ
1936 (exit $ac_status); } &&
1937 { ac_try='test -s conftest$ac_exeext'
3bb2c27e 1938 { (eval echo "$as_me:1938: \"$ac_try\"") >&5
50850385
TJ
1939 (eval $ac_try) 2>&5
1940 ac_status=$?
3bb2c27e 1941 echo "$as_me:1941: \$? = $ac_status" >&5
50850385
TJ
1942 (exit $ac_status); }; }; then
1943 ac_cv_lib_confuse_cfg_getstr=yes
1944else
1945 echo "$as_me: failed program was:" >&5
1946cat conftest.$ac_ext >&5
1947ac_cv_lib_confuse_cfg_getstr=no
1948fi
1949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1950LIBS=$ac_check_lib_save_LIBS
1951fi
3bb2c27e 1952echo "$as_me:1952: result: $ac_cv_lib_confuse_cfg_getstr" >&5
50850385
TJ
1953echo "${ECHO_T}$ac_cv_lib_confuse_cfg_getstr" >&6
1954if test $ac_cv_lib_confuse_cfg_getstr = yes; then
e61fbf76 1955 cat >>confdefs.h <<EOF
50850385 1956#define HAVE_LIBCONFUSE 1
e61fbf76 1957EOF
50850385
TJ
1958
1959 LIBS="-lconfuse $LIBS"
1960
1961else
3bb2c27e 1962 { { echo "$as_me:1962: error: can't find confuse library" >&5
50850385
TJ
1963echo "$as_me: error: can't find confuse library" >&2;}
1964 { (exit 1); exit 1; }; }
1965fi
1966
3bb2c27e
GE
1967 succeeded=no
1968
1969 if test -z "$PKG_CONFIG"; then
1970 # Extract the first word of "pkg-config", so it can be a program name with args.
1971set dummy pkg-config; ac_word=$2
1972echo "$as_me:1972: checking for $ac_word" >&5
50850385 1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3bb2c27e 1974if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
50850385
TJ
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
3bb2c27e 1977 case $PKG_CONFIG in
50850385 1978 [\\/]* | ?:[\\/]*)
3bb2c27e 1979 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
50850385
TJ
1980 ;;
1981 *)
e61fbf76
TJ
1982 ac_save_IFS=$IFS; IFS=$ac_path_separator
1983ac_dummy="$PATH"
1984for ac_dir in $ac_dummy; do
1985 IFS=$ac_save_IFS
1986 test -z "$ac_dir" && ac_dir=.
1987 if $as_executable_p "$ac_dir/$ac_word"; then
3bb2c27e
GE
1988 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
1989 echo "$as_me:1989: found $ac_dir/$ac_word" >&5
e61fbf76
TJ
1990 break
1991fi
50850385
TJ
1992done
1993
3bb2c27e 1994 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
50850385
TJ
1995 ;;
1996esac
1997fi
3bb2c27e 1998PKG_CONFIG=$ac_cv_path_PKG_CONFIG
50850385 1999
3bb2c27e
GE
2000if test -n "$PKG_CONFIG"; then
2001 echo "$as_me:2001: result: $PKG_CONFIG" >&5
2002echo "${ECHO_T}$PKG_CONFIG" >&6
50850385 2003else
3bb2c27e 2004 echo "$as_me:2004: result: no" >&5
50850385
TJ
2005echo "${ECHO_T}no" >&6
2006fi
2007
3bb2c27e 2008 fi
50850385 2009
3bb2c27e
GE
2010 if test "$PKG_CONFIG" = "no" ; then
2011 echo "*** The pkg-config script could not be found. Make sure it is"
2012 echo "*** in your path, or set the PKG_CONFIG environment variable"
2013 echo "*** to the full path to pkg-config."
2014 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
2015 else
2016 PKG_CONFIG_MIN_VERSION=0.9.0
2017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2018 echo "$as_me:2018: checking for libftdi" >&5
2019echo $ECHO_N "checking for libftdi... $ECHO_C" >&6
50850385 2020
3bb2c27e
GE
2021 if $PKG_CONFIG --exists "libftdi" ; then
2022 echo "$as_me:2022: result: yes" >&5
2023echo "${ECHO_T}yes" >&6
2024 succeeded=yes
2025
2026 echo "$as_me:2026: checking LIBFTDI_CFLAGS" >&5
2027echo $ECHO_N "checking LIBFTDI_CFLAGS... $ECHO_C" >&6
2028 LIBFTDI_CFLAGS=`$PKG_CONFIG --cflags "libftdi"`
2029 echo "$as_me:2029: result: $LIBFTDI_CFLAGS" >&5
2030echo "${ECHO_T}$LIBFTDI_CFLAGS" >&6
2031
2032 echo "$as_me:2032: checking LIBFTDI_LIBS" >&5
2033echo $ECHO_N "checking LIBFTDI_LIBS... $ECHO_C" >&6
2034 LIBFTDI_LIBS=`$PKG_CONFIG --libs "libftdi"`
2035 echo "$as_me:2035: result: $LIBFTDI_LIBS" >&5
2036echo "${ECHO_T}$LIBFTDI_LIBS" >&6
2037 else
2038 LIBFTDI_CFLAGS=""
2039 LIBFTDI_LIBS=""
2040 ## If we have a custom action on failure, don't print errors, but
2041 ## do set a variable so people can do so.
2042 LIBFTDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libftdi"`
2043 echo $LIBFTDI_PKG_ERRORS
2044 fi
50850385 2045
3bb2c27e
GE
2046 else
2047 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
2048 echo "*** See http://www.freedesktop.org/software/pkgconfig"
2049 fi
50850385 2050 fi
3bb2c27e
GE
2051
2052 if test $succeeded = yes; then
2053 :
50850385 2054 else
3bb2c27e
GE
2055 { { echo "$as_me:2055: error: Library requirements (libftdi) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
2056echo "$as_me: error: Library requirements (libftdi) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
2057 { (exit 1); exit 1; }; }
50850385 2058 fi
50850385 2059
3bb2c27e 2060ac_config_files="$ac_config_files Makefile src/Makefile"
50850385
TJ
2061cat >confcache <<\_ACEOF
2062# This file is a shell script that caches the results of configure
2063# tests run on this system so they can be shared between configure
2064# scripts and configure runs, see configure's option --config-cache.
2065# It is not useful on other systems. If it contains results you don't
2066# want to keep, you may remove or edit it.
2067#
2068# config.status only pays attention to the cache file if you give it
2069# the --recheck option to rerun configure.
2070#
2071# `ac_cv_env_foo' variables (set or unset) will be overriden when
2072# loading this file, other *unset* `ac_cv_foo' will be assigned the
2073# following values.
2074
2075_ACEOF
2076
2077# The following way of writing the cache mishandles newlines in values,
2078# but we know of no workaround that is simple, portable, and efficient.
2079# So, don't put newlines in cache variables' values.
2080# Ultrix sh set writes to stderr and can't be redirected directly,
2081# and sets the high bit in the cache file unless we assign to the vars.
2082{
2083 (set) 2>&1 |
2084 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2085 *ac_space=\ *)
2086 # `set' does not quote correctly, so add quotes (double-quote
2087 # substitution turns \\\\ into \\, and sed turns \\ into \).
2088 sed -n \
2089 "s/'/'\\\\''/g;
2090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2091 ;;
2092 *)
2093 # `set' quotes correctly as required by POSIX, so do not add quotes.
2094 sed -n \
2095 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2096 ;;
2097 esac;
2098} |
2099 sed '
2100 t clear
2101 : clear
2102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2103 t end
2104 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2105 : end' >>confcache
2106if cmp -s $cache_file confcache; then :; else
2107 if test -w $cache_file; then
2108 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2109 cat confcache >$cache_file
2110 else
2111 echo "not updating unwritable cache $cache_file"
2112 fi
2113fi
2114rm -f confcache
2115
2116test "x$prefix" = xNONE && prefix=$ac_default_prefix
2117# Let make expand exec_prefix.
2118test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2119
2120# VPATH may cause trouble with some makes, so we remove $(srcdir),
2121# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2122# trailing colons and then remove the whole line if VPATH becomes empty
2123# (actually we leave an empty line to preserve line numbers).
2124if test "x$srcdir" = x.; then
2125 ac_vpsub='/^[ ]*VPATH[ ]*=/{
2126s/:*\$(srcdir):*/:/;
2127s/:*\${srcdir}:*/:/;
2128s/:*@srcdir@:*/:/;
2129s/^\([^=]*=[ ]*\):*/\1/;
2130s/:*$//;
2131s/^[^=]*=[ ]*$//;
2132}'
2133fi
2134
2135DEFS=-DHAVE_CONFIG_H
2136
50850385
TJ
2137: ${CONFIG_STATUS=./config.status}
2138ac_clean_files_save=$ac_clean_files
2139ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3bb2c27e 2140{ echo "$as_me:2140: creating $CONFIG_STATUS" >&5
50850385
TJ
2141echo "$as_me: creating $CONFIG_STATUS" >&6;}
2142cat >$CONFIG_STATUS <<_ACEOF
2143#! $SHELL
e61fbf76 2144# Generated automatically by configure.
50850385
TJ
2145# Run this file to recreate the current configuration.
2146# Compiler output produced by configure, useful for debugging
2147# configure, is in config.log if it exists.
2148
2149debug=false
2150SHELL=\${CONFIG_SHELL-$SHELL}
e61fbf76
TJ
2151ac_cs_invocation="\$0 \$@"
2152
50850385
TJ
2153_ACEOF
2154
2155cat >>$CONFIG_STATUS <<\_ACEOF
50850385
TJ
2156# Be Bourne compatible
2157if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2158 emulate sh
2159 NULLCMD=:
2160elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2161 set -o posix
2162fi
2163
50850385 2164# Name of the executable.
e61fbf76 2165as_me=`echo "$0" |sed 's,.*[\\/],,'`
50850385
TJ
2166
2167if expr a : '\(a\)' >/dev/null 2>&1; then
2168 as_expr=expr
2169else
2170 as_expr=false
2171fi
2172
2173rm -f conf$$ conf$$.exe conf$$.file
2174echo >conf$$.file
2175if ln -s conf$$.file conf$$ 2>/dev/null; then
2176 # We could just check for DJGPP; but this test a) works b) is more generic
2177 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2178 if test -f conf$$.exe; then
2179 # Don't use ln at all; we don't have any links
2180 as_ln_s='cp -p'
2181 else
2182 as_ln_s='ln -s'
2183 fi
2184elif ln conf$$.file conf$$ 2>/dev/null; then
2185 as_ln_s=ln
2186else
2187 as_ln_s='cp -p'
2188fi
2189rm -f conf$$ conf$$.exe conf$$.file
2190
2191as_executable_p="test -f"
2192
e61fbf76
TJ
2193# Support unset when possible.
2194if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
2195 as_unset=unset
2196else
2197 as_unset=false
2198fi
50850385 2199
e61fbf76
TJ
2200# NLS nuisances.
2201$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
2202$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
2203$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
2204$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
2205$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
2206$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
2207$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
2208$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
50850385
TJ
2209
2210# IFS
2211# We need space, tab and new line, in precisely that order.
2212as_nl='
2213'
2214IFS=" $as_nl"
2215
2216# CDPATH.
e61fbf76 2217$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
50850385
TJ
2218
2219exec 6>&1
2220
50850385
TJ
2221_ACEOF
2222
2223# Files that config.status was made for.
2224if test -n "$ac_config_files"; then
2225 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2226fi
2227
2228if test -n "$ac_config_headers"; then
2229 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2230fi
2231
2232if test -n "$ac_config_links"; then
2233 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2234fi
2235
2236if test -n "$ac_config_commands"; then
2237 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2238fi
2239
e61fbf76 2240cat >>$CONFIG_STATUS <<\EOF
50850385
TJ
2241
2242ac_cs_usage="\
2243\`$as_me' instantiates files from templates according to the
2244current configuration.
2245
2246Usage: $0 [OPTIONS] [FILE]...
2247
2248 -h, --help print this help, then exit
2249 -V, --version print version number, then exit
2250 -d, --debug don't remove temporary files
2251 --recheck update $as_me by reconfiguring in the same conditions
2252 --file=FILE[:TEMPLATE]
2253 instantiate the configuration file FILE
2254 --header=FILE[:TEMPLATE]
2255 instantiate the configuration header FILE
2256
2257Configuration files:
2258$config_files
2259
2260Configuration headers:
2261$config_headers
2262
2263Configuration commands:
2264$config_commands
2265
2266Report bugs to <bug-autoconf@gnu.org>."
e61fbf76 2267EOF
50850385 2268
e61fbf76 2269cat >>$CONFIG_STATUS <<EOF
50850385
TJ
2270ac_cs_version="\\
2271config.status
e61fbf76 2272configured by $0, generated by GNU Autoconf 2.52,
50850385
TJ
2273 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2274
2275Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
2276Free Software Foundation, Inc.
2277This config.status script is free software; the Free Software Foundation
2278gives unlimited permission to copy, distribute and modify it."
2279srcdir=$srcdir
2280INSTALL="$INSTALL"
e61fbf76 2281EOF
50850385 2282
e61fbf76 2283cat >>$CONFIG_STATUS <<\EOF
50850385
TJ
2284# If no file are specified by the user, then we need to provide default
2285# value. By we need to know if files were specified by the user.
2286ac_need_defaults=:
2287while test $# != 0
2288do
2289 case $1 in
2290 --*=*)
2291 ac_option=`expr "x$1" : 'x\([^=]*\)='`
2292 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2293 shift
2294 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
2295 shift
2296 ;;
2297 -*);;
2298 *) # This is not an option, so the user has probably given explicit
2299 # arguments.
2300 ac_need_defaults=false;;
2301 esac
2302
2303 case $1 in
2304 # Handling of the options.
e61fbf76
TJ
2305EOF
2306cat >>$CONFIG_STATUS <<EOF
50850385
TJ
2307 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2308 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
2309 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
e61fbf76
TJ
2310EOF
2311cat >>$CONFIG_STATUS <<\EOF
50850385
TJ
2312 --version | --vers* | -V )
2313 echo "$ac_cs_version"; exit 0 ;;
2314 --he | --h)
2315 # Conflict between --help and --header
3bb2c27e 2316 { { echo "$as_me:2316: error: ambiguous option: $1
50850385
TJ
2317Try \`$0 --help' for more information." >&5
2318echo "$as_me: error: ambiguous option: $1
2319Try \`$0 --help' for more information." >&2;}
2320 { (exit 1); exit 1; }; };;
2321 --help | --hel | -h )
2322 echo "$ac_cs_usage"; exit 0 ;;
2323 --debug | --d* | -d )
2324 debug=: ;;
2325 --file | --fil | --fi | --f )
2326 shift
2327 CONFIG_FILES="$CONFIG_FILES $1"
2328 ac_need_defaults=false;;
2329 --header | --heade | --head | --hea )
2330 shift
2331 CONFIG_HEADERS="$CONFIG_HEADERS $1"
2332 ac_need_defaults=false;;
2333
2334 # This is an error.
3bb2c27e 2335 -*) { { echo "$as_me:2335: error: unrecognized option: $1
50850385
TJ
2336Try \`$0 --help' for more information." >&5
2337echo "$as_me: error: unrecognized option: $1
2338Try \`$0 --help' for more information." >&2;}
2339 { (exit 1); exit 1; }; } ;;
2340
2341 *) ac_config_targets="$ac_config_targets $1" ;;
2342
2343 esac
2344 shift
2345done
2346
e61fbf76
TJ
2347exec 5>>config.log
2348cat >&5 << _ACEOF
2349
2350## ----------------------- ##
2351## Running config.status. ##
2352## ----------------------- ##
2353
2354This file was extended by $as_me 2.52, executed with
2355 CONFIG_FILES = $CONFIG_FILES
2356 CONFIG_HEADERS = $CONFIG_HEADERS
2357 CONFIG_LINKS = $CONFIG_LINKS
2358 CONFIG_COMMANDS = $CONFIG_COMMANDS
2359 > $ac_cs_invocation
2360on `(hostname || uname -n) 2>/dev/null | sed 1q`
2361
50850385 2362_ACEOF
e61fbf76 2363EOF
50850385 2364
e61fbf76 2365cat >>$CONFIG_STATUS <<EOF
50850385
TJ
2366#
2367# INIT-COMMANDS section.
2368#
2369
e61fbf76 2370EOF
50850385 2371
e61fbf76 2372cat >>$CONFIG_STATUS <<\EOF
50850385
TJ
2373for ac_config_target in $ac_config_targets
2374do
2375 case "$ac_config_target" in
2376 # Handling of arguments.
2377 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3bb2c27e
GE
2378 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
2379 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
50850385 2380 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3bb2c27e 2381 *) { { echo "$as_me:2381: error: invalid argument: $ac_config_target" >&5
50850385
TJ
2382echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2383 { (exit 1); exit 1; }; };;
2384 esac
2385done
2386
2387# If the user did not use the arguments to specify the items to instantiate,
2388# then the envvar interface is used. Set only those that are not.
2389# We use the long form for the default assignment because of an extremely
2390# bizarre bug on SunOS 4.1.3.
2391if $ac_need_defaults; then
2392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
2394 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
2395fi
2396
2397# Create a temporary directory, and hook for its removal unless debugging.
2398$debug ||
2399{
2400 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2401 trap '{ (exit 1); exit 1; }' 1 2 13 15
2402}
2403
2404# Create a (secure) tmp directory for tmp files.
2405: ${TMPDIR=/tmp}
2406{
2407 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
2408 test -n "$tmp" && test -d "$tmp"
2409} ||
2410{
2411 tmp=$TMPDIR/cs$$-$RANDOM
2412 (umask 077 && mkdir $tmp)
2413} ||
2414{
2415 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2416 { (exit 1); exit 1; }
2417}
2418
e61fbf76 2419EOF
50850385 2420
e61fbf76 2421cat >>$CONFIG_STATUS <<EOF
50850385
TJ
2422
2423#
2424# CONFIG_FILES section.
2425#
2426
2427# No need to generate the scripts if there are no CONFIG_FILES.
2428# This happens for instance when ./config.status config.h
2429if test -n "\$CONFIG_FILES"; then
2430 # Protect against being on the right side of a sed subst in config.status.
2431 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2432 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2433s,@SHELL@,$SHELL,;t t
50850385
TJ
2434s,@exec_prefix@,$exec_prefix,;t t
2435s,@prefix@,$prefix,;t t
2436s,@program_transform_name@,$program_transform_name,;t t
2437s,@bindir@,$bindir,;t t
2438s,@sbindir@,$sbindir,;t t
2439s,@libexecdir@,$libexecdir,;t t
2440s,@datadir@,$datadir,;t t
2441s,@sysconfdir@,$sysconfdir,;t t
2442s,@sharedstatedir@,$sharedstatedir,;t t
2443s,@localstatedir@,$localstatedir,;t t
2444s,@libdir@,$libdir,;t t
2445s,@includedir@,$includedir,;t t
2446s,@oldincludedir@,$oldincludedir,;t t
2447s,@infodir@,$infodir,;t t
2448s,@mandir@,$mandir,;t t
e61fbf76
TJ
2449s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2450s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2451s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2452s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2453s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50850385
TJ
2454s,@build_alias@,$build_alias,;t t
2455s,@host_alias@,$host_alias,;t t
2456s,@target_alias@,$target_alias,;t t
50850385
TJ
2457s,@ECHO_C@,$ECHO_C,;t t
2458s,@ECHO_N@,$ECHO_N,;t t
2459s,@ECHO_T@,$ECHO_T,;t t
e61fbf76
TJ
2460s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2461s,@DEFS@,$DEFS,;t t
50850385 2462s,@LIBS@,$LIBS,;t t
50850385
TJ
2463s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2464s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2465s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2466s,@PACKAGE@,$PACKAGE,;t t
2467s,@VERSION@,$VERSION,;t t
2468s,@ACLOCAL@,$ACLOCAL,;t t
2469s,@AUTOCONF@,$AUTOCONF,;t t
2470s,@AUTOMAKE@,$AUTOMAKE,;t t
2471s,@AUTOHEADER@,$AUTOHEADER,;t t
2472s,@MAKEINFO@,$MAKEINFO,;t t
50850385 2473s,@SET_MAKE@,$SET_MAKE,;t t
50850385
TJ
2474s,@CC@,$CC,;t t
2475s,@CFLAGS@,$CFLAGS,;t t
2476s,@LDFLAGS@,$LDFLAGS,;t t
2477s,@CPPFLAGS@,$CPPFLAGS,;t t
2478s,@ac_ct_CC@,$ac_ct_CC,;t t
2479s,@EXEEXT@,$EXEEXT,;t t
2480s,@OBJEXT@,$OBJEXT,;t t
3bb2c27e
GE
2481s,@PKG_CONFIG@,$PKG_CONFIG,;t t
2482s,@LIBFTDI_CFLAGS@,$LIBFTDI_CFLAGS,;t t
2483s,@LIBFTDI_LIBS@,$LIBFTDI_LIBS,;t t
50850385
TJ
2484CEOF
2485
e61fbf76 2486EOF
50850385 2487
e61fbf76 2488 cat >>$CONFIG_STATUS <<\EOF
50850385
TJ
2489 # Split the substitutions into bite-sized pieces for seds with
2490 # small command number limits, like on Digital OSF/1 and HP-UX.
2491 ac_max_sed_lines=48
2492 ac_sed_frag=1 # Number of current file.
2493 ac_beg=1 # First line for current file.
2494 ac_end=$ac_max_sed_lines # Line after last line for current file.
2495 ac_more_lines=:
2496 ac_sed_cmds=
2497 while $ac_more_lines; do
2498 if test $ac_beg -gt 1; then
2499 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2500 else
2501 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2502 fi
2503 if test ! -s $tmp/subs.frag; then
2504 ac_more_lines=false
2505 else
2506 # The purpose of the label and of the branching condition is to
2507 # speed up the sed processing (if there are no `@' at all, there
2508 # is no need to browse any of the substitutions).
2509 # These are the two extra sed commands mentioned above.
2510 (echo ':t
2511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2512 if test -z "$ac_sed_cmds"; then
2513 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2514 else
2515 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2516 fi
2517 ac_sed_frag=`expr $ac_sed_frag + 1`
2518 ac_beg=$ac_end
2519 ac_end=`expr $ac_end + $ac_max_sed_lines`
2520 fi
2521 done
2522 if test -z "$ac_sed_cmds"; then
2523 ac_sed_cmds=cat
2524 fi
2525fi # test -n "$CONFIG_FILES"
2526
e61fbf76
TJ
2527EOF
2528cat >>$CONFIG_STATUS <<\EOF
50850385
TJ
2529for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2530 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2531 case $ac_file in
2532 - | *:- | *:-:* ) # input from stdin
2533 cat >$tmp/stdin
2534 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2536 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2537 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2538 * ) ac_file_in=$ac_file.in ;;
2539 esac
2540
2541 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
e61fbf76 2542 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50850385
TJ
2543 X"$ac_file" : 'X\(//\)[^/]' \| \
2544 X"$ac_file" : 'X\(//\)$' \| \
2545 X"$ac_file" : 'X\(/\)' \| \
2546 . : '\(.\)' 2>/dev/null ||
2547echo X"$ac_file" |
2548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2550 /^X\(\/\/\)$/{ s//\1/; q; }
2551 /^X\(\/\).*/{ s//\1/; q; }
2552 s/.*/./; q'`
e61fbf76
TJ
2553 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2554 { case "$ac_dir" in
50850385
TJ
2555 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2556 *) as_incr_dir=.;;
2557esac
2558as_dummy="$ac_dir"
2559for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2560 case $as_mkdir_dir in
2561 # Skip DOS drivespec
2562 ?:) as_incr_dir=$as_mkdir_dir ;;
2563 *)
2564 as_incr_dir=$as_incr_dir/$as_mkdir_dir
e61fbf76 2565 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
50850385
TJ
2566 ;;
2567 esac
2568done; }
2569
e61fbf76
TJ
2570 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2571 # A "../" for each directory in $ac_dir_suffix.
2572 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2573 else
2574 ac_dir_suffix= ac_dots=
2575 fi
50850385 2576
e61fbf76
TJ
2577 case $srcdir in
2578 .) ac_srcdir=.
2579 if test -z "$ac_dots"; then
2580 ac_top_srcdir=.
2581 else
2582 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
2583 fi ;;
2584 [\\/]* | ?:[\\/]* )
2585 ac_srcdir=$srcdir$ac_dir_suffix;
2586 ac_top_srcdir=$srcdir ;;
50850385 2587 *) # Relative path.
e61fbf76
TJ
2588 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
2589 ac_top_srcdir=$ac_dots$srcdir ;;
2590 esac
50850385
TJ
2591
2592 case $INSTALL in
2593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
e61fbf76 2594 *) ac_INSTALL=$ac_dots$INSTALL ;;
50850385
TJ
2595 esac
2596
2597 if test x"$ac_file" != x-; then
3bb2c27e 2598 { echo "$as_me:2598: creating $ac_file" >&5
50850385
TJ
2599echo "$as_me: creating $ac_file" >&6;}
2600 rm -f "$ac_file"
2601 fi
2602 # Let's still pretend it is `configure' which instantiates (i.e., don't
2603 # use $as_me), people would be surprised to read:
e61fbf76
TJ
2604 # /* config.h. Generated automatically by config.status. */
2605 configure_input="Generated automatically from `echo $ac_file_in |
2606 sed 's,.*/,,'` by configure."
50850385
TJ
2607
2608 # First look for the input files in the build tree, otherwise in the
2609 # src tree.
2610 ac_file_inputs=`IFS=:
2611 for f in $ac_file_in; do
2612 case $f in
2613 -) echo $tmp/stdin ;;
2614 [\\/$]*)
2615 # Absolute (can't be DOS-style, as IFS=:)
3bb2c27e 2616 test -f "$f" || { { echo "$as_me:2616: error: cannot find input file: $f" >&5
50850385
TJ
2617echo "$as_me: error: cannot find input file: $f" >&2;}
2618 { (exit 1); exit 1; }; }
2619 echo $f;;
2620 *) # Relative
2621 if test -f "$f"; then
2622 # Build tree
2623 echo $f
2624 elif test -f "$srcdir/$f"; then
2625 # Source tree
2626 echo $srcdir/$f
2627 else
2628 # /dev/null tree
3bb2c27e 2629 { { echo "$as_me:2629: error: cannot find input file: $f" >&5
50850385
TJ
2630echo "$as_me: error: cannot find input file: $f" >&2;}
2631 { (exit 1); exit 1; }; }
2632 fi;;
2633 esac
2634 done` || { (exit 1); exit 1; }
e61fbf76
TJ
2635EOF
2636cat >>$CONFIG_STATUS <<EOF
50850385
TJ
2637 sed "$ac_vpsub
2638$extrasub
e61fbf76
TJ
2639EOF
2640cat >>$CONFIG_STATUS <<\EOF
50850385
TJ
2641:t
2642/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2643s,@configure_input@,$configure_input,;t t
2644s,@srcdir@,$ac_srcdir,;t t
50850385 2645s,@top_srcdir@,$ac_top_srcdir,;t t
50850385
TJ
2646s,@INSTALL@,$ac_INSTALL,;t t
2647" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2648 rm -f $tmp/stdin
2649 if test x"$ac_file" != x-; then
2650 mv $tmp/out $ac_file
2651 else
2652 cat $tmp/out
2653 rm -f $tmp/out
2654 fi
2655
2656done
e61fbf76
TJ
2657EOF
2658cat >>$CONFIG_STATUS <<\EOF
50850385
TJ
2659
2660#
2661# CONFIG_HEADER section.
2662#
2663
2664# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2665# NAME is the cpp macro being defined and VALUE is the value it is being given.
2666#
2667# ac_d sets the value in "#define NAME VALUE" lines.
2668ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2669ac_dB='[ ].*$,\1#\2'
2670ac_dC=' '
2671ac_dD=',;t'
2672# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2673ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2674ac_uB='$,\1#\2define\3'
2675ac_uC=' '
2676ac_uD=',;t'
2677
2678for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
2679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2680 case $ac_file in
2681 - | *:- | *:-:* ) # input from stdin
2682 cat >$tmp/stdin
2683 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2685 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2686 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2687 * ) ac_file_in=$ac_file.in ;;
2688 esac
2689
3bb2c27e 2690 test x"$ac_file" != x- && { echo "$as_me:2690: creating $ac_file" >&5
50850385
TJ
2691echo "$as_me: creating $ac_file" >&6;}
2692
2693 # First look for the input files in the build tree, otherwise in the
2694 # src tree.
2695 ac_file_inputs=`IFS=:
2696 for f in $ac_file_in; do
2697 case $f in
2698 -) echo $tmp/stdin ;;
2699 [\\/$]*)
2700 # Absolute (can't be DOS-style, as IFS=:)
3bb2c27e 2701 test -f "$f" || { { echo "$as_me:2701: error: cannot find input file: $f" >&5
50850385
TJ
2702echo "$as_me: error: cannot find input file: $f" >&2;}
2703 { (exit 1); exit 1; }; }
2704 echo $f;;
2705 *) # Relative
2706 if test -f "$f"; then
2707 # Build tree
2708 echo $f
2709 elif test -f "$srcdir/$f"; then
2710 # Source tree
2711 echo $srcdir/$f
2712 else
2713 # /dev/null tree
3bb2c27e 2714 { { echo "$as_me:2714: error: cannot find input file: $f" >&5
50850385
TJ
2715echo "$as_me: error: cannot find input file: $f" >&2;}
2716 { (exit 1); exit 1; }; }
2717 fi;;
2718 esac
2719 done` || { (exit 1); exit 1; }
2720 # Remove the trailing spaces.
2721 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
2722
e61fbf76 2723EOF
50850385
TJ
2724
2725# Transform confdefs.h into two sed scripts, `conftest.defines' and
2726# `conftest.undefs', that substitutes the proper values into
2727# config.h.in to produce config.h. The first handles `#define'
2728# templates, and the second `#undef' templates.
2729# And first: Protect against being on the right side of a sed subst in
2730# config.status. Protect against being in an unquoted here document
2731# in config.status.
2732rm -f conftest.defines conftest.undefs
2733# Using a here document instead of a string reduces the quoting nightmare.
2734# Putting comments in sed scripts is not portable.
2735#
2736# `end' is used to avoid that the second main sed command (meant for
2737# 0-ary CPP macros) applies to n-ary macro definitions.
2738# See the Autoconf documentation for `clear'.
e61fbf76 2739cat >confdef2sed.sed <<\EOF
50850385
TJ
2740s/[\\&,]/\\&/g
2741s,[\\$`],\\&,g
2742t clear
2743: clear
e61fbf76 2744s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
50850385
TJ
2745t end
2746s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
2747: end
e61fbf76 2748EOF
50850385
TJ
2749# If some macros were called several times there might be several times
2750# the same #defines, which is useless. Nevertheless, we may not want to
2751# sort them, since we want the *last* AC-DEFINE to be honored.
2752uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
2753sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
2754rm -f confdef2sed.sed
2755
2756# This sed command replaces #undef with comments. This is necessary, for
2757# example, in the case of _POSIX_SOURCE, which is predefined and required
2758# on some systems where configure will not decide to define it.
e61fbf76 2759cat >>conftest.undefs <<\EOF
50850385 2760s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e61fbf76 2761EOF
50850385
TJ
2762
2763# Break up conftest.defines because some shells have a limit on the size
2764# of here documents, and old seds have small limits too (100 cmds).
2765echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
2766echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
2767echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
2768echo ' :' >>$CONFIG_STATUS
2769rm -f conftest.tail
2770while grep . conftest.defines >/dev/null
2771do
2772 # Write a limited-size here document to $tmp/defines.sed.
2773 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
2774 # Speed up: don't consider the non `#define' lines.
2775 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
2776 # Work around the forget-to-reset-the-flag bug.
2777 echo 't clr' >>$CONFIG_STATUS
2778 echo ': clr' >>$CONFIG_STATUS
2779 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
2780 echo 'CEOF
2781 sed -f $tmp/defines.sed $tmp/in >$tmp/out
2782 rm -f $tmp/in
2783 mv $tmp/out $tmp/in
2784' >>$CONFIG_STATUS
2785 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
2786 rm -f conftest.defines
2787 mv conftest.tail conftest.defines
2788done
2789rm -f conftest.defines
2790echo ' fi # egrep' >>$CONFIG_STATUS
2791echo >>$CONFIG_STATUS
2792
2793# Break up conftest.undefs because some shells have a limit on the size
2794# of here documents, and old seds have small limits too (100 cmds).
2795echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
2796rm -f conftest.tail
2797while grep . conftest.undefs >/dev/null
2798do
2799 # Write a limited-size here document to $tmp/undefs.sed.
2800 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
2801 # Speed up: don't consider the non `#undef'
2802 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
2803 # Work around the forget-to-reset-the-flag bug.
2804 echo 't clr' >>$CONFIG_STATUS
2805 echo ': clr' >>$CONFIG_STATUS
2806 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
2807 echo 'CEOF
2808 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
2809 rm -f $tmp/in
2810 mv $tmp/out $tmp/in
2811' >>$CONFIG_STATUS
2812 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
2813 rm -f conftest.undefs
2814 mv conftest.tail conftest.undefs
2815done
2816rm -f conftest.undefs
2817
e61fbf76 2818cat >>$CONFIG_STATUS <<\EOF
50850385
TJ
2819 # Let's still pretend it is `configure' which instantiates (i.e., don't
2820 # use $as_me), people would be surprised to read:
e61fbf76 2821 # /* config.h. Generated automatically by config.status. */
50850385 2822 if test x"$ac_file" = x-; then
e61fbf76 2823 echo "/* Generated automatically by configure. */" >$tmp/config.h
50850385 2824 else
e61fbf76 2825 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
50850385
TJ
2826 fi
2827 cat $tmp/in >>$tmp/config.h
2828 rm -f $tmp/in
2829 if test x"$ac_file" != x-; then
2830 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
3bb2c27e 2831 { echo "$as_me:2831: $ac_file is unchanged" >&5
50850385
TJ
2832echo "$as_me: $ac_file is unchanged" >&6;}
2833 else
e61fbf76 2834 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50850385
TJ
2835 X"$ac_file" : 'X\(//\)[^/]' \| \
2836 X"$ac_file" : 'X\(//\)$' \| \
2837 X"$ac_file" : 'X\(/\)' \| \
2838 . : '\(.\)' 2>/dev/null ||
2839echo X"$ac_file" |
2840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2842 /^X\(\/\/\)$/{ s//\1/; q; }
2843 /^X\(\/\).*/{ s//\1/; q; }
2844 s/.*/./; q'`
e61fbf76
TJ
2845 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2846 { case "$ac_dir" in
50850385
TJ
2847 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2848 *) as_incr_dir=.;;
2849esac
2850as_dummy="$ac_dir"
2851for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2852 case $as_mkdir_dir in
2853 # Skip DOS drivespec
2854 ?:) as_incr_dir=$as_mkdir_dir ;;
2855 *)
2856 as_incr_dir=$as_incr_dir/$as_mkdir_dir
e61fbf76 2857 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
50850385
TJ
2858 ;;
2859 esac
2860done; }
2861
e61fbf76 2862 fi
50850385
TJ
2863 rm -f $ac_file
2864 mv $tmp/config.h $ac_file
2865 fi
2866 else
2867 cat $tmp/config.h
2868 rm -f $tmp/config.h
2869 fi
50850385 2870done
e61fbf76
TJ
2871EOF
2872cat >>$CONFIG_STATUS <<\EOF
50850385
TJ
2873
2874#
2875# CONFIG_COMMANDS section.
2876#
2877for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
2878 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
2879 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50850385 2880
50850385 2881 case $ac_dest in
3bb2c27e 2882 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
50850385
TJ
2883 esac
2884done
e61fbf76 2885EOF
50850385 2886
e61fbf76 2887cat >>$CONFIG_STATUS <<\EOF
50850385
TJ
2888
2889{ (exit 0); exit 0; }
e61fbf76 2890EOF
50850385
TJ
2891chmod +x $CONFIG_STATUS
2892ac_clean_files=$ac_clean_files_save
2893
50850385
TJ
2894# configure is writing to config.log, and then calls config.status.
2895# config.status does its own redirection, appending to config.log.
2896# Unfortunately, on DOS this fails, as config.log is still kept open
2897# by configure, so config.status won't be able to write to it; its
2898# output is simply discarded. So we exec the FD to /dev/null,
2899# effectively closing config.log, so it can be properly (re)opened and
2900# appended to by config.status. When coming back to configure, we
2901# need to make the FD available again.
2902if test "$no_create" != yes; then
2903 ac_cs_success=:
2904 exec 5>/dev/null
2905 $SHELL $CONFIG_STATUS || ac_cs_success=false
2906 exec 5>>config.log
2907 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2908 # would make configure fail if this is the last instruction.
2909 $ac_cs_success || { (exit 1); exit 1; }
2910fi
2911