45 sim_inline
="-DDEFAULT_INLINE=0"
82 # This file is derived from `gettext.m4'. The difference is that the
83 # included macros assume Cygnus-style source and build trees.
85 # Macro to add for using GNU gettext.
86 # Ulrich Drepper <drepper@cygnus.com>, 1995.
88 # This file file be copied and used freely without restrictions. It can
89 # be used in projects which are not available under the GNU Public License
90 # but which still want to provide support for the GNU gettext functionality.
91 # Please note that the actual code is *not* freely available.
99 # Search path for a program which passes the given test.
100 # Ulrich Drepper <drepper@cygnus.com>, 1996.
102 # This file file be copied and used freely without restrictions. It can
103 # be used in projects which are not available under the GNU Public License
104 # but which still want to provide support for the GNU gettext functionality.
105 # Please note that the actual code is *not* freely available.
111 # Check whether LC_MESSAGES is available in <locale.h>.
112 # Ulrich Drepper <drepper@cygnus.com>, 1995.
114 # This file file be copied and used freely without restrictions. It can
115 # be used in projects which are not available under the GNU Public License
116 # but which still want to provide support for the GNU gettext functionality.
117 # Please note that the actual code is *not* freely available.
126 # Guess values for system-dependent variables and create Makefiles.
127 # Generated automatically using autoconf version 2.13
128 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
130 # This configure script is free software; the Free Software Foundation
131 # gives unlimited permission to copy, distribute and modify it.
135 ac_default_prefix
=/usr
/local
136 # Any additions from configure.in:
138 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
140 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used"
142 # Initialize some variables set by options.
143 # The variables have the same names as the options, with
144 # dashes changed to underlines.
146 cache_file
=.
/config.cache
155 program_transform_name
=s
,x
,x
,
164 bindir
='${exec_prefix}/bin'
165 sbindir
='${exec_prefix}/sbin'
166 libexecdir
='${exec_prefix}/libexec'
167 datadir
='${prefix}/share'
168 sysconfdir
='${prefix}/etc'
169 sharedstatedir
='${prefix}/com'
170 localstatedir
='${prefix}/var'
171 libdir
='${exec_prefix}/lib'
172 includedir
='${prefix}/include'
173 oldincludedir
='/usr/include'
174 infodir
='${prefix}/info'
175 mandir
='${prefix}/man'
177 # Initialize some other variables.
180 SHELL
=${CONFIG_SHELL-/bin/sh}
181 # Maximum number of lines to put in a shell here document.
188 # If the previous option needs an argument, assign it.
189 if test -n "$ac_prev"; then
190 eval "$ac_prev=\$ac_option"
196 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
200 # Accept the important Cygnus configure options, so we can diagnose typos.
204 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
206 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
207 bindir
="$ac_optarg" ;;
209 -build |
--build |
--buil |
--bui |
--bu)
211 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
212 build
="$ac_optarg" ;;
214 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
215 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
216 ac_prev
=cache_file
;;
217 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
218 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
219 cache_file
="$ac_optarg" ;;
221 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
223 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
225 datadir
="$ac_optarg" ;;
227 -disable-* |
--disable-*)
228 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
229 # Reject names that are not valid shell variable names.
230 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
231 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
233 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
234 eval "enable_${ac_feature}=no" ;;
236 -enable-* |
--enable-*)
237 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
238 # Reject names that are not valid shell variable names.
239 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
240 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
242 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
247 eval "enable_${ac_feature}='$ac_optarg'" ;;
249 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
250 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
251 |
--exec |
--exe |
--ex)
252 ac_prev
=exec_prefix
;;
253 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
254 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
255 |
--exec=* |
--exe=* |
--ex=*)
256 exec_prefix
="$ac_optarg" ;;
258 -gas |
--gas |
--ga |
--g)
259 # Obsolete; use --with-gas.
262 -help |
--help |
--hel |
--he)
263 # Omit some internal or obsolete options to make the list less imposing.
264 # This message is too long to be a string in the A/UX 3.1 sh.
266 Usage: configure [options] [host]
267 Options: [defaults in brackets after descriptions]
269 --cache-file=FILE cache test results in FILE
270 --help print this message
271 --no-create do not create output files
272 --quiet, --silent do not print \`checking...' messages
273 --site-file=FILE use FILE as the site file
274 --version print the version of autoconf that created configure
275 Directory and file names:
276 --prefix=PREFIX install architecture-independent files in PREFIX
278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
280 --bindir=DIR user executables in DIR [EPREFIX/bin]
281 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
282 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
283 --datadir=DIR read-only architecture-independent data in DIR
285 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
286 --sharedstatedir=DIR modifiable architecture-independent data in DIR
288 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
289 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
290 --includedir=DIR C header files in DIR [PREFIX/include]
291 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
292 --infodir=DIR info documentation in DIR [PREFIX/info]
293 --mandir=DIR man documentation in DIR [PREFIX/man]
294 --srcdir=DIR find the sources in DIR [configure dir or ..]
295 --program-prefix=PREFIX prepend PREFIX to installed program names
296 --program-suffix=SUFFIX append SUFFIX to installed program names
297 --program-transform-name=PROGRAM
298 run sed PROGRAM on installed program names
302 --build=BUILD configure for building on BUILD [BUILD=HOST]
303 --host=HOST configure for HOST [guessed]
304 --target=TARGET configure for TARGET [TARGET=HOST]
305 Features and packages:
306 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
307 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
308 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
309 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
310 --x-includes=DIR X include files are in DIR
311 --x-libraries=DIR X library files are in DIR
313 if test -n "$ac_help"; then
314 echo "--enable and --with options recognized:$ac_help"
318 -host |
--host |
--hos |
--ho)
320 -host=* |
--host=* |
--hos=* |
--ho=*)
323 -includedir |
--includedir |
--includedi |
--included |
--include \
324 |
--includ |
--inclu |
--incl |
--inc)
325 ac_prev
=includedir
;;
326 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
327 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
328 includedir
="$ac_optarg" ;;
330 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
332 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
333 infodir
="$ac_optarg" ;;
335 -libdir |
--libdir |
--libdi |
--libd)
337 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
338 libdir
="$ac_optarg" ;;
340 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
341 |
--libexe |
--libex |
--libe)
342 ac_prev
=libexecdir
;;
343 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
344 |
--libexe=* |
--libex=* |
--libe=*)
345 libexecdir
="$ac_optarg" ;;
347 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
348 |
--localstate |
--localstat |
--localsta |
--localst \
349 |
--locals |
--local |
--loca |
--loc |
--lo)
350 ac_prev
=localstatedir
;;
351 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
352 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
353 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
354 localstatedir
="$ac_optarg" ;;
356 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
358 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
359 mandir
="$ac_optarg" ;;
362 # Obsolete; use --without-fp.
365 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
369 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
370 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
373 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
374 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
375 |
--oldin |
--oldi |
--old |
--ol |
--o)
376 ac_prev
=oldincludedir
;;
377 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
378 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
379 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
380 oldincludedir
="$ac_optarg" ;;
382 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
384 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
385 prefix
="$ac_optarg" ;;
387 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
388 |
--program-pre |
--program-pr |
--program-p)
389 ac_prev
=program_prefix
;;
390 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
391 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
392 program_prefix
="$ac_optarg" ;;
394 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
395 |
--program-suf |
--program-su |
--program-s)
396 ac_prev
=program_suffix
;;
397 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
398 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
399 program_suffix
="$ac_optarg" ;;
401 -program-transform-name |
--program-transform-name \
402 |
--program-transform-nam |
--program-transform-na \
403 |
--program-transform-n |
--program-transform- \
404 |
--program-transform |
--program-transfor \
405 |
--program-transfo |
--program-transf \
406 |
--program-trans |
--program-tran \
407 |
--progr-tra |
--program-tr |
--program-t)
408 ac_prev
=program_transform_name
;;
409 -program-transform-name=* |
--program-transform-name=* \
410 |
--program-transform-nam=* |
--program-transform-na=* \
411 |
--program-transform-n=* |
--program-transform-=* \
412 |
--program-transform=* |
--program-transfor=* \
413 |
--program-transfo=* |
--program-transf=* \
414 |
--program-trans=* |
--program-tran=* \
415 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
416 program_transform_name
="$ac_optarg" ;;
418 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
419 |
-silent |
--silent |
--silen |
--sile |
--sil)
422 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
424 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
426 sbindir
="$ac_optarg" ;;
428 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
429 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
430 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
432 ac_prev
=sharedstatedir
;;
433 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
434 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
435 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
437 sharedstatedir
="$ac_optarg" ;;
439 -site |
--site |
--sit)
441 -site=* |
--site=* |
--sit=*)
444 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
446 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
447 sitefile
="$ac_optarg" ;;
449 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
451 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
452 srcdir
="$ac_optarg" ;;
454 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
455 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
456 ac_prev
=sysconfdir
;;
457 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
458 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
459 sysconfdir
="$ac_optarg" ;;
461 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
463 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
464 target
="$ac_optarg" ;;
466 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
469 -version |
--version |
--versio |
--versi |
--vers)
470 echo "configure generated by autoconf version 2.13"
474 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
475 # Reject names that are not valid shell variable names.
476 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
477 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
479 ac_package
=`echo $ac_package| sed 's/-/_/g'`
484 eval "with_${ac_package}='$ac_optarg'" ;;
486 -without-* |
--without-*)
487 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
488 # Reject names that are not valid shell variable names.
489 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
490 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
492 ac_package
=`echo $ac_package| sed 's/-/_/g'`
493 eval "with_${ac_package}=no" ;;
496 # Obsolete; use --with-x.
499 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
500 |
--x-incl |
--x-inc |
--x-in |
--x-i)
501 ac_prev
=x_includes
;;
502 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
503 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
504 x_includes
="$ac_optarg" ;;
506 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
507 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
508 ac_prev
=x_libraries
;;
509 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
510 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
511 x_libraries
="$ac_optarg" ;;
513 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
517 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
518 echo "configure: warning: $ac_option: invalid host type" 1>&2
520 if test "x$nonopt" != xNONE
; then
521 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
529 if test -n "$ac_prev"; then
530 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
533 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
535 # File descriptor usage:
538 # 2 errors and warnings
539 # 3 some systems may open it to /dev/tty
540 # 4 used on the Kubota Titan
541 # 6 checking for... messages and results
542 # 5 compiler messages saved in config.log
543 if test "$silent" = yes; then
551 This file contains any messages produced by compilers while
552 running configure, to aid debugging if configure makes a mistake.
555 # Strip out --no-create and --no-recursion so they do not pile up.
556 # Also quote any args containing shell metacharacters.
561 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
562 |
--no-cr |
--no-c) ;;
563 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
564 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
565 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
566 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
567 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
572 # Only set these to C if already set. These must not be set unconditionally
573 # because not all systems understand e.g. LANG=C (notably SCO).
574 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
575 # Non-C LC_CTYPE values break the ctype check.
576 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
577 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
578 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
579 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
581 # confdefs.h avoids OS command line length limits that DEFS can exceed.
582 rm -rf conftest
* confdefs.h
583 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
586 # A filename unique to this package, relative to the directory that
587 # configure is in, which we can look for to find out if srcdir is correct.
588 ac_unique_file
=table.h
590 # Find the source files, if location was not specified.
591 if test -z "$srcdir"; then
592 ac_srcdir_defaulted
=yes
593 # Try the directory containing this script, then its parent.
595 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
596 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
598 if test ! -r $srcdir/$ac_unique_file; then
602 ac_srcdir_defaulted
=no
604 if test ! -r $srcdir/$ac_unique_file; then
605 if test "$ac_srcdir_defaulted" = yes; then
606 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
608 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
611 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
613 # Prefer explicitly selected file to automatically selected ones.
614 if test -z "$sitefile"; then
615 if test -z "$CONFIG_SITE"; then
616 if test "x$prefix" != xNONE
; then
617 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
619 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
623 CONFIG_SITE
="$sitefile"
625 for ac_site_file
in $CONFIG_SITE; do
626 if test -r "$ac_site_file"; then
627 echo "loading site script $ac_site_file"
632 if test -r "$cache_file"; then
633 echo "loading cache $cache_file"
636 echo "creating cache $cache_file"
641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
642 ac_cpp
='$CPP $CPPFLAGS'
643 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
644 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
645 cross_compiling
=$ac_cv_prog_cc_cross
649 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
650 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
651 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
658 ac_n
= ac_c
='\c' ac_t
=
664 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
665 if test -f $ac_dir/install-sh
; then
667 ac_install_sh
="$ac_aux_dir/install-sh -c"
669 elif test -f $ac_dir/install.sh
; then
671 ac_install_sh
="$ac_aux_dir/install.sh -c"
675 if test -z "$ac_aux_dir"; then
676 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
678 ac_config_guess
=$ac_aux_dir/config.guess
679 ac_config_sub
=$ac_aux_dir/config.sub
680 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
682 # Find a good install program. We prefer a C program (faster),
683 # so one script is as good as another. But avoid the broken or
684 # incompatible versions:
685 # SysV /etc/install, /usr/sbin/install
686 # SunOS /usr/etc/install
689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
692 # ./install, which can be erroneously created by make from ./install.sh.
693 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
694 echo "configure:695: checking for a BSD compatible install" >&5
695 if test -z "$INSTALL"; then
696 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
700 for ac_dir
in $PATH; do
701 # Account for people who put trailing slashes in PATH elements.
703 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
705 # OSF1 and SCO ODT 3.0 have their own names for install.
706 # Don't use installbsd from OSF since it installs stuff as root
708 for ac_prog
in ginstall scoinst
install; do
709 if test -f $ac_dir/$ac_prog; then
710 if test $ac_prog = install &&
711 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
712 # AIX install. It has an incompatible calling convention.
715 ac_cv_path_install
="$ac_dir/$ac_prog -c"
726 if test "${ac_cv_path_install+set}" = set; then
727 INSTALL
="$ac_cv_path_install"
729 # As a last resort, use the slow shell script. We don't cache a
730 # path for INSTALL within a source directory, because that will
731 # break other packages using the cache if that directory is
732 # removed, or if the path is relative.
733 INSTALL
="$ac_install_sh"
736 echo "$ac_t""$INSTALL" 1>&6
738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
739 # It thinks the first close brace ends the variable substitution.
740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
744 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
746 # Extract the first word of "gcc", so it can be a program name with args.
747 set dummy gcc
; ac_word
=$2
748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
749 echo "configure:750: checking for $ac_word" >&5
750 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 if test -n "$CC"; then
754 ac_cv_prog_CC
="$CC" # Let the user override the test.
756 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
758 for ac_dir
in $ac_dummy; do
759 test -z "$ac_dir" && ac_dir
=.
760 if test -f $ac_dir/$ac_word; then
769 if test -n "$CC"; then
770 echo "$ac_t""$CC" 1>&6
772 echo "$ac_t""no" 1>&6
775 if test -z "$CC"; then
776 # Extract the first word of "cc", so it can be a program name with args.
777 set dummy cc
; ac_word
=$2
778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
779 echo "configure:780: checking for $ac_word" >&5
780 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 if test -n "$CC"; then
784 ac_cv_prog_CC
="$CC" # Let the user override the test.
786 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
789 for ac_dir
in $ac_dummy; do
790 test -z "$ac_dir" && ac_dir
=.
791 if test -f $ac_dir/$ac_word; then
792 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
801 if test $ac_prog_rejected = yes; then
802 # We found a bogon in the path, so make sure we never use it.
803 set dummy
$ac_cv_prog_CC
805 if test $# -gt 0; then
806 # We chose a different compiler from the bogus one.
807 # However, it has the same basename, so the bogon will be chosen
808 # first if we set CC to just the basename; use the full file name.
810 set dummy
"$ac_dir/$ac_word" "$@"
818 if test -n "$CC"; then
819 echo "$ac_t""$CC" 1>&6
821 echo "$ac_t""no" 1>&6
824 if test -z "$CC"; then
827 # Extract the first word of "cl", so it can be a program name with args.
828 set dummy cl
; ac_word
=$2
829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
830 echo "configure:831: checking for $ac_word" >&5
831 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
834 if test -n "$CC"; then
835 ac_cv_prog_CC
="$CC" # Let the user override the test.
837 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
839 for ac_dir
in $ac_dummy; do
840 test -z "$ac_dir" && ac_dir
=.
841 if test -f $ac_dir/$ac_word; then
850 if test -n "$CC"; then
851 echo "$ac_t""$CC" 1>&6
853 echo "$ac_t""no" 1>&6
858 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
861 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
862 echo "configure:863: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
866 ac_cpp
='$CPP $CPPFLAGS'
867 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
868 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
869 cross_compiling
=$ac_cv_prog_cc_cross
871 cat > conftest.
$ac_ext << EOF
873 #line 874 "configure"
874 #include "confdefs.h"
878 if { (eval echo configure
:879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
879 ac_cv_prog_cc_works
=yes
880 # If we can't run a trivial program, we are probably using a cross compiler.
881 if (.
/conftest
; exit) 2>/dev
/null
; then
882 ac_cv_prog_cc_cross
=no
884 ac_cv_prog_cc_cross
=yes
887 echo "configure: failed program was:" >&5
888 cat conftest.
$ac_ext >&5
889 ac_cv_prog_cc_works
=no
893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
894 ac_cpp
='$CPP $CPPFLAGS'
895 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
896 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
897 cross_compiling
=$ac_cv_prog_cc_cross
899 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
900 if test $ac_cv_prog_cc_works = no
; then
901 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
903 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
904 echo "configure:905: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
905 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
906 cross_compiling
=$ac_cv_prog_cc_cross
908 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
909 echo "configure:910: checking whether we are using GNU C" >&5
910 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 cat > conftest.c
<<EOF
918 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
925 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
927 if test $ac_cv_prog_gcc = yes; then
933 ac_test_CFLAGS
="${CFLAGS+set}"
934 ac_save_CFLAGS
="$CFLAGS"
936 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
937 echo "configure:938: checking whether ${CC-cc} accepts -g" >&5
938 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
941 echo 'void f(){}' > conftest.c
942 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
951 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
952 if test "$ac_test_CFLAGS" = set; then
953 CFLAGS
="$ac_save_CFLAGS"
954 elif test $ac_cv_prog_cc_g = yes; then
955 if test "$GCC" = yes; then
961 if test "$GCC" = yes; then
970 # NOTE: Don't add -Wall or -Wunused, they both include
971 # -Wunused-parameter which reports bogus warnings.
972 # NOTE: If you add to this list, remember to update
973 # gdb/doc/gdbint.texinfo.
974 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
975 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
976 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
977 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
978 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
979 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
980 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
981 # -Woverloaded-virtual -Winline -Werror"
982 # Check whether --enable-build-warnings or --disable-build-warnings was given.
983 if test "${enable_build_warnings+set}" = set; then
984 enableval
="$enable_build_warnings"
985 case "${enableval}" in
987 no
) build_warnings
="-w";;
988 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
989 build_warnings
="${build_warnings} ${t}";;
990 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
991 build_warnings
="${t} ${build_warnings}";;
992 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
994 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
995 echo "Setting compiler warning flags = $build_warnings" 6>&1
998 # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
999 if test "${enable_sim_build_warnings+set}" = set; then
1000 enableval
="$enable_sim_build_warnings"
1001 case "${enableval}" in
1003 no
) build_warnings
="-w";;
1004 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1005 build_warnings
="${build_warnings} ${t}";;
1006 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
1007 build_warnings
="${t} ${build_warnings}";;
1008 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1010 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
1011 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
1016 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
1018 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
1019 echo "configure:1020: checking compiler warning flags" >&5
1020 # Separate out the -Werror flag as some files just cannot be
1021 # compiled with it enabled.
1022 for w
in ${build_warnings}; do
1024 -Werr*) WERROR_CFLAGS
=-Werror ;;
1025 *) # Check that GCC accepts it
1026 saved_CFLAGS
="$CFLAGS"
1028 cat > conftest.
$ac_ext <<EOF
1029 #line 1030 "configure"
1030 #include "confdefs.h"
1036 if { (eval echo configure
:1037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1038 WARN_CFLAGS
="${WARN_CFLAGS} $w"
1040 echo "configure: failed program was:" >&5
1041 cat conftest.
$ac_ext >&5
1044 CFLAGS
="$saved_CFLAGS"
1047 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
1051 # Put a plausible default for CC_FOR_BUILD in Makefile.
1052 if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
1053 AR_FOR_BUILD
='$(AR)'
1054 AR_FLAGS_FOR_BUILD
='$(AR_FLAGS)'
1055 CC_FOR_BUILD
='$(CC)'
1056 CFLAGS_FOR_BUILD
='$(CFLAGS)'
1057 RANLIB_FOR_BUILD
='$(RANLIB)'
1058 LIBIBERTY_LIB
=..
/..
/libiberty
/libiberty.a
1060 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
1061 AR_FLAGS_FOR_BUILD
=${AR_FLAGS_FOR_BUILD-rc}
1062 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1063 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-"-g"}
1064 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
1070 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
1071 if test -f $ac_dir/install-sh
; then
1073 ac_install_sh
="$ac_aux_dir/install-sh -c"
1075 elif test -f $ac_dir/install.sh
; then
1077 ac_install_sh
="$ac_aux_dir/install.sh -c"
1081 if test -z "$ac_aux_dir"; then
1082 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1084 ac_config_guess
=$ac_aux_dir/config.guess
1085 ac_config_sub
=$ac_aux_dir/config.sub
1086 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1089 # Do some error checking and defaulting for the host and target type.
1091 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1094 # 1. You are not allowed to specify --host, --target, and nonopt at the
1096 # 2. Host defaults to nonopt.
1097 # 3. If nonopt is not specified, then host defaults to the current host,
1098 # as determined by config.guess.
1099 # 4. Target and build default to nonopt.
1100 # 5. If nonopt is not specified, then target and build default to host.
1102 # The aliases save the names the user supplied, while $host etc.
1103 # will get canonicalized.
1104 case $host---$target---$nonopt in
1105 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1106 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1110 # Make sure we can run config.sub.
1111 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1112 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1115 echo $ac_n "checking host system type""... $ac_c" 1>&6
1116 echo "configure:1117: checking host system type" >&5
1119 case "$host_alias" in
1123 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1124 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1126 *) host_alias
=$nonopt ;;
1130 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1131 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1132 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1133 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1134 echo "$ac_t""$host" 1>&6
1136 echo $ac_n "checking target system type""... $ac_c" 1>&6
1137 echo "configure:1138: checking target system type" >&5
1139 target_alias
=$target
1140 case "$target_alias" in
1143 NONE
) target_alias
=$host_alias ;;
1144 *) target_alias
=$nonopt ;;
1148 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1149 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1150 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1151 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1152 echo "$ac_t""$target" 1>&6
1154 echo $ac_n "checking build system type""... $ac_c" 1>&6
1155 echo "configure:1156: checking build system type" >&5
1158 case "$build_alias" in
1161 NONE
) build_alias
=$host_alias ;;
1162 *) build_alias
=$nonopt ;;
1166 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1167 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1168 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1169 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1170 echo "$ac_t""$build" 1>&6
1172 test "$host_alias" != "$target_alias" &&
1173 test "$program_prefix$program_suffix$program_transform_name" = \
1175 program_prefix
=${target_alias}-
1177 if test "$program_transform_name" = s
,x
,x
,; then
1178 program_transform_name
=
1180 # Double any \ or $. echo might interpret backslashes.
1181 cat <<\EOF_SED
> conftestsed
1182 s
,\\,\\\\,g
; s
,\$
,$$
,g
1184 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1187 test "$program_prefix" != NONE
&&
1188 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1189 # Use a double $ so make ignores it.
1190 test "$program_suffix" != NONE
&&
1191 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1193 # sed with no file args requires a program.
1194 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1197 .
${srcdir}/..
/..
/bfd
/configure.
host
1201 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1202 echo "configure:1203: checking how to run the C preprocessor" >&5
1203 # On Suns, sometimes $CPP names a directory.
1204 if test -n "$CPP" && test -d "$CPP"; then
1207 if test -z "$CPP"; then
1208 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 # This must be in double quotes, not single quotes, because CPP may get
1212 # substituted into the Makefile and "${CC-cc}" will confuse make.
1214 # On the NeXT, cc -E runs the code through the compiler's parser,
1215 # not just through cpp.
1216 cat > conftest.
$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1222 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1223 { (eval echo configure
:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1224 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1225 if test -z "$ac_err"; then
1229 echo "configure: failed program was:" >&5
1230 cat conftest.
$ac_ext >&5
1232 CPP
="${CC-cc} -E -traditional-cpp"
1233 cat > conftest.
$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1239 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1240 { (eval echo configure
:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1241 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1242 if test -z "$ac_err"; then
1246 echo "configure: failed program was:" >&5
1247 cat conftest.
$ac_ext >&5
1249 CPP
="${CC-cc} -nologo -E"
1250 cat > conftest.
$ac_ext <<EOF
1251 #line 1252 "configure"
1252 #include "confdefs.h"
1256 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1257 { (eval echo configure
:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1258 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1259 if test -z "$ac_err"; then
1263 echo "configure: failed program was:" >&5
1264 cat conftest.
$ac_ext >&5
1273 ac_cv_prog_CPP
="$CPP"
1275 CPP
="$ac_cv_prog_CPP"
1277 ac_cv_prog_CPP
="$CPP"
1279 echo "$ac_t""$CPP" 1>&6
1281 for ac_hdr
in stdlib.h string.h
strings.h sys
/stat.h sys
/types.h unistd.h
1283 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1285 echo "configure:1286: checking for $ac_hdr" >&5
1286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 cat > conftest.
$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1294 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1295 { (eval echo configure
:1296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1296 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1297 if test -z "$ac_err"; then
1299 eval "ac_cv_header_$ac_safe=yes"
1302 echo "configure: failed program was:" >&5
1303 cat conftest.
$ac_ext >&5
1305 eval "ac_cv_header_$ac_safe=no"
1309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1310 echo "$ac_t""yes" 1>&6
1311 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1312 cat >> confdefs.h
<<EOF
1313 #define $ac_tr_hdr 1
1317 echo "$ac_t""no" 1>&6
1322 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1324 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1325 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1326 echo "configure:1327: checking for $ac_hdr that defines DIR" >&5
1327 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 cat > conftest.
$ac_ext <<EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1333 #include <sys/types.h>
1339 if { (eval echo configure
:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1341 eval "ac_cv_header_dirent_$ac_safe=yes"
1343 echo "configure: failed program was:" >&5
1344 cat conftest.
$ac_ext >&5
1346 eval "ac_cv_header_dirent_$ac_safe=no"
1350 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1351 echo "$ac_t""yes" 1>&6
1352 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1353 cat >> confdefs.h
<<EOF
1354 #define $ac_tr_hdr 1
1356 ac_header_dirent
=$ac_hdr; break
1358 echo "$ac_t""no" 1>&6
1361 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1362 if test $ac_header_dirent = dirent.h
; then
1363 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1364 echo "configure:1365: checking for opendir in -ldir" >&5
1365 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 ac_save_LIBS
="$LIBS"
1371 cat > conftest.
$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 /* Override any gcc2 internal prototype to avoid an error. */
1375 /* We use char because int might match the return type of a gcc2
1376 builtin and then its argument prototype would still apply. */
1383 if { (eval echo configure
:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1385 eval "ac_cv_lib_$ac_lib_var=yes"
1387 echo "configure: failed program was:" >&5
1388 cat conftest.
$ac_ext >&5
1390 eval "ac_cv_lib_$ac_lib_var=no"
1393 LIBS
="$ac_save_LIBS"
1396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1400 echo "$ac_t""no" 1>&6
1404 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1405 echo "configure:1406: checking for opendir in -lx" >&5
1406 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 ac_save_LIBS
="$LIBS"
1412 cat > conftest.
$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1415 /* Override any gcc2 internal prototype to avoid an error. */
1416 /* We use char because int might match the return type of a gcc2
1417 builtin and then its argument prototype would still apply. */
1424 if { (eval echo configure
:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1426 eval "ac_cv_lib_$ac_lib_var=yes"
1428 echo "configure: failed program was:" >&5
1429 cat conftest.
$ac_ext >&5
1431 eval "ac_cv_lib_$ac_lib_var=no"
1434 LIBS
="$ac_save_LIBS"
1437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1438 echo "$ac_t""yes" 1>&6
1441 echo "$ac_t""no" 1>&6
1456 # Extract the first word of "ranlib", so it can be a program name with args.
1457 set dummy ranlib
; ac_word
=$2
1458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_word" >&5
1460 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 if test -n "$RANLIB"; then
1464 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1466 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1468 for ac_dir
in $ac_dummy; do
1469 test -z "$ac_dir" && ac_dir
=.
1470 if test -f $ac_dir/$ac_word; then
1471 ac_cv_prog_RANLIB
="ranlib"
1476 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1479 RANLIB
="$ac_cv_prog_RANLIB"
1480 if test -n "$RANLIB"; then
1481 echo "$ac_t""$RANLIB" 1>&6
1483 echo "$ac_t""no" 1>&6
1488 cat > confcache
<<\EOF
1489 # This file is a shell script that caches the results of configure
1490 # tests run on this system so they can be shared between configure
1491 # scripts and configure runs. It is not useful on other systems.
1492 # If it contains results you don't want to keep, you may remove or edit it.
1494 # By default, configure uses ./config.cache as the cache file,
1495 # creating it if it does not exist already. You can give configure
1496 # the --cache-file=FILE option to use a different cache file; that is
1497 # what configure does when it calls configure scripts in
1498 # subdirectories, so they share the cache.
1499 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1500 # config.status only pays attention to the cache file if you give it the
1501 # --recheck option to rerun configure.
1504 # The following way of writing the cache mishandles newlines in values,
1505 # but we know of no workaround that is simple, portable, and efficient.
1506 # So, don't put newlines in cache variables' values.
1507 # Ultrix sh set writes to stderr and can't be redirected directly,
1508 # and sets the high bit in the cache file unless we assign to the vars.
1510 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1512 # `set' does not quote correctly, so add quotes (double-quote substitution
1513 # turns \\\\ into \\, and sed turns \\ into \).
1515 -e "s/'/'\\\\''/g" \
1516 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1519 # `set' quotes correctly as required by POSIX, so do not add quotes.
1520 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1523 if cmp -s $cache_file confcache
; then
1526 if test -w $cache_file; then
1527 echo "updating cache $cache_file"
1528 cat confcache
> $cache_file
1530 echo "not updating unwritable cache $cache_file"
1535 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1537 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1538 # Let make expand exec_prefix.
1539 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1541 # Any assignment to VPATH causes Sun make to only execute
1542 # the first set of double-colon rules, so remove it if not needed.
1543 # If there is a colon in the path, we need to keep it.
1544 if test "x$srcdir" = x.
; then
1545 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1548 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1550 DEFS
=-DHAVE_CONFIG_H
1552 # Without the "./", some shells look in PATH for config.status.
1553 : ${CONFIG_STATUS=./config.status}
1555 echo creating
$CONFIG_STATUS
1556 rm -f $CONFIG_STATUS
1557 cat > $CONFIG_STATUS <<EOF
1559 # Generated automatically by configure.
1560 # Run this file to recreate the current configuration.
1561 # This directory was configured as follows,
1562 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1564 # $0 $ac_configure_args
1566 # Compiler output produced by configure, useful for debugging
1567 # configure, is in ./config.log if it exists.
1569 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1572 case "\$ac_option" in
1573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1574 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1575 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1576 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1577 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1579 -help | --help | --hel | --he | --h)
1580 echo "\$ac_cs_usage"; exit 0 ;;
1581 *) echo "\$ac_cs_usage"; exit 1 ;;
1585 ac_given_srcdir=$srcdir
1586 ac_given_INSTALL="$INSTALL"
1588 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1590 cat >> $CONFIG_STATUS <<EOF
1592 # Protect against being on the right side of a sed subst in config.status.
1593 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1594 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1597 s%@sim_environment@%$sim_environment%g
1598 s%@sim_alignment@%$sim_alignment%g
1599 s%@sim_assert@%$sim_assert%g
1600 s%@sim_bitsize@%$sim_bitsize%g
1601 s%@sim_endian@%$sim_endian%g
1602 s%@sim_hostendian@%$sim_hostendian%g
1603 s%@sim_float@%$sim_float%g
1604 s%@sim_scache@%$sim_scache%g
1605 s%@sim_default_model@%$sim_default_model%g
1606 s%@sim_hw_cflags@%$sim_hw_cflags%g
1607 s%@sim_hw_objs@%$sim_hw_objs%g
1608 s%@sim_hw@%$sim_hw%g
1609 s%@sim_inline@%$sim_inline%g
1610 s%@sim_packages@%$sim_packages%g
1611 s%@sim_regparm@%$sim_regparm%g
1612 s%@sim_reserved_bits@%$sim_reserved_bits%g
1613 s%@sim_smp@%$sim_smp%g
1614 s%@sim_stdcall@%$sim_stdcall%g
1615 s%@sim_xor_endian@%$sim_xor_endian%g
1616 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
1617 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
1619 s%@CFLAGS@%$CFLAGS%g
1620 s%@CPPFLAGS@%$CPPFLAGS%g
1621 s%@CXXFLAGS@%$CXXFLAGS%g
1622 s%@FFLAGS@%$FFLAGS%g
1624 s%@LDFLAGS@%$LDFLAGS%g
1626 s%@exec_prefix@%$exec_prefix%g
1627 s%@prefix@%$prefix%g
1628 s%@program_transform_name@%$program_transform_name%g
1629 s%@bindir@%$bindir%g
1630 s%@sbindir@%$sbindir%g
1631 s%@libexecdir@%$libexecdir%g
1632 s%@datadir@%$datadir%g
1633 s%@sysconfdir@%$sysconfdir%g
1634 s%@sharedstatedir@%$sharedstatedir%g
1635 s%@localstatedir@%$localstatedir%g
1636 s%@libdir@%$libdir%g
1637 s%@includedir@%$includedir%g
1638 s%@oldincludedir@%$oldincludedir%g
1639 s%@infodir@%$infodir%g
1640 s%@mandir@%$mandir%g
1641 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1642 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1643 s%@INSTALL_DATA@%$INSTALL_DATA%g
1646 s%@host_alias@%$host_alias%g
1647 s%@host_cpu@%$host_cpu%g
1648 s%@host_vendor@%$host_vendor%g
1649 s%@host_os@%$host_os%g
1650 s%@target@%$target%g
1651 s%@target_alias@%$target_alias%g
1652 s%@target_cpu@%$target_cpu%g
1653 s%@target_vendor@%$target_vendor%g
1654 s%@target_os@%$target_os%g
1656 s%@build_alias@%$build_alias%g
1657 s%@build_cpu@%$build_cpu%g
1658 s%@build_vendor@%$build_vendor%g
1659 s%@build_os@%$build_os%g
1661 s%@AR_FOR_BUILD@%$AR_FOR_BUILD%g
1662 s%@AR_FLAGS_FOR_BUILD@%$AR_FLAGS_FOR_BUILD%g
1663 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1664 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
1665 s%@RANLIB_FOR_BUILD@%$RANLIB_FOR_BUILD%g
1666 s%@LIBIBERTY_LIB@%$LIBIBERTY_LIB%g
1668 s%@RANLIB@%$RANLIB%g
1673 cat >> $CONFIG_STATUS <<\EOF
1675 # Split the substitutions into bite-sized pieces for seds with
1676 # small command number limits, like on Digital OSF/1 and HP-UX.
1677 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
1678 ac_file
=1 # Number of current file.
1679 ac_beg
=1 # First line for current file.
1680 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
1683 while $ac_more_lines; do
1684 if test $ac_beg -gt 1; then
1685 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
1687 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
1689 if test ! -s conftest.s
$ac_file; then
1691 rm -f conftest.s
$ac_file
1693 if test -z "$ac_sed_cmds"; then
1694 ac_sed_cmds
="sed -f conftest.s$ac_file"
1696 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
1698 ac_file
=`expr $ac_file + 1`
1700 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
1703 if test -z "$ac_sed_cmds"; then
1708 cat >> $CONFIG_STATUS <<EOF
1710 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1712 cat >> $CONFIG_STATUS <<\EOF
1713 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1714 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1716 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1717 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1718 *) ac_file_in
="${ac_file}.in" ;;
1721 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1723 # Remove last slash and all that follows it. Not all systems have dirname.
1724 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1725 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1726 # The file is in a subdirectory.
1727 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1728 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1729 # A "../" for each directory in $ac_dir_suffix.
1730 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1732 ac_dir_suffix
= ac_dots
=
1735 case "$ac_given_srcdir" in
1737 if test -z "$ac_dots"; then top_srcdir
=.
1738 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1739 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1741 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1742 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1745 case "$ac_given_INSTALL" in
1746 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
1747 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
1750 echo creating
"$ac_file"
1752 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1754 *Makefile
*) ac_comsub
="1i\\
1755 # $configure_input" ;;
1759 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1761 s%@configure_input@%$configure_input%g
1762 s%@srcdir@%$srcdir%g
1763 s%@top_srcdir@%$top_srcdir%g
1764 s%@INSTALL@%$INSTALL%g
1765 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
1769 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1770 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1772 # ac_d sets the value in "#define NAME VALUE" lines.
1773 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1774 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1777 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1778 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1779 ac_uB
='\([ ]\)%\1#\2define\3'
1782 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1783 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1784 ac_eB
='$%\1#\2define\3'
1788 if test "${CONFIG_HEADERS+set}" != set; then
1790 cat >> $CONFIG_STATUS <<EOF
1791 CONFIG_HEADERS="config.h:config.in"
1793 cat >> $CONFIG_STATUS <<\EOF
1795 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1798 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
1799 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1800 *) ac_file_in
="${ac_file}.in" ;;
1803 echo creating
$ac_file
1805 rm -f conftest.frag conftest.
in conftest.out
1806 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1807 cat $ac_file_inputs > conftest.
in
1811 # Transform confdefs.h into a sed script conftest.vals that substitutes
1812 # the proper values into config.h.in to produce config.h. And first:
1813 # Protect against being on the right side of a sed subst in config.status.
1814 # Protect against being in an unquoted here document in config.status.
1816 cat > conftest.hdr
<<\EOF
1819 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1823 sed -n -f conftest.hdr confdefs.h > conftest.vals
1826 # This sed command replaces #undef with comments. This is necessary, for
1827 # example, in the case of _POSIX_SOURCE, which is predefined and required
1828 # on some systems where configure will not decide to define it.
1829 cat >> conftest.vals <<\EOF
1830 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1833 # Break up conftest.vals because some shells have a limit on
1834 # the size of here documents, and old seds have small limits too.
1839 ac_lines=`grep -c . conftest.vals
`
1840 # grep -c gives empty output for an empty file on some AIX systems.
1841 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1842 # Write a limited-size here document to conftest.frag.
1843 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1844 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1846 sed -f conftest.frag conftest.in > conftest.out
1848 mv conftest.out conftest.in
1850 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1852 mv conftest.tail conftest.vals
1856 cat >> $CONFIG_STATUS <<\EOF
1857 rm -f conftest.frag conftest.h
1858 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1859 cat conftest.in >> conftest.h
1861 if cmp -s $ac_file conftest.h 2>/dev/null; then
1862 echo "$ac_file is unchanged"
1865 # Remove last slash and all that follows it. Not all systems have dirname.
1866 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1867 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1868 # The file is in a subdirectory.
1869 test ! -d "$ac_dir" && mkdir "$ac_dir"
1872 mv conftest.h $ac_file
1877 cat >> $CONFIG_STATUS <<EOF
1880 cat >> $CONFIG_STATUS <<\EOF
1881 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1884 chmod +x $CONFIG_STATUS
1885 rm -fr confdefs* $ac_clean_files
1886 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
This page took 0.079228 seconds and 5 git commands to generate.