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