configure revision 8820c79f75c37a3bc85cea7f56e7277025e157ef
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: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --with-cc=COMPILER select compiler to use" 16ac_help="$ac_help 17 --with-linker=LINKER select linker to use" 18ac_help="$ac_help 19 --with-ccopts=CCOPTS select compiler command line options" 20ac_help="$ac_help 21 --with-ldopts=LDOPTS select linker command line options" 22ac_help="$ac_help 23 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root" 24ac_help="$ac_help 25 --enable-compression enable EXPERIMENTAL compression support" 26ac_help="$ac_help 27 --enable-dll-shlibs select DLL libraries" 28ac_help="$ac_help 29 --enable-elf-shlibs select ELF shared libraries" 30ac_help="$ac_help 31 --enable-bsd-shlibs select BSD shared libraries" 32ac_help="$ac_help 33 --enable-jfs-debug enable journal debugging" 34ac_help="$ac_help 35 --enable-nls Turn on Native Language Support" 36ac_help="$ac_help 37 --with-included-gettext use the GNU gettext library included here" 38ac_help="$ac_help 39 --with-catgets use catgets functions if available" 40ac_help="$ac_help 41 --enable-profile build profiling libraries" 42ac_help="$ac_help 43 --enable-checker build checker libraries" 44ac_help="$ac_help 45 --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)" 46ac_help="$ac_help 47 --enable-dynamic-e2fsck build e2fsck dynamically" 48ac_help="$ac_help 49 --enable-fsck build fsck wrapper program" 50ac_help="$ac_help 51 --enable-old-bitops Use old (non-standard but native) bitmask operations" 52 53# Initialize some variables set by options. 54# The variables have the same names as the options, with 55# dashes changed to underlines. 56build=NONE 57cache_file=./config.cache 58exec_prefix=NONE 59host=NONE 60no_create= 61nonopt=NONE 62no_recursion= 63prefix=NONE 64program_prefix=NONE 65program_suffix=NONE 66program_transform_name=s,x,x, 67silent= 68site= 69srcdir= 70target=NONE 71verbose= 72x_includes=NONE 73x_libraries=NONE 74bindir='${exec_prefix}/bin' 75sbindir='${exec_prefix}/sbin' 76libexecdir='${exec_prefix}/libexec' 77datadir='${prefix}/share' 78sysconfdir='${prefix}/etc' 79sharedstatedir='${prefix}/com' 80localstatedir='${prefix}/var' 81libdir='${exec_prefix}/lib' 82includedir='${prefix}/include' 83oldincludedir='/usr/include' 84infodir='${prefix}/info' 85mandir='${prefix}/man' 86 87# Initialize some other variables. 88subdirs= 89MFLAGS= MAKEFLAGS= 90SHELL=${CONFIG_SHELL-/bin/sh} 91# Maximum number of lines to put in a shell here document. 92ac_max_here_lines=12 93 94ac_prev= 95for ac_option 96do 97 98 # If the previous option needs an argument, assign it. 99 if test -n "$ac_prev"; then 100 eval "$ac_prev=\$ac_option" 101 ac_prev= 102 continue 103 fi 104 105 case "$ac_option" in 106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 107 *) ac_optarg= ;; 108 esac 109 110 # Accept the important Cygnus configure options, so we can diagnose typos. 111 112 case "$ac_option" in 113 114 -bindir | --bindir | --bindi | --bind | --bin | --bi) 115 ac_prev=bindir ;; 116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 117 bindir="$ac_optarg" ;; 118 119 -build | --build | --buil | --bui | --bu) 120 ac_prev=build ;; 121 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 122 build="$ac_optarg" ;; 123 124 -cache-file | --cache-file | --cache-fil | --cache-fi \ 125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 126 ac_prev=cache_file ;; 127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 129 cache_file="$ac_optarg" ;; 130 131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 132 ac_prev=datadir ;; 133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 134 | --da=*) 135 datadir="$ac_optarg" ;; 136 137 -disable-* | --disable-*) 138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 139 # Reject names that are not valid shell variable names. 140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 142 fi 143 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 144 eval "enable_${ac_feature}=no" ;; 145 146 -enable-* | --enable-*) 147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 148 # Reject names that are not valid shell variable names. 149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 151 fi 152 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 153 case "$ac_option" in 154 *=*) ;; 155 *) ac_optarg=yes ;; 156 esac 157 eval "enable_${ac_feature}='$ac_optarg'" ;; 158 159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 161 | --exec | --exe | --ex) 162 ac_prev=exec_prefix ;; 163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 165 | --exec=* | --exe=* | --ex=*) 166 exec_prefix="$ac_optarg" ;; 167 168 -gas | --gas | --ga | --g) 169 # Obsolete; use --with-gas. 170 with_gas=yes ;; 171 172 -help | --help | --hel | --he) 173 # Omit some internal or obsolete options to make the list less imposing. 174 # This message is too long to be a string in the A/UX 3.1 sh. 175 cat << EOF 176Usage: configure [options] [host] 177Options: [defaults in brackets after descriptions] 178Configuration: 179 --cache-file=FILE cache test results in FILE 180 --help print this message 181 --no-create do not create output files 182 --quiet, --silent do not print \`checking...' messages 183 --version print the version of autoconf that created configure 184Directory and file names: 185 --prefix=PREFIX install architecture-independent files in PREFIX 186 [$ac_default_prefix] 187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 188 [same as prefix] 189 --bindir=DIR user executables in DIR [EPREFIX/bin] 190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 192 --datadir=DIR read-only architecture-independent data in DIR 193 [PREFIX/share] 194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 195 --sharedstatedir=DIR modifiable architecture-independent data in DIR 196 [PREFIX/com] 197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 198 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 199 --includedir=DIR C header files in DIR [PREFIX/include] 200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 201 --infodir=DIR info documentation in DIR [PREFIX/info] 202 --mandir=DIR man documentation in DIR [PREFIX/man] 203 --srcdir=DIR find the sources in DIR [configure dir or ..] 204 --program-prefix=PREFIX prepend PREFIX to installed program names 205 --program-suffix=SUFFIX append SUFFIX to installed program names 206 --program-transform-name=PROGRAM 207 run sed PROGRAM on installed program names 208EOF 209 cat << EOF 210Host type: 211 --build=BUILD configure for building on BUILD [BUILD=HOST] 212 --host=HOST configure for HOST [guessed] 213 --target=TARGET configure for TARGET [TARGET=HOST] 214Features and packages: 215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 219 --x-includes=DIR X include files are in DIR 220 --x-libraries=DIR X library files are in DIR 221EOF 222 if test -n "$ac_help"; then 223 echo "--enable and --with options recognized:$ac_help" 224 fi 225 exit 0 ;; 226 227 -host | --host | --hos | --ho) 228 ac_prev=host ;; 229 -host=* | --host=* | --hos=* | --ho=*) 230 host="$ac_optarg" ;; 231 232 -includedir | --includedir | --includedi | --included | --include \ 233 | --includ | --inclu | --incl | --inc) 234 ac_prev=includedir ;; 235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 236 | --includ=* | --inclu=* | --incl=* | --inc=*) 237 includedir="$ac_optarg" ;; 238 239 -infodir | --infodir | --infodi | --infod | --info | --inf) 240 ac_prev=infodir ;; 241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 242 infodir="$ac_optarg" ;; 243 244 -libdir | --libdir | --libdi | --libd) 245 ac_prev=libdir ;; 246 -libdir=* | --libdir=* | --libdi=* | --libd=*) 247 libdir="$ac_optarg" ;; 248 249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 250 | --libexe | --libex | --libe) 251 ac_prev=libexecdir ;; 252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 253 | --libexe=* | --libex=* | --libe=*) 254 libexecdir="$ac_optarg" ;; 255 256 -localstatedir | --localstatedir | --localstatedi | --localstated \ 257 | --localstate | --localstat | --localsta | --localst \ 258 | --locals | --local | --loca | --loc | --lo) 259 ac_prev=localstatedir ;; 260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 263 localstatedir="$ac_optarg" ;; 264 265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 266 ac_prev=mandir ;; 267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 268 mandir="$ac_optarg" ;; 269 270 -nfp | --nfp | --nf) 271 # Obsolete; use --without-fp. 272 with_fp=no ;; 273 274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 275 | --no-cr | --no-c) 276 no_create=yes ;; 277 278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 280 no_recursion=yes ;; 281 282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 284 | --oldin | --oldi | --old | --ol | --o) 285 ac_prev=oldincludedir ;; 286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 289 oldincludedir="$ac_optarg" ;; 290 291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 292 ac_prev=prefix ;; 293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 294 prefix="$ac_optarg" ;; 295 296 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 297 | --program-pre | --program-pr | --program-p) 298 ac_prev=program_prefix ;; 299 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 301 program_prefix="$ac_optarg" ;; 302 303 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 304 | --program-suf | --program-su | --program-s) 305 ac_prev=program_suffix ;; 306 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 308 program_suffix="$ac_optarg" ;; 309 310 -program-transform-name | --program-transform-name \ 311 | --program-transform-nam | --program-transform-na \ 312 | --program-transform-n | --program-transform- \ 313 | --program-transform | --program-transfor \ 314 | --program-transfo | --program-transf \ 315 | --program-trans | --program-tran \ 316 | --progr-tra | --program-tr | --program-t) 317 ac_prev=program_transform_name ;; 318 -program-transform-name=* | --program-transform-name=* \ 319 | --program-transform-nam=* | --program-transform-na=* \ 320 | --program-transform-n=* | --program-transform-=* \ 321 | --program-transform=* | --program-transfor=* \ 322 | --program-transfo=* | --program-transf=* \ 323 | --program-trans=* | --program-tran=* \ 324 | --progr-tra=* | --program-tr=* | --program-t=*) 325 program_transform_name="$ac_optarg" ;; 326 327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 328 | -silent | --silent | --silen | --sile | --sil) 329 silent=yes ;; 330 331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 332 ac_prev=sbindir ;; 333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 334 | --sbi=* | --sb=*) 335 sbindir="$ac_optarg" ;; 336 337 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 339 | --sharedst | --shareds | --shared | --share | --shar \ 340 | --sha | --sh) 341 ac_prev=sharedstatedir ;; 342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 345 | --sha=* | --sh=*) 346 sharedstatedir="$ac_optarg" ;; 347 348 -site | --site | --sit) 349 ac_prev=site ;; 350 -site=* | --site=* | --sit=*) 351 site="$ac_optarg" ;; 352 353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 354 ac_prev=srcdir ;; 355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 356 srcdir="$ac_optarg" ;; 357 358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 359 | --syscon | --sysco | --sysc | --sys | --sy) 360 ac_prev=sysconfdir ;; 361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 363 sysconfdir="$ac_optarg" ;; 364 365 -target | --target | --targe | --targ | --tar | --ta | --t) 366 ac_prev=target ;; 367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 368 target="$ac_optarg" ;; 369 370 -v | -verbose | --verbose | --verbos | --verbo | --verb) 371 verbose=yes ;; 372 373 -version | --version | --versio | --versi | --vers) 374 echo "configure generated by autoconf version 2.13" 375 exit 0 ;; 376 377 -with-* | --with-*) 378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 379 # Reject names that are not valid shell variable names. 380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 382 fi 383 ac_package=`echo $ac_package| sed 's/-/_/g'` 384 case "$ac_option" in 385 *=*) ;; 386 *) ac_optarg=yes ;; 387 esac 388 eval "with_${ac_package}='$ac_optarg'" ;; 389 390 -without-* | --without-*) 391 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 392 # Reject names that are not valid shell variable names. 393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 395 fi 396 ac_package=`echo $ac_package| sed 's/-/_/g'` 397 eval "with_${ac_package}=no" ;; 398 399 --x) 400 # Obsolete; use --with-x. 401 with_x=yes ;; 402 403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 404 | --x-incl | --x-inc | --x-in | --x-i) 405 ac_prev=x_includes ;; 406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 408 x_includes="$ac_optarg" ;; 409 410 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 412 ac_prev=x_libraries ;; 413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 415 x_libraries="$ac_optarg" ;; 416 417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 418 ;; 419 420 *) 421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 422 echo "configure: warning: $ac_option: invalid host type" 1>&2 423 fi 424 if test "x$nonopt" != xNONE; then 425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 426 fi 427 nonopt="$ac_option" 428 ;; 429 430 esac 431done 432 433if test -n "$ac_prev"; then 434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 435fi 436 437trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 438 439# File descriptor usage: 440# 0 standard input 441# 1 file creation 442# 2 errors and warnings 443# 3 some systems may open it to /dev/tty 444# 4 used on the Kubota Titan 445# 6 checking for... messages and results 446# 5 compiler messages saved in config.log 447if test "$silent" = yes; then 448 exec 6>/dev/null 449else 450 exec 6>&1 451fi 452exec 5>./config.log 453 454echo "\ 455This file contains any messages produced by compilers while 456running configure, to aid debugging if configure makes a mistake. 457" 1>&5 458 459# Strip out --no-create and --no-recursion so they do not pile up. 460# Also quote any args containing shell metacharacters. 461ac_configure_args= 462for ac_arg 463do 464 case "$ac_arg" in 465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 466 | --no-cr | --no-c) ;; 467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 470 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 471 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 472 esac 473done 474 475# NLS nuisances. 476# Only set these to C if already set. These must not be set unconditionally 477# because not all systems understand e.g. LANG=C (notably SCO). 478# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 479# Non-C LC_CTYPE values break the ctype check. 480if test "${LANG+set}" = set; then LANG=C; export LANG; fi 481if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 482if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 483if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 484 485# confdefs.h avoids OS command line length limits that DEFS can exceed. 486rm -rf conftest* confdefs.h 487# AIX cpp loses on an empty file, so make sure it contains at least a newline. 488echo > confdefs.h 489 490# A filename unique to this package, relative to the directory that 491# configure is in, which we can look for to find out if srcdir is correct. 492ac_unique_file=version.h 493 494# Find the source files, if location was not specified. 495if test -z "$srcdir"; then 496 ac_srcdir_defaulted=yes 497 # Try the directory containing this script, then its parent. 498 ac_prog=$0 499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 501 srcdir=$ac_confdir 502 if test ! -r $srcdir/$ac_unique_file; then 503 srcdir=.. 504 fi 505else 506 ac_srcdir_defaulted=no 507fi 508if test ! -r $srcdir/$ac_unique_file; then 509 if test "$ac_srcdir_defaulted" = yes; then 510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 511 else 512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 513 fi 514fi 515srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 516 517# Prefer explicitly selected file to automatically selected ones. 518if test -z "$CONFIG_SITE"; then 519 if test "x$prefix" != xNONE; then 520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 521 else 522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 523 fi 524fi 525for ac_site_file in $CONFIG_SITE; do 526 if test -r "$ac_site_file"; then 527 echo "loading site script $ac_site_file" 528 . "$ac_site_file" 529 fi 530done 531 532if test -r "$cache_file"; then 533 echo "loading cache $cache_file" 534 . $cache_file 535else 536 echo "creating cache $cache_file" 537 > $cache_file 538fi 539 540ac_ext=c 541# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 542ac_cpp='$CPP $CPPFLAGS' 543ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 544ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 545cross_compiling=$ac_cv_prog_cc_cross 546 547ac_exeext= 548ac_objext=o 549if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 552 ac_n= ac_c=' 553' ac_t=' ' 554 else 555 ac_n=-n ac_c= ac_t= 556 fi 557else 558 ac_n= ac_c='\c' ac_t= 559fi 560 561 562 563MCONFIG=./MCONFIG 564 565BINARY_TYPE=bin 566E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ 567 | awk '{print $3}' | tr \" " " | awk '{print $1}'` 568DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ 569 | tr \" " "` 570MONTH=`echo $DATE | awk -F- '{print $2}'` 571YEAR=`echo $DATE | awk -F- '{print $3}'` 572 573if expr $YEAR ">" 1900 > /dev/null ; then 574 E2FSPROGS_YEAR=$YEAR 575elif expr $YEAR ">" 90 >/dev/null ; then 576 E2FSPROGS_YEAR=19$YEAR 577else 578 E2FSPROGS_YEAR=20$YEAR 579fi 580 581case $MONTH in 582Jan) E2FSPROGS_MONTH="January" ;; 583Feb) E2FSPROGS_MONTH="February" ;; 584Mar) E2FSPROGS_MONTH="March" ;; 585Apr) E2FSPROGS_MONTH="April" ;; 586May) E2FSPROGS_MONTH="May" ;; 587Jun) E2FSPROGS_MONTH="June" ;; 588Jul) E2FSPROGS_MONTH="July" ;; 589Aug) E2FSPROGS_MONTH="August" ;; 590Sep) E2FSPROGS_MONTH="September" ;; 591Oct) E2FSPROGS_MONTH="October" ;; 592Nov) E2FSPROGS_MONTH="November" ;; 593Dec) E2FSPROGS_MONTH="December" ;; 594*) echo "Unknown month $MONTH??" ;; 595esac 596 597unset DATE MONTH YEAR 598echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" 599echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" 600 601 602 603 604ac_aux_dir= 605for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 606 if test -f $ac_dir/install-sh; then 607 ac_aux_dir=$ac_dir 608 ac_install_sh="$ac_aux_dir/install-sh -c" 609 break 610 elif test -f $ac_dir/install.sh; then 611 ac_aux_dir=$ac_dir 612 ac_install_sh="$ac_aux_dir/install.sh -c" 613 break 614 fi 615done 616if test -z "$ac_aux_dir"; then 617 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 618fi 619ac_config_guess=$ac_aux_dir/config.guess 620ac_config_sub=$ac_aux_dir/config.sub 621ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 622 623 624# Make sure we can run config.sub. 625if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 626else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 627fi 628 629echo $ac_n "checking host system type""... $ac_c" 1>&6 630echo "configure:631: checking host system type" >&5 631 632host_alias=$host 633case "$host_alias" in 634NONE) 635 case $nonopt in 636 NONE) 637 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 638 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 639 fi ;; 640 *) host_alias=$nonopt ;; 641 esac ;; 642esac 643 644host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 645host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 646host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 647host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 648echo "$ac_t""$host" 1>&6 649 650# Check whether --with-cc or --without-cc was given. 651if test "${with_cc+set}" = set; then 652 withval="$with_cc" 653 echo "$ac_t""CC=$withval" 1>&6 654CC=$withval 655else 656 if test -z "$CC" ; then CC=cc; fi 657echo "$ac_t""CC defaults to $CC" 1>&6 658fi 659export CC 660 661# Extract the first word of "gcc", so it can be a program name with args. 662set dummy gcc; ac_word=$2 663echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 664echo "configure:665: checking for $ac_word" >&5 665if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 666 echo $ac_n "(cached) $ac_c" 1>&6 667else 668 if test -n "$CC"; then 669 ac_cv_prog_CC="$CC" # Let the user override the test. 670else 671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 672 ac_dummy="$PATH" 673 for ac_dir in $ac_dummy; do 674 test -z "$ac_dir" && ac_dir=. 675 if test -f $ac_dir/$ac_word; then 676 ac_cv_prog_CC="gcc" 677 break 678 fi 679 done 680 IFS="$ac_save_ifs" 681fi 682fi 683CC="$ac_cv_prog_CC" 684if test -n "$CC"; then 685 echo "$ac_t""$CC" 1>&6 686else 687 echo "$ac_t""no" 1>&6 688fi 689 690if test -z "$CC"; then 691 # Extract the first word of "cc", so it can be a program name with args. 692set dummy cc; ac_word=$2 693echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 694echo "configure:695: checking for $ac_word" >&5 695if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 696 echo $ac_n "(cached) $ac_c" 1>&6 697else 698 if test -n "$CC"; then 699 ac_cv_prog_CC="$CC" # Let the user override the test. 700else 701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 702 ac_prog_rejected=no 703 ac_dummy="$PATH" 704 for ac_dir in $ac_dummy; do 705 test -z "$ac_dir" && ac_dir=. 706 if test -f $ac_dir/$ac_word; then 707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 708 ac_prog_rejected=yes 709 continue 710 fi 711 ac_cv_prog_CC="cc" 712 break 713 fi 714 done 715 IFS="$ac_save_ifs" 716if test $ac_prog_rejected = yes; then 717 # We found a bogon in the path, so make sure we never use it. 718 set dummy $ac_cv_prog_CC 719 shift 720 if test $# -gt 0; then 721 # We chose a different compiler from the bogus one. 722 # However, it has the same basename, so the bogon will be chosen 723 # first if we set CC to just the basename; use the full file name. 724 shift 725 set dummy "$ac_dir/$ac_word" "$@" 726 shift 727 ac_cv_prog_CC="$@" 728 fi 729fi 730fi 731fi 732CC="$ac_cv_prog_CC" 733if test -n "$CC"; then 734 echo "$ac_t""$CC" 1>&6 735else 736 echo "$ac_t""no" 1>&6 737fi 738 739 if test -z "$CC"; then 740 case "`uname -s`" in 741 *win32* | *WIN32*) 742 # Extract the first word of "cl", so it can be a program name with args. 743set dummy cl; ac_word=$2 744echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 745echo "configure:746: checking for $ac_word" >&5 746if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 747 echo $ac_n "(cached) $ac_c" 1>&6 748else 749 if test -n "$CC"; then 750 ac_cv_prog_CC="$CC" # Let the user override the test. 751else 752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 753 ac_dummy="$PATH" 754 for ac_dir in $ac_dummy; do 755 test -z "$ac_dir" && ac_dir=. 756 if test -f $ac_dir/$ac_word; then 757 ac_cv_prog_CC="cl" 758 break 759 fi 760 done 761 IFS="$ac_save_ifs" 762fi 763fi 764CC="$ac_cv_prog_CC" 765if test -n "$CC"; then 766 echo "$ac_t""$CC" 1>&6 767else 768 echo "$ac_t""no" 1>&6 769fi 770 ;; 771 esac 772 fi 773 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 774fi 775 776echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 777echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 778 779ac_ext=c 780# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 781ac_cpp='$CPP $CPPFLAGS' 782ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 783ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 784cross_compiling=$ac_cv_prog_cc_cross 785 786cat > conftest.$ac_ext << EOF 787 788#line 789 "configure" 789#include "confdefs.h" 790 791main(){return(0);} 792EOF 793if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 794 ac_cv_prog_cc_works=yes 795 # If we can't run a trivial program, we are probably using a cross compiler. 796 if (./conftest; exit) 2>/dev/null; then 797 ac_cv_prog_cc_cross=no 798 else 799 ac_cv_prog_cc_cross=yes 800 fi 801else 802 echo "configure: failed program was:" >&5 803 cat conftest.$ac_ext >&5 804 ac_cv_prog_cc_works=no 805fi 806rm -fr conftest* 807ac_ext=c 808# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 809ac_cpp='$CPP $CPPFLAGS' 810ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 811ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 812cross_compiling=$ac_cv_prog_cc_cross 813 814echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 815if test $ac_cv_prog_cc_works = no; then 816 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 817fi 818echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 819echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 820echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 821cross_compiling=$ac_cv_prog_cc_cross 822 823echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 824echo "configure:825: checking whether we are using GNU C" >&5 825if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 826 echo $ac_n "(cached) $ac_c" 1>&6 827else 828 cat > conftest.c <<EOF 829#ifdef __GNUC__ 830 yes; 831#endif 832EOF 833if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 834 ac_cv_prog_gcc=yes 835else 836 ac_cv_prog_gcc=no 837fi 838fi 839 840echo "$ac_t""$ac_cv_prog_gcc" 1>&6 841 842if test $ac_cv_prog_gcc = yes; then 843 GCC=yes 844else 845 GCC= 846fi 847 848ac_test_CFLAGS="${CFLAGS+set}" 849ac_save_CFLAGS="$CFLAGS" 850CFLAGS= 851echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 852echo "configure:853: checking whether ${CC-cc} accepts -g" >&5 853if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 854 echo $ac_n "(cached) $ac_c" 1>&6 855else 856 echo 'void f(){}' > conftest.c 857if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 858 ac_cv_prog_cc_g=yes 859else 860 ac_cv_prog_cc_g=no 861fi 862rm -f conftest* 863 864fi 865 866echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 867if test "$ac_test_CFLAGS" = set; then 868 CFLAGS="$ac_save_CFLAGS" 869elif test $ac_cv_prog_cc_g = yes; then 870 if test "$GCC" = yes; then 871 CFLAGS="-g -O2" 872 else 873 CFLAGS="-g" 874 fi 875else 876 if test "$GCC" = yes; then 877 CFLAGS="-O2" 878 else 879 CFLAGS= 880 fi 881fi 882 883# Check whether --with-linker or --without-linker was given. 884if test "${with_linker+set}" = set; then 885 withval="$with_linker" 886 echo "$ac_t""LD=$withval" 1>&6 887LD=$withval 888else 889 if test -z "$LD" ; then LD=$CC; fi 890echo "$ac_t""LD defaults to $LD" 1>&6 891fi 892export LD 893 894# Check whether --with-ccopts or --without-ccopts was given. 895if test "${with_ccopts+set}" = set; then 896 withval="$with_ccopts" 897 echo "$ac_t""CCOPTS is $withval" 1>&6 898CCOPTS=$withval 899CFLAGS="$CFLAGS $withval" 900else 901 CCOPTS= 902fi 903 904echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 905echo "configure:906: checking how to run the C preprocessor" >&5 906# On Suns, sometimes $CPP names a directory. 907if test -n "$CPP" && test -d "$CPP"; then 908 CPP= 909fi 910if test -z "$CPP"; then 911if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 912 echo $ac_n "(cached) $ac_c" 1>&6 913else 914 # This must be in double quotes, not single quotes, because CPP may get 915 # substituted into the Makefile and "${CC-cc}" will confuse make. 916 CPP="${CC-cc} -E" 917 # On the NeXT, cc -E runs the code through the compiler's parser, 918 # not just through cpp. 919 cat > conftest.$ac_ext <<EOF 920#line 921 "configure" 921#include "confdefs.h" 922#include <assert.h> 923Syntax Error 924EOF 925ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 926{ (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 927ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 928if test -z "$ac_err"; then 929 : 930else 931 echo "$ac_err" >&5 932 echo "configure: failed program was:" >&5 933 cat conftest.$ac_ext >&5 934 rm -rf conftest* 935 CPP="${CC-cc} -E -traditional-cpp" 936 cat > conftest.$ac_ext <<EOF 937#line 938 "configure" 938#include "confdefs.h" 939#include <assert.h> 940Syntax Error 941EOF 942ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 943{ (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 944ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 945if test -z "$ac_err"; then 946 : 947else 948 echo "$ac_err" >&5 949 echo "configure: failed program was:" >&5 950 cat conftest.$ac_ext >&5 951 rm -rf conftest* 952 CPP="${CC-cc} -nologo -E" 953 cat > conftest.$ac_ext <<EOF 954#line 955 "configure" 955#include "confdefs.h" 956#include <assert.h> 957Syntax Error 958EOF 959ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 960{ (eval echo configure:961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 961ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 962if test -z "$ac_err"; then 963 : 964else 965 echo "$ac_err" >&5 966 echo "configure: failed program was:" >&5 967 cat conftest.$ac_ext >&5 968 rm -rf conftest* 969 CPP=/lib/cpp 970fi 971rm -f conftest* 972fi 973rm -f conftest* 974fi 975rm -f conftest* 976 ac_cv_prog_CPP="$CPP" 977fi 978 CPP="$ac_cv_prog_CPP" 979else 980 ac_cv_prog_CPP="$CPP" 981fi 982echo "$ac_t""$CPP" 1>&6 983 984ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'` 985echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 986echo "configure:987: checking for linux/fs.h" >&5 987if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 988 echo $ac_n "(cached) $ac_c" 1>&6 989else 990 cat > conftest.$ac_ext <<EOF 991#line 992 "configure" 992#include "confdefs.h" 993#include <linux/fs.h> 994EOF 995ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 996{ (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 997ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 998if test -z "$ac_err"; then 999 rm -rf conftest* 1000 eval "ac_cv_header_$ac_safe=yes" 1001else 1002 echo "$ac_err" >&5 1003 echo "configure: failed program was:" >&5 1004 cat conftest.$ac_ext >&5 1005 rm -rf conftest* 1006 eval "ac_cv_header_$ac_safe=no" 1007fi 1008rm -f conftest* 1009fi 1010if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1011 echo "$ac_t""yes" 1>&6 1012 linux_headers=yes 1013else 1014 echo "$ac_t""no" 1>&6 1015linux_headers=no 1016fi 1017 1018if test "$linux_headers" != yes; then 1019 LINUX_INCLUDE='-I$(top_builddir)/include' 1020fi 1021 1022LIB_EXT=.a 1023STATIC_LIB_EXT=.a 1024PROFILE_LIB_EXT=.a 1025# Check whether --with-ldopts or --without-ldopts was given. 1026if test "${with_ldopts+set}" = set; then 1027 withval="$with_ldopts" 1028 echo "$ac_t""LDFLAGS is $withval" 1>&6 1029LDFLAGS=$withval 1030else 1031 LDFLAGS= 1032fi 1033 1034# Check whether --with-root-prefix or --without-root-prefix was given. 1035if test "${with_root_prefix+set}" = set; then 1036 withval="$with_root_prefix" 1037 root_prefix=$withval 1038else 1039 root_prefix=NONE 1040fi 1041# Check whether --enable-compression or --disable-compression was given. 1042if test "${enable_compression+set}" = set; then 1043 enableval="$enable_compression" 1044 if test "$enableval" = "no" 1045then 1046 echo "Disabling compression support" 1047else 1048 cat >> confdefs.h <<\EOF 1049#define ENABLE_COMPRESSION 1 1050EOF 1051 1052 echo "Enabling compression support" 1053 echo "WARNING: Compression support is experimental" 1054fi 1055 1056else 1057 echo "Disabling compression support by default" 1058 1059fi 1060 1061# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given. 1062if test "${enable_dll_shlibs+set}" = set; then 1063 enableval="$enable_dll_shlibs" 1064 if test "$enableval" = "no" 1065then 1066 DLL_CMT=# 1067 MAKEFILE_DLL=/dev/null 1068 echo "Disabling DLL shared libraries" 1069else 1070 DLL_CMT= 1071 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib 1072 BINARY_TYPE=dllbin 1073 LIB_EXT=.sa 1074 echo "Enabling DLL shared libraries" 1075fi 1076 1077else 1078 MAKEFILE_DLL=/dev/null 1079DLL_CMT=# 1080echo "Disabling DLL shared libraries by default" 1081 1082fi 1083 1084 1085 1086# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. 1087if test "${enable_elf_shlibs+set}" = set; then 1088 enableval="$enable_elf_shlibs" 1089 if test "$enableval" = "no" 1090then 1091 ELF_CMT=# 1092 MAKEFILE_ELF=/dev/null 1093 echo "Disabling ELF shared libraries" 1094else 1095 ELF_CMT= 1096 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib 1097 case "$host_os" in 1098 solaris2.*) 1099 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib 1100 ;; 1101 esac 1102 BINARY_TYPE=elfbin 1103 LIB_EXT=.so 1104 echo "Enabling ELF shared libraries" 1105fi 1106 1107else 1108 MAKEFILE_ELF=/dev/null 1109ELF_CMT=# 1110echo "Disabling ELF shared libraries by default" 1111 1112fi 1113 1114 1115 1116# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. 1117if test "${enable_bsd_shlibs+set}" = set; then 1118 enableval="$enable_bsd_shlibs" 1119 if test "$enableval" = "no" 1120then 1121 BSDLIB_CMT=# 1122 MAKEFILE_BSDLIB=/dev/null 1123 echo "Disabling BSD shared libraries" 1124else 1125 BSDLIB_CMT= 1126 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib 1127 LIB_EXT=.so 1128 echo "Enabling BSD shared libraries" 1129fi 1130 1131else 1132 MAKEFILE_BSDLIB=/dev/null 1133BSDLIB_CMT=# 1134echo "Disabling BSD shared libraries by default" 1135 1136fi 1137 1138 1139 1140# Check whether --enable-jfs-debug or --disable-jfs-debug was given. 1141if test "${enable_jfs_debug+set}" = set; then 1142 enableval="$enable_jfs_debug" 1143 if test "$enableval" = "no" 1144then 1145 echo "Disabling journal debugging" 1146else 1147 cat >> confdefs.h <<\EOF 1148#define JFS_DEBUG 1 1149EOF 1150 1151 echo "Enabling journal debugging" 1152fi 1153 1154else 1155 echo "Disabling journal debugging by default" 1156 1157fi 1158 1159PACKAGE=e2fsprogs 1160VERSION="$E2FSPROGS_VERSION" 1161cat >> confdefs.h <<EOF 1162#define PACKAGE "$PACKAGE" 1163EOF 1164 1165cat >> confdefs.h <<EOF 1166#define VERSION "$VERSION" 1167EOF 1168 1169 1170 1171 1172ALL_LINGUAS="it nyc" 1173echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1174echo "configure:1175: checking whether ${MAKE-make} sets \${MAKE}" >&5 1175set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1176if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1177 echo $ac_n "(cached) $ac_c" 1>&6 1178else 1179 cat > conftestmake <<\EOF 1180all: 1181 @echo 'ac_maketemp="${MAKE}"' 1182EOF 1183# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1184eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1185if test -n "$ac_maketemp"; then 1186 eval ac_cv_prog_make_${ac_make}_set=yes 1187else 1188 eval ac_cv_prog_make_${ac_make}_set=no 1189fi 1190rm -f conftestmake 1191fi 1192if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1193 echo "$ac_t""yes" 1>&6 1194 SET_MAKE= 1195else 1196 echo "$ac_t""no" 1>&6 1197 SET_MAKE="MAKE=${MAKE-make}" 1198fi 1199 1200# Extract the first word of "ranlib", so it can be a program name with args. 1201set dummy ranlib; ac_word=$2 1202echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1203echo "configure:1204: checking for $ac_word" >&5 1204if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1205 echo $ac_n "(cached) $ac_c" 1>&6 1206else 1207 if test -n "$RANLIB"; then 1208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1209else 1210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1211 ac_dummy="$PATH" 1212 for ac_dir in $ac_dummy; do 1213 test -z "$ac_dir" && ac_dir=. 1214 if test -f $ac_dir/$ac_word; then 1215 ac_cv_prog_RANLIB="ranlib" 1216 break 1217 fi 1218 done 1219 IFS="$ac_save_ifs" 1220 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1221fi 1222fi 1223RANLIB="$ac_cv_prog_RANLIB" 1224if test -n "$RANLIB"; then 1225 echo "$ac_t""$RANLIB" 1>&6 1226else 1227 echo "$ac_t""no" 1>&6 1228fi 1229 1230echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1231echo "configure:1232: checking for POSIXized ISC" >&5 1232if test -d /etc/conf/kconfig.d && 1233 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1234then 1235 echo "$ac_t""yes" 1>&6 1236 ISC=yes # If later tests want to check for ISC. 1237 cat >> confdefs.h <<\EOF 1238#define _POSIX_SOURCE 1 1239EOF 1240 1241 if test "$GCC" = yes; then 1242 CC="$CC -posix" 1243 else 1244 CC="$CC -Xp" 1245 fi 1246else 1247 echo "$ac_t""no" 1>&6 1248 ISC= 1249fi 1250 1251echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1252echo "configure:1253: checking for ANSI C header files" >&5 1253if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1254 echo $ac_n "(cached) $ac_c" 1>&6 1255else 1256 cat > conftest.$ac_ext <<EOF 1257#line 1258 "configure" 1258#include "confdefs.h" 1259#include <stdlib.h> 1260#include <stdarg.h> 1261#include <string.h> 1262#include <float.h> 1263EOF 1264ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1265{ (eval echo configure:1266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1266ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1267if test -z "$ac_err"; then 1268 rm -rf conftest* 1269 ac_cv_header_stdc=yes 1270else 1271 echo "$ac_err" >&5 1272 echo "configure: failed program was:" >&5 1273 cat conftest.$ac_ext >&5 1274 rm -rf conftest* 1275 ac_cv_header_stdc=no 1276fi 1277rm -f conftest* 1278 1279if test $ac_cv_header_stdc = yes; then 1280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1281cat > conftest.$ac_ext <<EOF 1282#line 1283 "configure" 1283#include "confdefs.h" 1284#include <string.h> 1285EOF 1286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1287 egrep "memchr" >/dev/null 2>&1; then 1288 : 1289else 1290 rm -rf conftest* 1291 ac_cv_header_stdc=no 1292fi 1293rm -f conftest* 1294 1295fi 1296 1297if test $ac_cv_header_stdc = yes; then 1298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1299cat > conftest.$ac_ext <<EOF 1300#line 1301 "configure" 1301#include "confdefs.h" 1302#include <stdlib.h> 1303EOF 1304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1305 egrep "free" >/dev/null 2>&1; then 1306 : 1307else 1308 rm -rf conftest* 1309 ac_cv_header_stdc=no 1310fi 1311rm -f conftest* 1312 1313fi 1314 1315if test $ac_cv_header_stdc = yes; then 1316 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1317if test "$cross_compiling" = yes; then 1318 : 1319else 1320 cat > conftest.$ac_ext <<EOF 1321#line 1322 "configure" 1322#include "confdefs.h" 1323#include <ctype.h> 1324#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1325#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1326#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1327int main () { int i; for (i = 0; i < 256; i++) 1328if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1329exit (0); } 1330 1331EOF 1332if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1333then 1334 : 1335else 1336 echo "configure: failed program was:" >&5 1337 cat conftest.$ac_ext >&5 1338 rm -fr conftest* 1339 ac_cv_header_stdc=no 1340fi 1341rm -fr conftest* 1342fi 1343 1344fi 1345fi 1346 1347echo "$ac_t""$ac_cv_header_stdc" 1>&6 1348if test $ac_cv_header_stdc = yes; then 1349 cat >> confdefs.h <<\EOF 1350#define STDC_HEADERS 1 1351EOF 1352 1353fi 1354 1355echo $ac_n "checking for working const""... $ac_c" 1>&6 1356echo "configure:1357: checking for working const" >&5 1357if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1358 echo $ac_n "(cached) $ac_c" 1>&6 1359else 1360 cat > conftest.$ac_ext <<EOF 1361#line 1362 "configure" 1362#include "confdefs.h" 1363 1364int main() { 1365 1366/* Ultrix mips cc rejects this. */ 1367typedef int charset[2]; const charset x; 1368/* SunOS 4.1.1 cc rejects this. */ 1369char const *const *ccp; 1370char **p; 1371/* NEC SVR4.0.2 mips cc rejects this. */ 1372struct point {int x, y;}; 1373static struct point const zero = {0,0}; 1374/* AIX XL C 1.02.0.0 rejects this. 1375 It does not let you subtract one const X* pointer from another in an arm 1376 of an if-expression whose if-part is not a constant expression */ 1377const char *g = "string"; 1378ccp = &g + (g ? g-g : 0); 1379/* HPUX 7.0 cc rejects these. */ 1380++ccp; 1381p = (char**) ccp; 1382ccp = (char const *const *) p; 1383{ /* SCO 3.2v4 cc rejects this. */ 1384 char *t; 1385 char const *s = 0 ? (char *) 0 : (char const *) 0; 1386 1387 *t++ = 0; 1388} 1389{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1390 int x[] = {25, 17}; 1391 const int *foo = &x[0]; 1392 ++foo; 1393} 1394{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1395 typedef const int *iptr; 1396 iptr p = 0; 1397 ++p; 1398} 1399{ /* AIX XL C 1.02.0.0 rejects this saying 1400 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1401 struct s { int j; const int *ap[3]; }; 1402 struct s *b; b->j = 5; 1403} 1404{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1405 const int foo = 10; 1406} 1407 1408; return 0; } 1409EOF 1410if { (eval echo configure:1411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1411 rm -rf conftest* 1412 ac_cv_c_const=yes 1413else 1414 echo "configure: failed program was:" >&5 1415 cat conftest.$ac_ext >&5 1416 rm -rf conftest* 1417 ac_cv_c_const=no 1418fi 1419rm -f conftest* 1420fi 1421 1422echo "$ac_t""$ac_cv_c_const" 1>&6 1423if test $ac_cv_c_const = no; then 1424 cat >> confdefs.h <<\EOF 1425#define const 1426EOF 1427 1428fi 1429 1430echo $ac_n "checking for inline""... $ac_c" 1>&6 1431echo "configure:1432: checking for inline" >&5 1432if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 1433 echo $ac_n "(cached) $ac_c" 1>&6 1434else 1435 ac_cv_c_inline=no 1436for ac_kw in inline __inline__ __inline; do 1437 cat > conftest.$ac_ext <<EOF 1438#line 1439 "configure" 1439#include "confdefs.h" 1440 1441int main() { 1442} $ac_kw foo() { 1443; return 0; } 1444EOF 1445if { (eval echo configure:1446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1446 rm -rf conftest* 1447 ac_cv_c_inline=$ac_kw; break 1448else 1449 echo "configure: failed program was:" >&5 1450 cat conftest.$ac_ext >&5 1451fi 1452rm -f conftest* 1453done 1454 1455fi 1456 1457echo "$ac_t""$ac_cv_c_inline" 1>&6 1458case "$ac_cv_c_inline" in 1459 inline | yes) ;; 1460 no) cat >> confdefs.h <<\EOF 1461#define inline 1462EOF 1463 ;; 1464 *) cat >> confdefs.h <<EOF 1465#define inline $ac_cv_c_inline 1466EOF 1467 ;; 1468esac 1469 1470echo $ac_n "checking for off_t""... $ac_c" 1>&6 1471echo "configure:1472: checking for off_t" >&5 1472if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 1473 echo $ac_n "(cached) $ac_c" 1>&6 1474else 1475 cat > conftest.$ac_ext <<EOF 1476#line 1477 "configure" 1477#include "confdefs.h" 1478#include <sys/types.h> 1479#if STDC_HEADERS 1480#include <stdlib.h> 1481#include <stddef.h> 1482#endif 1483EOF 1484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1485 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1486 rm -rf conftest* 1487 ac_cv_type_off_t=yes 1488else 1489 rm -rf conftest* 1490 ac_cv_type_off_t=no 1491fi 1492rm -f conftest* 1493 1494fi 1495echo "$ac_t""$ac_cv_type_off_t" 1>&6 1496if test $ac_cv_type_off_t = no; then 1497 cat >> confdefs.h <<\EOF 1498#define off_t long 1499EOF 1500 1501fi 1502 1503echo $ac_n "checking for size_t""... $ac_c" 1>&6 1504echo "configure:1505: checking for size_t" >&5 1505if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1506 echo $ac_n "(cached) $ac_c" 1>&6 1507else 1508 cat > conftest.$ac_ext <<EOF 1509#line 1510 "configure" 1510#include "confdefs.h" 1511#include <sys/types.h> 1512#if STDC_HEADERS 1513#include <stdlib.h> 1514#include <stddef.h> 1515#endif 1516EOF 1517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1518 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1519 rm -rf conftest* 1520 ac_cv_type_size_t=yes 1521else 1522 rm -rf conftest* 1523 ac_cv_type_size_t=no 1524fi 1525rm -f conftest* 1526 1527fi 1528echo "$ac_t""$ac_cv_type_size_t" 1>&6 1529if test $ac_cv_type_size_t = no; then 1530 cat >> confdefs.h <<\EOF 1531#define size_t unsigned 1532EOF 1533 1534fi 1535 1536# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 1537# for constant arguments. Useless! 1538echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 1539echo "configure:1540: checking for working alloca.h" >&5 1540if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 1541 echo $ac_n "(cached) $ac_c" 1>&6 1542else 1543 cat > conftest.$ac_ext <<EOF 1544#line 1545 "configure" 1545#include "confdefs.h" 1546#include <alloca.h> 1547int main() { 1548char *p = alloca(2 * sizeof(int)); 1549; return 0; } 1550EOF 1551if { (eval echo configure:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1552 rm -rf conftest* 1553 ac_cv_header_alloca_h=yes 1554else 1555 echo "configure: failed program was:" >&5 1556 cat conftest.$ac_ext >&5 1557 rm -rf conftest* 1558 ac_cv_header_alloca_h=no 1559fi 1560rm -f conftest* 1561fi 1562 1563echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 1564if test $ac_cv_header_alloca_h = yes; then 1565 cat >> confdefs.h <<\EOF 1566#define HAVE_ALLOCA_H 1 1567EOF 1568 1569fi 1570 1571echo $ac_n "checking for alloca""... $ac_c" 1>&6 1572echo "configure:1573: checking for alloca" >&5 1573if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 1574 echo $ac_n "(cached) $ac_c" 1>&6 1575else 1576 cat > conftest.$ac_ext <<EOF 1577#line 1578 "configure" 1578#include "confdefs.h" 1579 1580#ifdef __GNUC__ 1581# define alloca __builtin_alloca 1582#else 1583# ifdef _MSC_VER 1584# include <malloc.h> 1585# define alloca _alloca 1586# else 1587# if HAVE_ALLOCA_H 1588# include <alloca.h> 1589# else 1590# ifdef _AIX 1591 #pragma alloca 1592# else 1593# ifndef alloca /* predefined by HP cc +Olibcalls */ 1594char *alloca (); 1595# endif 1596# endif 1597# endif 1598# endif 1599#endif 1600 1601int main() { 1602char *p = (char *) alloca(1); 1603; return 0; } 1604EOF 1605if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1606 rm -rf conftest* 1607 ac_cv_func_alloca_works=yes 1608else 1609 echo "configure: failed program was:" >&5 1610 cat conftest.$ac_ext >&5 1611 rm -rf conftest* 1612 ac_cv_func_alloca_works=no 1613fi 1614rm -f conftest* 1615fi 1616 1617echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 1618if test $ac_cv_func_alloca_works = yes; then 1619 cat >> confdefs.h <<\EOF 1620#define HAVE_ALLOCA 1 1621EOF 1622 1623fi 1624 1625if test $ac_cv_func_alloca_works = no; then 1626 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 1627 # that cause trouble. Some versions do not even contain alloca or 1628 # contain a buggy version. If you still want to use their alloca, 1629 # use ar to extract alloca.o from them instead of compiling alloca.c. 1630 ALLOCA=alloca.${ac_objext} 1631 cat >> confdefs.h <<\EOF 1632#define C_ALLOCA 1 1633EOF 1634 1635 1636echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 1637echo "configure:1638: checking whether alloca needs Cray hooks" >&5 1638if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 1639 echo $ac_n "(cached) $ac_c" 1>&6 1640else 1641 cat > conftest.$ac_ext <<EOF 1642#line 1643 "configure" 1643#include "confdefs.h" 1644#if defined(CRAY) && ! defined(CRAY2) 1645webecray 1646#else 1647wenotbecray 1648#endif 1649 1650EOF 1651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1652 egrep "webecray" >/dev/null 2>&1; then 1653 rm -rf conftest* 1654 ac_cv_os_cray=yes 1655else 1656 rm -rf conftest* 1657 ac_cv_os_cray=no 1658fi 1659rm -f conftest* 1660 1661fi 1662 1663echo "$ac_t""$ac_cv_os_cray" 1>&6 1664if test $ac_cv_os_cray = yes; then 1665for ac_func in _getb67 GETB67 getb67; do 1666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1667echo "configure:1668: checking for $ac_func" >&5 1668if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1669 echo $ac_n "(cached) $ac_c" 1>&6 1670else 1671 cat > conftest.$ac_ext <<EOF 1672#line 1673 "configure" 1673#include "confdefs.h" 1674/* System header to define __stub macros and hopefully few prototypes, 1675 which can conflict with char $ac_func(); below. */ 1676#include <assert.h> 1677/* Override any gcc2 internal prototype to avoid an error. */ 1678/* We use char because int might match the return type of a gcc2 1679 builtin and then its argument prototype would still apply. */ 1680char $ac_func(); 1681 1682int main() { 1683 1684/* The GNU C library defines this for functions which it implements 1685 to always fail with ENOSYS. Some functions are actually named 1686 something starting with __ and the normal name is an alias. */ 1687#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1688choke me 1689#else 1690$ac_func(); 1691#endif 1692 1693; return 0; } 1694EOF 1695if { (eval echo configure:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1696 rm -rf conftest* 1697 eval "ac_cv_func_$ac_func=yes" 1698else 1699 echo "configure: failed program was:" >&5 1700 cat conftest.$ac_ext >&5 1701 rm -rf conftest* 1702 eval "ac_cv_func_$ac_func=no" 1703fi 1704rm -f conftest* 1705fi 1706 1707if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1708 echo "$ac_t""yes" 1>&6 1709 cat >> confdefs.h <<EOF 1710#define CRAY_STACKSEG_END $ac_func 1711EOF 1712 1713 break 1714else 1715 echo "$ac_t""no" 1>&6 1716fi 1717 1718done 1719fi 1720 1721echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 1722echo "configure:1723: checking stack direction for C alloca" >&5 1723if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 1724 echo $ac_n "(cached) $ac_c" 1>&6 1725else 1726 if test "$cross_compiling" = yes; then 1727 ac_cv_c_stack_direction=0 1728else 1729 cat > conftest.$ac_ext <<EOF 1730#line 1731 "configure" 1731#include "confdefs.h" 1732find_stack_direction () 1733{ 1734 static char *addr = 0; 1735 auto char dummy; 1736 if (addr == 0) 1737 { 1738 addr = &dummy; 1739 return find_stack_direction (); 1740 } 1741 else 1742 return (&dummy > addr) ? 1 : -1; 1743} 1744main () 1745{ 1746 exit (find_stack_direction() < 0); 1747} 1748EOF 1749if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1750then 1751 ac_cv_c_stack_direction=1 1752else 1753 echo "configure: failed program was:" >&5 1754 cat conftest.$ac_ext >&5 1755 rm -fr conftest* 1756 ac_cv_c_stack_direction=-1 1757fi 1758rm -fr conftest* 1759fi 1760 1761fi 1762 1763echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 1764cat >> confdefs.h <<EOF 1765#define STACK_DIRECTION $ac_cv_c_stack_direction 1766EOF 1767 1768fi 1769 1770for ac_hdr in unistd.h 1771do 1772ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1773echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1774echo "configure:1775: checking for $ac_hdr" >&5 1775if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1776 echo $ac_n "(cached) $ac_c" 1>&6 1777else 1778 cat > conftest.$ac_ext <<EOF 1779#line 1780 "configure" 1780#include "confdefs.h" 1781#include <$ac_hdr> 1782EOF 1783ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1784{ (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1785ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1786if test -z "$ac_err"; then 1787 rm -rf conftest* 1788 eval "ac_cv_header_$ac_safe=yes" 1789else 1790 echo "$ac_err" >&5 1791 echo "configure: failed program was:" >&5 1792 cat conftest.$ac_ext >&5 1793 rm -rf conftest* 1794 eval "ac_cv_header_$ac_safe=no" 1795fi 1796rm -f conftest* 1797fi 1798if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1799 echo "$ac_t""yes" 1>&6 1800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1801 cat >> confdefs.h <<EOF 1802#define $ac_tr_hdr 1 1803EOF 1804 1805else 1806 echo "$ac_t""no" 1>&6 1807fi 1808done 1809 1810for ac_func in getpagesize 1811do 1812echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1813echo "configure:1814: checking for $ac_func" >&5 1814if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1815 echo $ac_n "(cached) $ac_c" 1>&6 1816else 1817 cat > conftest.$ac_ext <<EOF 1818#line 1819 "configure" 1819#include "confdefs.h" 1820/* System header to define __stub macros and hopefully few prototypes, 1821 which can conflict with char $ac_func(); below. */ 1822#include <assert.h> 1823/* Override any gcc2 internal prototype to avoid an error. */ 1824/* We use char because int might match the return type of a gcc2 1825 builtin and then its argument prototype would still apply. */ 1826char $ac_func(); 1827 1828int main() { 1829 1830/* The GNU C library defines this for functions which it implements 1831 to always fail with ENOSYS. Some functions are actually named 1832 something starting with __ and the normal name is an alias. */ 1833#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1834choke me 1835#else 1836$ac_func(); 1837#endif 1838 1839; return 0; } 1840EOF 1841if { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1842 rm -rf conftest* 1843 eval "ac_cv_func_$ac_func=yes" 1844else 1845 echo "configure: failed program was:" >&5 1846 cat conftest.$ac_ext >&5 1847 rm -rf conftest* 1848 eval "ac_cv_func_$ac_func=no" 1849fi 1850rm -f conftest* 1851fi 1852 1853if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 1854 echo "$ac_t""yes" 1>&6 1855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1856 cat >> confdefs.h <<EOF 1857#define $ac_tr_func 1 1858EOF 1859 1860else 1861 echo "$ac_t""no" 1>&6 1862fi 1863done 1864 1865echo $ac_n "checking for working mmap""... $ac_c" 1>&6 1866echo "configure:1867: checking for working mmap" >&5 1867if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 1868 echo $ac_n "(cached) $ac_c" 1>&6 1869else 1870 if test "$cross_compiling" = yes; then 1871 ac_cv_func_mmap_fixed_mapped=no 1872else 1873 cat > conftest.$ac_ext <<EOF 1874#line 1875 "configure" 1875#include "confdefs.h" 1876 1877/* Thanks to Mike Haertel and Jim Avera for this test. 1878 Here is a matrix of mmap possibilities: 1879 mmap private not fixed 1880 mmap private fixed at somewhere currently unmapped 1881 mmap private fixed at somewhere already mapped 1882 mmap shared not fixed 1883 mmap shared fixed at somewhere currently unmapped 1884 mmap shared fixed at somewhere already mapped 1885 For private mappings, we should verify that changes cannot be read() 1886 back from the file, nor mmap's back from the file at a different 1887 address. (There have been systems where private was not correctly 1888 implemented like the infamous i386 svr4.0, and systems where the 1889 VM page cache was not coherent with the filesystem buffer cache 1890 like early versions of FreeBSD and possibly contemporary NetBSD.) 1891 For shared mappings, we should conversely verify that changes get 1892 propogated back to all the places they're supposed to be. 1893 1894 Grep wants private fixed already mapped. 1895 The main things grep needs to know about mmap are: 1896 * does it exist and is it safe to write into the mmap'd area 1897 * how to use it (BSD variants) */ 1898#include <sys/types.h> 1899#include <fcntl.h> 1900#include <sys/mman.h> 1901 1902/* This mess was copied from the GNU getpagesize.h. */ 1903#ifndef HAVE_GETPAGESIZE 1904# ifdef HAVE_UNISTD_H 1905# include <unistd.h> 1906# endif 1907 1908/* Assume that all systems that can run configure have sys/param.h. */ 1909# ifndef HAVE_SYS_PARAM_H 1910# define HAVE_SYS_PARAM_H 1 1911# endif 1912 1913# ifdef _SC_PAGESIZE 1914# define getpagesize() sysconf(_SC_PAGESIZE) 1915# else /* no _SC_PAGESIZE */ 1916# ifdef HAVE_SYS_PARAM_H 1917# include <sys/param.h> 1918# ifdef EXEC_PAGESIZE 1919# define getpagesize() EXEC_PAGESIZE 1920# else /* no EXEC_PAGESIZE */ 1921# ifdef NBPG 1922# define getpagesize() NBPG * CLSIZE 1923# ifndef CLSIZE 1924# define CLSIZE 1 1925# endif /* no CLSIZE */ 1926# else /* no NBPG */ 1927# ifdef NBPC 1928# define getpagesize() NBPC 1929# else /* no NBPC */ 1930# ifdef PAGESIZE 1931# define getpagesize() PAGESIZE 1932# endif /* PAGESIZE */ 1933# endif /* no NBPC */ 1934# endif /* no NBPG */ 1935# endif /* no EXEC_PAGESIZE */ 1936# else /* no HAVE_SYS_PARAM_H */ 1937# define getpagesize() 8192 /* punt totally */ 1938# endif /* no HAVE_SYS_PARAM_H */ 1939# endif /* no _SC_PAGESIZE */ 1940 1941#endif /* no HAVE_GETPAGESIZE */ 1942 1943#ifdef __cplusplus 1944extern "C" { void *malloc(unsigned); } 1945#else 1946char *malloc(); 1947#endif 1948 1949int 1950main() 1951{ 1952 char *data, *data2, *data3; 1953 int i, pagesize; 1954 int fd; 1955 1956 pagesize = getpagesize(); 1957 1958 /* 1959 * First, make a file with some known garbage in it. 1960 */ 1961 data = malloc(pagesize); 1962 if (!data) 1963 exit(1); 1964 for (i = 0; i < pagesize; ++i) 1965 *(data + i) = rand(); 1966 umask(0); 1967 fd = creat("conftestmmap", 0600); 1968 if (fd < 0) 1969 exit(1); 1970 if (write(fd, data, pagesize) != pagesize) 1971 exit(1); 1972 close(fd); 1973 1974 /* 1975 * Next, try to mmap the file at a fixed address which 1976 * already has something else allocated at it. If we can, 1977 * also make sure that we see the same garbage. 1978 */ 1979 fd = open("conftestmmap", O_RDWR); 1980 if (fd < 0) 1981 exit(1); 1982 data2 = malloc(2 * pagesize); 1983 if (!data2) 1984 exit(1); 1985 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 1986 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 1987 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 1988 exit(1); 1989 for (i = 0; i < pagesize; ++i) 1990 if (*(data + i) != *(data2 + i)) 1991 exit(1); 1992 1993 /* 1994 * Finally, make sure that changes to the mapped area 1995 * do not percolate back to the file as seen by read(). 1996 * (This is a bug on some variants of i386 svr4.0.) 1997 */ 1998 for (i = 0; i < pagesize; ++i) 1999 *(data2 + i) = *(data2 + i) + 1; 2000 data3 = malloc(pagesize); 2001 if (!data3) 2002 exit(1); 2003 if (read(fd, data3, pagesize) != pagesize) 2004 exit(1); 2005 for (i = 0; i < pagesize; ++i) 2006 if (*(data + i) != *(data3 + i)) 2007 exit(1); 2008 close(fd); 2009 unlink("conftestmmap"); 2010 exit(0); 2011} 2012 2013EOF 2014if { (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2015then 2016 ac_cv_func_mmap_fixed_mapped=yes 2017else 2018 echo "configure: failed program was:" >&5 2019 cat conftest.$ac_ext >&5 2020 rm -fr conftest* 2021 ac_cv_func_mmap_fixed_mapped=no 2022fi 2023rm -fr conftest* 2024fi 2025 2026fi 2027 2028echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 2029if test $ac_cv_func_mmap_fixed_mapped = yes; then 2030 cat >> confdefs.h <<\EOF 2031#define HAVE_MMAP 1 2032EOF 2033 2034fi 2035 2036 2037 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 2038unistd.h sys/param.h 2039do 2040ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2041echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2042echo "configure:2043: checking for $ac_hdr" >&5 2043if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2044 echo $ac_n "(cached) $ac_c" 1>&6 2045else 2046 cat > conftest.$ac_ext <<EOF 2047#line 2048 "configure" 2048#include "confdefs.h" 2049#include <$ac_hdr> 2050EOF 2051ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2052{ (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2053ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2054if test -z "$ac_err"; then 2055 rm -rf conftest* 2056 eval "ac_cv_header_$ac_safe=yes" 2057else 2058 echo "$ac_err" >&5 2059 echo "configure: failed program was:" >&5 2060 cat conftest.$ac_ext >&5 2061 rm -rf conftest* 2062 eval "ac_cv_header_$ac_safe=no" 2063fi 2064rm -f conftest* 2065fi 2066if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2067 echo "$ac_t""yes" 1>&6 2068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2069 cat >> confdefs.h <<EOF 2070#define $ac_tr_hdr 1 2071EOF 2072 2073else 2074 echo "$ac_t""no" 1>&6 2075fi 2076done 2077 2078 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 2079strdup __argz_count __argz_stringify __argz_next 2080do 2081echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2082echo "configure:2083: checking for $ac_func" >&5 2083if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2084 echo $ac_n "(cached) $ac_c" 1>&6 2085else 2086 cat > conftest.$ac_ext <<EOF 2087#line 2088 "configure" 2088#include "confdefs.h" 2089/* System header to define __stub macros and hopefully few prototypes, 2090 which can conflict with char $ac_func(); below. */ 2091#include <assert.h> 2092/* Override any gcc2 internal prototype to avoid an error. */ 2093/* We use char because int might match the return type of a gcc2 2094 builtin and then its argument prototype would still apply. */ 2095char $ac_func(); 2096 2097int main() { 2098 2099/* The GNU C library defines this for functions which it implements 2100 to always fail with ENOSYS. Some functions are actually named 2101 something starting with __ and the normal name is an alias. */ 2102#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2103choke me 2104#else 2105$ac_func(); 2106#endif 2107 2108; return 0; } 2109EOF 2110if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2111 rm -rf conftest* 2112 eval "ac_cv_func_$ac_func=yes" 2113else 2114 echo "configure: failed program was:" >&5 2115 cat conftest.$ac_ext >&5 2116 rm -rf conftest* 2117 eval "ac_cv_func_$ac_func=no" 2118fi 2119rm -f conftest* 2120fi 2121 2122if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2123 echo "$ac_t""yes" 1>&6 2124 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2125 cat >> confdefs.h <<EOF 2126#define $ac_tr_func 1 2127EOF 2128 2129else 2130 echo "$ac_t""no" 1>&6 2131fi 2132done 2133 2134 2135 if test "${ac_cv_func_stpcpy+set}" != "set"; then 2136 for ac_func in stpcpy 2137do 2138echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2139echo "configure:2140: checking for $ac_func" >&5 2140if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2141 echo $ac_n "(cached) $ac_c" 1>&6 2142else 2143 cat > conftest.$ac_ext <<EOF 2144#line 2145 "configure" 2145#include "confdefs.h" 2146/* System header to define __stub macros and hopefully few prototypes, 2147 which can conflict with char $ac_func(); below. */ 2148#include <assert.h> 2149/* Override any gcc2 internal prototype to avoid an error. */ 2150/* We use char because int might match the return type of a gcc2 2151 builtin and then its argument prototype would still apply. */ 2152char $ac_func(); 2153 2154int main() { 2155 2156/* The GNU C library defines this for functions which it implements 2157 to always fail with ENOSYS. Some functions are actually named 2158 something starting with __ and the normal name is an alias. */ 2159#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2160choke me 2161#else 2162$ac_func(); 2163#endif 2164 2165; return 0; } 2166EOF 2167if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2168 rm -rf conftest* 2169 eval "ac_cv_func_$ac_func=yes" 2170else 2171 echo "configure: failed program was:" >&5 2172 cat conftest.$ac_ext >&5 2173 rm -rf conftest* 2174 eval "ac_cv_func_$ac_func=no" 2175fi 2176rm -f conftest* 2177fi 2178 2179if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2180 echo "$ac_t""yes" 1>&6 2181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2182 cat >> confdefs.h <<EOF 2183#define $ac_tr_func 1 2184EOF 2185 2186else 2187 echo "$ac_t""no" 1>&6 2188fi 2189done 2190 2191 fi 2192 if test "${ac_cv_func_stpcpy}" = "yes"; then 2193 cat >> confdefs.h <<\EOF 2194#define HAVE_STPCPY 1 2195EOF 2196 2197 fi 2198 2199 if test $ac_cv_header_locale_h = yes; then 2200 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 2201echo "configure:2202: checking for LC_MESSAGES" >&5 2202if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then 2203 echo $ac_n "(cached) $ac_c" 1>&6 2204else 2205 cat > conftest.$ac_ext <<EOF 2206#line 2207 "configure" 2207#include "confdefs.h" 2208#include <locale.h> 2209int main() { 2210return LC_MESSAGES 2211; return 0; } 2212EOF 2213if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2214 rm -rf conftest* 2215 am_cv_val_LC_MESSAGES=yes 2216else 2217 echo "configure: failed program was:" >&5 2218 cat conftest.$ac_ext >&5 2219 rm -rf conftest* 2220 am_cv_val_LC_MESSAGES=no 2221fi 2222rm -f conftest* 2223fi 2224 2225echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 2226 if test $am_cv_val_LC_MESSAGES = yes; then 2227 cat >> confdefs.h <<\EOF 2228#define HAVE_LC_MESSAGES 1 2229EOF 2230 2231 fi 2232 fi 2233 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 2234echo "configure:2235: checking whether NLS is requested" >&5 2235 # Check whether --enable-nls or --disable-nls was given. 2236if test "${enable_nls+set}" = set; then 2237 enableval="$enable_nls" 2238 USE_NLS=$enableval 2239else 2240 USE_NLS=no 2241fi 2242 2243 echo "$ac_t""$USE_NLS" 1>&6 2244 2245 2246 USE_INCLUDED_LIBINTL=no 2247 2248 if test "$USE_NLS" = "yes"; then 2249 cat >> confdefs.h <<\EOF 2250#define ENABLE_NLS 1 2251EOF 2252 2253 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 2254echo "configure:2255: checking whether included gettext is requested" >&5 2255 # Check whether --with-included-gettext or --without-included-gettext was given. 2256if test "${with_included_gettext+set}" = set; then 2257 withval="$with_included_gettext" 2258 nls_cv_force_use_gnu_gettext=$withval 2259else 2260 nls_cv_force_use_gnu_gettext=no 2261fi 2262 2263 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 2264 2265 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 2266 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 2267 nls_cv_header_intl= 2268 nls_cv_header_libgt= 2269 CATOBJEXT=NONE 2270 2271 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` 2272echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 2273echo "configure:2274: checking for libintl.h" >&5 2274if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2275 echo $ac_n "(cached) $ac_c" 1>&6 2276else 2277 cat > conftest.$ac_ext <<EOF 2278#line 2279 "configure" 2279#include "confdefs.h" 2280#include <libintl.h> 2281EOF 2282ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2283{ (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2284ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2285if test -z "$ac_err"; then 2286 rm -rf conftest* 2287 eval "ac_cv_header_$ac_safe=yes" 2288else 2289 echo "$ac_err" >&5 2290 echo "configure: failed program was:" >&5 2291 cat conftest.$ac_ext >&5 2292 rm -rf conftest* 2293 eval "ac_cv_header_$ac_safe=no" 2294fi 2295rm -f conftest* 2296fi 2297if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2298 echo "$ac_t""yes" 1>&6 2299 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 2300echo "configure:2301: checking for gettext in libc" >&5 2301if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then 2302 echo $ac_n "(cached) $ac_c" 1>&6 2303else 2304 cat > conftest.$ac_ext <<EOF 2305#line 2306 "configure" 2306#include "confdefs.h" 2307#include <libintl.h> 2308int main() { 2309return (int) gettext ("") 2310; return 0; } 2311EOF 2312if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2313 rm -rf conftest* 2314 gt_cv_func_gettext_libc=yes 2315else 2316 echo "configure: failed program was:" >&5 2317 cat conftest.$ac_ext >&5 2318 rm -rf conftest* 2319 gt_cv_func_gettext_libc=no 2320fi 2321rm -f conftest* 2322fi 2323 2324echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 2325 2326 if test "$gt_cv_func_gettext_libc" != "yes"; then 2327 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 2328echo "configure:2329: checking for bindtextdomain in -lintl" >&5 2329ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` 2330if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2331 echo $ac_n "(cached) $ac_c" 1>&6 2332else 2333 ac_save_LIBS="$LIBS" 2334LIBS="-lintl $LIBS" 2335cat > conftest.$ac_ext <<EOF 2336#line 2337 "configure" 2337#include "confdefs.h" 2338/* Override any gcc2 internal prototype to avoid an error. */ 2339/* We use char because int might match the return type of a gcc2 2340 builtin and then its argument prototype would still apply. */ 2341char bindtextdomain(); 2342 2343int main() { 2344bindtextdomain() 2345; return 0; } 2346EOF 2347if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2348 rm -rf conftest* 2349 eval "ac_cv_lib_$ac_lib_var=yes" 2350else 2351 echo "configure: failed program was:" >&5 2352 cat conftest.$ac_ext >&5 2353 rm -rf conftest* 2354 eval "ac_cv_lib_$ac_lib_var=no" 2355fi 2356rm -f conftest* 2357LIBS="$ac_save_LIBS" 2358 2359fi 2360if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2361 echo "$ac_t""yes" 1>&6 2362 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 2363echo "configure:2364: checking for gettext in libintl" >&5 2364if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then 2365 echo $ac_n "(cached) $ac_c" 1>&6 2366else 2367 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 2368echo "configure:2369: checking for gettext in -lintl" >&5 2369ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` 2370if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2371 echo $ac_n "(cached) $ac_c" 1>&6 2372else 2373 ac_save_LIBS="$LIBS" 2374LIBS="-lintl $LIBS" 2375cat > conftest.$ac_ext <<EOF 2376#line 2377 "configure" 2377#include "confdefs.h" 2378/* Override any gcc2 internal prototype to avoid an error. */ 2379/* We use char because int might match the return type of a gcc2 2380 builtin and then its argument prototype would still apply. */ 2381char gettext(); 2382 2383int main() { 2384gettext() 2385; return 0; } 2386EOF 2387if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2388 rm -rf conftest* 2389 eval "ac_cv_lib_$ac_lib_var=yes" 2390else 2391 echo "configure: failed program was:" >&5 2392 cat conftest.$ac_ext >&5 2393 rm -rf conftest* 2394 eval "ac_cv_lib_$ac_lib_var=no" 2395fi 2396rm -f conftest* 2397LIBS="$ac_save_LIBS" 2398 2399fi 2400if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2401 echo "$ac_t""yes" 1>&6 2402 gt_cv_func_gettext_libintl=yes 2403else 2404 echo "$ac_t""no" 1>&6 2405gt_cv_func_gettext_libintl=no 2406fi 2407 2408fi 2409 2410echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 2411else 2412 echo "$ac_t""no" 1>&6 2413fi 2414 2415 fi 2416 2417 if test "$gt_cv_func_gettext_libc" = "yes" \ 2418 || test "$gt_cv_func_gettext_libintl" = "yes"; then 2419 cat >> confdefs.h <<\EOF 2420#define HAVE_GETTEXT 1 2421EOF 2422 2423 # Extract the first word of "msgfmt", so it can be a program name with args. 2424set dummy msgfmt; ac_word=$2 2425echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2426echo "configure:2427: checking for $ac_word" >&5 2427if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 2428 echo $ac_n "(cached) $ac_c" 1>&6 2429else 2430 case "$MSGFMT" in 2431 /*) 2432 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 2433 ;; 2434 *) 2435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2436 for ac_dir in $PATH; do 2437 test -z "$ac_dir" && ac_dir=. 2438 if test -f $ac_dir/$ac_word; then 2439 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 2440 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 2441 break 2442 fi 2443 fi 2444 done 2445 IFS="$ac_save_ifs" 2446 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 2447 ;; 2448esac 2449fi 2450MSGFMT="$ac_cv_path_MSGFMT" 2451if test -n "$MSGFMT"; then 2452 echo "$ac_t""$MSGFMT" 1>&6 2453else 2454 echo "$ac_t""no" 1>&6 2455fi 2456 if test "$MSGFMT" != "no"; then 2457 for ac_func in dcgettext 2458do 2459echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2460echo "configure:2461: checking for $ac_func" >&5 2461if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2462 echo $ac_n "(cached) $ac_c" 1>&6 2463else 2464 cat > conftest.$ac_ext <<EOF 2465#line 2466 "configure" 2466#include "confdefs.h" 2467/* System header to define __stub macros and hopefully few prototypes, 2468 which can conflict with char $ac_func(); below. */ 2469#include <assert.h> 2470/* Override any gcc2 internal prototype to avoid an error. */ 2471/* We use char because int might match the return type of a gcc2 2472 builtin and then its argument prototype would still apply. */ 2473char $ac_func(); 2474 2475int main() { 2476 2477/* The GNU C library defines this for functions which it implements 2478 to always fail with ENOSYS. Some functions are actually named 2479 something starting with __ and the normal name is an alias. */ 2480#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2481choke me 2482#else 2483$ac_func(); 2484#endif 2485 2486; return 0; } 2487EOF 2488if { (eval echo configure:2489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2489 rm -rf conftest* 2490 eval "ac_cv_func_$ac_func=yes" 2491else 2492 echo "configure: failed program was:" >&5 2493 cat conftest.$ac_ext >&5 2494 rm -rf conftest* 2495 eval "ac_cv_func_$ac_func=no" 2496fi 2497rm -f conftest* 2498fi 2499 2500if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2501 echo "$ac_t""yes" 1>&6 2502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2503 cat >> confdefs.h <<EOF 2504#define $ac_tr_func 1 2505EOF 2506 2507else 2508 echo "$ac_t""no" 1>&6 2509fi 2510done 2511 2512 # Extract the first word of "gmsgfmt", so it can be a program name with args. 2513set dummy gmsgfmt; ac_word=$2 2514echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2515echo "configure:2516: checking for $ac_word" >&5 2516if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 2517 echo $ac_n "(cached) $ac_c" 1>&6 2518else 2519 case "$GMSGFMT" in 2520 /*) 2521 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 2522 ;; 2523 ?:/*) 2524 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 2525 ;; 2526 *) 2527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2528 ac_dummy="$PATH" 2529 for ac_dir in $ac_dummy; do 2530 test -z "$ac_dir" && ac_dir=. 2531 if test -f $ac_dir/$ac_word; then 2532 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 2533 break 2534 fi 2535 done 2536 IFS="$ac_save_ifs" 2537 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 2538 ;; 2539esac 2540fi 2541GMSGFMT="$ac_cv_path_GMSGFMT" 2542if test -n "$GMSGFMT"; then 2543 echo "$ac_t""$GMSGFMT" 1>&6 2544else 2545 echo "$ac_t""no" 1>&6 2546fi 2547 2548 # Extract the first word of "xgettext", so it can be a program name with args. 2549set dummy xgettext; ac_word=$2 2550echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2551echo "configure:2552: checking for $ac_word" >&5 2552if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 2553 echo $ac_n "(cached) $ac_c" 1>&6 2554else 2555 case "$XGETTEXT" in 2556 /*) 2557 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 2558 ;; 2559 *) 2560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2561 for ac_dir in $PATH; do 2562 test -z "$ac_dir" && ac_dir=. 2563 if test -f $ac_dir/$ac_word; then 2564 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 2565 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 2566 break 2567 fi 2568 fi 2569 done 2570 IFS="$ac_save_ifs" 2571 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 2572 ;; 2573esac 2574fi 2575XGETTEXT="$ac_cv_path_XGETTEXT" 2576if test -n "$XGETTEXT"; then 2577 echo "$ac_t""$XGETTEXT" 1>&6 2578else 2579 echo "$ac_t""no" 1>&6 2580fi 2581 2582 cat > conftest.$ac_ext <<EOF 2583#line 2584 "configure" 2584#include "confdefs.h" 2585 2586int main() { 2587extern int _nl_msg_cat_cntr; 2588 return _nl_msg_cat_cntr 2589; return 0; } 2590EOF 2591if { (eval echo configure:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2592 rm -rf conftest* 2593 CATOBJEXT=.gmo 2594 DATADIRNAME=share 2595else 2596 echo "configure: failed program was:" >&5 2597 cat conftest.$ac_ext >&5 2598 rm -rf conftest* 2599 CATOBJEXT=.mo 2600 DATADIRNAME=lib 2601fi 2602rm -f conftest* 2603 INSTOBJEXT=.mo 2604 fi 2605 fi 2606 2607else 2608 echo "$ac_t""no" 1>&6 2609fi 2610 2611 2612 if test "$CATOBJEXT" = "NONE"; then 2613 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 2614echo "configure:2615: checking whether catgets can be used" >&5 2615 # Check whether --with-catgets or --without-catgets was given. 2616if test "${with_catgets+set}" = set; then 2617 withval="$with_catgets" 2618 nls_cv_use_catgets=$withval 2619else 2620 nls_cv_use_catgets=no 2621fi 2622 2623 echo "$ac_t""$nls_cv_use_catgets" 1>&6 2624 2625 if test "$nls_cv_use_catgets" = "yes"; then 2626 echo $ac_n "checking for main in -li""... $ac_c" 1>&6 2627echo "configure:2628: checking for main in -li" >&5 2628ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` 2629if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2630 echo $ac_n "(cached) $ac_c" 1>&6 2631else 2632 ac_save_LIBS="$LIBS" 2633LIBS="-li $LIBS" 2634cat > conftest.$ac_ext <<EOF 2635#line 2636 "configure" 2636#include "confdefs.h" 2637 2638int main() { 2639main() 2640; return 0; } 2641EOF 2642if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2643 rm -rf conftest* 2644 eval "ac_cv_lib_$ac_lib_var=yes" 2645else 2646 echo "configure: failed program was:" >&5 2647 cat conftest.$ac_ext >&5 2648 rm -rf conftest* 2649 eval "ac_cv_lib_$ac_lib_var=no" 2650fi 2651rm -f conftest* 2652LIBS="$ac_save_LIBS" 2653 2654fi 2655if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2656 echo "$ac_t""yes" 1>&6 2657 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2659 cat >> confdefs.h <<EOF 2660#define $ac_tr_lib 1 2661EOF 2662 2663 LIBS="-li $LIBS" 2664 2665else 2666 echo "$ac_t""no" 1>&6 2667fi 2668 2669 echo $ac_n "checking for catgets""... $ac_c" 1>&6 2670echo "configure:2671: checking for catgets" >&5 2671if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then 2672 echo $ac_n "(cached) $ac_c" 1>&6 2673else 2674 cat > conftest.$ac_ext <<EOF 2675#line 2676 "configure" 2676#include "confdefs.h" 2677/* System header to define __stub macros and hopefully few prototypes, 2678 which can conflict with char catgets(); below. */ 2679#include <assert.h> 2680/* Override any gcc2 internal prototype to avoid an error. */ 2681/* We use char because int might match the return type of a gcc2 2682 builtin and then its argument prototype would still apply. */ 2683char catgets(); 2684 2685int main() { 2686 2687/* The GNU C library defines this for functions which it implements 2688 to always fail with ENOSYS. Some functions are actually named 2689 something starting with __ and the normal name is an alias. */ 2690#if defined (__stub_catgets) || defined (__stub___catgets) 2691choke me 2692#else 2693catgets(); 2694#endif 2695 2696; return 0; } 2697EOF 2698if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2699 rm -rf conftest* 2700 eval "ac_cv_func_catgets=yes" 2701else 2702 echo "configure: failed program was:" >&5 2703 cat conftest.$ac_ext >&5 2704 rm -rf conftest* 2705 eval "ac_cv_func_catgets=no" 2706fi 2707rm -f conftest* 2708fi 2709 2710if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then 2711 echo "$ac_t""yes" 1>&6 2712 cat >> confdefs.h <<\EOF 2713#define HAVE_CATGETS 1 2714EOF 2715 2716 INTLOBJS="\$(CATOBJS)" 2717 # Extract the first word of "gencat", so it can be a program name with args. 2718set dummy gencat; ac_word=$2 2719echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2720echo "configure:2721: checking for $ac_word" >&5 2721if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then 2722 echo $ac_n "(cached) $ac_c" 1>&6 2723else 2724 case "$GENCAT" in 2725 /*) 2726 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. 2727 ;; 2728 ?:/*) 2729 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. 2730 ;; 2731 *) 2732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2733 ac_dummy="$PATH" 2734 for ac_dir in $ac_dummy; do 2735 test -z "$ac_dir" && ac_dir=. 2736 if test -f $ac_dir/$ac_word; then 2737 ac_cv_path_GENCAT="$ac_dir/$ac_word" 2738 break 2739 fi 2740 done 2741 IFS="$ac_save_ifs" 2742 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" 2743 ;; 2744esac 2745fi 2746GENCAT="$ac_cv_path_GENCAT" 2747if test -n "$GENCAT"; then 2748 echo "$ac_t""$GENCAT" 1>&6 2749else 2750 echo "$ac_t""no" 1>&6 2751fi 2752 if test "$GENCAT" != "no"; then 2753 # Extract the first word of "gmsgfmt", so it can be a program name with args. 2754set dummy gmsgfmt; ac_word=$2 2755echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2756echo "configure:2757: checking for $ac_word" >&5 2757if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 2758 echo $ac_n "(cached) $ac_c" 1>&6 2759else 2760 case "$GMSGFMT" in 2761 /*) 2762 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 2763 ;; 2764 ?:/*) 2765 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 2766 ;; 2767 *) 2768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2769 ac_dummy="$PATH" 2770 for ac_dir in $ac_dummy; do 2771 test -z "$ac_dir" && ac_dir=. 2772 if test -f $ac_dir/$ac_word; then 2773 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 2774 break 2775 fi 2776 done 2777 IFS="$ac_save_ifs" 2778 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" 2779 ;; 2780esac 2781fi 2782GMSGFMT="$ac_cv_path_GMSGFMT" 2783if test -n "$GMSGFMT"; then 2784 echo "$ac_t""$GMSGFMT" 1>&6 2785else 2786 echo "$ac_t""no" 1>&6 2787fi 2788 2789 if test "$GMSGFMT" = "no"; then 2790 # Extract the first word of "msgfmt", so it can be a program name with args. 2791set dummy msgfmt; ac_word=$2 2792echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2793echo "configure:2794: checking for $ac_word" >&5 2794if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 2795 echo $ac_n "(cached) $ac_c" 1>&6 2796else 2797 case "$GMSGFMT" in 2798 /*) 2799 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 2800 ;; 2801 *) 2802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2803 for ac_dir in $PATH; do 2804 test -z "$ac_dir" && ac_dir=. 2805 if test -f $ac_dir/$ac_word; then 2806 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 2807 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 2808 break 2809 fi 2810 fi 2811 done 2812 IFS="$ac_save_ifs" 2813 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" 2814 ;; 2815esac 2816fi 2817GMSGFMT="$ac_cv_path_GMSGFMT" 2818if test -n "$GMSGFMT"; then 2819 echo "$ac_t""$GMSGFMT" 1>&6 2820else 2821 echo "$ac_t""no" 1>&6 2822fi 2823 2824 fi 2825 # Extract the first word of "xgettext", so it can be a program name with args. 2826set dummy xgettext; ac_word=$2 2827echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2828echo "configure:2829: checking for $ac_word" >&5 2829if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 2830 echo $ac_n "(cached) $ac_c" 1>&6 2831else 2832 case "$XGETTEXT" in 2833 /*) 2834 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 2835 ;; 2836 *) 2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2838 for ac_dir in $PATH; do 2839 test -z "$ac_dir" && ac_dir=. 2840 if test -f $ac_dir/$ac_word; then 2841 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 2842 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 2843 break 2844 fi 2845 fi 2846 done 2847 IFS="$ac_save_ifs" 2848 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 2849 ;; 2850esac 2851fi 2852XGETTEXT="$ac_cv_path_XGETTEXT" 2853if test -n "$XGETTEXT"; then 2854 echo "$ac_t""$XGETTEXT" 1>&6 2855else 2856 echo "$ac_t""no" 1>&6 2857fi 2858 2859 USE_INCLUDED_LIBINTL=yes 2860 CATOBJEXT=.cat 2861 INSTOBJEXT=.cat 2862 DATADIRNAME=lib 2863 INTLDEPS='$(top_builddir)/intl/libintl.a' 2864 INTLLIBS=$INTLDEPS 2865 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 2866 nls_cv_header_intl=intl/libintl.h 2867 nls_cv_header_libgt=intl/libgettext.h 2868 fi 2869else 2870 echo "$ac_t""no" 1>&6 2871fi 2872 2873 fi 2874 fi 2875 2876 if test "$CATOBJEXT" = "NONE"; then 2877 nls_cv_use_gnu_gettext=yes 2878 fi 2879 fi 2880 2881 if test "$nls_cv_use_gnu_gettext" = "yes"; then 2882 INTLOBJS="\$(GETTOBJS)" 2883 # Extract the first word of "msgfmt", so it can be a program name with args. 2884set dummy msgfmt; ac_word=$2 2885echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2886echo "configure:2887: checking for $ac_word" >&5 2887if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 2888 echo $ac_n "(cached) $ac_c" 1>&6 2889else 2890 case "$MSGFMT" in 2891 /*) 2892 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 2893 ;; 2894 *) 2895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2896 for ac_dir in $PATH; do 2897 test -z "$ac_dir" && ac_dir=. 2898 if test -f $ac_dir/$ac_word; then 2899 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 2900 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 2901 break 2902 fi 2903 fi 2904 done 2905 IFS="$ac_save_ifs" 2906 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 2907 ;; 2908esac 2909fi 2910MSGFMT="$ac_cv_path_MSGFMT" 2911if test -n "$MSGFMT"; then 2912 echo "$ac_t""$MSGFMT" 1>&6 2913else 2914 echo "$ac_t""no" 1>&6 2915fi 2916 2917 # Extract the first word of "gmsgfmt", so it can be a program name with args. 2918set dummy gmsgfmt; ac_word=$2 2919echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2920echo "configure:2921: checking for $ac_word" >&5 2921if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 2922 echo $ac_n "(cached) $ac_c" 1>&6 2923else 2924 case "$GMSGFMT" in 2925 /*) 2926 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 2927 ;; 2928 ?:/*) 2929 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. 2930 ;; 2931 *) 2932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2933 ac_dummy="$PATH" 2934 for ac_dir in $ac_dummy; do 2935 test -z "$ac_dir" && ac_dir=. 2936 if test -f $ac_dir/$ac_word; then 2937 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 2938 break 2939 fi 2940 done 2941 IFS="$ac_save_ifs" 2942 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 2943 ;; 2944esac 2945fi 2946GMSGFMT="$ac_cv_path_GMSGFMT" 2947if test -n "$GMSGFMT"; then 2948 echo "$ac_t""$GMSGFMT" 1>&6 2949else 2950 echo "$ac_t""no" 1>&6 2951fi 2952 2953 # Extract the first word of "xgettext", so it can be a program name with args. 2954set dummy xgettext; ac_word=$2 2955echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2956echo "configure:2957: checking for $ac_word" >&5 2957if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 2958 echo $ac_n "(cached) $ac_c" 1>&6 2959else 2960 case "$XGETTEXT" in 2961 /*) 2962 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 2963 ;; 2964 *) 2965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2966 for ac_dir in $PATH; do 2967 test -z "$ac_dir" && ac_dir=. 2968 if test -f $ac_dir/$ac_word; then 2969 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 2970 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 2971 break 2972 fi 2973 fi 2974 done 2975 IFS="$ac_save_ifs" 2976 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 2977 ;; 2978esac 2979fi 2980XGETTEXT="$ac_cv_path_XGETTEXT" 2981if test -n "$XGETTEXT"; then 2982 echo "$ac_t""$XGETTEXT" 1>&6 2983else 2984 echo "$ac_t""no" 1>&6 2985fi 2986 2987 2988 USE_INCLUDED_LIBINTL=yes 2989 CATOBJEXT=.gmo 2990 INSTOBJEXT=.mo 2991 DATADIRNAME=share 2992 INTLDEPS='$(top_builddir)/intl/libintl.a' 2993 INTLLIBS=$INTLDEPS 2994 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 2995 nls_cv_header_intl=intl/libintl.h 2996 nls_cv_header_libgt=intl/libgettext.h 2997 fi 2998 2999 if test "$XGETTEXT" != ":"; then 3000 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 3001 : ; 3002 else 3003 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 3004 XGETTEXT=":" 3005 fi 3006 fi 3007 3008 # We need to process the po/ directory. 3009 POSUB=po 3010 else 3011 DATADIRNAME=share 3012 nls_cv_header_intl=intl/libintl.h 3013 nls_cv_header_libgt=intl/libgettext.h 3014 fi 3015 3016 3017 3018 3019 # If this is used in GNU gettext we have to set USE_NLS to `yes' 3020 # because some of the sources are only built for this goal. 3021 if test "$PACKAGE" = gettext; then 3022 USE_NLS=yes 3023 USE_INCLUDED_LIBINTL=yes 3024 fi 3025 3026 for lang in $ALL_LINGUAS; do 3027 GMOFILES="$GMOFILES $lang.gmo" 3028 POFILES="$POFILES $lang.po" 3029 done 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 if test "x$CATOBJEXT" != "x"; then 3045 if test "x$ALL_LINGUAS" = "x"; then 3046 LINGUAS= 3047 else 3048 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 3049echo "configure:3050: checking for catalogs to be installed" >&5 3050 NEW_LINGUAS= 3051 for lang in ${LINGUAS=$ALL_LINGUAS}; do 3052 case "$ALL_LINGUAS" in 3053 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 3054 esac 3055 done 3056 LINGUAS=$NEW_LINGUAS 3057 echo "$ac_t""$LINGUAS" 1>&6 3058 fi 3059 3060 if test -n "$LINGUAS"; then 3061 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 3062 fi 3063 fi 3064 3065 if test $ac_cv_header_locale_h = yes; then 3066 INCLUDE_LOCALE_H="#include <locale.h>" 3067 else 3068 INCLUDE_LOCALE_H="\ 3069/* The system does not provide the header <locale.h>. Take care yourself. */" 3070 fi 3071 3072 3073 test -d intl || mkdir intl 3074 if test "$CATOBJEXT" = ".cat"; then 3075 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` 3076echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 3077echo "configure:3078: checking for linux/version.h" >&5 3078if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3079 echo $ac_n "(cached) $ac_c" 1>&6 3080else 3081 cat > conftest.$ac_ext <<EOF 3082#line 3083 "configure" 3083#include "confdefs.h" 3084#include <linux/version.h> 3085EOF 3086ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3087{ (eval echo configure:3088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3088ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3089if test -z "$ac_err"; then 3090 rm -rf conftest* 3091 eval "ac_cv_header_$ac_safe=yes" 3092else 3093 echo "$ac_err" >&5 3094 echo "configure: failed program was:" >&5 3095 cat conftest.$ac_ext >&5 3096 rm -rf conftest* 3097 eval "ac_cv_header_$ac_safe=no" 3098fi 3099rm -f conftest* 3100fi 3101if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3102 echo "$ac_t""yes" 1>&6 3103 msgformat=linux 3104else 3105 echo "$ac_t""no" 1>&6 3106msgformat=xopen 3107fi 3108 3109 3110 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed 3111 fi 3112 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 3113 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed 3114 3115 if test "$PACKAGE" = "gettext"; then 3116 GT_NO="#NO#" 3117 GT_YES= 3118 else 3119 GT_NO= 3120 GT_YES="#YES#" 3121 fi 3122 3123 3124 3125 MKINSTALLDIRS= 3126 if test -n "$ac_aux_dir"; then 3127 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 3128 fi 3129 if test -z "$MKINSTALLDIRS"; then 3130 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 3131 fi 3132 3133 3134 l= 3135 3136 3137 test -d po || mkdir po 3138 if test "x$srcdir" != "x."; then 3139 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 3140 posrcprefix="$srcdir/" 3141 else 3142 posrcprefix="../$srcdir/" 3143 fi 3144 else 3145 posrcprefix="../" 3146 fi 3147 rm -f po/POTFILES 3148 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 3149 < $srcdir/po/POTFILES.in > po/POTFILES 3150 3151# Check whether --enable-profile or --disable-profile was given. 3152if test "${enable_profile+set}" = set; then 3153 enableval="$enable_profile" 3154 if test "$enableval" = "no" 3155then 3156 PROFILE_CMT=# 3157 MAKEFILE_PROFILE=/dev/null 3158 echo "Disabling profiling libraries" 3159else 3160 PROFILE_CMT= 3161 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile 3162 PROFILED_LIB_EXT=_p.a 3163 echo "Building profiling libraries" 3164fi 3165 3166else 3167 PROFILE_CMT=# 3168MAKEFILE_PROFILE=/dev/null 3169echo "Disabling profiling libraries by default" 3170 3171fi 3172 3173 3174 3175# Check whether --enable-checker or --disable-checker was given. 3176if test "${enable_checker+set}" = set; then 3177 enableval="$enable_checker" 3178 if test "$enableval" = "no" 3179then 3180 CHECKER_CMT=# 3181 MAKEFILE_CHECKER=/dev/null 3182 echo "Disabling checker libraries" 3183else 3184 CHECKER_CMT= 3185 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker 3186 echo "Building checker libraries" 3187fi 3188 3189else 3190 CHECKER_CMT=# 3191MAKEFILE_CHECKER=/dev/null 3192echo "Disabling checker libraries by default" 3193 3194fi 3195 3196 3197 3198 3199 3200 3201# Check whether --enable-gcc-wall or --disable-gcc-wall was given. 3202if test "${enable_gcc_wall+set}" = set; then 3203 enableval="$enable_gcc_wall" 3204 if test "$enableval" = "no" 3205then 3206 W=# 3207 echo "Disabling GCC warnings" 3208else 3209 W= 3210 echo "Enabling GCC warnings" 3211fi 3212 3213else 3214 W=# 3215echo "Disabling GCC warnings by default" 3216 3217fi 3218 3219 3220# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. 3221if test "${enable_dynamic_e2fsck+set}" = set; then 3222 enableval="$enable_dynamic_e2fsck" 3223 if test "$enableval" = "no" 3224then 3225 E2FSCK_TYPE=static 3226 echo "Building e2fsck statically" 3227else 3228 E2FSCK_TYPE=shared 3229 echo "Building e2fsck dynamically" 3230fi 3231 3232else 3233 E2FSCK_TYPE=static 3234echo "Building e2fsck statically by default" 3235 3236fi 3237 3238 3239# Check whether --enable-fsck or --disable-fsck was given. 3240if test "${enable_fsck+set}" = set; then 3241 enableval="$enable_fsck" 3242 if test "$enableval" = "no" 3243then 3244 FSCK_PROG='' FSCK_MAN='' 3245 echo "Not building fsck wrapper" 3246else 3247 FSCK_PROG=fsck FSCK_MAN=fsck.8 3248 echo "Building fsck wrapper" 3249fi 3250 3251else 3252 case "$host_os" in 3253 gnu*) 3254 FSCK_PROG='' FSCK_MAN='' 3255 echo "Not building fsck wrapper by default" 3256 ;; 3257 *) 3258 FSCK_PROG=fsck FSCK_MAN=fsck.8 3259 echo "Building fsck wrapper by default" 3260esac 3261 3262fi 3263 3264 3265 3266MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library 3267 3268# Check whether --enable-old-bitops or --disable-old-bitops was given. 3269if test "${enable_old_bitops+set}" = set; then 3270 enableval="$enable_old_bitops" 3271 if test "$enableval" = "no" 3272then 3273 echo "Using new (standard) bitmask operations" 3274else 3275 cat >> confdefs.h <<\EOF 3276#define EXT2_OLD_BITOPS 1 3277EOF 3278 3279 echo "Using old (native) bitmask operations" 3280 3281fi 3282 3283else 3284 echo "Using standard bitmask operations by default" 3285 3286fi 3287 3288 3289echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3290echo "configure:3291: checking whether ${MAKE-make} sets \${MAKE}" >&5 3291set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3292if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 3293 echo $ac_n "(cached) $ac_c" 1>&6 3294else 3295 cat > conftestmake <<\EOF 3296all: 3297 @echo 'ac_maketemp="${MAKE}"' 3298EOF 3299# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3300eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 3301if test -n "$ac_maketemp"; then 3302 eval ac_cv_prog_make_${ac_make}_set=yes 3303else 3304 eval ac_cv_prog_make_${ac_make}_set=no 3305fi 3306rm -f conftestmake 3307fi 3308if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3309 echo "$ac_t""yes" 1>&6 3310 SET_MAKE= 3311else 3312 echo "$ac_t""no" 1>&6 3313 SET_MAKE="MAKE=${MAKE-make}" 3314fi 3315 3316# Extract the first word of "ln", so it can be a program name with args. 3317set dummy ln; ac_word=$2 3318echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3319echo "configure:3320: checking for $ac_word" >&5 3320if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then 3321 echo $ac_n "(cached) $ac_c" 1>&6 3322else 3323 case "$LN" in 3324 /*) 3325 ac_cv_path_LN="$LN" # Let the user override the test with a path. 3326 ;; 3327 ?:/*) 3328 ac_cv_path_LN="$LN" # Let the user override the test with a dos path. 3329 ;; 3330 *) 3331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3332 ac_dummy="$PATH" 3333 for ac_dir in $ac_dummy; do 3334 test -z "$ac_dir" && ac_dir=. 3335 if test -f $ac_dir/$ac_word; then 3336 ac_cv_path_LN="$ac_dir/$ac_word" 3337 break 3338 fi 3339 done 3340 IFS="$ac_save_ifs" 3341 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 3342 ;; 3343esac 3344fi 3345LN="$ac_cv_path_LN" 3346if test -n "$LN"; then 3347 echo "$ac_t""$LN" 1>&6 3348else 3349 echo "$ac_t""no" 1>&6 3350fi 3351 3352echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 3353echo "configure:3354: checking whether ln -s works" >&5 3354if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 3355 echo $ac_n "(cached) $ac_c" 1>&6 3356else 3357 rm -f conftestdata 3358if ln -s X conftestdata 2>/dev/null 3359then 3360 rm -f conftestdata 3361 ac_cv_prog_LN_S="ln -s" 3362else 3363 ac_cv_prog_LN_S=ln 3364fi 3365fi 3366LN_S="$ac_cv_prog_LN_S" 3367if test "$ac_cv_prog_LN_S" = "ln -s"; then 3368 echo "$ac_t""yes" 1>&6 3369else 3370 echo "$ac_t""no" 1>&6 3371fi 3372 3373# Extract the first word of "mv", so it can be a program name with args. 3374set dummy mv; ac_word=$2 3375echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3376echo "configure:3377: checking for $ac_word" >&5 3377if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then 3378 echo $ac_n "(cached) $ac_c" 1>&6 3379else 3380 case "$MV" in 3381 /*) 3382 ac_cv_path_MV="$MV" # Let the user override the test with a path. 3383 ;; 3384 ?:/*) 3385 ac_cv_path_MV="$MV" # Let the user override the test with a dos path. 3386 ;; 3387 *) 3388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3389 ac_dummy="$PATH" 3390 for ac_dir in $ac_dummy; do 3391 test -z "$ac_dir" && ac_dir=. 3392 if test -f $ac_dir/$ac_word; then 3393 ac_cv_path_MV="$ac_dir/$ac_word" 3394 break 3395 fi 3396 done 3397 IFS="$ac_save_ifs" 3398 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 3399 ;; 3400esac 3401fi 3402MV="$ac_cv_path_MV" 3403if test -n "$MV"; then 3404 echo "$ac_t""$MV" 1>&6 3405else 3406 echo "$ac_t""no" 1>&6 3407fi 3408 3409# Extract the first word of "cp", so it can be a program name with args. 3410set dummy cp; ac_word=$2 3411echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3412echo "configure:3413: checking for $ac_word" >&5 3413if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then 3414 echo $ac_n "(cached) $ac_c" 1>&6 3415else 3416 case "$CP" in 3417 /*) 3418 ac_cv_path_CP="$CP" # Let the user override the test with a path. 3419 ;; 3420 ?:/*) 3421 ac_cv_path_CP="$CP" # Let the user override the test with a dos path. 3422 ;; 3423 *) 3424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3425 ac_dummy="$PATH" 3426 for ac_dir in $ac_dummy; do 3427 test -z "$ac_dir" && ac_dir=. 3428 if test -f $ac_dir/$ac_word; then 3429 ac_cv_path_CP="$ac_dir/$ac_word" 3430 break 3431 fi 3432 done 3433 IFS="$ac_save_ifs" 3434 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 3435 ;; 3436esac 3437fi 3438CP="$ac_cv_path_CP" 3439if test -n "$CP"; then 3440 echo "$ac_t""$CP" 1>&6 3441else 3442 echo "$ac_t""no" 1>&6 3443fi 3444 3445# Extract the first word of "rm", so it can be a program name with args. 3446set dummy rm; ac_word=$2 3447echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3448echo "configure:3449: checking for $ac_word" >&5 3449if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then 3450 echo $ac_n "(cached) $ac_c" 1>&6 3451else 3452 case "$RM" in 3453 /*) 3454 ac_cv_path_RM="$RM" # Let the user override the test with a path. 3455 ;; 3456 ?:/*) 3457 ac_cv_path_RM="$RM" # Let the user override the test with a dos path. 3458 ;; 3459 *) 3460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3461 ac_dummy="$PATH" 3462 for ac_dir in $ac_dummy; do 3463 test -z "$ac_dir" && ac_dir=. 3464 if test -f $ac_dir/$ac_word; then 3465 ac_cv_path_RM="$ac_dir/$ac_word" 3466 break 3467 fi 3468 done 3469 IFS="$ac_save_ifs" 3470 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 3471 ;; 3472esac 3473fi 3474RM="$ac_cv_path_RM" 3475if test -n "$RM"; then 3476 echo "$ac_t""$RM" 1>&6 3477else 3478 echo "$ac_t""no" 1>&6 3479fi 3480 3481# Extract the first word of "chmod", so it can be a program name with args. 3482set dummy chmod; ac_word=$2 3483echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3484echo "configure:3485: checking for $ac_word" >&5 3485if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then 3486 echo $ac_n "(cached) $ac_c" 1>&6 3487else 3488 case "$CHMOD" in 3489 /*) 3490 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 3491 ;; 3492 ?:/*) 3493 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. 3494 ;; 3495 *) 3496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3497 ac_dummy="$PATH" 3498 for ac_dir in $ac_dummy; do 3499 test -z "$ac_dir" && ac_dir=. 3500 if test -f $ac_dir/$ac_word; then 3501 ac_cv_path_CHMOD="$ac_dir/$ac_word" 3502 break 3503 fi 3504 done 3505 IFS="$ac_save_ifs" 3506 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" 3507 ;; 3508esac 3509fi 3510CHMOD="$ac_cv_path_CHMOD" 3511if test -n "$CHMOD"; then 3512 echo "$ac_t""$CHMOD" 1>&6 3513else 3514 echo "$ac_t""no" 1>&6 3515fi 3516 3517# Extract the first word of "awk", so it can be a program name with args. 3518set dummy awk; ac_word=$2 3519echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3520echo "configure:3521: checking for $ac_word" >&5 3521if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then 3522 echo $ac_n "(cached) $ac_c" 1>&6 3523else 3524 case "$AWK" in 3525 /*) 3526 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 3527 ;; 3528 ?:/*) 3529 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path. 3530 ;; 3531 *) 3532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3533 ac_dummy="$PATH" 3534 for ac_dir in $ac_dummy; do 3535 test -z "$ac_dir" && ac_dir=. 3536 if test -f $ac_dir/$ac_word; then 3537 ac_cv_path_AWK="$ac_dir/$ac_word" 3538 break 3539 fi 3540 done 3541 IFS="$ac_save_ifs" 3542 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" 3543 ;; 3544esac 3545fi 3546AWK="$ac_cv_path_AWK" 3547if test -n "$AWK"; then 3548 echo "$ac_t""$AWK" 1>&6 3549else 3550 echo "$ac_t""no" 1>&6 3551fi 3552 3553# Extract the first word of "sed", so it can be a program name with args. 3554set dummy sed; ac_word=$2 3555echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3556echo "configure:3557: checking for $ac_word" >&5 3557if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then 3558 echo $ac_n "(cached) $ac_c" 1>&6 3559else 3560 case "$SED" in 3561 /*) 3562 ac_cv_path_SED="$SED" # Let the user override the test with a path. 3563 ;; 3564 ?:/*) 3565 ac_cv_path_SED="$SED" # Let the user override the test with a dos path. 3566 ;; 3567 *) 3568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3569 ac_dummy="$PATH" 3570 for ac_dir in $ac_dummy; do 3571 test -z "$ac_dir" && ac_dir=. 3572 if test -f $ac_dir/$ac_word; then 3573 ac_cv_path_SED="$ac_dir/$ac_word" 3574 break 3575 fi 3576 done 3577 IFS="$ac_save_ifs" 3578 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 3579 ;; 3580esac 3581fi 3582SED="$ac_cv_path_SED" 3583if test -n "$SED"; then 3584 echo "$ac_t""$SED" 1>&6 3585else 3586 echo "$ac_t""no" 1>&6 3587fi 3588 3589# Extract the first word of "perl", so it can be a program name with args. 3590set dummy perl; ac_word=$2 3591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3592echo "configure:3593: checking for $ac_word" >&5 3593if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then 3594 echo $ac_n "(cached) $ac_c" 1>&6 3595else 3596 case "$PERL" in 3597 /*) 3598 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 3599 ;; 3600 ?:/*) 3601 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. 3602 ;; 3603 *) 3604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3605 ac_dummy="$PATH" 3606 for ac_dir in $ac_dummy; do 3607 test -z "$ac_dir" && ac_dir=. 3608 if test -f $ac_dir/$ac_word; then 3609 ac_cv_path_PERL="$ac_dir/$ac_word" 3610 break 3611 fi 3612 done 3613 IFS="$ac_save_ifs" 3614 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" 3615 ;; 3616esac 3617fi 3618PERL="$ac_cv_path_PERL" 3619if test -n "$PERL"; then 3620 echo "$ac_t""$PERL" 1>&6 3621else 3622 echo "$ac_t""no" 1>&6 3623fi 3624 3625echo $ac_n "checking build system type""... $ac_c" 1>&6 3626echo "configure:3627: checking build system type" >&5 3627 3628build_alias=$build 3629case "$build_alias" in 3630NONE) 3631 case $nonopt in 3632 NONE) build_alias=$host_alias ;; 3633 *) build_alias=$nonopt ;; 3634 esac ;; 3635esac 3636 3637build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 3638build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3639build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3640build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3641echo "$ac_t""$build" 1>&6 3642 3643if test $host != $build; then 3644 ac_tool_prefix=${host_alias}- 3645else 3646 ac_tool_prefix= 3647fi 3648 3649# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3650set dummy ${ac_tool_prefix}ar; ac_word=$2 3651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3652echo "configure:3653: checking for $ac_word" >&5 3653if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 3654 echo $ac_n "(cached) $ac_c" 1>&6 3655else 3656 if test -n "$AR"; then 3657 ac_cv_prog_AR="$AR" # Let the user override the test. 3658else 3659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3660 ac_dummy="$PATH" 3661 for ac_dir in $ac_dummy; do 3662 test -z "$ac_dir" && ac_dir=. 3663 if test -f $ac_dir/$ac_word; then 3664 ac_cv_prog_AR="${ac_tool_prefix}ar" 3665 break 3666 fi 3667 done 3668 IFS="$ac_save_ifs" 3669fi 3670fi 3671AR="$ac_cv_prog_AR" 3672if test -n "$AR"; then 3673 echo "$ac_t""$AR" 1>&6 3674else 3675 echo "$ac_t""no" 1>&6 3676fi 3677 3678 3679if test -z "$ac_cv_prog_AR"; then 3680if test -n "$ac_tool_prefix"; then 3681 # Extract the first word of "ar", so it can be a program name with args. 3682set dummy ar; ac_word=$2 3683echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3684echo "configure:3685: checking for $ac_word" >&5 3685if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 3686 echo $ac_n "(cached) $ac_c" 1>&6 3687else 3688 if test -n "$AR"; then 3689 ac_cv_prog_AR="$AR" # Let the user override the test. 3690else 3691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3692 ac_dummy="$PATH" 3693 for ac_dir in $ac_dummy; do 3694 test -z "$ac_dir" && ac_dir=. 3695 if test -f $ac_dir/$ac_word; then 3696 ac_cv_prog_AR="ar" 3697 break 3698 fi 3699 done 3700 IFS="$ac_save_ifs" 3701 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 3702fi 3703fi 3704AR="$ac_cv_prog_AR" 3705if test -n "$AR"; then 3706 echo "$ac_t""$AR" 1>&6 3707else 3708 echo "$ac_t""no" 1>&6 3709fi 3710 3711else 3712 AR="ar" 3713fi 3714fi 3715 3716# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3717set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3719echo "configure:3720: checking for $ac_word" >&5 3720if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 3721 echo $ac_n "(cached) $ac_c" 1>&6 3722else 3723 if test -n "$RANLIB"; then 3724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3725else 3726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3727 ac_dummy="$PATH" 3728 for ac_dir in $ac_dummy; do 3729 test -z "$ac_dir" && ac_dir=. 3730 if test -f $ac_dir/$ac_word; then 3731 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3732 break 3733 fi 3734 done 3735 IFS="$ac_save_ifs" 3736fi 3737fi 3738RANLIB="$ac_cv_prog_RANLIB" 3739if test -n "$RANLIB"; then 3740 echo "$ac_t""$RANLIB" 1>&6 3741else 3742 echo "$ac_t""no" 1>&6 3743fi 3744 3745 3746if test -z "$ac_cv_prog_RANLIB"; then 3747if test -n "$ac_tool_prefix"; then 3748 # Extract the first word of "ranlib", so it can be a program name with args. 3749set dummy ranlib; ac_word=$2 3750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3751echo "configure:3752: checking for $ac_word" >&5 3752if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 3753 echo $ac_n "(cached) $ac_c" 1>&6 3754else 3755 if test -n "$RANLIB"; then 3756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3757else 3758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3759 ac_dummy="$PATH" 3760 for ac_dir in $ac_dummy; do 3761 test -z "$ac_dir" && ac_dir=. 3762 if test -f $ac_dir/$ac_word; then 3763 ac_cv_prog_RANLIB="ranlib" 3764 break 3765 fi 3766 done 3767 IFS="$ac_save_ifs" 3768 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 3769fi 3770fi 3771RANLIB="$ac_cv_prog_RANLIB" 3772if test -n "$RANLIB"; then 3773 echo "$ac_t""$RANLIB" 1>&6 3774else 3775 echo "$ac_t""no" 1>&6 3776fi 3777 3778else 3779 RANLIB=":" 3780fi 3781fi 3782 3783# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3784set dummy ${ac_tool_prefix}strip; ac_word=$2 3785echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3786echo "configure:3787: checking for $ac_word" >&5 3787if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 3788 echo $ac_n "(cached) $ac_c" 1>&6 3789else 3790 if test -n "$STRIP"; then 3791 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3792else 3793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3794 ac_dummy="$PATH" 3795 for ac_dir in $ac_dummy; do 3796 test -z "$ac_dir" && ac_dir=. 3797 if test -f $ac_dir/$ac_word; then 3798 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3799 break 3800 fi 3801 done 3802 IFS="$ac_save_ifs" 3803fi 3804fi 3805STRIP="$ac_cv_prog_STRIP" 3806if test -n "$STRIP"; then 3807 echo "$ac_t""$STRIP" 1>&6 3808else 3809 echo "$ac_t""no" 1>&6 3810fi 3811 3812 3813if test -z "$ac_cv_prog_STRIP"; then 3814if test -n "$ac_tool_prefix"; then 3815 # Extract the first word of "strip", so it can be a program name with args. 3816set dummy strip; ac_word=$2 3817echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3818echo "configure:3819: checking for $ac_word" >&5 3819if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 3820 echo $ac_n "(cached) $ac_c" 1>&6 3821else 3822 if test -n "$STRIP"; then 3823 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3824else 3825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3826 ac_dummy="$PATH" 3827 for ac_dir in $ac_dummy; do 3828 test -z "$ac_dir" && ac_dir=. 3829 if test -f $ac_dir/$ac_word; then 3830 ac_cv_prog_STRIP="strip" 3831 break 3832 fi 3833 done 3834 IFS="$ac_save_ifs" 3835 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3836fi 3837fi 3838STRIP="$ac_cv_prog_STRIP" 3839if test -n "$STRIP"; then 3840 echo "$ac_t""$STRIP" 1>&6 3841else 3842 echo "$ac_t""no" 1>&6 3843fi 3844 3845else 3846 STRIP=":" 3847fi 3848fi 3849 3850# Find a good install program. We prefer a C program (faster), 3851# so one script is as good as another. But avoid the broken or 3852# incompatible versions: 3853# SysV /etc/install, /usr/sbin/install 3854# SunOS /usr/etc/install 3855# IRIX /sbin/install 3856# AIX /bin/install 3857# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3858# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3859# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3860# ./install, which can be erroneously created by make from ./install.sh. 3861echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3862echo "configure:3863: checking for a BSD compatible install" >&5 3863if test -z "$INSTALL"; then 3864if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 3865 echo $ac_n "(cached) $ac_c" 1>&6 3866else 3867 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3868 for ac_dir in $PATH; do 3869 # Account for people who put trailing slashes in PATH elements. 3870 case "$ac_dir/" in 3871 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 3872 *) 3873 # OSF1 and SCO ODT 3.0 have their own names for install. 3874 # Don't use installbsd from OSF since it installs stuff as root 3875 # by default. 3876 for ac_prog in ginstall scoinst install; do 3877 if test -f $ac_dir/$ac_prog; then 3878 if test $ac_prog = install && 3879 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 3880 # AIX install. It has an incompatible calling convention. 3881 : 3882 else 3883 ac_cv_path_install="$ac_dir/$ac_prog -c" 3884 break 2 3885 fi 3886 fi 3887 done 3888 ;; 3889 esac 3890 done 3891 IFS="$ac_save_IFS" 3892 3893fi 3894 if test "${ac_cv_path_install+set}" = set; then 3895 INSTALL="$ac_cv_path_install" 3896 else 3897 # As a last resort, use the slow shell script. We don't cache a 3898 # path for INSTALL within a source directory, because that will 3899 # break other packages using the cache if that directory is 3900 # removed, or if the path is relative. 3901 INSTALL="$ac_install_sh" 3902 fi 3903fi 3904echo "$ac_t""$INSTALL" 1>&6 3905 3906# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3907# It thinks the first close brace ends the variable substitution. 3908test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3909 3910test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 3911 3912test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3913 3914# See if we need a separate native compiler. 3915if test $cross_compiling = no; then 3916 BUILD_CC="$CC" 3917 3918else 3919 for ac_prog in gcc cc 3920do 3921# Extract the first word of "$ac_prog", so it can be a program name with args. 3922set dummy $ac_prog; ac_word=$2 3923echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3924echo "configure:3925: checking for $ac_word" >&5 3925if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then 3926 echo $ac_n "(cached) $ac_c" 1>&6 3927else 3928 if test -n "$BUILD_CC"; then 3929 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 3930else 3931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3932 ac_dummy="$PATH" 3933 for ac_dir in $ac_dummy; do 3934 test -z "$ac_dir" && ac_dir=. 3935 if test -f $ac_dir/$ac_word; then 3936 ac_cv_prog_BUILD_CC="$ac_prog" 3937 break 3938 fi 3939 done 3940 IFS="$ac_save_ifs" 3941fi 3942fi 3943BUILD_CC="$ac_cv_prog_BUILD_CC" 3944if test -n "$BUILD_CC"; then 3945 echo "$ac_t""$BUILD_CC" 1>&6 3946else 3947 echo "$ac_t""no" 1>&6 3948fi 3949 3950test -n "$BUILD_CC" && break 3951done 3952 3953fi 3954for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/mkdev.h sys/mount.h sys/sockio.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h 3955do 3956ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3957echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3958echo "configure:3959: checking for $ac_hdr" >&5 3959if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3960 echo $ac_n "(cached) $ac_c" 1>&6 3961else 3962 cat > conftest.$ac_ext <<EOF 3963#line 3964 "configure" 3964#include "confdefs.h" 3965#include <$ac_hdr> 3966EOF 3967ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3968{ (eval echo configure:3969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3969ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3970if test -z "$ac_err"; then 3971 rm -rf conftest* 3972 eval "ac_cv_header_$ac_safe=yes" 3973else 3974 echo "$ac_err" >&5 3975 echo "configure: failed program was:" >&5 3976 cat conftest.$ac_ext >&5 3977 rm -rf conftest* 3978 eval "ac_cv_header_$ac_safe=no" 3979fi 3980rm -f conftest* 3981fi 3982if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3983 echo "$ac_t""yes" 1>&6 3984 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3985 cat >> confdefs.h <<EOF 3986#define $ac_tr_hdr 1 3987EOF 3988 3989else 3990 echo "$ac_t""no" 1>&6 3991fi 3992done 3993 3994echo $ac_n "checking for vprintf""... $ac_c" 1>&6 3995echo "configure:3996: checking for vprintf" >&5 3996if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 3997 echo $ac_n "(cached) $ac_c" 1>&6 3998else 3999 cat > conftest.$ac_ext <<EOF 4000#line 4001 "configure" 4001#include "confdefs.h" 4002/* System header to define __stub macros and hopefully few prototypes, 4003 which can conflict with char vprintf(); below. */ 4004#include <assert.h> 4005/* Override any gcc2 internal prototype to avoid an error. */ 4006/* We use char because int might match the return type of a gcc2 4007 builtin and then its argument prototype would still apply. */ 4008char vprintf(); 4009 4010int main() { 4011 4012/* The GNU C library defines this for functions which it implements 4013 to always fail with ENOSYS. Some functions are actually named 4014 something starting with __ and the normal name is an alias. */ 4015#if defined (__stub_vprintf) || defined (__stub___vprintf) 4016choke me 4017#else 4018vprintf(); 4019#endif 4020 4021; return 0; } 4022EOF 4023if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4024 rm -rf conftest* 4025 eval "ac_cv_func_vprintf=yes" 4026else 4027 echo "configure: failed program was:" >&5 4028 cat conftest.$ac_ext >&5 4029 rm -rf conftest* 4030 eval "ac_cv_func_vprintf=no" 4031fi 4032rm -f conftest* 4033fi 4034 4035if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 4036 echo "$ac_t""yes" 1>&6 4037 cat >> confdefs.h <<\EOF 4038#define HAVE_VPRINTF 1 4039EOF 4040 4041else 4042 echo "$ac_t""no" 1>&6 4043fi 4044 4045if test "$ac_cv_func_vprintf" != yes; then 4046echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 4047echo "configure:4048: checking for _doprnt" >&5 4048if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 4049 echo $ac_n "(cached) $ac_c" 1>&6 4050else 4051 cat > conftest.$ac_ext <<EOF 4052#line 4053 "configure" 4053#include "confdefs.h" 4054/* System header to define __stub macros and hopefully few prototypes, 4055 which can conflict with char _doprnt(); below. */ 4056#include <assert.h> 4057/* Override any gcc2 internal prototype to avoid an error. */ 4058/* We use char because int might match the return type of a gcc2 4059 builtin and then its argument prototype would still apply. */ 4060char _doprnt(); 4061 4062int main() { 4063 4064/* The GNU C library defines this for functions which it implements 4065 to always fail with ENOSYS. Some functions are actually named 4066 something starting with __ and the normal name is an alias. */ 4067#if defined (__stub__doprnt) || defined (__stub____doprnt) 4068choke me 4069#else 4070_doprnt(); 4071#endif 4072 4073; return 0; } 4074EOF 4075if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4076 rm -rf conftest* 4077 eval "ac_cv_func__doprnt=yes" 4078else 4079 echo "configure: failed program was:" >&5 4080 cat conftest.$ac_ext >&5 4081 rm -rf conftest* 4082 eval "ac_cv_func__doprnt=no" 4083fi 4084rm -f conftest* 4085fi 4086 4087if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 4088 echo "$ac_t""yes" 1>&6 4089 cat >> confdefs.h <<\EOF 4090#define HAVE_DOPRNT 1 4091EOF 4092 4093else 4094 echo "$ac_t""no" 1>&6 4095fi 4096 4097fi 4098 4099echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6 4100echo "configure:4101: checking whether struct dirent has a d_namlen field" >&5 4101if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then 4102 echo $ac_n "(cached) $ac_c" 1>&6 4103else 4104 cat > conftest.$ac_ext <<EOF 4105#line 4106 "configure" 4106#include "confdefs.h" 4107#include <sys/types.h> 4108#include <dirent.h> 4109int main() { 4110struct dirent de; de.d_namlen = 0; 4111; return 0; } 4112EOF 4113if { (eval echo configure:4114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4114 rm -rf conftest* 4115 e2fsprogs_cv_struct_d_namlen=yes 4116else 4117 echo "configure: failed program was:" >&5 4118 cat conftest.$ac_ext >&5 4119 rm -rf conftest* 4120 e2fsprogs_cv_struct_d_namlen=no 4121fi 4122rm -f conftest* 4123fi 4124 4125echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6 4126if test "$e2fsprogs_cv_struct_d_namlen" = yes; then 4127 cat >> confdefs.h <<\EOF 4128#define HAVE_DIRENT_NAMLEN 1 4129EOF 4130 4131fi 4132echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 4133echo "configure:4134: checking whether llseek declared in unistd.h" >&5 4134if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then 4135 echo $ac_n "(cached) $ac_c" 1>&6 4136else 4137 cat > conftest.$ac_ext <<EOF 4138#line 4139 "configure" 4139#include "confdefs.h" 4140#include <unistd.h> 4141int main() { 4142extern int llseek(int); 4143; return 0; } 4144EOF 4145if { (eval echo configure:4146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4146 rm -rf conftest* 4147 e2fsprogs_cv_have_llseek_prototype=no 4148else 4149 echo "configure: failed program was:" >&5 4150 cat conftest.$ac_ext >&5 4151 rm -rf conftest* 4152 e2fsprogs_cv_have_llseek_prototype=yes 4153fi 4154rm -f conftest* 4155fi 4156 4157echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 4158if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then 4159 cat >> confdefs.h <<\EOF 4160#define HAVE_LLSEEK_PROTOTYPE 1 4161EOF 4162 4163fi 4164echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6 4165echo "configure:4166: checking whether lseek64 declared in unistd.h" >&5 4166if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then 4167 echo $ac_n "(cached) $ac_c" 1>&6 4168else 4169 cat > conftest.$ac_ext <<EOF 4170#line 4171 "configure" 4171#include "confdefs.h" 4172#define _LARGEFILE_SOURCE 4173#define _LARGEFILE64_SOURCE 4174#include <unistd.h> 4175int main() { 4176extern int lseek64(int); 4177; return 0; } 4178EOF 4179if { (eval echo configure:4180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4180 rm -rf conftest* 4181 e2fsprogs_cv_have_lseek64_prototype=no 4182else 4183 echo "configure: failed program was:" >&5 4184 cat conftest.$ac_ext >&5 4185 rm -rf conftest* 4186 e2fsprogs_cv_have_lseek64_prototype=yes 4187fi 4188rm -f conftest* 4189fi 4190 4191echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6 4192if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then 4193 cat >> confdefs.h <<\EOF 4194#define HAVE_LSEEK64_PROTOTYPE 1 4195EOF 4196 4197fi 4198if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then 4199 # if cross-compiling, with no cached values, just assume something common. 4200 ac_cv_sizeof_short=2 4201 ac_cv_sizeof_int=4 4202 ac_cv_sizeof_long=4 4203 ac_cv_sizeof_long_long=8 4204 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2 4205fi 4206echo $ac_n "checking size of short""... $ac_c" 1>&6 4207echo "configure:4208: checking size of short" >&5 4208if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 4209 echo $ac_n "(cached) $ac_c" 1>&6 4210else 4211 if test "$cross_compiling" = yes; then 4212 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 4213else 4214 cat > conftest.$ac_ext <<EOF 4215#line 4216 "configure" 4216#include "confdefs.h" 4217#include <stdio.h> 4218main() 4219{ 4220 FILE *f=fopen("conftestval", "w"); 4221 if (!f) exit(1); 4222 fprintf(f, "%d\n", sizeof(short)); 4223 exit(0); 4224} 4225EOF 4226if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4227then 4228 ac_cv_sizeof_short=`cat conftestval` 4229else 4230 echo "configure: failed program was:" >&5 4231 cat conftest.$ac_ext >&5 4232 rm -fr conftest* 4233 ac_cv_sizeof_short=0 4234fi 4235rm -fr conftest* 4236fi 4237 4238fi 4239echo "$ac_t""$ac_cv_sizeof_short" 1>&6 4240cat >> confdefs.h <<EOF 4241#define SIZEOF_SHORT $ac_cv_sizeof_short 4242EOF 4243 4244 4245echo $ac_n "checking size of int""... $ac_c" 1>&6 4246echo "configure:4247: checking size of int" >&5 4247if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 4248 echo $ac_n "(cached) $ac_c" 1>&6 4249else 4250 if test "$cross_compiling" = yes; then 4251 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 4252else 4253 cat > conftest.$ac_ext <<EOF 4254#line 4255 "configure" 4255#include "confdefs.h" 4256#include <stdio.h> 4257main() 4258{ 4259 FILE *f=fopen("conftestval", "w"); 4260 if (!f) exit(1); 4261 fprintf(f, "%d\n", sizeof(int)); 4262 exit(0); 4263} 4264EOF 4265if { (eval echo configure:4266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4266then 4267 ac_cv_sizeof_int=`cat conftestval` 4268else 4269 echo "configure: failed program was:" >&5 4270 cat conftest.$ac_ext >&5 4271 rm -fr conftest* 4272 ac_cv_sizeof_int=0 4273fi 4274rm -fr conftest* 4275fi 4276 4277fi 4278echo "$ac_t""$ac_cv_sizeof_int" 1>&6 4279cat >> confdefs.h <<EOF 4280#define SIZEOF_INT $ac_cv_sizeof_int 4281EOF 4282 4283 4284echo $ac_n "checking size of long""... $ac_c" 1>&6 4285echo "configure:4286: checking size of long" >&5 4286if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 4287 echo $ac_n "(cached) $ac_c" 1>&6 4288else 4289 if test "$cross_compiling" = yes; then 4290 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 4291else 4292 cat > conftest.$ac_ext <<EOF 4293#line 4294 "configure" 4294#include "confdefs.h" 4295#include <stdio.h> 4296main() 4297{ 4298 FILE *f=fopen("conftestval", "w"); 4299 if (!f) exit(1); 4300 fprintf(f, "%d\n", sizeof(long)); 4301 exit(0); 4302} 4303EOF 4304if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4305then 4306 ac_cv_sizeof_long=`cat conftestval` 4307else 4308 echo "configure: failed program was:" >&5 4309 cat conftest.$ac_ext >&5 4310 rm -fr conftest* 4311 ac_cv_sizeof_long=0 4312fi 4313rm -fr conftest* 4314fi 4315 4316fi 4317echo "$ac_t""$ac_cv_sizeof_long" 1>&6 4318cat >> confdefs.h <<EOF 4319#define SIZEOF_LONG $ac_cv_sizeof_long 4320EOF 4321 4322 4323echo $ac_n "checking size of long long""... $ac_c" 1>&6 4324echo "configure:4325: checking size of long long" >&5 4325if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then 4326 echo $ac_n "(cached) $ac_c" 1>&6 4327else 4328 if test "$cross_compiling" = yes; then 4329 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 4330else 4331 cat > conftest.$ac_ext <<EOF 4332#line 4333 "configure" 4333#include "confdefs.h" 4334#include <stdio.h> 4335main() 4336{ 4337 FILE *f=fopen("conftestval", "w"); 4338 if (!f) exit(1); 4339 fprintf(f, "%d\n", sizeof(long long)); 4340 exit(0); 4341} 4342EOF 4343if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4344then 4345 ac_cv_sizeof_long_long=`cat conftestval` 4346else 4347 echo "configure: failed program was:" >&5 4348 cat conftest.$ac_ext >&5 4349 rm -fr conftest* 4350 ac_cv_sizeof_long_long=0 4351fi 4352rm -fr conftest* 4353fi 4354 4355fi 4356echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 4357cat >> confdefs.h <<EOF 4358#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 4359EOF 4360 4361 4362SIZEOF_SHORT=$ac_cv_sizeof_short 4363SIZEOF_INT=$ac_cv_sizeof_int 4364SIZEOF_LONG=$ac_cv_sizeof_long 4365SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long 4366 4367 4368 4369 4370echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 4371echo "configure:4372: checking whether struct stat has a st_flags field" >&5 4372if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then 4373 echo $ac_n "(cached) $ac_c" 1>&6 4374else 4375 cat > conftest.$ac_ext <<EOF 4376#line 4377 "configure" 4377#include "confdefs.h" 4378#include <sys/stat.h> 4379int main() { 4380struct stat stat; stat.st_flags = 0; 4381; return 0; } 4382EOF 4383if { (eval echo configure:4384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4384 rm -rf conftest* 4385 e2fsprogs_cv_struct_st_flags=yes 4386else 4387 echo "configure: failed program was:" >&5 4388 cat conftest.$ac_ext >&5 4389 rm -rf conftest* 4390 e2fsprogs_cv_struct_st_flags=no 4391fi 4392rm -f conftest* 4393fi 4394 4395echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 4396if test "$e2fsprogs_cv_struct_st_flags" = yes; then 4397 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6 4398echo "configure:4399: checking whether st_flags field is useful" >&5 4399 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then 4400 echo $ac_n "(cached) $ac_c" 1>&6 4401else 4402 cat > conftest.$ac_ext <<EOF 4403#line 4404 "configure" 4404#include "confdefs.h" 4405#include <sys/stat.h> 4406int main() { 4407struct stat stat; stat.st_flags |= UF_IMMUTABLE; 4408; return 0; } 4409EOF 4410if { (eval echo configure:4411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4411 rm -rf conftest* 4412 e2fsprogs_cv_struct_st_flags_immut=yes 4413else 4414 echo "configure: failed program was:" >&5 4415 cat conftest.$ac_ext >&5 4416 rm -rf conftest* 4417 e2fsprogs_cv_struct_st_flags_immut=no 4418fi 4419rm -f conftest* 4420fi 4421 4422 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6 4423 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then 4424 cat >> confdefs.h <<\EOF 4425#define HAVE_STAT_FLAGS 1 4426EOF 4427 4428 fi 4429fi 4430for ac_func in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync 4431do 4432echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4433echo "configure:4434: checking for $ac_func" >&5 4434if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4435 echo $ac_n "(cached) $ac_c" 1>&6 4436else 4437 cat > conftest.$ac_ext <<EOF 4438#line 4439 "configure" 4439#include "confdefs.h" 4440/* System header to define __stub macros and hopefully few prototypes, 4441 which can conflict with char $ac_func(); below. */ 4442#include <assert.h> 4443/* Override any gcc2 internal prototype to avoid an error. */ 4444/* We use char because int might match the return type of a gcc2 4445 builtin and then its argument prototype would still apply. */ 4446char $ac_func(); 4447 4448int main() { 4449 4450/* The GNU C library defines this for functions which it implements 4451 to always fail with ENOSYS. Some functions are actually named 4452 something starting with __ and the normal name is an alias. */ 4453#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4454choke me 4455#else 4456$ac_func(); 4457#endif 4458 4459; return 0; } 4460EOF 4461if { (eval echo configure:4462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4462 rm -rf conftest* 4463 eval "ac_cv_func_$ac_func=yes" 4464else 4465 echo "configure: failed program was:" >&5 4466 cat conftest.$ac_ext >&5 4467 rm -rf conftest* 4468 eval "ac_cv_func_$ac_func=no" 4469fi 4470rm -f conftest* 4471fi 4472 4473if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4474 echo "$ac_t""yes" 1>&6 4475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4476 cat >> confdefs.h <<EOF 4477#define $ac_tr_func 1 4478EOF 4479 4480else 4481 echo "$ac_t""no" 1>&6 4482fi 4483done 4484 4485echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6 4486echo "configure:4487: checking ino_t defined by sys/types.h" >&5 4487if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then 4488 echo $ac_n "(cached) $ac_c" 1>&6 4489else 4490 cat > conftest.$ac_ext <<EOF 4491#line 4492 "configure" 4492#include "confdefs.h" 4493#include <sys/types.h> 4494int main() { 4495ino_t ino; ino = 0; 4496; return 0; } 4497EOF 4498if { (eval echo configure:4499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4499 rm -rf conftest* 4500 e2fsprogs_cv_ino_t=yes 4501else 4502 echo "configure: failed program was:" >&5 4503 cat conftest.$ac_ext >&5 4504 rm -rf conftest* 4505 e2fsprogs_cv_ino_t=no 4506fi 4507rm -f conftest* 4508fi 4509 4510echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6 4511if test "$e2fsprogs_cv_ino_t" = yes; then 4512 cat >> confdefs.h <<\EOF 4513#define HAVE_INO_T 1 4514EOF 4515 4516fi 4517SOCKET_LIB='' 4518echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 4519echo "configure:4520: checking for socket in -lsocket" >&5 4520ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 4521if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4522 echo $ac_n "(cached) $ac_c" 1>&6 4523else 4524 ac_save_LIBS="$LIBS" 4525LIBS="-lsocket $LIBS" 4526cat > conftest.$ac_ext <<EOF 4527#line 4528 "configure" 4528#include "confdefs.h" 4529/* Override any gcc2 internal prototype to avoid an error. */ 4530/* We use char because int might match the return type of a gcc2 4531 builtin and then its argument prototype would still apply. */ 4532char socket(); 4533 4534int main() { 4535socket() 4536; return 0; } 4537EOF 4538if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4539 rm -rf conftest* 4540 eval "ac_cv_lib_$ac_lib_var=yes" 4541else 4542 echo "configure: failed program was:" >&5 4543 cat conftest.$ac_ext >&5 4544 rm -rf conftest* 4545 eval "ac_cv_lib_$ac_lib_var=no" 4546fi 4547rm -f conftest* 4548LIBS="$ac_save_LIBS" 4549 4550fi 4551if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4552 echo "$ac_t""yes" 1>&6 4553 SOCKET_LIB=-lsocket 4554else 4555 echo "$ac_t""no" 1>&6 4556fi 4557 4558 4559echo $ac_n "checking for optreset""... $ac_c" 1>&6 4560echo "configure:4561: checking for optreset" >&5 4561if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then 4562 echo $ac_n "(cached) $ac_c" 1>&6 4563else 4564 cat > conftest.$ac_ext <<EOF 4565#line 4566 "configure" 4566#include "confdefs.h" 4567#include <unistd.h> 4568EOF 4569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4570 egrep "optreset" >/dev/null 2>&1; then 4571 rm -rf conftest* 4572 ac_cv_have_optreset=yes 4573else 4574 rm -rf conftest* 4575 ac_cv_have_optreset=no 4576fi 4577rm -f conftest* 4578 4579fi 4580echo "$ac_t""$ac_cv_have_optreset" 1>&6 4581if test $ac_cv_have_optreset = yes; then 4582 cat >> confdefs.h <<\EOF 4583#define HAVE_OPTRESET 1 4584EOF 4585 4586fi 4587case "$host_os" in 4588linux*) 4589 cat >> confdefs.h <<\EOF 4590#define HAVE_EXT2_IOCTLS 1 4591EOF 4592 4593 ;; 4594esac 4595case "$host_os" in 4596linux* | gnu*) 4597 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then 4598 root_prefix=""; 4599 echo "On $host_os systems, root_prefix defaults to ''" 4600 fi 4601 ;; 4602esac 4603case "$host_os" in 4604linux* | gnu*) 4605 if test "$prefix" = NONE ; then 4606 prefix="/usr"; 4607 echo "On $host_os systems, prefix defaults to /usr" 4608 fi 4609;; 4610esac 4611if test "$root_prefix" = NONE ; then 4612 if test "$prefix" = NONE ; then 4613 root_prefix="$ac_default_prefix" 4614 else 4615 root_prefix="$prefix" 4616 fi 4617fi 4618 4619echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 4620echo "configure:4621: checking whether linker accepts -static" >&5 4621if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then 4622 echo $ac_n "(cached) $ac_c" 1>&6 4623else 4624 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" 4625cat > conftest.$ac_ext <<EOF 4626#line 4627 "configure" 4627#include "confdefs.h" 4628#include <stdio.h> 4629int main() { 4630fflush(stdout); 4631; return 0; } 4632EOF 4633if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4634 rm -rf conftest* 4635 ac_cv_e2fsprogs_use_static=yes 4636else 4637 echo "configure: failed program was:" >&5 4638 cat conftest.$ac_ext >&5 4639 rm -rf conftest* 4640 ac_cv_e2fsprogs_use_static=no 4641fi 4642rm -f conftest* 4643LDFLAGS=$SAVE_LDFLAGS 4644fi 4645 4646case "$host_os" in 4647solaris2.*) 4648 ac_cv_e2fsprogs_use_static=no 4649;; 4650esac 4651echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 4652LDFLAG_STATIC= 4653if test $ac_cv_e2fsprogs_use_static = yes; then 4654 LDFLAG_STATIC=-static 4655fi 4656 4657SS_DIR=`cd ${srcdir}/lib/ss; pwd` 4658ET_DIR=`cd ${srcdir}/lib/et; pwd` 4659 4660 4661if test "$cross_compiling" = yes ; then 4662 DO_TEST_SUITE= 4663else 4664 DO_TEST_SUITE=check 4665fi 4666 4667test -d lib || mkdir lib 4668test -d include || mkdir include 4669test -d include/linux || mkdir include/linux 4670test -d include/asm || mkdir include/asm 4671rmakefile= 4672if test -d ${srcdir}/resize ; then 4673 rmakefile=resize/Makefile 4674fi 4675trap '' 1 2 15 4676cat > confcache <<\EOF 4677# This file is a shell script that caches the results of configure 4678# tests run on this system so they can be shared between configure 4679# scripts and configure runs. It is not useful on other systems. 4680# If it contains results you don't want to keep, you may remove or edit it. 4681# 4682# By default, configure uses ./config.cache as the cache file, 4683# creating it if it does not exist already. You can give configure 4684# the --cache-file=FILE option to use a different cache file; that is 4685# what configure does when it calls configure scripts in 4686# subdirectories, so they share the cache. 4687# Giving --cache-file=/dev/null disables caching, for debugging configure. 4688# config.status only pays attention to the cache file if you give it the 4689# --recheck option to rerun configure. 4690# 4691EOF 4692# The following way of writing the cache mishandles newlines in values, 4693# but we know of no workaround that is simple, portable, and efficient. 4694# So, don't put newlines in cache variables' values. 4695# Ultrix sh set writes to stderr and can't be redirected directly, 4696# and sets the high bit in the cache file unless we assign to the vars. 4697(set) 2>&1 | 4698 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4699 *ac_space=\ *) 4700 # `set' does not quote correctly, so add quotes (double-quote substitution 4701 # turns \\\\ into \\, and sed turns \\ into \). 4702 sed -n \ 4703 -e "s/'/'\\\\''/g" \ 4704 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4705 ;; 4706 *) 4707 # `set' quotes correctly as required by POSIX, so do not add quotes. 4708 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 4709 ;; 4710 esac >> confcache 4711if cmp -s $cache_file confcache; then 4712 : 4713else 4714 if test -w $cache_file; then 4715 echo "updating cache $cache_file" 4716 cat confcache > $cache_file 4717 else 4718 echo "not updating unwritable cache $cache_file" 4719 fi 4720fi 4721rm -f confcache 4722 4723trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 4724 4725test "x$prefix" = xNONE && prefix=$ac_default_prefix 4726# Let make expand exec_prefix. 4727test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4728 4729# Any assignment to VPATH causes Sun make to only execute 4730# the first set of double-colon rules, so remove it if not needed. 4731# If there is a colon in the path, we need to keep it. 4732if test "x$srcdir" = x.; then 4733 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 4734fi 4735 4736trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 4737 4738# Transform confdefs.h into DEFS. 4739# Protect against shell expansion while executing Makefile rules. 4740# Protect against Makefile macro expansion. 4741cat > conftest.defs <<\EOF 4742s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 4743s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 4744s%\[%\\&%g 4745s%\]%\\&%g 4746s%\$%$$%g 4747EOF 4748DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 4749rm -f conftest.defs 4750 4751 4752# Without the "./", some shells look in PATH for config.status. 4753: ${CONFIG_STATUS=./config.status} 4754 4755echo creating $CONFIG_STATUS 4756rm -f $CONFIG_STATUS 4757cat > $CONFIG_STATUS <<EOF 4758#! /bin/sh 4759# Generated automatically by configure. 4760# Run this file to recreate the current configuration. 4761# This directory was configured as follows, 4762# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4763# 4764# $0 $ac_configure_args 4765# 4766# Compiler output produced by configure, useful for debugging 4767# configure, is in ./config.log if it exists. 4768 4769ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 4770for ac_option 4771do 4772 case "\$ac_option" in 4773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4774 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 4775 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4776 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4777 echo "$CONFIG_STATUS generated by autoconf version 2.13" 4778 exit 0 ;; 4779 -help | --help | --hel | --he | --h) 4780 echo "\$ac_cs_usage"; exit 0 ;; 4781 *) echo "\$ac_cs_usage"; exit 1 ;; 4782 esac 4783done 4784 4785ac_given_srcdir=$srcdir 4786ac_given_INSTALL="$INSTALL" 4787 4788trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile 4789 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile 4790 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile 4791 tests/progs/Makefile $rmakefile doc/Makefile 4792 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4793EOF 4794cat >> $CONFIG_STATUS <<EOF 4795 4796# Protect against being on the right side of a sed subst in config.status. 4797sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4798 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 4799$ac_vpsub 4800$extrasub 4801s%@SHELL@%$SHELL%g 4802s%@CFLAGS@%$CFLAGS%g 4803s%@CPPFLAGS@%$CPPFLAGS%g 4804s%@CXXFLAGS@%$CXXFLAGS%g 4805s%@FFLAGS@%$FFLAGS%g 4806s%@DEFS@%$DEFS%g 4807s%@LDFLAGS@%$LDFLAGS%g 4808s%@LIBS@%$LIBS%g 4809s%@exec_prefix@%$exec_prefix%g 4810s%@prefix@%$prefix%g 4811s%@program_transform_name@%$program_transform_name%g 4812s%@bindir@%$bindir%g 4813s%@sbindir@%$sbindir%g 4814s%@libexecdir@%$libexecdir%g 4815s%@datadir@%$datadir%g 4816s%@sysconfdir@%$sysconfdir%g 4817s%@sharedstatedir@%$sharedstatedir%g 4818s%@localstatedir@%$localstatedir%g 4819s%@libdir@%$libdir%g 4820s%@includedir@%$includedir%g 4821s%@oldincludedir@%$oldincludedir%g 4822s%@infodir@%$infodir%g 4823s%@mandir@%$mandir%g 4824/@MCONFIG@/r $MCONFIG 4825s%@MCONFIG@%%g 4826s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g 4827s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g 4828s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g 4829s%@host@%$host%g 4830s%@host_alias@%$host_alias%g 4831s%@host_cpu@%$host_cpu%g 4832s%@host_vendor@%$host_vendor%g 4833s%@host_os@%$host_os%g 4834s%@CC@%$CC%g 4835s%@LD@%$LD%g 4836s%@CCOPTS@%$CCOPTS%g 4837s%@CPP@%$CPP%g 4838s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g 4839s%@DLL_CMT@%$DLL_CMT%g 4840/@MAKEFILE_DLL@/r $MAKEFILE_DLL 4841s%@MAKEFILE_DLL@%%g 4842s%@ELF_CMT@%$ELF_CMT%g 4843/@MAKEFILE_ELF@/r $MAKEFILE_ELF 4844s%@MAKEFILE_ELF@%%g 4845s%@BSDLIB_CMT@%$BSDLIB_CMT%g 4846/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB 4847s%@MAKEFILE_BSDLIB@%%g 4848s%@PACKAGE@%$PACKAGE%g 4849s%@VERSION@%$VERSION%g 4850s%@SET_MAKE@%$SET_MAKE%g 4851s%@RANLIB@%$RANLIB%g 4852s%@ALLOCA@%$ALLOCA%g 4853s%@USE_NLS@%$USE_NLS%g 4854s%@MSGFMT@%$MSGFMT%g 4855s%@GMSGFMT@%$GMSGFMT%g 4856s%@XGETTEXT@%$XGETTEXT%g 4857s%@GENCAT@%$GENCAT%g 4858s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g 4859s%@CATALOGS@%$CATALOGS%g 4860s%@CATOBJEXT@%$CATOBJEXT%g 4861s%@DATADIRNAME@%$DATADIRNAME%g 4862s%@GMOFILES@%$GMOFILES%g 4863s%@INSTOBJEXT@%$INSTOBJEXT%g 4864s%@INTLDEPS@%$INTLDEPS%g 4865s%@INTLLIBS@%$INTLLIBS%g 4866s%@INTLOBJS@%$INTLOBJS%g 4867s%@POFILES@%$POFILES%g 4868s%@POSUB@%$POSUB%g 4869s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g 4870s%@GT_NO@%$GT_NO%g 4871s%@GT_YES@%$GT_YES%g 4872s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g 4873s%@l@%$l%g 4874s%@PROFILE_CMT@%$PROFILE_CMT%g 4875/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE 4876s%@MAKEFILE_PROFILE@%%g 4877s%@CHECKER_CMT@%$CHECKER_CMT%g 4878/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER 4879s%@MAKEFILE_CHECKER@%%g 4880s%@LIB_EXT@%$LIB_EXT%g 4881s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g 4882s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g 4883s%@W@%$W%g 4884s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g 4885s%@FSCK_PROG@%$FSCK_PROG%g 4886s%@FSCK_MAN@%$FSCK_MAN%g 4887/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY 4888s%@MAKEFILE_LIBRARY@%%g 4889s%@BINARY_TYPE@%$BINARY_TYPE%g 4890s%@LN@%$LN%g 4891s%@LN_S@%$LN_S%g 4892s%@MV@%$MV%g 4893s%@CP@%$CP%g 4894s%@RM@%$RM%g 4895s%@CHMOD@%$CHMOD%g 4896s%@AWK@%$AWK%g 4897s%@SED@%$SED%g 4898s%@PERL@%$PERL%g 4899s%@build@%$build%g 4900s%@build_alias@%$build_alias%g 4901s%@build_cpu@%$build_cpu%g 4902s%@build_vendor@%$build_vendor%g 4903s%@build_os@%$build_os%g 4904s%@AR@%$AR%g 4905s%@STRIP@%$STRIP%g 4906s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 4907s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 4908s%@INSTALL_DATA@%$INSTALL_DATA%g 4909s%@BUILD_CC@%$BUILD_CC%g 4910s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g 4911s%@SIZEOF_INT@%$SIZEOF_INT%g 4912s%@SIZEOF_LONG@%$SIZEOF_LONG%g 4913s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g 4914s%@SOCKET_LIB@%$SOCKET_LIB%g 4915s%@root_prefix@%$root_prefix%g 4916s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g 4917s%@SS_DIR@%$SS_DIR%g 4918s%@ET_DIR@%$ET_DIR%g 4919s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g 4920 4921CEOF 4922EOF 4923 4924cat >> $CONFIG_STATUS <<\EOF 4925 4926# Split the substitutions into bite-sized pieces for seds with 4927# small command number limits, like on Digital OSF/1 and HP-UX. 4928ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 4929ac_file=1 # Number of current file. 4930ac_beg=1 # First line for current file. 4931ac_end=$ac_max_sed_cmds # Line after last line for current file. 4932ac_more_lines=: 4933ac_sed_cmds="" 4934while $ac_more_lines; do 4935 if test $ac_beg -gt 1; then 4936 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 4937 else 4938 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 4939 fi 4940 if test ! -s conftest.s$ac_file; then 4941 ac_more_lines=false 4942 rm -f conftest.s$ac_file 4943 else 4944 if test -z "$ac_sed_cmds"; then 4945 ac_sed_cmds="sed -f conftest.s$ac_file" 4946 else 4947 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 4948 fi 4949 ac_file=`expr $ac_file + 1` 4950 ac_beg=$ac_end 4951 ac_end=`expr $ac_end + $ac_max_sed_cmds` 4952 fi 4953done 4954if test -z "$ac_sed_cmds"; then 4955 ac_sed_cmds=cat 4956fi 4957EOF 4958 4959cat >> $CONFIG_STATUS <<EOF 4960 4961CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile 4962 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile 4963 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile 4964 tests/progs/Makefile $rmakefile doc/Makefile 4965 intl/Makefile po/Makefile.in"} 4966EOF 4967cat >> $CONFIG_STATUS <<\EOF 4968for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 4969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4970 case "$ac_file" in 4971 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4972 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4973 *) ac_file_in="${ac_file}.in" ;; 4974 esac 4975 4976 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 4977 4978 # Remove last slash and all that follows it. Not all systems have dirname. 4979 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4980 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4981 # The file is in a subdirectory. 4982 test ! -d "$ac_dir" && mkdir "$ac_dir" 4983 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 4984 # A "../" for each directory in $ac_dir_suffix. 4985 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 4986 else 4987 ac_dir_suffix= ac_dots= 4988 fi 4989 4990 case "$ac_given_srcdir" in 4991 .) srcdir=. 4992 if test -z "$ac_dots"; then top_srcdir=. 4993 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 4994 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 4995 *) # Relative path. 4996 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 4997 top_srcdir="$ac_dots$ac_given_srcdir" ;; 4998 esac 4999 5000 case "$ac_given_INSTALL" in 5001 [/$]*) INSTALL="$ac_given_INSTALL" ;; 5002 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 5003 esac 5004 5005 echo creating "$ac_file" 5006 rm -f "$ac_file" 5007 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 5008 case "$ac_file" in 5009 *Makefile*) ac_comsub="1i\\ 5010# $configure_input" ;; 5011 *) ac_comsub= ;; 5012 esac 5013 5014 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5015 sed -e "$ac_comsub 5016s%@configure_input@%$configure_input%g 5017s%@srcdir@%$srcdir%g 5018s%@top_srcdir@%$top_srcdir%g 5019s%@INSTALL@%$INSTALL%g 5020" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 5021fi; done 5022rm -f conftest.s* 5023 5024EOF 5025 5026cat >> $CONFIG_STATUS <<EOF 5027ac_sources="$nls_cv_header_libgt" 5028ac_dests="$nls_cv_header_intl" 5029EOF 5030 5031cat >> $CONFIG_STATUS <<\EOF 5032srcdir=$ac_given_srcdir 5033while test -n "$ac_sources"; do 5034 set $ac_dests; ac_dest=$1; shift; ac_dests=$* 5035 set $ac_sources; ac_source=$1; shift; ac_sources=$* 5036 5037 echo "linking $srcdir/$ac_source to $ac_dest" 5038 5039 if test ! -r $srcdir/$ac_source; then 5040 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } 5041 fi 5042 rm -f $ac_dest 5043 5044 # Make relative symlinks. 5045 # Remove last slash and all that follows it. Not all systems have dirname. 5046 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` 5047 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then 5048 # The dest file is in a subdirectory. 5049 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" 5050 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" 5051 # A "../" for each directory in $ac_dest_dir_suffix. 5052 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` 5053 else 5054 ac_dest_dir_suffix= ac_dots= 5055 fi 5056 5057 case "$srcdir" in 5058 [/$]*) ac_rel_source="$srcdir/$ac_source" ;; 5059 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; 5060 esac 5061 5062 # Make a symlink if possible; otherwise try a hard link. 5063 if ln -s $ac_rel_source $ac_dest 2>/dev/null || 5064 ln $srcdir/$ac_source $ac_dest; then : 5065 else 5066 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } 5067 fi 5068done 5069EOF 5070cat >> $CONFIG_STATUS <<EOF 5071 5072 5073EOF 5074cat >> $CONFIG_STATUS <<\EOF 5075case "$CONFIG_FILES" in *po/Makefile.in*) 5076 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 5077 esac 5078 5079exit 0 5080EOF 5081chmod +x $CONFIG_STATUS 5082rm -fr confdefs* $ac_clean_files 5083test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 5084 5085