/[mcrypt]/module-mars/configure
ViewVC logotype

Contents of /module-mars/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Mon Oct 2 08:33:26 2000 UTC (23 years, 6 months ago) by nmav
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
updated version number

1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-maintainer-mode enable maintainer mode"
16 ac_help="$ac_help
17 --enable-shared[=PKGS] build shared libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-static[=PKGS] build static libraries [default=yes]"
20 ac_help="$ac_help
21 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22 ac_help="$ac_help
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25 --disable-libtool-lock avoid locking (might break parallel builds)"
26
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
30 build=NONE
31 cache_file=./config.cache
32 exec_prefix=NONE
33 host=NONE
34 no_create=
35 nonopt=NONE
36 no_recursion=
37 prefix=NONE
38 program_prefix=NONE
39 program_suffix=NONE
40 program_transform_name=s,x,x,
41 silent=
42 site=
43 srcdir=
44 target=NONE
45 verbose=
46 x_includes=NONE
47 x_libraries=NONE
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
60
61 # Initialize some other variables.
62 subdirs=
63 MFLAGS= MAKEFLAGS=
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
66 ac_max_here_lines=12
67
68 ac_prev=
69 for ac_option
70 do
71
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
75 ac_prev=
76 continue
77 fi
78
79 case "$ac_option" in
80 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81 *) ac_optarg= ;;
82 esac
83
84 # Accept the important Cygnus configure options, so we can diagnose typos.
85
86 case "$ac_option" in
87
88 -bindir | --bindir | --bindi | --bind | --bin | --bi)
89 ac_prev=bindir ;;
90 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91 bindir="$ac_optarg" ;;
92
93 -build | --build | --buil | --bui | --bu)
94 ac_prev=build ;;
95 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 build="$ac_optarg" ;;
97
98 -cache-file | --cache-file | --cache-fil | --cache-fi \
99 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100 ac_prev=cache_file ;;
101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103 cache_file="$ac_optarg" ;;
104
105 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106 ac_prev=datadir ;;
107 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108 | --da=*)
109 datadir="$ac_optarg" ;;
110
111 -disable-* | --disable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 fi
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
119
120 -enable-* | --enable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 fi
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 case "$ac_option" in
128 *=*) ;;
129 *) ac_optarg=yes ;;
130 esac
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
132
133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135 | --exec | --exe | --ex)
136 ac_prev=exec_prefix ;;
137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139 | --exec=* | --exe=* | --ex=*)
140 exec_prefix="$ac_optarg" ;;
141
142 -gas | --gas | --ga | --g)
143 # Obsolete; use --with-gas.
144 with_gas=yes ;;
145
146 -help | --help | --hel | --he)
147 # Omit some internal or obsolete options to make the list less imposing.
148 # This message is too long to be a string in the A/UX 3.1 sh.
149 cat << EOF
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
152 Configuration:
153 --cache-file=FILE cache test results in FILE
154 --help print this message
155 --no-create do not create output files
156 --quiet, --silent do not print \`checking...' messages
157 --version print the version of autoconf that created configure
158 Directory and file names:
159 --prefix=PREFIX install architecture-independent files in PREFIX
160 [$ac_default_prefix]
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
162 [same as prefix]
163 --bindir=DIR user executables in DIR [EPREFIX/bin]
164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166 --datadir=DIR read-only architecture-independent data in DIR
167 [PREFIX/share]
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
170 [PREFIX/com]
171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173 --includedir=DIR C header files in DIR [PREFIX/include]
174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175 --infodir=DIR info documentation in DIR [PREFIX/info]
176 --mandir=DIR man documentation in DIR [PREFIX/man]
177 --srcdir=DIR find the sources in DIR [configure dir or ..]
178 --program-prefix=PREFIX prepend PREFIX to installed program names
179 --program-suffix=SUFFIX append SUFFIX to installed program names
180 --program-transform-name=PROGRAM
181 run sed PROGRAM on installed program names
182 EOF
183 cat << EOF
184 Host type:
185 --build=BUILD configure for building on BUILD [BUILD=HOST]
186 --host=HOST configure for HOST [guessed]
187 --target=TARGET configure for TARGET [TARGET=HOST]
188 Features and packages:
189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193 --x-includes=DIR X include files are in DIR
194 --x-libraries=DIR X library files are in DIR
195 EOF
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
198 fi
199 exit 0 ;;
200
201 -host | --host | --hos | --ho)
202 ac_prev=host ;;
203 -host=* | --host=* | --hos=* | --ho=*)
204 host="$ac_optarg" ;;
205
206 -includedir | --includedir | --includedi | --included | --include \
207 | --includ | --inclu | --incl | --inc)
208 ac_prev=includedir ;;
209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210 | --includ=* | --inclu=* | --incl=* | --inc=*)
211 includedir="$ac_optarg" ;;
212
213 -infodir | --infodir | --infodi | --infod | --info | --inf)
214 ac_prev=infodir ;;
215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216 infodir="$ac_optarg" ;;
217
218 -libdir | --libdir | --libdi | --libd)
219 ac_prev=libdir ;;
220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
221 libdir="$ac_optarg" ;;
222
223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224 | --libexe | --libex | --libe)
225 ac_prev=libexecdir ;;
226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227 | --libexe=* | --libex=* | --libe=*)
228 libexecdir="$ac_optarg" ;;
229
230 -localstatedir | --localstatedir | --localstatedi | --localstated \
231 | --localstate | --localstat | --localsta | --localst \
232 | --locals | --local | --loca | --loc | --lo)
233 ac_prev=localstatedir ;;
234 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237 localstatedir="$ac_optarg" ;;
238
239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240 ac_prev=mandir ;;
241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242 mandir="$ac_optarg" ;;
243
244 -nfp | --nfp | --nf)
245 # Obsolete; use --without-fp.
246 with_fp=no ;;
247
248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249 | --no-cr | --no-c)
250 no_create=yes ;;
251
252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 no_recursion=yes ;;
255
256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258 | --oldin | --oldi | --old | --ol | --o)
259 ac_prev=oldincludedir ;;
260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263 oldincludedir="$ac_optarg" ;;
264
265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266 ac_prev=prefix ;;
267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268 prefix="$ac_optarg" ;;
269
270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
271 | --program-pre | --program-pr | --program-p)
272 ac_prev=program_prefix ;;
273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275 program_prefix="$ac_optarg" ;;
276
277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
278 | --program-suf | --program-su | --program-s)
279 ac_prev=program_suffix ;;
280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282 program_suffix="$ac_optarg" ;;
283
284 -program-transform-name | --program-transform-name \
285 | --program-transform-nam | --program-transform-na \
286 | --program-transform-n | --program-transform- \
287 | --program-transform | --program-transfor \
288 | --program-transfo | --program-transf \
289 | --program-trans | --program-tran \
290 | --progr-tra | --program-tr | --program-t)
291 ac_prev=program_transform_name ;;
292 -program-transform-name=* | --program-transform-name=* \
293 | --program-transform-nam=* | --program-transform-na=* \
294 | --program-transform-n=* | --program-transform-=* \
295 | --program-transform=* | --program-transfor=* \
296 | --program-transfo=* | --program-transf=* \
297 | --program-trans=* | --program-tran=* \
298 | --progr-tra=* | --program-tr=* | --program-t=*)
299 program_transform_name="$ac_optarg" ;;
300
301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302 | -silent | --silent | --silen | --sile | --sil)
303 silent=yes ;;
304
305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306 ac_prev=sbindir ;;
307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308 | --sbi=* | --sb=*)
309 sbindir="$ac_optarg" ;;
310
311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313 | --sharedst | --shareds | --shared | --share | --shar \
314 | --sha | --sh)
315 ac_prev=sharedstatedir ;;
316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319 | --sha=* | --sh=*)
320 sharedstatedir="$ac_optarg" ;;
321
322 -site | --site | --sit)
323 ac_prev=site ;;
324 -site=* | --site=* | --sit=*)
325 site="$ac_optarg" ;;
326
327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328 ac_prev=srcdir ;;
329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330 srcdir="$ac_optarg" ;;
331
332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333 | --syscon | --sysco | --sysc | --sys | --sy)
334 ac_prev=sysconfdir ;;
335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337 sysconfdir="$ac_optarg" ;;
338
339 -target | --target | --targe | --targ | --tar | --ta | --t)
340 ac_prev=target ;;
341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342 target="$ac_optarg" ;;
343
344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 verbose=yes ;;
346
347 -version | --version | --versio | --versi | --vers)
348 echo "configure generated by autoconf version 2.13"
349 exit 0 ;;
350
351 -with-* | --with-*)
352 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 fi
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 case "$ac_option" in
359 *=*) ;;
360 *) ac_optarg=yes ;;
361 esac
362 eval "with_${ac_package}='$ac_optarg'" ;;
363
364 -without-* | --without-*)
365 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 fi
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
372
373 --x)
374 # Obsolete; use --with-x.
375 with_x=yes ;;
376
377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378 | --x-incl | --x-inc | --x-in | --x-i)
379 ac_prev=x_includes ;;
380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382 x_includes="$ac_optarg" ;;
383
384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386 ac_prev=x_libraries ;;
387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389 x_libraries="$ac_optarg" ;;
390
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392 ;;
393
394 *)
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
397 fi
398 if test "x$nonopt" != xNONE; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400 fi
401 nonopt="$ac_option"
402 ;;
403
404 esac
405 done
406
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 fi
410
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412
413 # File descriptor usage:
414 # 0 standard input
415 # 1 file creation
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
422 exec 6>/dev/null
423 else
424 exec 6>&1
425 fi
426 exec 5>./config.log
427
428 echo "\
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
431 " 1>&5
432
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
435 ac_configure_args=
436 for ac_arg
437 do
438 case "$ac_arg" in
439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440 | --no-cr | --no-c) ;;
441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446 esac
447 done
448
449 # NLS nuisances.
450 # Only set these to C if already set. These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
458
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 echo > confdefs.h
463
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file=lib/libdefs.h
467
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted=yes
471 # Try the directory containing this script, then its parent.
472 ac_prog=$0
473 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475 srcdir=$ac_confdir
476 if test ! -r $srcdir/$ac_unique_file; then
477 srcdir=..
478 fi
479 else
480 ac_srcdir_defaulted=no
481 fi
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485 else
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 fi
488 fi
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE; then
494 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
495 else
496 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 fi
498 fi
499 for ac_site_file in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
502 . "$ac_site_file"
503 fi
504 done
505
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
508 . $cache_file
509 else
510 echo "creating cache $cache_file"
511 > $cache_file
512 fi
513
514 ac_ext=c
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp='$CPP $CPPFLAGS'
517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling=$ac_cv_prog_cc_cross
520
521 ac_exeext=
522 ac_objext=o
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='
527 ' ac_t=' '
528 else
529 ac_n=-n ac_c= ac_t=
530 fi
531 else
532 ac_n= ac_c='\c' ac_t=
533 fi
534
535
536
537 ac_aux_dir=
538 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
539 if test -f $ac_dir/install-sh; then
540 ac_aux_dir=$ac_dir
541 ac_install_sh="$ac_aux_dir/install-sh -c"
542 break
543 elif test -f $ac_dir/install.sh; then
544 ac_aux_dir=$ac_dir
545 ac_install_sh="$ac_aux_dir/install.sh -c"
546 break
547 fi
548 done
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
551 fi
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555
556 # Find a good install program. We prefer a C program (faster),
557 # so one script is as good as another. But avoid the broken or
558 # incompatible versions:
559 # SysV /etc/install, /usr/sbin/install
560 # SunOS /usr/etc/install
561 # IRIX /sbin/install
562 # AIX /bin/install
563 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
566 # ./install, which can be erroneously created by make from ./install.sh.
567 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
568 echo "configure:569: checking for a BSD compatible install" >&5
569 if test -z "$INSTALL"; then
570 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
571 echo $ac_n "(cached) $ac_c" 1>&6
572 else
573 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
574 for ac_dir in $PATH; do
575 # Account for people who put trailing slashes in PATH elements.
576 case "$ac_dir/" in
577 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
578 *)
579 # OSF1 and SCO ODT 3.0 have their own names for install.
580 # Don't use installbsd from OSF since it installs stuff as root
581 # by default.
582 for ac_prog in ginstall scoinst install; do
583 if test -f $ac_dir/$ac_prog; then
584 if test $ac_prog = install &&
585 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
586 # AIX install. It has an incompatible calling convention.
587 :
588 else
589 ac_cv_path_install="$ac_dir/$ac_prog -c"
590 break 2
591 fi
592 fi
593 done
594 ;;
595 esac
596 done
597 IFS="$ac_save_IFS"
598
599 fi
600 if test "${ac_cv_path_install+set}" = set; then
601 INSTALL="$ac_cv_path_install"
602 else
603 # As a last resort, use the slow shell script. We don't cache a
604 # path for INSTALL within a source directory, because that will
605 # break other packages using the cache if that directory is
606 # removed, or if the path is relative.
607 INSTALL="$ac_install_sh"
608 fi
609 fi
610 echo "$ac_t""$INSTALL" 1>&6
611
612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
613 # It thinks the first close brace ends the variable substitution.
614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
615
616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
617
618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
619
620 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
621 echo "configure:622: checking whether build environment is sane" >&5
622 # Just in case
623 sleep 1
624 echo timestamp > conftestfile
625 # Do `set' in a subshell so we don't clobber the current shell's
626 # arguments. Must try -L first in case configure is actually a
627 # symlink; some systems play weird games with the mod time of symlinks
628 # (eg FreeBSD returns the mod time of the symlink's containing
629 # directory).
630 if (
631 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
632 if test "$*" = "X"; then
633 # -L didn't work.
634 set X `ls -t $srcdir/configure conftestfile`
635 fi
636 if test "$*" != "X $srcdir/configure conftestfile" \
637 && test "$*" != "X conftestfile $srcdir/configure"; then
638
639 # If neither matched, then we have a broken ls. This can happen
640 # if, for instance, CONFIG_SHELL is bash and it inherits a
641 # broken ls alias from the environment. This has actually
642 # happened. Such a system could not be considered "sane".
643 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
644 alias in your environment" 1>&2; exit 1; }
645 fi
646
647 test "$2" = conftestfile
648 )
649 then
650 # Ok.
651 :
652 else
653 { echo "configure: error: newly created file is older than distributed files!
654 Check your system clock" 1>&2; exit 1; }
655 fi
656 rm -f conftest*
657 echo "$ac_t""yes" 1>&6
658 if test "$program_transform_name" = s,x,x,; then
659 program_transform_name=
660 else
661 # Double any \ or $. echo might interpret backslashes.
662 cat <<\EOF_SED > conftestsed
663 s,\\,\\\\,g; s,\$,$$,g
664 EOF_SED
665 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
666 rm -f conftestsed
667 fi
668 test "$program_prefix" != NONE &&
669 program_transform_name="s,^,${program_prefix},; $program_transform_name"
670 # Use a double $ so make ignores it.
671 test "$program_suffix" != NONE &&
672 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
673
674 # sed with no file args requires a program.
675 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
676
677 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
678 echo "configure:679: checking whether ${MAKE-make} sets \${MAKE}" >&5
679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
680 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
682 else
683 cat > conftestmake <<\EOF
684 all:
685 @echo 'ac_maketemp="${MAKE}"'
686 EOF
687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
688 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
689 if test -n "$ac_maketemp"; then
690 eval ac_cv_prog_make_${ac_make}_set=yes
691 else
692 eval ac_cv_prog_make_${ac_make}_set=no
693 fi
694 rm -f conftestmake
695 fi
696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
697 echo "$ac_t""yes" 1>&6
698 SET_MAKE=
699 else
700 echo "$ac_t""no" 1>&6
701 SET_MAKE="MAKE=${MAKE-make}"
702 fi
703
704
705 PACKAGE=libmcrypt
706
707 VERSION=mars-0.6
708
709 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
710 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
711 fi
712 cat >> confdefs.h <<EOF
713 #define PACKAGE "$PACKAGE"
714 EOF
715
716 cat >> confdefs.h <<EOF
717 #define VERSION "$VERSION"
718 EOF
719
720
721
722 missing_dir=`cd $ac_aux_dir && pwd`
723 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
724 echo "configure:725: checking for working aclocal" >&5
725 # Run test in a subshell; some versions of sh will print an error if
726 # an executable is not found, even if stderr is redirected.
727 # Redirect stdin to placate older versions of autoconf. Sigh.
728 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
729 ACLOCAL=aclocal
730 echo "$ac_t""found" 1>&6
731 else
732 ACLOCAL="$missing_dir/missing aclocal"
733 echo "$ac_t""missing" 1>&6
734 fi
735
736 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
737 echo "configure:738: checking for working autoconf" >&5
738 # Run test in a subshell; some versions of sh will print an error if
739 # an executable is not found, even if stderr is redirected.
740 # Redirect stdin to placate older versions of autoconf. Sigh.
741 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
742 AUTOCONF=autoconf
743 echo "$ac_t""found" 1>&6
744 else
745 AUTOCONF="$missing_dir/missing autoconf"
746 echo "$ac_t""missing" 1>&6
747 fi
748
749 echo $ac_n "checking for working automake""... $ac_c" 1>&6
750 echo "configure:751: checking for working automake" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf. Sigh.
754 if (automake --version) < /dev/null > /dev/null 2>&1; then
755 AUTOMAKE=automake
756 echo "$ac_t""found" 1>&6
757 else
758 AUTOMAKE="$missing_dir/missing automake"
759 echo "$ac_t""missing" 1>&6
760 fi
761
762 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
763 echo "configure:764: checking for working autoheader" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
768 AUTOHEADER=autoheader
769 echo "$ac_t""found" 1>&6
770 else
771 AUTOHEADER="$missing_dir/missing autoheader"
772 echo "$ac_t""missing" 1>&6
773 fi
774
775 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
776 echo "configure:777: checking for working makeinfo" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
781 MAKEINFO=makeinfo
782 echo "$ac_t""found" 1>&6
783 else
784 MAKEINFO="$missing_dir/missing makeinfo"
785 echo "$ac_t""missing" 1>&6
786 fi
787
788
789
790
791
792
793 #AM_MAINTAINER_MODE
794
795 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
796 echo "configure:797: checking whether ${MAKE-make} sets \${MAKE}" >&5
797 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
798 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
800 else
801 cat > conftestmake <<\EOF
802 all:
803 @echo 'ac_maketemp="${MAKE}"'
804 EOF
805 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
806 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
807 if test -n "$ac_maketemp"; then
808 eval ac_cv_prog_make_${ac_make}_set=yes
809 else
810 eval ac_cv_prog_make_${ac_make}_set=no
811 fi
812 rm -f conftestmake
813 fi
814 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
815 echo "$ac_t""yes" 1>&6
816 SET_MAKE=
817 else
818 echo "$ac_t""no" 1>&6
819 SET_MAKE="MAKE=${MAKE-make}"
820 fi
821
822
823 # Extract the first word of "gcc", so it can be a program name with args.
824 set dummy gcc; ac_word=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
829 else
830 if test -n "$CC"; then
831 ac_cv_prog_CC="$CC" # Let the user override the test.
832 else
833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
834 ac_dummy="$PATH"
835 for ac_dir in $ac_dummy; do
836 test -z "$ac_dir" && ac_dir=.
837 if test -f $ac_dir/$ac_word; then
838 ac_cv_prog_CC="gcc"
839 break
840 fi
841 done
842 IFS="$ac_save_ifs"
843 fi
844 fi
845 CC="$ac_cv_prog_CC"
846 if test -n "$CC"; then
847 echo "$ac_t""$CC" 1>&6
848 else
849 echo "$ac_t""no" 1>&6
850 fi
851
852 if test -z "$CC"; then
853 # Extract the first word of "cc", so it can be a program name with args.
854 set dummy cc; ac_word=$2
855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
856 echo "configure:857: checking for $ac_word" >&5
857 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
858 echo $ac_n "(cached) $ac_c" 1>&6
859 else
860 if test -n "$CC"; then
861 ac_cv_prog_CC="$CC" # Let the user override the test.
862 else
863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
864 ac_prog_rejected=no
865 ac_dummy="$PATH"
866 for ac_dir in $ac_dummy; do
867 test -z "$ac_dir" && ac_dir=.
868 if test -f $ac_dir/$ac_word; then
869 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
870 ac_prog_rejected=yes
871 continue
872 fi
873 ac_cv_prog_CC="cc"
874 break
875 fi
876 done
877 IFS="$ac_save_ifs"
878 if test $ac_prog_rejected = yes; then
879 # We found a bogon in the path, so make sure we never use it.
880 set dummy $ac_cv_prog_CC
881 shift
882 if test $# -gt 0; then
883 # We chose a different compiler from the bogus one.
884 # However, it has the same basename, so the bogon will be chosen
885 # first if we set CC to just the basename; use the full file name.
886 shift
887 set dummy "$ac_dir/$ac_word" "$@"
888 shift
889 ac_cv_prog_CC="$@"
890 fi
891 fi
892 fi
893 fi
894 CC="$ac_cv_prog_CC"
895 if test -n "$CC"; then
896 echo "$ac_t""$CC" 1>&6
897 else
898 echo "$ac_t""no" 1>&6
899 fi
900
901 if test -z "$CC"; then
902 case "`uname -s`" in
903 *win32* | *WIN32*)
904 # Extract the first word of "cl", so it can be a program name with args.
905 set dummy cl; ac_word=$2
906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
907 echo "configure:908: checking for $ac_word" >&5
908 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
910 else
911 if test -n "$CC"; then
912 ac_cv_prog_CC="$CC" # Let the user override the test.
913 else
914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
915 ac_dummy="$PATH"
916 for ac_dir in $ac_dummy; do
917 test -z "$ac_dir" && ac_dir=.
918 if test -f $ac_dir/$ac_word; then
919 ac_cv_prog_CC="cl"
920 break
921 fi
922 done
923 IFS="$ac_save_ifs"
924 fi
925 fi
926 CC="$ac_cv_prog_CC"
927 if test -n "$CC"; then
928 echo "$ac_t""$CC" 1>&6
929 else
930 echo "$ac_t""no" 1>&6
931 fi
932 ;;
933 esac
934 fi
935 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
936 fi
937
938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
939 echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
940
941 ac_ext=c
942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
943 ac_cpp='$CPP $CPPFLAGS'
944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
946 cross_compiling=$ac_cv_prog_cc_cross
947
948 cat > conftest.$ac_ext << EOF
949
950 #line 951 "configure"
951 #include "confdefs.h"
952
953 main(){return(0);}
954 EOF
955 if { (eval echo configure:956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
956 ac_cv_prog_cc_works=yes
957 # If we can't run a trivial program, we are probably using a cross compiler.
958 if (./conftest; exit) 2>/dev/null; then
959 ac_cv_prog_cc_cross=no
960 else
961 ac_cv_prog_cc_cross=yes
962 fi
963 else
964 echo "configure: failed program was:" >&5
965 cat conftest.$ac_ext >&5
966 ac_cv_prog_cc_works=no
967 fi
968 rm -fr conftest*
969 ac_ext=c
970 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
971 ac_cpp='$CPP $CPPFLAGS'
972 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
973 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
974 cross_compiling=$ac_cv_prog_cc_cross
975
976 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
977 if test $ac_cv_prog_cc_works = no; then
978 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
979 fi
980 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
981 echo "configure:982: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
982 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
983 cross_compiling=$ac_cv_prog_cc_cross
984
985 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
986 echo "configure:987: checking whether we are using GNU C" >&5
987 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989 else
990 cat > conftest.c <<EOF
991 #ifdef __GNUC__
992 yes;
993 #endif
994 EOF
995 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
996 ac_cv_prog_gcc=yes
997 else
998 ac_cv_prog_gcc=no
999 fi
1000 fi
1001
1002 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1003
1004 if test $ac_cv_prog_gcc = yes; then
1005 GCC=yes
1006 else
1007 GCC=
1008 fi
1009
1010 ac_test_CFLAGS="${CFLAGS+set}"
1011 ac_save_CFLAGS="$CFLAGS"
1012 CFLAGS=
1013 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1014 echo "configure:1015: checking whether ${CC-cc} accepts -g" >&5
1015 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1017 else
1018 echo 'void f(){}' > conftest.c
1019 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1020 ac_cv_prog_cc_g=yes
1021 else
1022 ac_cv_prog_cc_g=no
1023 fi
1024 rm -f conftest*
1025
1026 fi
1027
1028 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1029 if test "$ac_test_CFLAGS" = set; then
1030 CFLAGS="$ac_save_CFLAGS"
1031 elif test $ac_cv_prog_cc_g = yes; then
1032 if test "$GCC" = yes; then
1033 CFLAGS="-g -O2"
1034 else
1035 CFLAGS="-g"
1036 fi
1037 else
1038 if test "$GCC" = yes; then
1039 CFLAGS="-O2"
1040 else
1041 CFLAGS=
1042 fi
1043 fi
1044
1045
1046 # Find a good install program. We prefer a C program (faster),
1047 # so one script is as good as another. But avoid the broken or
1048 # incompatible versions:
1049 # SysV /etc/install, /usr/sbin/install
1050 # SunOS /usr/etc/install
1051 # IRIX /sbin/install
1052 # AIX /bin/install
1053 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1054 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1055 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1056 # ./install, which can be erroneously created by make from ./install.sh.
1057 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1058 echo "configure:1059: checking for a BSD compatible install" >&5
1059 if test -z "$INSTALL"; then
1060 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1062 else
1063 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1064 for ac_dir in $PATH; do
1065 # Account for people who put trailing slashes in PATH elements.
1066 case "$ac_dir/" in
1067 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1068 *)
1069 # OSF1 and SCO ODT 3.0 have their own names for install.
1070 # Don't use installbsd from OSF since it installs stuff as root
1071 # by default.
1072 for ac_prog in ginstall scoinst install; do
1073 if test -f $ac_dir/$ac_prog; then
1074 if test $ac_prog = install &&
1075 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1076 # AIX install. It has an incompatible calling convention.
1077 :
1078 else
1079 ac_cv_path_install="$ac_dir/$ac_prog -c"
1080 break 2
1081 fi
1082 fi
1083 done
1084 ;;
1085 esac
1086 done
1087 IFS="$ac_save_IFS"
1088
1089 fi
1090 if test "${ac_cv_path_install+set}" = set; then
1091 INSTALL="$ac_cv_path_install"
1092 else
1093 # As a last resort, use the slow shell script. We don't cache a
1094 # path for INSTALL within a source directory, because that will
1095 # break other packages using the cache if that directory is
1096 # removed, or if the path is relative.
1097 INSTALL="$ac_install_sh"
1098 fi
1099 fi
1100 echo "$ac_t""$INSTALL" 1>&6
1101
1102 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1103 # It thinks the first close brace ends the variable substitution.
1104 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1105
1106 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1107
1108 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1109
1110 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1111 echo "configure:1112: checking whether ln -s works" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1114 else
1115 rm -f conftestdata
1116 if ln -s X conftestdata 2>/dev/null
1117 then
1118 rm -f conftestdata
1119 ac_cv_prog_LN_S="ln -s"
1120 else
1121 ac_cv_prog_LN_S=ln
1122 fi
1123 fi
1124 LN_S="$ac_cv_prog_LN_S"
1125 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1126 echo "$ac_t""yes" 1>&6
1127 else
1128 echo "$ac_t""no" 1>&6
1129 fi
1130
1131
1132
1133 opt_maintainer_mode=no
1134 echo $ac_n "checking whether in maintanance mode""... $ac_c" 1>&6
1135 echo "configure:1136: checking whether in maintanance mode" >&5
1136 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1137 if test "${enable_maintainer_mode+set}" = set; then
1138 enableval="$enable_maintainer_mode"
1139 opt_maintainer_mode=$enableval
1140 fi
1141
1142 echo "$ac_t""$opt_maintainer_mode" 1>&6
1143
1144
1145 if test $ac_cv_prog_gcc = yes; then
1146 CFLAGS="${CFLAGS} -ffast-math"
1147 if test $opt_maintainer_mode = yes; then
1148 CFLAGS="${CFLAGS} -Wall -Wpointer-arith -pedantic"
1149 fi
1150 fi
1151
1152 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1153 echo "configure:1154: checking how to run the C preprocessor" >&5
1154 # On Suns, sometimes $CPP names a directory.
1155 if test -n "$CPP" && test -d "$CPP"; then
1156 CPP=
1157 fi
1158 if test -z "$CPP"; then
1159 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1161 else
1162 # This must be in double quotes, not single quotes, because CPP may get
1163 # substituted into the Makefile and "${CC-cc}" will confuse make.
1164 CPP="${CC-cc} -E"
1165 # On the NeXT, cc -E runs the code through the compiler's parser,
1166 # not just through cpp.
1167 cat > conftest.$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1170 #include <assert.h>
1171 Syntax Error
1172 EOF
1173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1174 { (eval echo configure:1175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1176 if test -z "$ac_err"; then
1177 :
1178 else
1179 echo "$ac_err" >&5
1180 echo "configure: failed program was:" >&5
1181 cat conftest.$ac_ext >&5
1182 rm -rf conftest*
1183 CPP="${CC-cc} -E -traditional-cpp"
1184 cat > conftest.$ac_ext <<EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1187 #include <assert.h>
1188 Syntax Error
1189 EOF
1190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1191 { (eval echo configure:1192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1193 if test -z "$ac_err"; then
1194 :
1195 else
1196 echo "$ac_err" >&5
1197 echo "configure: failed program was:" >&5
1198 cat conftest.$ac_ext >&5
1199 rm -rf conftest*
1200 CPP="${CC-cc} -nologo -E"
1201 cat > conftest.$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1204 #include <assert.h>
1205 Syntax Error
1206 EOF
1207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1208 { (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1210 if test -z "$ac_err"; then
1211 :
1212 else
1213 echo "$ac_err" >&5
1214 echo "configure: failed program was:" >&5
1215 cat conftest.$ac_ext >&5
1216 rm -rf conftest*
1217 CPP=/lib/cpp
1218 fi
1219 rm -f conftest*
1220 fi
1221 rm -f conftest*
1222 fi
1223 rm -f conftest*
1224 ac_cv_prog_CPP="$CPP"
1225 fi
1226 CPP="$ac_cv_prog_CPP"
1227 else
1228 ac_cv_prog_CPP="$CPP"
1229 fi
1230 echo "$ac_t""$CPP" 1>&6
1231
1232 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1233 echo "configure:1234: checking for ANSI C header files" >&5
1234 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1236 else
1237 cat > conftest.$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1240 #include <stdlib.h>
1241 #include <stdarg.h>
1242 #include <string.h>
1243 #include <float.h>
1244 EOF
1245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1246 { (eval echo configure:1247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1248 if test -z "$ac_err"; then
1249 rm -rf conftest*
1250 ac_cv_header_stdc=yes
1251 else
1252 echo "$ac_err" >&5
1253 echo "configure: failed program was:" >&5
1254 cat conftest.$ac_ext >&5
1255 rm -rf conftest*
1256 ac_cv_header_stdc=no
1257 fi
1258 rm -f conftest*
1259
1260 if test $ac_cv_header_stdc = yes; then
1261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 #include <string.h>
1266 EOF
1267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1268 egrep "memchr" >/dev/null 2>&1; then
1269 :
1270 else
1271 rm -rf conftest*
1272 ac_cv_header_stdc=no
1273 fi
1274 rm -f conftest*
1275
1276 fi
1277
1278 if test $ac_cv_header_stdc = yes; then
1279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1280 cat > conftest.$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1283 #include <stdlib.h>
1284 EOF
1285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1286 egrep "free" >/dev/null 2>&1; then
1287 :
1288 else
1289 rm -rf conftest*
1290 ac_cv_header_stdc=no
1291 fi
1292 rm -f conftest*
1293
1294 fi
1295
1296 if test $ac_cv_header_stdc = yes; then
1297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1298 if test "$cross_compiling" = yes; then
1299 :
1300 else
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1304 #include <ctype.h>
1305 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1306 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1308 int main () { int i; for (i = 0; i < 256; i++)
1309 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1310 exit (0); }
1311
1312 EOF
1313 if { (eval echo configure:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1314 then
1315 :
1316 else
1317 echo "configure: failed program was:" >&5
1318 cat conftest.$ac_ext >&5
1319 rm -fr conftest*
1320 ac_cv_header_stdc=no
1321 fi
1322 rm -fr conftest*
1323 fi
1324
1325 fi
1326 fi
1327
1328 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1329 if test $ac_cv_header_stdc = yes; then
1330 cat >> confdefs.h <<\EOF
1331 #define STDC_HEADERS 1
1332 EOF
1333
1334 fi
1335
1336 for ac_hdr in unistd.h strings.h
1337 do
1338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1340 echo "configure:1341: checking for $ac_hdr" >&5
1341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1343 else
1344 cat > conftest.$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1347 #include <$ac_hdr>
1348 EOF
1349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1350 { (eval echo configure:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1352 if test -z "$ac_err"; then
1353 rm -rf conftest*
1354 eval "ac_cv_header_$ac_safe=yes"
1355 else
1356 echo "$ac_err" >&5
1357 echo "configure: failed program was:" >&5
1358 cat conftest.$ac_ext >&5
1359 rm -rf conftest*
1360 eval "ac_cv_header_$ac_safe=no"
1361 fi
1362 rm -f conftest*
1363 fi
1364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1365 echo "$ac_t""yes" 1>&6
1366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1367 cat >> confdefs.h <<EOF
1368 #define $ac_tr_hdr 1
1369 EOF
1370
1371 else
1372 echo "$ac_t""no" 1>&6
1373 fi
1374 done
1375
1376 for ac_hdr in sys/types.h sys/mman.h dirent.h
1377 do
1378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1380 echo "configure:1381: checking for $ac_hdr" >&5
1381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1383 else
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1387 #include <$ac_hdr>
1388 EOF
1389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1390 { (eval echo configure:1391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1392 if test -z "$ac_err"; then
1393 rm -rf conftest*
1394 eval "ac_cv_header_$ac_safe=yes"
1395 else
1396 echo "$ac_err" >&5
1397 echo "configure: failed program was:" >&5
1398 cat conftest.$ac_ext >&5
1399 rm -rf conftest*
1400 eval "ac_cv_header_$ac_safe=no"
1401 fi
1402 rm -f conftest*
1403 fi
1404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1405 echo "$ac_t""yes" 1>&6
1406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1407 cat >> confdefs.h <<EOF
1408 #define $ac_tr_hdr 1
1409 EOF
1410
1411 else
1412 echo "$ac_t""no" 1>&6
1413 fi
1414 done
1415
1416 for ac_hdr in limits.h
1417 do
1418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1420 echo "configure:1421: checking for $ac_hdr" >&5
1421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1427 #include <$ac_hdr>
1428 EOF
1429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1430 { (eval echo configure:1431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1432 if test -z "$ac_err"; then
1433 rm -rf conftest*
1434 eval "ac_cv_header_$ac_safe=yes"
1435 else
1436 echo "$ac_err" >&5
1437 echo "configure: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1439 rm -rf conftest*
1440 eval "ac_cv_header_$ac_safe=no"
1441 fi
1442 rm -f conftest*
1443 fi
1444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1445 echo "$ac_t""yes" 1>&6
1446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1447 cat >> confdefs.h <<EOF
1448 #define $ac_tr_hdr 1
1449 EOF
1450
1451 else
1452 echo "$ac_t""no" 1>&6
1453 fi
1454 done
1455
1456 for ac_func in bzero memset mlock
1457 do
1458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_func" >&5
1460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1462 else
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466 /* System header to define __stub macros and hopefully few prototypes,
1467 which can conflict with char $ac_func(); below. */
1468 #include <assert.h>
1469 /* Override any gcc2 internal prototype to avoid an error. */
1470 /* We use char because int might match the return type of a gcc2
1471 builtin and then its argument prototype would still apply. */
1472 char $ac_func();
1473
1474 int main() {
1475
1476 /* The GNU C library defines this for functions which it implements
1477 to always fail with ENOSYS. Some functions are actually named
1478 something starting with __ and the normal name is an alias. */
1479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1480 choke me
1481 #else
1482 $ac_func();
1483 #endif
1484
1485 ; return 0; }
1486 EOF
1487 if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1488 rm -rf conftest*
1489 eval "ac_cv_func_$ac_func=yes"
1490 else
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1493 rm -rf conftest*
1494 eval "ac_cv_func_$ac_func=no"
1495 fi
1496 rm -f conftest*
1497 fi
1498
1499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1500 echo "$ac_t""yes" 1>&6
1501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1502 cat >> confdefs.h <<EOF
1503 #define $ac_tr_func 1
1504 EOF
1505
1506 else
1507 echo "$ac_t""no" 1>&6
1508 fi
1509 done
1510
1511 for ac_func in memmove bcopy
1512 do
1513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1514 echo "configure:1515: checking for $ac_func" >&5
1515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1516 echo $ac_n "(cached) $ac_c" 1>&6
1517 else
1518 cat > conftest.$ac_ext <<EOF
1519 #line 1520 "configure"
1520 #include "confdefs.h"
1521 /* System header to define __stub macros and hopefully few prototypes,
1522 which can conflict with char $ac_func(); below. */
1523 #include <assert.h>
1524 /* Override any gcc2 internal prototype to avoid an error. */
1525 /* We use char because int might match the return type of a gcc2
1526 builtin and then its argument prototype would still apply. */
1527 char $ac_func();
1528
1529 int main() {
1530
1531 /* The GNU C library defines this for functions which it implements
1532 to always fail with ENOSYS. Some functions are actually named
1533 something starting with __ and the normal name is an alias. */
1534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1535 choke me
1536 #else
1537 $ac_func();
1538 #endif
1539
1540 ; return 0; }
1541 EOF
1542 if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1543 rm -rf conftest*
1544 eval "ac_cv_func_$ac_func=yes"
1545 else
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1548 rm -rf conftest*
1549 eval "ac_cv_func_$ac_func=no"
1550 fi
1551 rm -f conftest*
1552 fi
1553
1554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1555 echo "$ac_t""yes" 1>&6
1556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1557 cat >> confdefs.h <<EOF
1558 #define $ac_tr_func 1
1559 EOF
1560
1561 else
1562 echo "$ac_t""no" 1>&6
1563 fi
1564 done
1565
1566
1567 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1568 echo "configure:1569: checking whether byte ordering is bigendian" >&5
1569 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1571 else
1572 ac_cv_c_bigendian=unknown
1573 # See if sys/param.h defines the BYTE_ORDER macro.
1574 cat > conftest.$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1577 #include <sys/types.h>
1578 #include <sys/param.h>
1579 int main() {
1580
1581 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1582 bogus endian macros
1583 #endif
1584 ; return 0; }
1585 EOF
1586 if { (eval echo configure:1587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1587 rm -rf conftest*
1588 # It does; now see whether it defined to BIG_ENDIAN or not.
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1592 #include <sys/types.h>
1593 #include <sys/param.h>
1594 int main() {
1595
1596 #if BYTE_ORDER != BIG_ENDIAN
1597 not big endian
1598 #endif
1599 ; return 0; }
1600 EOF
1601 if { (eval echo configure:1602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1602 rm -rf conftest*
1603 ac_cv_c_bigendian=yes
1604 else
1605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1607 rm -rf conftest*
1608 ac_cv_c_bigendian=no
1609 fi
1610 rm -f conftest*
1611 else
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1614 fi
1615 rm -f conftest*
1616 if test $ac_cv_c_bigendian = unknown; then
1617 if test "$cross_compiling" = yes; then
1618 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1619 else
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1623 main () {
1624 /* Are we little or big endian? From Harbison&Steele. */
1625 union
1626 {
1627 long l;
1628 char c[sizeof (long)];
1629 } u;
1630 u.l = 1;
1631 exit (u.c[sizeof (long) - 1] == 1);
1632 }
1633 EOF
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1635 then
1636 ac_cv_c_bigendian=no
1637 else
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1640 rm -fr conftest*
1641 ac_cv_c_bigendian=yes
1642 fi
1643 rm -fr conftest*
1644 fi
1645
1646 fi
1647 fi
1648
1649 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1650 if test $ac_cv_c_bigendian = yes; then
1651 cat >> confdefs.h <<\EOF
1652 #define WORDS_BIGENDIAN 1
1653 EOF
1654
1655 fi
1656
1657 echo $ac_n "checking size of unsigned long int""... $ac_c" 1>&6
1658 echo "configure:1659: checking size of unsigned long int" >&5
1659 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_int'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1661 else
1662 if test "$cross_compiling" = yes; then
1663 ac_cv_sizeof_unsigned_long_int=4
1664 else
1665 cat > conftest.$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1668 #include <stdio.h>
1669 main()
1670 {
1671 FILE *f=fopen("conftestval", "w");
1672 if (!f) exit(1);
1673 fprintf(f, "%d\n", sizeof(unsigned long int));
1674 exit(0);
1675 }
1676 EOF
1677 if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1678 then
1679 ac_cv_sizeof_unsigned_long_int=`cat conftestval`
1680 else
1681 echo "configure: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1683 rm -fr conftest*
1684 ac_cv_sizeof_unsigned_long_int=0
1685 fi
1686 rm -fr conftest*
1687 fi
1688
1689 fi
1690 echo "$ac_t""$ac_cv_sizeof_unsigned_long_int" 1>&6
1691 cat >> confdefs.h <<EOF
1692 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
1693 EOF
1694
1695
1696 echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
1697 echo "configure:1698: checking size of unsigned int" >&5
1698 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1700 else
1701 if test "$cross_compiling" = yes; then
1702 ac_cv_sizeof_unsigned_int=4
1703 else
1704 cat > conftest.$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1707 #include <stdio.h>
1708 main()
1709 {
1710 FILE *f=fopen("conftestval", "w");
1711 if (!f) exit(1);
1712 fprintf(f, "%d\n", sizeof(unsigned int));
1713 exit(0);
1714 }
1715 EOF
1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1717 then
1718 ac_cv_sizeof_unsigned_int=`cat conftestval`
1719 else
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1722 rm -fr conftest*
1723 ac_cv_sizeof_unsigned_int=0
1724 fi
1725 rm -fr conftest*
1726 fi
1727
1728 fi
1729 echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
1730 cat >> confdefs.h <<EOF
1731 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
1732 EOF
1733
1734
1735 echo $ac_n "checking size of unsigned short int""... $ac_c" 1>&6
1736 echo "configure:1737: checking size of unsigned short int" >&5
1737 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short_int'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1739 else
1740 if test "$cross_compiling" = yes; then
1741 ac_cv_sizeof_unsigned_short_int=2
1742 else
1743 cat > conftest.$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1746 #include <stdio.h>
1747 main()
1748 {
1749 FILE *f=fopen("conftestval", "w");
1750 if (!f) exit(1);
1751 fprintf(f, "%d\n", sizeof(unsigned short int));
1752 exit(0);
1753 }
1754 EOF
1755 if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1756 then
1757 ac_cv_sizeof_unsigned_short_int=`cat conftestval`
1758 else
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1761 rm -fr conftest*
1762 ac_cv_sizeof_unsigned_short_int=0
1763 fi
1764 rm -fr conftest*
1765 fi
1766
1767 fi
1768 echo "$ac_t""$ac_cv_sizeof_unsigned_short_int" 1>&6
1769 cat >> confdefs.h <<EOF
1770 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
1771 EOF
1772
1773
1774 echo $ac_n "checking size of unsigned char""... $ac_c" 1>&6
1775 echo "configure:1776: checking size of unsigned char" >&5
1776 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1778 else
1779 if test "$cross_compiling" = yes; then
1780 ac_cv_sizeof_unsigned_char=1
1781 else
1782 cat > conftest.$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1785 #include <stdio.h>
1786 main()
1787 {
1788 FILE *f=fopen("conftestval", "w");
1789 if (!f) exit(1);
1790 fprintf(f, "%d\n", sizeof(unsigned char));
1791 exit(0);
1792 }
1793 EOF
1794 if { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1795 then
1796 ac_cv_sizeof_unsigned_char=`cat conftestval`
1797 else
1798 echo "configure: failed program was:" >&5
1799 cat conftest.$ac_ext >&5
1800 rm -fr conftest*
1801 ac_cv_sizeof_unsigned_char=0
1802 fi
1803 rm -fr conftest*
1804 fi
1805
1806 fi
1807 echo "$ac_t""$ac_cv_sizeof_unsigned_char" 1>&6
1808 cat >> confdefs.h <<EOF
1809 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
1810 EOF
1811
1812
1813
1814
1815
1816 # Check whether --enable-shared or --disable-shared was given.
1817 if test "${enable_shared+set}" = set; then
1818 enableval="$enable_shared"
1819 p=${PACKAGE-default}
1820 case "$enableval" in
1821 yes) enable_shared=yes ;;
1822 no) enable_shared=no ;;
1823 *)
1824 enable_shared=no
1825 # Look at the argument we got. We use all the common list separators.
1826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1827 for pkg in $enableval; do
1828 if test "X$pkg" = "X$p"; then
1829 enable_shared=yes
1830 fi
1831 done
1832 IFS="$ac_save_ifs"
1833 ;;
1834 esac
1835 else
1836 enable_shared=yes
1837 fi
1838
1839 # Check whether --enable-static or --disable-static was given.
1840 if test "${enable_static+set}" = set; then
1841 enableval="$enable_static"
1842 p=${PACKAGE-default}
1843 case "$enableval" in
1844 yes) enable_static=yes ;;
1845 no) enable_static=no ;;
1846 *)
1847 enable_static=no
1848 # Look at the argument we got. We use all the common list separators.
1849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1850 for pkg in $enableval; do
1851 if test "X$pkg" = "X$p"; then
1852 enable_static=yes
1853 fi
1854 done
1855 IFS="$ac_save_ifs"
1856 ;;
1857 esac
1858 else
1859 enable_static=yes
1860 fi
1861
1862 # Check whether --enable-fast-install or --disable-fast-install was given.
1863 if test "${enable_fast_install+set}" = set; then
1864 enableval="$enable_fast_install"
1865 p=${PACKAGE-default}
1866 case "$enableval" in
1867 yes) enable_fast_install=yes ;;
1868 no) enable_fast_install=no ;;
1869 *)
1870 enable_fast_install=no
1871 # Look at the argument we got. We use all the common list separators.
1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1873 for pkg in $enableval; do
1874 if test "X$pkg" = "X$p"; then
1875 enable_fast_install=yes
1876 fi
1877 done
1878 IFS="$ac_save_ifs"
1879 ;;
1880 esac
1881 else
1882 enable_fast_install=yes
1883 fi
1884
1885
1886 # Make sure we can run config.sub.
1887 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1888 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1889 fi
1890
1891 echo $ac_n "checking host system type""... $ac_c" 1>&6
1892 echo "configure:1893: checking host system type" >&5
1893
1894 host_alias=$host
1895 case "$host_alias" in
1896 NONE)
1897 case $nonopt in
1898 NONE)
1899 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1900 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1901 fi ;;
1902 *) host_alias=$nonopt ;;
1903 esac ;;
1904 esac
1905
1906 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1907 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1908 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1909 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1910 echo "$ac_t""$host" 1>&6
1911
1912 echo $ac_n "checking build system type""... $ac_c" 1>&6
1913 echo "configure:1914: checking build system type" >&5
1914
1915 build_alias=$build
1916 case "$build_alias" in
1917 NONE)
1918 case $nonopt in
1919 NONE) build_alias=$host_alias ;;
1920 *) build_alias=$nonopt ;;
1921 esac ;;
1922 esac
1923
1924 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1925 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1926 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1927 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1928 echo "$ac_t""$build" 1>&6
1929
1930 # Extract the first word of "ranlib", so it can be a program name with args.
1931 set dummy ranlib; ac_word=$2
1932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1933 echo "configure:1934: checking for $ac_word" >&5
1934 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1936 else
1937 if test -n "$RANLIB"; then
1938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1939 else
1940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1941 ac_dummy="$PATH"
1942 for ac_dir in $ac_dummy; do
1943 test -z "$ac_dir" && ac_dir=.
1944 if test -f $ac_dir/$ac_word; then
1945 ac_cv_prog_RANLIB="ranlib"
1946 break
1947 fi
1948 done
1949 IFS="$ac_save_ifs"
1950 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1951 fi
1952 fi
1953 RANLIB="$ac_cv_prog_RANLIB"
1954 if test -n "$RANLIB"; then
1955 echo "$ac_t""$RANLIB" 1>&6
1956 else
1957 echo "$ac_t""no" 1>&6
1958 fi
1959
1960 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1961 if test "${with_gnu_ld+set}" = set; then
1962 withval="$with_gnu_ld"
1963 test "$withval" = no || with_gnu_ld=yes
1964 else
1965 with_gnu_ld=no
1966 fi
1967
1968 ac_prog=ld
1969 if test "$ac_cv_prog_gcc" = yes; then
1970 # Check if gcc -print-prog-name=ld gives a path.
1971 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1972 echo "configure:1973: checking for ld used by GCC" >&5
1973 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1974 case "$ac_prog" in
1975 # Accept absolute paths.
1976 [\\/]* | [A-Za-z]:[\\/]*)
1977 re_direlt='/[^/][^/]*/\.\./'
1978 # Canonicalize the path of ld
1979 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1980 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1981 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1982 done
1983 test -z "$LD" && LD="$ac_prog"
1984 ;;
1985 "")
1986 # If it fails, then pretend we aren't using GCC.
1987 ac_prog=ld
1988 ;;
1989 *)
1990 # If it is relative, then search for the first ld in PATH.
1991 with_gnu_ld=unknown
1992 ;;
1993 esac
1994 elif test "$with_gnu_ld" = yes; then
1995 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1996 echo "configure:1997: checking for GNU ld" >&5
1997 else
1998 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1999 echo "configure:2000: checking for non-GNU ld" >&5
2000 fi
2001 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2003 else
2004 if test -z "$LD"; then
2005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2006 for ac_dir in $PATH; do
2007 test -z "$ac_dir" && ac_dir=.
2008 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2009 ac_cv_path_LD="$ac_dir/$ac_prog"
2010 # Check to see if the program is GNU ld. I'd rather use --version,
2011 # but apparently some GNU ld's only accept -v.
2012 # Break only if it was the GNU/non-GNU ld that we prefer.
2013 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2014 test "$with_gnu_ld" != no && break
2015 else
2016 test "$with_gnu_ld" != yes && break
2017 fi
2018 fi
2019 done
2020 IFS="$ac_save_ifs"
2021 else
2022 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2023 fi
2024 fi
2025
2026 LD="$ac_cv_path_LD"
2027 if test -n "$LD"; then
2028 echo "$ac_t""$LD" 1>&6
2029 else
2030 echo "$ac_t""no" 1>&6
2031 fi
2032 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2033 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2034 echo "configure:2035: checking if the linker ($LD) is GNU ld" >&5
2035 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2037 else
2038 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2039 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2040 ac_cv_prog_gnu_ld=yes
2041 else
2042 ac_cv_prog_gnu_ld=no
2043 fi
2044 fi
2045
2046 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2047
2048
2049 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2050 echo "configure:2051: checking for BSD-compatible nm" >&5
2051 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2053 else
2054 if test -n "$NM"; then
2055 # Let the user override the test.
2056 ac_cv_path_NM="$NM"
2057 else
2058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2059 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2060 test -z "$ac_dir" && ac_dir=.
2061 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2062 # Check to see if the nm accepts a BSD-compat flag.
2063 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2064 # nm: unknown option "B" ignored
2065 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2066 ac_cv_path_NM="$ac_dir/nm -B"
2067 break
2068 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2069 ac_cv_path_NM="$ac_dir/nm -p"
2070 break
2071 else
2072 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2073 continue # so that we can try to find one that supports BSD flags
2074 fi
2075 fi
2076 done
2077 IFS="$ac_save_ifs"
2078 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2079 fi
2080 fi
2081
2082 NM="$ac_cv_path_NM"
2083 echo "$ac_t""$NM" 1>&6
2084
2085
2086 case "$target" in
2087 NONE) lt_target="$host" ;;
2088 *) lt_target="$target" ;;
2089 esac
2090
2091 # Check for any special flags to pass to ltconfig.
2092 libtool_flags="--cache-file=$cache_file"
2093 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2094 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2095 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2096 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2097 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2098 libtool_flags="$libtool_flags --enable-dlopen"
2099
2100 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2101 if test "${enable_libtool_lock+set}" = set; then
2102 enableval="$enable_libtool_lock"
2103 :
2104 fi
2105
2106 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2107 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2108
2109 # Some flags need to be propagated to the compiler or linker for good
2110 # libtool support.
2111 case "$lt_target" in
2112 *-*-irix6*)
2113 # Find out which ABI we are using.
2114 echo '#line 2115 "configure"' > conftest.$ac_ext
2115 if { (eval echo configure:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2116 case "`/usr/bin/file conftest.o`" in
2117 *32-bit*)
2118 LD="${LD-ld} -32"
2119 ;;
2120 *N32*)
2121 LD="${LD-ld} -n32"
2122 ;;
2123 *64-bit*)
2124 LD="${LD-ld} -64"
2125 ;;
2126 esac
2127 fi
2128 rm -rf conftest*
2129 ;;
2130
2131 *-*-sco3.2v5*)
2132 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2133 SAVE_CFLAGS="$CFLAGS"
2134 CFLAGS="$CFLAGS -belf"
2135 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2136 echo "configure:2137: checking whether the C compiler needs -belf" >&5
2137 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2139 else
2140
2141 ac_ext=c
2142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2143 ac_cpp='$CPP $CPPFLAGS'
2144 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2145 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2146 cross_compiling=$ac_cv_prog_cc_cross
2147
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151
2152 int main() {
2153
2154 ; return 0; }
2155 EOF
2156 if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2157 rm -rf conftest*
2158 lt_cv_cc_needs_belf=yes
2159 else
2160 echo "configure: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 rm -rf conftest*
2163 lt_cv_cc_needs_belf=no
2164 fi
2165 rm -f conftest*
2166 ac_ext=c
2167 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2170 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2171 cross_compiling=$ac_cv_prog_cc_cross
2172
2173 fi
2174
2175 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2176 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2177 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2178 CFLAGS="$SAVE_CFLAGS"
2179 fi
2180 ;;
2181
2182
2183 esac
2184
2185
2186 # Save cache, so that ltconfig can load it
2187 cat > confcache <<\EOF
2188 # This file is a shell script that caches the results of configure
2189 # tests run on this system so they can be shared between configure
2190 # scripts and configure runs. It is not useful on other systems.
2191 # If it contains results you don't want to keep, you may remove or edit it.
2192 #
2193 # By default, configure uses ./config.cache as the cache file,
2194 # creating it if it does not exist already. You can give configure
2195 # the --cache-file=FILE option to use a different cache file; that is
2196 # what configure does when it calls configure scripts in
2197 # subdirectories, so they share the cache.
2198 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2199 # config.status only pays attention to the cache file if you give it the
2200 # --recheck option to rerun configure.
2201 #
2202 EOF
2203 # The following way of writing the cache mishandles newlines in values,
2204 # but we know of no workaround that is simple, portable, and efficient.
2205 # So, don't put newlines in cache variables' values.
2206 # Ultrix sh set writes to stderr and can't be redirected directly,
2207 # and sets the high bit in the cache file unless we assign to the vars.
2208 (set) 2>&1 |
2209 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2210 *ac_space=\ *)
2211 # `set' does not quote correctly, so add quotes (double-quote substitution
2212 # turns \\\\ into \\, and sed turns \\ into \).
2213 sed -n \
2214 -e "s/'/'\\\\''/g" \
2215 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2216 ;;
2217 *)
2218 # `set' quotes correctly as required by POSIX, so do not add quotes.
2219 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2220 ;;
2221 esac >> confcache
2222 if cmp -s $cache_file confcache; then
2223 :
2224 else
2225 if test -w $cache_file; then
2226 echo "updating cache $cache_file"
2227 cat confcache > $cache_file
2228 else
2229 echo "not updating unwritable cache $cache_file"
2230 fi
2231 fi
2232 rm -f confcache
2233
2234
2235 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2236 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2237 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2238 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2239 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2240 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2241 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
2242 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2243
2244 # Reload cache, that may have been modified by ltconfig
2245 if test -r "$cache_file"; then
2246 echo "loading cache $cache_file"
2247 . $cache_file
2248 else
2249 echo "creating cache $cache_file"
2250 > $cache_file
2251 fi
2252
2253
2254 # This can be used to rebuild libtool when needed
2255 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2256
2257 # Always use our own libtool.
2258 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2259
2260 # Redirect the config.log output again, so that the ltconfig log is not
2261 # clobbered by the next message.
2262 exec 5>>./config.log
2263
2264
2265
2266 trap '' 1 2 15
2267 cat > confcache <<\EOF
2268 # This file is a shell script that caches the results of configure
2269 # tests run on this system so they can be shared between configure
2270 # scripts and configure runs. It is not useful on other systems.
2271 # If it contains results you don't want to keep, you may remove or edit it.
2272 #
2273 # By default, configure uses ./config.cache as the cache file,
2274 # creating it if it does not exist already. You can give configure
2275 # the --cache-file=FILE option to use a different cache file; that is
2276 # what configure does when it calls configure scripts in
2277 # subdirectories, so they share the cache.
2278 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2279 # config.status only pays attention to the cache file if you give it the
2280 # --recheck option to rerun configure.
2281 #
2282 EOF
2283 # The following way of writing the cache mishandles newlines in values,
2284 # but we know of no workaround that is simple, portable, and efficient.
2285 # So, don't put newlines in cache variables' values.
2286 # Ultrix sh set writes to stderr and can't be redirected directly,
2287 # and sets the high bit in the cache file unless we assign to the vars.
2288 (set) 2>&1 |
2289 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2290 *ac_space=\ *)
2291 # `set' does not quote correctly, so add quotes (double-quote substitution
2292 # turns \\\\ into \\, and sed turns \\ into \).
2293 sed -n \
2294 -e "s/'/'\\\\''/g" \
2295 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2296 ;;
2297 *)
2298 # `set' quotes correctly as required by POSIX, so do not add quotes.
2299 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2300 ;;
2301 esac >> confcache
2302 if cmp -s $cache_file confcache; then
2303 :
2304 else
2305 if test -w $cache_file; then
2306 echo "updating cache $cache_file"
2307 cat confcache > $cache_file
2308 else
2309 echo "not updating unwritable cache $cache_file"
2310 fi
2311 fi
2312 rm -f confcache
2313
2314 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2315
2316 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2317 # Let make expand exec_prefix.
2318 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2319
2320 # Any assignment to VPATH causes Sun make to only execute
2321 # the first set of double-colon rules, so remove it if not needed.
2322 # If there is a colon in the path, we need to keep it.
2323 if test "x$srcdir" = x.; then
2324 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2325 fi
2326
2327 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2328
2329 DEFS=-DHAVE_CONFIG_H
2330
2331 # Without the "./", some shells look in PATH for config.status.
2332 : ${CONFIG_STATUS=./config.status}
2333
2334 echo creating $CONFIG_STATUS
2335 rm -f $CONFIG_STATUS
2336 cat > $CONFIG_STATUS <<EOF
2337 #! /bin/sh
2338 # Generated automatically by configure.
2339 # Run this file to recreate the current configuration.
2340 # This directory was configured as follows,
2341 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2342 #
2343 # $0 $ac_configure_args
2344 #
2345 # Compiler output produced by configure, useful for debugging
2346 # configure, is in ./config.log if it exists.
2347
2348 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2349 for ac_option
2350 do
2351 case "\$ac_option" in
2352 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2353 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2354 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2355 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2356 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2357 exit 0 ;;
2358 -help | --help | --hel | --he | --h)
2359 echo "\$ac_cs_usage"; exit 0 ;;
2360 *) echo "\$ac_cs_usage"; exit 1 ;;
2361 esac
2362 done
2363
2364 ac_given_srcdir=$srcdir
2365 ac_given_INSTALL="$INSTALL"
2366
2367 trap 'rm -fr `echo "Makefile doc/Makefile lib/Makefile src/Makefile modules/Makefile modules/algorithms/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2368 EOF
2369 cat >> $CONFIG_STATUS <<EOF
2370
2371 # Protect against being on the right side of a sed subst in config.status.
2372 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2373 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2374 $ac_vpsub
2375 $extrasub
2376 s%@SHELL@%$SHELL%g
2377 s%@CFLAGS@%$CFLAGS%g
2378 s%@CPPFLAGS@%$CPPFLAGS%g
2379 s%@CXXFLAGS@%$CXXFLAGS%g
2380 s%@FFLAGS@%$FFLAGS%g
2381 s%@DEFS@%$DEFS%g
2382 s%@LDFLAGS@%$LDFLAGS%g
2383 s%@LIBS@%$LIBS%g
2384 s%@exec_prefix@%$exec_prefix%g
2385 s%@prefix@%$prefix%g
2386 s%@program_transform_name@%$program_transform_name%g
2387 s%@bindir@%$bindir%g
2388 s%@sbindir@%$sbindir%g
2389 s%@libexecdir@%$libexecdir%g
2390 s%@datadir@%$datadir%g
2391 s%@sysconfdir@%$sysconfdir%g
2392 s%@sharedstatedir@%$sharedstatedir%g
2393 s%@localstatedir@%$localstatedir%g
2394 s%@libdir@%$libdir%g
2395 s%@includedir@%$includedir%g
2396 s%@oldincludedir@%$oldincludedir%g
2397 s%@infodir@%$infodir%g
2398 s%@mandir@%$mandir%g
2399 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2400 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2401 s%@INSTALL_DATA@%$INSTALL_DATA%g
2402 s%@PACKAGE@%$PACKAGE%g
2403 s%@VERSION@%$VERSION%g
2404 s%@ACLOCAL@%$ACLOCAL%g
2405 s%@AUTOCONF@%$AUTOCONF%g
2406 s%@AUTOMAKE@%$AUTOMAKE%g
2407 s%@AUTOHEADER@%$AUTOHEADER%g
2408 s%@MAKEINFO@%$MAKEINFO%g
2409 s%@SET_MAKE@%$SET_MAKE%g
2410 s%@CC@%$CC%g
2411 s%@LN_S@%$LN_S%g
2412 s%@CPP@%$CPP%g
2413 s%@host@%$host%g
2414 s%@host_alias@%$host_alias%g
2415 s%@host_cpu@%$host_cpu%g
2416 s%@host_vendor@%$host_vendor%g
2417 s%@host_os@%$host_os%g
2418 s%@build@%$build%g
2419 s%@build_alias@%$build_alias%g
2420 s%@build_cpu@%$build_cpu%g
2421 s%@build_vendor@%$build_vendor%g
2422 s%@build_os@%$build_os%g
2423 s%@RANLIB@%$RANLIB%g
2424 s%@LIBTOOL@%$LIBTOOL%g
2425
2426 CEOF
2427 EOF
2428
2429 cat >> $CONFIG_STATUS <<\EOF
2430
2431 # Split the substitutions into bite-sized pieces for seds with
2432 # small command number limits, like on Digital OSF/1 and HP-UX.
2433 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2434 ac_file=1 # Number of current file.
2435 ac_beg=1 # First line for current file.
2436 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2437 ac_more_lines=:
2438 ac_sed_cmds=""
2439 while $ac_more_lines; do
2440 if test $ac_beg -gt 1; then
2441 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2442 else
2443 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2444 fi
2445 if test ! -s conftest.s$ac_file; then
2446 ac_more_lines=false
2447 rm -f conftest.s$ac_file
2448 else
2449 if test -z "$ac_sed_cmds"; then
2450 ac_sed_cmds="sed -f conftest.s$ac_file"
2451 else
2452 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2453 fi
2454 ac_file=`expr $ac_file + 1`
2455 ac_beg=$ac_end
2456 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2457 fi
2458 done
2459 if test -z "$ac_sed_cmds"; then
2460 ac_sed_cmds=cat
2461 fi
2462 EOF
2463
2464 cat >> $CONFIG_STATUS <<EOF
2465
2466 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile lib/Makefile src/Makefile modules/Makefile modules/algorithms/Makefile"}
2467 EOF
2468 cat >> $CONFIG_STATUS <<\EOF
2469 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2470 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2471 case "$ac_file" in
2472 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2473 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2474 *) ac_file_in="${ac_file}.in" ;;
2475 esac
2476
2477 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2478
2479 # Remove last slash and all that follows it. Not all systems have dirname.
2480 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2481 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2482 # The file is in a subdirectory.
2483 test ! -d "$ac_dir" && mkdir "$ac_dir"
2484 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2485 # A "../" for each directory in $ac_dir_suffix.
2486 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2487 else
2488 ac_dir_suffix= ac_dots=
2489 fi
2490
2491 case "$ac_given_srcdir" in
2492 .) srcdir=.
2493 if test -z "$ac_dots"; then top_srcdir=.
2494 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2495 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2496 *) # Relative path.
2497 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2498 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2499 esac
2500
2501 case "$ac_given_INSTALL" in
2502 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2503 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2504 esac
2505
2506 echo creating "$ac_file"
2507 rm -f "$ac_file"
2508 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2509 case "$ac_file" in
2510 *Makefile*) ac_comsub="1i\\
2511 # $configure_input" ;;
2512 *) ac_comsub= ;;
2513 esac
2514
2515 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2516 sed -e "$ac_comsub
2517 s%@configure_input@%$configure_input%g
2518 s%@srcdir@%$srcdir%g
2519 s%@top_srcdir@%$top_srcdir%g
2520 s%@INSTALL@%$INSTALL%g
2521 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2522 fi; done
2523 rm -f conftest.s*
2524
2525 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2526 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2527 #
2528 # ac_d sets the value in "#define NAME VALUE" lines.
2529 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2530 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2531 ac_dC='\3'
2532 ac_dD='%g'
2533 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2534 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2535 ac_uB='\([ ]\)%\1#\2define\3'
2536 ac_uC=' '
2537 ac_uD='\4%g'
2538 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2539 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2540 ac_eB='$%\1#\2define\3'
2541 ac_eC=' '
2542 ac_eD='%g'
2543
2544 if test "${CONFIG_HEADERS+set}" != set; then
2545 EOF
2546 cat >> $CONFIG_STATUS <<EOF
2547 CONFIG_HEADERS="config.h"
2548 EOF
2549 cat >> $CONFIG_STATUS <<\EOF
2550 fi
2551 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2553 case "$ac_file" in
2554 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2555 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2556 *) ac_file_in="${ac_file}.in" ;;
2557 esac
2558
2559 echo creating $ac_file
2560
2561 rm -f conftest.frag conftest.in conftest.out
2562 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2563 cat $ac_file_inputs > conftest.in
2564
2565 EOF
2566
2567 # Transform confdefs.h into a sed script conftest.vals that substitutes
2568 # the proper values into config.h.in to produce config.h. And first:
2569 # Protect against being on the right side of a sed subst in config.status.
2570 # Protect against being in an unquoted here document in config.status.
2571 rm -f conftest.vals
2572 cat > conftest.hdr <<\EOF
2573 s/[\\&%]/\\&/g
2574 s%[\\$`]%\\&%g
2575 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2576 s%ac_d%ac_u%gp
2577 s%ac_u%ac_e%gp
2578 EOF
2579 sed -n -f conftest.hdr confdefs.h > conftest.vals
2580 rm -f conftest.hdr
2581
2582 # This sed command replaces #undef with comments. This is necessary, for
2583 # example, in the case of _POSIX_SOURCE, which is predefined and required
2584 # on some systems where configure will not decide to define it.
2585 cat >> conftest.vals <<\EOF
2586 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2587 EOF
2588
2589 # Break up conftest.vals because some shells have a limit on
2590 # the size of here documents, and old seds have small limits too.
2591
2592 rm -f conftest.tail
2593 while :
2594 do
2595 ac_lines=`grep -c . conftest.vals`
2596 # grep -c gives empty output for an empty file on some AIX systems.
2597 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2598 # Write a limited-size here document to conftest.frag.
2599 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2600 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2601 echo 'CEOF
2602 sed -f conftest.frag conftest.in > conftest.out
2603 rm -f conftest.in
2604 mv conftest.out conftest.in
2605 ' >> $CONFIG_STATUS
2606 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2607 rm -f conftest.vals
2608 mv conftest.tail conftest.vals
2609 done
2610 rm -f conftest.vals
2611
2612 cat >> $CONFIG_STATUS <<\EOF
2613 rm -f conftest.frag conftest.h
2614 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2615 cat conftest.in >> conftest.h
2616 rm -f conftest.in
2617 if cmp -s $ac_file conftest.h 2>/dev/null; then
2618 echo "$ac_file is unchanged"
2619 rm -f conftest.h
2620 else
2621 # Remove last slash and all that follows it. Not all systems have dirname.
2622 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2623 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2624 # The file is in a subdirectory.
2625 test ! -d "$ac_dir" && mkdir "$ac_dir"
2626 fi
2627 rm -f $ac_file
2628 mv conftest.h $ac_file
2629 fi
2630 fi; done
2631
2632 EOF
2633 cat >> $CONFIG_STATUS <<EOF
2634
2635
2636 EOF
2637 cat >> $CONFIG_STATUS <<\EOF
2638 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2639
2640 exit 0
2641 EOF
2642 chmod +x $CONFIG_STATUS
2643 rm -fr confdefs* $ac_clean_files
2644 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2645

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26