Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
| 4 | # Generated automatically using autoconf version 2.4 |
| 5 | # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. |
| 6 | # |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
| 10 | # Defaults: |
| 11 | ac_help= |
| 12 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 15 | --with-cc=COMPILER select compiler to use" |
| 16 | ac_help="$ac_help |
| 17 | --with-linker=LINKER select linker to use" |
| 18 | ac_help="$ac_help |
| 19 | --with-ccopts=CCOPTS select compiler command line options" |
| 20 | ac_help="$ac_help |
| 21 | --with-ldopts=LDOPTS select linker command line options" |
| 22 | ac_help="$ac_help |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 23 | --enable-dll-shlibs select DLL libraries" |
| 24 | ac_help="$ac_help |
| 25 | --enable-elf-shlibs select ELF shared libraries" |
| 26 | ac_help="$ac_help |
| 27 | --enable-bsd-shlibs select BSD shared libraries" |
| 28 | ac_help="$ac_help |
| 29 | --enable-profile build profiling libraries" |
| 30 | ac_help="$ac_help |
| 31 | --enable-checker build checker libraries" |
| 32 | ac_help="$ac_help |
| 33 | --enable-gcc-wall enable GCC anal warnings" |
| 34 | |
| 35 | # Initialize some variables set by options. |
| 36 | # The variables have the same names as the options, with |
| 37 | # dashes changed to underlines. |
| 38 | build=NONE |
| 39 | cache_file=./config.cache |
| 40 | exec_prefix=NONE |
| 41 | host=NONE |
| 42 | no_create= |
| 43 | nonopt=NONE |
| 44 | no_recursion= |
| 45 | prefix=NONE |
| 46 | program_prefix=NONE |
| 47 | program_suffix=NONE |
| 48 | program_transform_name=s,x,x, |
| 49 | silent= |
| 50 | site= |
| 51 | srcdir= |
| 52 | target=NONE |
| 53 | verbose= |
| 54 | x_includes=NONE |
| 55 | x_libraries=NONE |
| 56 | |
| 57 | # Initialize some other variables. |
| 58 | subdirs= |
| 59 | |
| 60 | ac_prev= |
| 61 | for ac_option |
| 62 | do |
| 63 | |
| 64 | # If the previous option needs an argument, assign it. |
| 65 | if test -n "$ac_prev"; then |
| 66 | eval "$ac_prev=\$ac_option" |
| 67 | ac_prev= |
| 68 | continue |
| 69 | fi |
| 70 | |
| 71 | case "$ac_option" in |
| 72 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 73 | *) ac_optarg= ;; |
| 74 | esac |
| 75 | |
| 76 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 77 | |
| 78 | case "$ac_option" in |
| 79 | |
| 80 | -build | --build | --buil | --bui | --bu | --b) |
| 81 | ac_prev=build ;; |
| 82 | -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) |
| 83 | build="$ac_optarg" ;; |
| 84 | |
| 85 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 86 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 87 | ac_prev=cache_file ;; |
| 88 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 89 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 90 | cache_file="$ac_optarg" ;; |
| 91 | |
| 92 | -disable-* | --disable-*) |
| 93 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 94 | # Reject names that are not valid shell variable names. |
| 95 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 96 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 97 | fi |
| 98 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 99 | eval "enable_${ac_feature}=no" ;; |
| 100 | |
| 101 | -enable-* | --enable-*) |
| 102 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 103 | # Reject names that are not valid shell variable names. |
| 104 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 105 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 106 | fi |
| 107 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 108 | case "$ac_option" in |
| 109 | *=*) ;; |
| 110 | *) ac_optarg=yes ;; |
| 111 | esac |
| 112 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 113 | |
| 114 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 115 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 116 | | --exec | --exe | --ex) |
| 117 | ac_prev=exec_prefix ;; |
| 118 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 119 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 120 | | --exec=* | --exe=* | --ex=*) |
| 121 | exec_prefix="$ac_optarg" ;; |
| 122 | |
| 123 | -gas | --gas | --ga | --g) |
| 124 | # Obsolete; use --with-gas. |
| 125 | with_gas=yes ;; |
| 126 | |
| 127 | -help | --help | --hel | --he) |
| 128 | # Omit some internal or obsolete options to make the list less imposing. |
| 129 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 130 | cat << EOF |
| 131 | Usage: configure [options] [host] |
| 132 | Options: [defaults in brackets after descriptions] |
| 133 | Configuration: |
| 134 | --cache-file=FILE cache test results in FILE |
| 135 | --help print this message |
| 136 | --no-create do not create output files |
| 137 | --quiet, --silent do not print \`checking...' messages |
| 138 | --version print the version of autoconf that created configure |
| 139 | Directory and file names: |
| 140 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 141 | [$ac_default_prefix] |
| 142 | --exec-prefix=PREFIX install architecture-dependent files in PREFIX |
| 143 | [same as prefix] |
| 144 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 145 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 146 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 147 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 148 | Host type: |
| 149 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 150 | --host=HOST configure for HOST [guessed] |
| 151 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 152 | Features and packages: |
| 153 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 154 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 155 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 156 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 157 | --x-includes=DIR X include files are in DIR |
| 158 | --x-libraries=DIR X library files are in DIR |
| 159 | --enable and --with options recognized:$ac_help |
| 160 | EOF |
| 161 | exit 0 ;; |
| 162 | |
| 163 | -host | --host | --hos | --ho) |
| 164 | ac_prev=host ;; |
| 165 | -host=* | --host=* | --hos=* | --ho=*) |
| 166 | host="$ac_optarg" ;; |
| 167 | |
| 168 | -nfp | --nfp | --nf) |
| 169 | # Obsolete; use --without-fp. |
| 170 | with_fp=no ;; |
| 171 | |
| 172 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 173 | | --no-cr | --no-c) |
| 174 | no_create=yes ;; |
| 175 | |
| 176 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 177 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 178 | no_recursion=yes ;; |
| 179 | |
| 180 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 181 | ac_prev=prefix ;; |
| 182 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 183 | prefix="$ac_optarg" ;; |
| 184 | |
| 185 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 186 | | --program-pre | --program-pr | --program-p) |
| 187 | ac_prev=program_prefix ;; |
| 188 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 189 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 190 | program_prefix="$ac_optarg" ;; |
| 191 | |
| 192 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 193 | | --program-suf | --program-su | --program-s) |
| 194 | ac_prev=program_suffix ;; |
| 195 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 196 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 197 | program_suffix="$ac_optarg" ;; |
| 198 | |
| 199 | -program-transform-name | --program-transform-name \ |
| 200 | | --program-transform-nam | --program-transform-na \ |
| 201 | | --program-transform-n | --program-transform- \ |
| 202 | | --program-transform | --program-transfor \ |
| 203 | | --program-transfo | --program-transf \ |
| 204 | | --program-trans | --program-tran \ |
| 205 | | --progr-tra | --program-tr | --program-t) |
| 206 | ac_prev=program_transform_name ;; |
| 207 | -program-transform-name=* | --program-transform-name=* \ |
| 208 | | --program-transform-nam=* | --program-transform-na=* \ |
| 209 | | --program-transform-n=* | --program-transform-=* \ |
| 210 | | --program-transform=* | --program-transfor=* \ |
| 211 | | --program-transfo=* | --program-transf=* \ |
| 212 | | --program-trans=* | --program-tran=* \ |
| 213 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 214 | program_transform_name="$ac_optarg" ;; |
| 215 | |
| 216 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 217 | | -silent | --silent | --silen | --sile | --sil) |
| 218 | silent=yes ;; |
| 219 | |
| 220 | -site | --site | --sit) |
| 221 | ac_prev=site ;; |
| 222 | -site=* | --site=* | --sit=*) |
| 223 | site="$ac_optarg" ;; |
| 224 | |
| 225 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 226 | ac_prev=srcdir ;; |
| 227 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 228 | srcdir="$ac_optarg" ;; |
| 229 | |
| 230 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 231 | ac_prev=target ;; |
| 232 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 233 | target="$ac_optarg" ;; |
| 234 | |
| 235 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 236 | verbose=yes ;; |
| 237 | |
| 238 | -version | --version | --versio | --versi | --vers) |
| 239 | echo "configure generated by autoconf version 2.4" |
| 240 | exit 0 ;; |
| 241 | |
| 242 | -with-* | --with-*) |
| 243 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 244 | # Reject names that are not valid shell variable names. |
| 245 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 246 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 247 | fi |
| 248 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 249 | case "$ac_option" in |
| 250 | *=*) ;; |
| 251 | *) ac_optarg=yes ;; |
| 252 | esac |
| 253 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 254 | |
| 255 | -without-* | --without-*) |
| 256 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 257 | # Reject names that are not valid shell variable names. |
| 258 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 259 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 260 | fi |
| 261 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 262 | eval "with_${ac_package}=no" ;; |
| 263 | |
| 264 | --x) |
| 265 | # Obsolete; use --with-x. |
| 266 | with_x=yes ;; |
| 267 | |
| 268 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 269 | | --x-incl | --x-inc | --x-in | --x-i) |
| 270 | ac_prev=x_includes ;; |
| 271 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 272 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 273 | x_includes="$ac_optarg" ;; |
| 274 | |
| 275 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 276 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 277 | ac_prev=x_libraries ;; |
| 278 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 279 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 280 | x_libraries="$ac_optarg" ;; |
| 281 | |
| 282 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 283 | ;; |
| 284 | |
| 285 | *) |
| 286 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 287 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 288 | fi |
| 289 | if test "x$nonopt" != xNONE; then |
| 290 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 291 | fi |
| 292 | nonopt="$ac_option" |
| 293 | ;; |
| 294 | |
| 295 | esac |
| 296 | done |
| 297 | |
| 298 | if test -n "$ac_prev"; then |
| 299 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 300 | fi |
| 301 | |
| 302 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 303 | |
| 304 | # File descriptor usage: |
| 305 | # 0 standard input |
| 306 | # 1 file creation |
| 307 | # 2 errors and warnings |
| 308 | # 3 some systems may open it to /dev/tty |
| 309 | # 4 used on the Kubota Titan |
| 310 | # 6 checking for... messages and results |
| 311 | # 5 compiler messages saved in config.log |
| 312 | if test "$silent" = yes; then |
| 313 | exec 6>/dev/null |
| 314 | else |
| 315 | exec 6>&1 |
| 316 | fi |
| 317 | exec 5>./config.log |
| 318 | |
| 319 | echo "\ |
| 320 | This file contains any messages produced by compilers while |
| 321 | running configure, to aid debugging if configure makes a mistake. |
| 322 | " 1>&5 |
| 323 | |
| 324 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 325 | # Also quote any args containing shell metacharacters. |
| 326 | ac_configure_args= |
| 327 | for ac_arg |
| 328 | do |
| 329 | case "$ac_arg" in |
| 330 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 331 | | --no-cr | --no-c) ;; |
| 332 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 333 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 334 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 335 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 336 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 337 | esac |
| 338 | done |
| 339 | |
| 340 | # NLS nuisances. |
| 341 | # Only set LANG and LC_ALL to C if already set. |
| 342 | # These must not be set unconditionally because not all systems understand |
| 343 | # e.g. LANG=C (notably SCO). |
| 344 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 345 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 346 | |
| 347 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 348 | rm -rf conftest* confdefs.h |
| 349 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 350 | echo > confdefs.h |
| 351 | |
| 352 | # A filename unique to this package, relative to the directory that |
| 353 | # configure is in, which we can look for to find out if srcdir is correct. |
| 354 | ac_unique_file=version.h |
| 355 | |
| 356 | # Find the source files, if location was not specified. |
| 357 | if test -z "$srcdir"; then |
| 358 | ac_srcdir_defaulted=yes |
| 359 | # Try the directory containing this script, then its parent. |
| 360 | ac_prog=$0 |
| 361 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 362 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 363 | srcdir=$ac_confdir |
| 364 | if test ! -r $srcdir/$ac_unique_file; then |
| 365 | srcdir=.. |
| 366 | fi |
| 367 | else |
| 368 | ac_srcdir_defaulted=no |
| 369 | fi |
| 370 | if test ! -r $srcdir/$ac_unique_file; then |
| 371 | if test "$ac_srcdir_defaulted" = yes; then |
| 372 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 373 | else |
| 374 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 375 | fi |
| 376 | fi |
| 377 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 378 | |
| 379 | # Prefer explicitly selected file to automatically selected ones. |
| 380 | if test -z "$CONFIG_SITE"; then |
| 381 | if test "x$prefix" != xNONE; then |
| 382 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 383 | else |
| 384 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 385 | fi |
| 386 | fi |
| 387 | for ac_site_file in $CONFIG_SITE; do |
| 388 | if test -r "$ac_site_file"; then |
| 389 | echo "loading site script $ac_site_file" |
| 390 | . "$ac_site_file" |
| 391 | fi |
| 392 | done |
| 393 | |
| 394 | if test -r "$cache_file"; then |
| 395 | echo "loading cache $cache_file" |
| 396 | . $cache_file |
| 397 | else |
| 398 | echo "creating cache $cache_file" |
| 399 | > $cache_file |
| 400 | fi |
| 401 | |
| 402 | ac_ext=c |
| 403 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 404 | ac_cpp='$CPP $CPPFLAGS' |
| 405 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' |
| 406 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' |
| 407 | |
| 408 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 409 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 410 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 411 | ac_n= ac_c=' |
| 412 | ' ac_t=' ' |
| 413 | else |
| 414 | ac_n=-n ac_c= ac_t= |
| 415 | fi |
| 416 | else |
| 417 | ac_n= ac_c='\c' ac_t= |
| 418 | fi |
| 419 | |
| 420 | |
| 421 | MCONFIG=./MCONFIG |
| 422 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 423 | BINARY_TYPE=bin |
| 424 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 425 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 426 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 427 | | tr \" " "` |
| 428 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 429 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 430 | |
| 431 | if expr $YEAR ">" 90 >/dev/null ; then |
| 432 | E2FSPROGS_YEAR=19$YEAR |
| 433 | else |
| 434 | E2FSPROGS_YEAR=20$YEAR |
| 435 | fi |
| 436 | |
| 437 | case $MONTH in |
| 438 | Jan) E2FSPROGS_MONTH="January" ;; |
| 439 | Feb) E2FSPROGS_MONTH="February" ;; |
| 440 | Mar) E2FSPROGS_MONTH="March" ;; |
| 441 | Apr) E2FSPROGS_MONTH="April" ;; |
| 442 | May) E2FSPROGS_MONTH="May" ;; |
| 443 | Jun) E2FSPROGS_MONTH="June" ;; |
| 444 | Jul) E2FSPROGS_MONTH="July" ;; |
| 445 | Aug) E2FSPROGS_MONTH="August" ;; |
| 446 | Sep) E2FSPROGS_MONTH="September" ;; |
| 447 | Oct) E2FSPROGS_MONTH="October" ;; |
| 448 | Nov) E2FSPROGS_MONTH="November" ;; |
| 449 | Dec) E2FSPROGS_MONTH="December" ;; |
| 450 | *) echo "Unknown month $MONTH??" ;; |
| 451 | esac |
| 452 | |
| 453 | unset DATE MONTH YEAR |
| 454 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 455 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 456 | |
| 457 | |
| 458 | |
| 459 | # Check whether --with-cc or --without-cc was given. |
| 460 | withval="$with_cc" |
| 461 | if test -n "$withval"; then |
| 462 | echo "$ac_t""CC=$withval" 1>&6 |
| 463 | CC=$withval |
| 464 | else |
| 465 | if test -z "$CC" ; then CC=cc; fi |
| 466 | echo "$ac_t""CC defaults to $CC" 1>&6 |
| 467 | fi |
| 468 | export CC |
| 469 | |
| 470 | # Check whether --with-linker or --without-linker was given. |
| 471 | withval="$with_linker" |
| 472 | if test -n "$withval"; then |
| 473 | echo "$ac_t""LD=$withval" 1>&6 |
| 474 | LD=$withval |
| 475 | else |
| 476 | if test -z "$LD" ; then LD=$CC; fi |
| 477 | echo "$ac_t""LD defaults to $LD" 1>&6 |
| 478 | fi |
| 479 | export LD |
| 480 | |
| 481 | # Check whether --with-ccopts or --without-ccopts was given. |
| 482 | withval="$with_ccopts" |
| 483 | if test -n "$withval"; then |
| 484 | echo "$ac_t""CCOPTS is $withval" 1>&6 |
| 485 | CCOPTS=$withval |
| 486 | CFLAGS="$CFLAGS $withval" |
| 487 | else |
| 488 | CCOPTS= |
| 489 | fi |
| 490 | |
| 491 | # Check whether --with-ldopts or --without-ldopts was given. |
| 492 | withval="$with_ldopts" |
| 493 | if test -n "$withval"; then |
| 494 | echo "$ac_t""LDFLAGS is $withval" 1>&6 |
| 495 | LDFLAGS=$withval |
| 496 | else |
| 497 | LDFLAGS= |
| 498 | fi |
| 499 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 500 | # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given. |
| 501 | enableval="$enable_dll_shlibs" |
| 502 | if test -n "$enableval"; then |
| 503 | if test "$enableval" = "no" |
| 504 | then |
| 505 | DLL_CMT=# |
| 506 | MAKEFILE_DLL=/dev/null |
| 507 | echo "Disabling DLL shared libraries" |
| 508 | else |
| 509 | DLL_CMT= |
| 510 | MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 511 | BINARY_TYPE=dllbin |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 512 | echo "Enabling DLL shared libraries" |
| 513 | fi |
| 514 | |
| 515 | else |
| 516 | MAKEFILE_DLL=/dev/null |
| 517 | DLL_CMT=# |
| 518 | echo "Disabling DLL shared libraries by default" |
| 519 | |
| 520 | fi |
| 521 | |
| 522 | |
| 523 | |
| 524 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. |
| 525 | enableval="$enable_elf_shlibs" |
| 526 | if test -n "$enableval"; then |
| 527 | if test "$enableval" = "no" |
| 528 | then |
| 529 | ELF_CMT=# |
| 530 | MAKEFILE_ELF=/dev/null |
| 531 | echo "Disabling ELF shared libraries" |
| 532 | else |
| 533 | ELF_CMT= |
| 534 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 535 | BINARY_TYPE=elfbin |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 536 | echo "Enabling ELF shared libraries" |
| 537 | fi |
| 538 | |
| 539 | else |
| 540 | MAKEFILE_ELF=/dev/null |
| 541 | ELF_CMT=# |
| 542 | echo "Disabling ELF shared libraries by default" |
| 543 | |
| 544 | fi |
| 545 | |
| 546 | |
| 547 | |
| 548 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. |
| 549 | enableval="$enable_bsd_shlibs" |
| 550 | if test -n "$enableval"; then |
| 551 | if test "$enableval" = "no" |
| 552 | then |
| 553 | BSDLIB_CMT=# |
| 554 | MAKEFILE_BSDLIB=/dev/null |
| 555 | echo "Disabling BSD shared libraries" |
| 556 | else |
| 557 | BSDLIB_CMT= |
| 558 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
| 559 | echo "Enabling BSD shared libraries" |
| 560 | fi |
| 561 | |
| 562 | else |
| 563 | MAKEFILE_BSDLIB=/dev/null |
| 564 | BSDLIB_CMT=# |
| 565 | echo "Disabling BSD shared libraries by default" |
| 566 | |
| 567 | fi |
| 568 | |
| 569 | |
| 570 | |
| 571 | # Check whether --enable-profile or --disable-profile was given. |
| 572 | enableval="$enable_profile" |
| 573 | if test -n "$enableval"; then |
| 574 | if test "$enableval" = "no" |
| 575 | then |
| 576 | PROFILE_CMT=# |
| 577 | MAKEFILE_PROFILE=/dev/null |
| 578 | echo "Disabling profiling libraries" |
| 579 | else |
| 580 | PROFILE_CMT= |
| 581 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 582 | echo "Building profiling libraries" |
| 583 | fi |
| 584 | |
| 585 | else |
| 586 | PROFILE_CMT=# |
| 587 | MAKEFILE_PROFILE=/dev/null |
| 588 | echo "Disabling profiling libraries by default" |
| 589 | |
| 590 | fi |
| 591 | |
| 592 | |
| 593 | |
| 594 | # Check whether --enable-checker or --disable-checker was given. |
| 595 | enableval="$enable_checker" |
| 596 | if test -n "$enableval"; then |
| 597 | if test "$enableval" = "no" |
| 598 | then |
| 599 | CHECKER_CMT=# |
| 600 | MAKEFILE_CHECKER=/dev/null |
| 601 | echo "Disabling checker libraries" |
| 602 | else |
| 603 | CHECKER_CMT= |
| 604 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 605 | echo "Building checker libraries" |
| 606 | fi |
| 607 | |
| 608 | else |
| 609 | CHECKER_CMT=# |
| 610 | MAKEFILE_CHECKER=/dev/null |
| 611 | echo "Disabling checker libraries by default" |
| 612 | |
| 613 | fi |
| 614 | |
| 615 | |
| 616 | |
| 617 | # Check whether --enable-gcc-wall or --disable-gcc-wall was given. |
| 618 | enableval="$enable_gcc_wall" |
| 619 | if test -n "$enableval"; then |
| 620 | if test "$enableval" = "no" |
| 621 | then |
| 622 | W=# |
| 623 | echo "Disabling GCC warnings" |
| 624 | else |
| 625 | W= |
| 626 | echo "Enabling GCC warnings" |
| 627 | fi |
| 628 | |
| 629 | else |
| 630 | W=# |
| 631 | echo "Disabling GCC warnings by default" |
| 632 | |
| 633 | fi |
| 634 | |
| 635 | |
| 636 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 637 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 638 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 639 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 640 | set dummy ${MAKE-make}; ac_make=$2 |
| 641 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 642 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 643 | else |
| 644 | cat > conftestmake <<\EOF |
| 645 | all: |
| 646 | @echo 'ac_maketemp="${MAKE}"' |
| 647 | EOF |
| 648 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 649 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 650 | if test -n "$ac_maketemp"; then |
| 651 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 652 | else |
| 653 | eval ac_cv_prog_make_${ac_make}_set=no |
| 654 | fi |
| 655 | rm -f conftestmake |
| 656 | fi |
| 657 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 658 | echo "$ac_t""yes" 1>&6 |
| 659 | SET_MAKE= |
| 660 | else |
| 661 | echo "$ac_t""no" 1>&6 |
| 662 | SET_MAKE="MAKE=${MAKE-make}" |
| 663 | fi |
| 664 | |
| 665 | # Extract the first word of "ln", so it can be a program name with args. |
| 666 | set dummy ln; ac_word=$2 |
| 667 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 668 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
| 669 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 670 | else |
| 671 | case "$LN" in |
| 672 | /*) |
| 673 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 674 | ;; |
| 675 | *) |
| 676 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 677 | for ac_dir in $PATH; do |
| 678 | test -z "$ac_dir" && ac_dir=. |
| 679 | if test -f $ac_dir/$ac_word; then |
| 680 | ac_cv_path_LN="$ac_dir/$ac_word" |
| 681 | break |
| 682 | fi |
| 683 | done |
| 684 | IFS="$ac_save_ifs" |
| 685 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 686 | ;; |
| 687 | esac |
| 688 | fi |
| 689 | LN="$ac_cv_path_LN" |
| 690 | if test -n "$LN"; then |
| 691 | echo "$ac_t""$LN" 1>&6 |
| 692 | else |
| 693 | echo "$ac_t""no" 1>&6 |
| 694 | fi |
| 695 | |
| 696 | # Extract the first word of "mv", so it can be a program name with args. |
| 697 | set dummy mv; ac_word=$2 |
| 698 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 699 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
| 700 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 701 | else |
| 702 | case "$MV" in |
| 703 | /*) |
| 704 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 705 | ;; |
| 706 | *) |
| 707 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 708 | for ac_dir in $PATH; do |
| 709 | test -z "$ac_dir" && ac_dir=. |
| 710 | if test -f $ac_dir/$ac_word; then |
| 711 | ac_cv_path_MV="$ac_dir/$ac_word" |
| 712 | break |
| 713 | fi |
| 714 | done |
| 715 | IFS="$ac_save_ifs" |
| 716 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 717 | ;; |
| 718 | esac |
| 719 | fi |
| 720 | MV="$ac_cv_path_MV" |
| 721 | if test -n "$MV"; then |
| 722 | echo "$ac_t""$MV" 1>&6 |
| 723 | else |
| 724 | echo "$ac_t""no" 1>&6 |
| 725 | fi |
| 726 | |
| 727 | # Extract the first word of "cp", so it can be a program name with args. |
| 728 | set dummy cp; ac_word=$2 |
| 729 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 730 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
| 731 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 732 | else |
| 733 | case "$CP" in |
| 734 | /*) |
| 735 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 736 | ;; |
| 737 | *) |
| 738 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 739 | for ac_dir in $PATH; do |
| 740 | test -z "$ac_dir" && ac_dir=. |
| 741 | if test -f $ac_dir/$ac_word; then |
| 742 | ac_cv_path_CP="$ac_dir/$ac_word" |
| 743 | break |
| 744 | fi |
| 745 | done |
| 746 | IFS="$ac_save_ifs" |
| 747 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 748 | ;; |
| 749 | esac |
| 750 | fi |
| 751 | CP="$ac_cv_path_CP" |
| 752 | if test -n "$CP"; then |
| 753 | echo "$ac_t""$CP" 1>&6 |
| 754 | else |
| 755 | echo "$ac_t""no" 1>&6 |
| 756 | fi |
| 757 | |
| 758 | # Extract the first word of "rm", so it can be a program name with args. |
| 759 | set dummy rm; ac_word=$2 |
| 760 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 761 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
| 762 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 763 | else |
| 764 | case "$RM" in |
| 765 | /*) |
| 766 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 767 | ;; |
| 768 | *) |
| 769 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 770 | for ac_dir in $PATH; do |
| 771 | test -z "$ac_dir" && ac_dir=. |
| 772 | if test -f $ac_dir/$ac_word; then |
| 773 | ac_cv_path_RM="$ac_dir/$ac_word" |
| 774 | break |
| 775 | fi |
| 776 | done |
| 777 | IFS="$ac_save_ifs" |
| 778 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 779 | ;; |
| 780 | esac |
| 781 | fi |
| 782 | RM="$ac_cv_path_RM" |
| 783 | if test -n "$RM"; then |
| 784 | echo "$ac_t""$RM" 1>&6 |
| 785 | else |
| 786 | echo "$ac_t""no" 1>&6 |
| 787 | fi |
| 788 | |
| 789 | # Extract the first word of "chmod", so it can be a program name with args. |
| 790 | set dummy chmod; ac_word=$2 |
| 791 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 792 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
| 793 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 794 | else |
| 795 | case "$CHMOD" in |
| 796 | /*) |
| 797 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 798 | ;; |
| 799 | *) |
| 800 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 801 | for ac_dir in $PATH; do |
| 802 | test -z "$ac_dir" && ac_dir=. |
| 803 | if test -f $ac_dir/$ac_word; then |
| 804 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
| 805 | break |
| 806 | fi |
| 807 | done |
| 808 | IFS="$ac_save_ifs" |
| 809 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 810 | ;; |
| 811 | esac |
| 812 | fi |
| 813 | CHMOD="$ac_cv_path_CHMOD" |
| 814 | if test -n "$CHMOD"; then |
| 815 | echo "$ac_t""$CHMOD" 1>&6 |
| 816 | else |
| 817 | echo "$ac_t""no" 1>&6 |
| 818 | fi |
| 819 | |
| 820 | # Extract the first word of "awk", so it can be a program name with args. |
| 821 | set dummy awk; ac_word=$2 |
| 822 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 823 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then |
| 824 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 825 | else |
| 826 | case "$AWK" in |
| 827 | /*) |
| 828 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. |
| 829 | ;; |
| 830 | *) |
| 831 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 832 | for ac_dir in $PATH; do |
| 833 | test -z "$ac_dir" && ac_dir=. |
| 834 | if test -f $ac_dir/$ac_word; then |
| 835 | ac_cv_path_AWK="$ac_dir/$ac_word" |
| 836 | break |
| 837 | fi |
| 838 | done |
| 839 | IFS="$ac_save_ifs" |
| 840 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" |
| 841 | ;; |
| 842 | esac |
| 843 | fi |
| 844 | AWK="$ac_cv_path_AWK" |
| 845 | if test -n "$AWK"; then |
| 846 | echo "$ac_t""$AWK" 1>&6 |
| 847 | else |
| 848 | echo "$ac_t""no" 1>&6 |
| 849 | fi |
| 850 | |
| 851 | # Extract the first word of "sed", so it can be a program name with args. |
| 852 | set dummy sed; ac_word=$2 |
| 853 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 854 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
| 855 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 856 | else |
| 857 | case "$SED" in |
| 858 | /*) |
| 859 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 860 | ;; |
| 861 | *) |
| 862 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 863 | for ac_dir in $PATH; do |
| 864 | test -z "$ac_dir" && ac_dir=. |
| 865 | if test -f $ac_dir/$ac_word; then |
| 866 | ac_cv_path_SED="$ac_dir/$ac_word" |
| 867 | break |
| 868 | fi |
| 869 | done |
| 870 | IFS="$ac_save_ifs" |
| 871 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 872 | ;; |
| 873 | esac |
| 874 | fi |
| 875 | SED="$ac_cv_path_SED" |
| 876 | if test -n "$SED"; then |
| 877 | echo "$ac_t""$SED" 1>&6 |
| 878 | else |
| 879 | echo "$ac_t""no" 1>&6 |
| 880 | fi |
| 881 | |
| 882 | ac_aux_dir= |
| 883 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 884 | if test -f $ac_dir/install-sh; then |
| 885 | ac_aux_dir=$ac_dir |
| 886 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 887 | break |
| 888 | elif test -f $ac_dir/install.sh; then |
| 889 | ac_aux_dir=$ac_dir |
| 890 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 891 | break |
| 892 | fi |
| 893 | done |
| 894 | if test -z "$ac_aux_dir"; then |
| 895 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
| 896 | fi |
| 897 | ac_config_guess=$ac_aux_dir/config.guess |
| 898 | ac_config_sub=$ac_aux_dir/config.sub |
| 899 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 900 | |
| 901 | |
| 902 | # Make sure we can run config.sub. |
| 903 | if $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 904 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
| 905 | fi |
| 906 | |
| 907 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
| 908 | |
| 909 | host_alias=$host |
| 910 | case "$host_alias" in |
| 911 | NONE) |
| 912 | case $nonopt in |
| 913 | NONE) |
| 914 | if host_alias=`$ac_config_guess`; then : |
| 915 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 916 | fi ;; |
| 917 | *) host_alias=$nonopt ;; |
| 918 | esac ;; |
| 919 | esac |
| 920 | |
| 921 | host=`$ac_config_sub $host_alias` |
| 922 | host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
| 923 | host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` |
| 924 | host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` |
| 925 | echo "$ac_t""$host" 1>&6 |
| 926 | |
| 927 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
| 928 | |
| 929 | build_alias=$build |
| 930 | case "$build_alias" in |
| 931 | NONE) |
| 932 | case $nonopt in |
| 933 | NONE) build_alias=$host_alias ;; |
| 934 | *) build_alias=$nonopt ;; |
| 935 | esac ;; |
| 936 | esac |
| 937 | |
| 938 | build=`$ac_config_sub $build_alias` |
| 939 | build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
| 940 | build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` |
| 941 | build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` |
| 942 | echo "$ac_t""$build" 1>&6 |
| 943 | |
| 944 | if test $host != $build; then |
| 945 | ac_tool_prefix=${host_alias}- |
| 946 | else |
| 947 | ac_tool_prefix= |
| 948 | fi |
| 949 | |
| 950 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 951 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 952 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 953 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 954 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 955 | else |
| 956 | if test -n "$AR"; then |
| 957 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 958 | else |
| 959 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 960 | for ac_dir in $PATH; do |
| 961 | test -z "$ac_dir" && ac_dir=. |
| 962 | if test -f $ac_dir/$ac_word; then |
| 963 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 964 | break |
| 965 | fi |
| 966 | done |
| 967 | IFS="$ac_save_ifs" |
| 968 | fi |
| 969 | fi |
| 970 | AR="$ac_cv_prog_AR" |
| 971 | if test -n "$AR"; then |
| 972 | echo "$ac_t""$AR" 1>&6 |
| 973 | else |
| 974 | echo "$ac_t""no" 1>&6 |
| 975 | fi |
| 976 | |
| 977 | |
| 978 | if test -z "$ac_cv_prog_AR"; then |
| 979 | if test -n "$ac_tool_prefix"; then |
| 980 | # Extract the first word of "ar", so it can be a program name with args. |
| 981 | set dummy ar; ac_word=$2 |
| 982 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 983 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 984 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 985 | else |
| 986 | if test -n "$AR"; then |
| 987 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 988 | else |
| 989 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 990 | for ac_dir in $PATH; do |
| 991 | test -z "$ac_dir" && ac_dir=. |
| 992 | if test -f $ac_dir/$ac_word; then |
| 993 | ac_cv_prog_AR="ar" |
| 994 | break |
| 995 | fi |
| 996 | done |
| 997 | IFS="$ac_save_ifs" |
| 998 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
| 999 | fi |
| 1000 | fi |
| 1001 | AR="$ac_cv_prog_AR" |
| 1002 | if test -n "$AR"; then |
| 1003 | echo "$ac_t""$AR" 1>&6 |
| 1004 | else |
| 1005 | echo "$ac_t""no" 1>&6 |
| 1006 | fi |
| 1007 | |
| 1008 | else |
| 1009 | AR="ar" |
| 1010 | fi |
| 1011 | fi |
| 1012 | |
| 1013 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 1014 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 1015 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1016 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1017 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1018 | else |
| 1019 | if test -n "$RANLIB"; then |
| 1020 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1021 | else |
| 1022 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1023 | for ac_dir in $PATH; do |
| 1024 | test -z "$ac_dir" && ac_dir=. |
| 1025 | if test -f $ac_dir/$ac_word; then |
| 1026 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 1027 | break |
| 1028 | fi |
| 1029 | done |
| 1030 | IFS="$ac_save_ifs" |
| 1031 | fi |
| 1032 | fi |
| 1033 | RANLIB="$ac_cv_prog_RANLIB" |
| 1034 | if test -n "$RANLIB"; then |
| 1035 | echo "$ac_t""$RANLIB" 1>&6 |
| 1036 | else |
| 1037 | echo "$ac_t""no" 1>&6 |
| 1038 | fi |
| 1039 | |
| 1040 | |
| 1041 | if test -z "$ac_cv_prog_RANLIB"; then |
| 1042 | if test -n "$ac_tool_prefix"; then |
| 1043 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1044 | set dummy ranlib; ac_word=$2 |
| 1045 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1046 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1047 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1048 | else |
| 1049 | if test -n "$RANLIB"; then |
| 1050 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1051 | else |
| 1052 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1053 | for ac_dir in $PATH; do |
| 1054 | test -z "$ac_dir" && ac_dir=. |
| 1055 | if test -f $ac_dir/$ac_word; then |
| 1056 | ac_cv_prog_RANLIB="ranlib" |
| 1057 | break |
| 1058 | fi |
| 1059 | done |
| 1060 | IFS="$ac_save_ifs" |
| 1061 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 1062 | fi |
| 1063 | fi |
| 1064 | RANLIB="$ac_cv_prog_RANLIB" |
| 1065 | if test -n "$RANLIB"; then |
| 1066 | echo "$ac_t""$RANLIB" 1>&6 |
| 1067 | else |
| 1068 | echo "$ac_t""no" 1>&6 |
| 1069 | fi |
| 1070 | |
| 1071 | else |
| 1072 | RANLIB=":" |
| 1073 | fi |
| 1074 | fi |
| 1075 | |
| 1076 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1077 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1078 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1079 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 1080 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1081 | else |
| 1082 | if test -n "$STRIP"; then |
| 1083 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1084 | else |
| 1085 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1086 | for ac_dir in $PATH; do |
| 1087 | test -z "$ac_dir" && ac_dir=. |
| 1088 | if test -f $ac_dir/$ac_word; then |
| 1089 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1090 | break |
| 1091 | fi |
| 1092 | done |
| 1093 | IFS="$ac_save_ifs" |
| 1094 | fi |
| 1095 | fi |
| 1096 | STRIP="$ac_cv_prog_STRIP" |
| 1097 | if test -n "$STRIP"; then |
| 1098 | echo "$ac_t""$STRIP" 1>&6 |
| 1099 | else |
| 1100 | echo "$ac_t""no" 1>&6 |
| 1101 | fi |
| 1102 | |
| 1103 | |
| 1104 | if test -z "$ac_cv_prog_STRIP"; then |
| 1105 | if test -n "$ac_tool_prefix"; then |
| 1106 | # Extract the first word of "strip", so it can be a program name with args. |
| 1107 | set dummy strip; ac_word=$2 |
| 1108 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1109 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 1110 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1111 | else |
| 1112 | if test -n "$STRIP"; then |
| 1113 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1114 | else |
| 1115 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1116 | for ac_dir in $PATH; do |
| 1117 | test -z "$ac_dir" && ac_dir=. |
| 1118 | if test -f $ac_dir/$ac_word; then |
| 1119 | ac_cv_prog_STRIP="strip" |
| 1120 | break |
| 1121 | fi |
| 1122 | done |
| 1123 | IFS="$ac_save_ifs" |
| 1124 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 1125 | fi |
| 1126 | fi |
| 1127 | STRIP="$ac_cv_prog_STRIP" |
| 1128 | if test -n "$STRIP"; then |
| 1129 | echo "$ac_t""$STRIP" 1>&6 |
| 1130 | else |
| 1131 | echo "$ac_t""no" 1>&6 |
| 1132 | fi |
| 1133 | |
| 1134 | else |
| 1135 | STRIP=":" |
| 1136 | fi |
| 1137 | fi |
| 1138 | |
| 1139 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1140 | set dummy gcc; ac_word=$2 |
| 1141 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1142 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1143 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1144 | else |
| 1145 | if test -n "$CC"; then |
| 1146 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1147 | else |
| 1148 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1149 | for ac_dir in $PATH; do |
| 1150 | test -z "$ac_dir" && ac_dir=. |
| 1151 | if test -f $ac_dir/$ac_word; then |
| 1152 | ac_cv_prog_CC="gcc" |
| 1153 | break |
| 1154 | fi |
| 1155 | done |
| 1156 | IFS="$ac_save_ifs" |
| 1157 | test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" |
| 1158 | fi |
| 1159 | fi |
| 1160 | CC="$ac_cv_prog_CC" |
| 1161 | if test -n "$CC"; then |
| 1162 | echo "$ac_t""$CC" 1>&6 |
| 1163 | else |
| 1164 | echo "$ac_t""no" 1>&6 |
| 1165 | fi |
| 1166 | |
| 1167 | |
| 1168 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 1169 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 1170 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1171 | else |
| 1172 | cat > conftest.c <<EOF |
| 1173 | #ifdef __GNUC__ |
| 1174 | yes; |
| 1175 | #endif |
| 1176 | EOF |
| 1177 | if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then |
| 1178 | ac_cv_prog_gcc=yes |
| 1179 | else |
| 1180 | ac_cv_prog_gcc=no |
| 1181 | fi |
| 1182 | fi |
| 1183 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 1184 | if test $ac_cv_prog_gcc = yes; then |
| 1185 | GCC=yes |
| 1186 | if test "${CFLAGS+set}" != set; then |
| 1187 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 1188 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then |
| 1189 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1190 | else |
| 1191 | echo 'void f(){}' > conftest.c |
| 1192 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 1193 | ac_cv_prog_gcc_g=yes |
| 1194 | else |
| 1195 | ac_cv_prog_gcc_g=no |
| 1196 | fi |
| 1197 | rm -f conftest* |
| 1198 | |
| 1199 | fi |
| 1200 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 |
| 1201 | if test $ac_cv_prog_gcc_g = yes; then |
| 1202 | CFLAGS="-g -O" |
| 1203 | else |
| 1204 | CFLAGS="-O" |
| 1205 | fi |
| 1206 | fi |
| 1207 | else |
| 1208 | GCC= |
| 1209 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
| 1210 | fi |
| 1211 | |
| 1212 | # Find a good install program. We prefer a C program (faster), |
| 1213 | # so one script is as good as another. But avoid the broken or |
| 1214 | # incompatible versions: |
| 1215 | # SysV /etc/install, /usr/sbin/install |
| 1216 | # SunOS /usr/etc/install |
| 1217 | # IRIX /sbin/install |
| 1218 | # AIX /bin/install |
| 1219 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1220 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1221 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1222 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 1223 | if test -z "$INSTALL"; then |
| 1224 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1225 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1226 | else |
| 1227 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1228 | for ac_dir in $PATH; do |
| 1229 | # Account for people who put trailing slashes in PATH elements. |
| 1230 | case "$ac_dir/" in |
| 1231 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1232 | *) |
| 1233 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1234 | for ac_prog in ginstall installbsd scoinst install; do |
| 1235 | if test -f $ac_dir/$ac_prog; then |
| 1236 | if test $ac_prog = install && |
| 1237 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1238 | # AIX install. It has an incompatible calling convention. |
| 1239 | # OSF/1 installbsd also uses dspmsg, but is usable. |
| 1240 | : |
| 1241 | else |
| 1242 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1243 | break 2 |
| 1244 | fi |
| 1245 | fi |
| 1246 | done |
| 1247 | ;; |
| 1248 | esac |
| 1249 | done |
| 1250 | IFS="$ac_save_ifs" |
| 1251 | # As a last resort, use the slow shell script. |
| 1252 | test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh" |
| 1253 | fi |
| 1254 | INSTALL="$ac_cv_path_install" |
| 1255 | fi |
| 1256 | echo "$ac_t""$INSTALL" 1>&6 |
| 1257 | |
| 1258 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1259 | # It thinks the first close brace ends the variable substitution. |
| 1260 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1261 | |
| 1262 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1263 | |
| 1264 | # If we cannot run a trivial program, we must be cross compiling. |
| 1265 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 |
| 1266 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then |
| 1267 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1268 | else |
| 1269 | if test "$cross_compiling" = yes; then |
| 1270 | ac_cv_c_cross=yes |
| 1271 | else |
| 1272 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1273 | #line 1274 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1274 | #include "confdefs.h" |
| 1275 | main(){return(0);} |
| 1276 | EOF |
| 1277 | eval $ac_link |
| 1278 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 1279 | ac_cv_c_cross=no |
| 1280 | else |
| 1281 | ac_cv_c_cross=yes |
| 1282 | fi |
| 1283 | fi |
| 1284 | rm -fr conftest* |
| 1285 | fi |
| 1286 | cross_compiling=$ac_cv_c_cross |
| 1287 | echo "$ac_t""$ac_cv_c_cross" 1>&6 |
| 1288 | |
| 1289 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 1290 | # On Suns, sometimes $CPP names a directory. |
| 1291 | if test -n "$CPP" && test -d "$CPP"; then |
| 1292 | CPP= |
| 1293 | fi |
| 1294 | if test -z "$CPP"; then |
| 1295 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1296 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1297 | else |
| 1298 | # This must be in double quotes, not single quotes, because CPP may get |
| 1299 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1300 | CPP="${CC-cc} -E" |
| 1301 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1302 | # not just through cpp. |
| 1303 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1304 | #line 1305 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1305 | #include "confdefs.h" |
| 1306 | #include <assert.h> |
| 1307 | Syntax Error |
| 1308 | EOF |
| 1309 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1310 | ac_err=`grep -v '^ *+' conftest.out` |
| 1311 | if test -z "$ac_err"; then |
| 1312 | : |
| 1313 | else |
| 1314 | echo "$ac_err" >&5 |
| 1315 | rm -rf conftest* |
| 1316 | CPP="${CC-cc} -E -traditional-cpp" |
| 1317 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1318 | #line 1319 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1319 | #include "confdefs.h" |
| 1320 | #include <assert.h> |
| 1321 | Syntax Error |
| 1322 | EOF |
| 1323 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1324 | ac_err=`grep -v '^ *+' conftest.out` |
| 1325 | if test -z "$ac_err"; then |
| 1326 | : |
| 1327 | else |
| 1328 | echo "$ac_err" >&5 |
| 1329 | rm -rf conftest* |
| 1330 | CPP=/lib/cpp |
| 1331 | fi |
| 1332 | rm -f conftest* |
| 1333 | fi |
| 1334 | rm -f conftest* |
| 1335 | ac_cv_prog_CPP="$CPP" |
| 1336 | fi |
| 1337 | CPP="$ac_cv_prog_CPP" |
| 1338 | else |
| 1339 | ac_cv_prog_CPP="$CPP" |
| 1340 | fi |
| 1341 | echo "$ac_t""$CPP" 1>&6 |
| 1342 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1343 | for ac_hdr in stdlib.h unistd.h stdarg.h errno.h mntent.h dirent.h getopt.h linux/fd.h linux/major.h sys/disklabel.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1344 | do |
| 1345 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
| 1346 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1347 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1348 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1349 | else |
| 1350 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1351 | #line 1352 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1352 | #include "confdefs.h" |
| 1353 | #include <$ac_hdr> |
| 1354 | EOF |
| 1355 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1356 | ac_err=`grep -v '^ *+' conftest.out` |
| 1357 | if test -z "$ac_err"; then |
| 1358 | rm -rf conftest* |
| 1359 | eval "ac_cv_header_$ac_safe=yes" |
| 1360 | else |
| 1361 | echo "$ac_err" >&5 |
| 1362 | rm -rf conftest* |
| 1363 | eval "ac_cv_header_$ac_safe=no" |
| 1364 | fi |
| 1365 | rm -f conftest* |
| 1366 | fi |
| 1367 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1368 | echo "$ac_t""yes" 1>&6 |
| 1369 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` |
| 1370 | cat >> confdefs.h <<EOF |
| 1371 | #define $ac_tr_hdr 1 |
| 1372 | EOF |
| 1373 | |
| 1374 | else |
| 1375 | echo "$ac_t""no" 1>&6 |
| 1376 | fi |
| 1377 | done |
| 1378 | |
| 1379 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
| 1380 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
| 1381 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1382 | else |
| 1383 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1384 | #line 1385 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1385 | #include "confdefs.h" |
| 1386 | /* System header to define __stub macros and hopefully few prototypes, |
| 1387 | which can conflict with char vprintf(); below. */ |
| 1388 | #include <assert.h> |
| 1389 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1390 | char vprintf(); |
| 1391 | |
| 1392 | int main() { return 0; } |
| 1393 | int t() { |
| 1394 | |
| 1395 | /* The GNU C library defines this for functions which it implements |
| 1396 | to always fail with ENOSYS. Some functions are actually named |
| 1397 | something starting with __ and the normal name is an alias. */ |
| 1398 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
| 1399 | choke me |
| 1400 | #else |
| 1401 | vprintf(); |
| 1402 | #endif |
| 1403 | |
| 1404 | ; return 0; } |
| 1405 | EOF |
| 1406 | if eval $ac_link; then |
| 1407 | rm -rf conftest* |
| 1408 | eval "ac_cv_func_vprintf=yes" |
| 1409 | else |
| 1410 | rm -rf conftest* |
| 1411 | eval "ac_cv_func_vprintf=no" |
| 1412 | fi |
| 1413 | rm -f conftest* |
| 1414 | |
| 1415 | fi |
| 1416 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
| 1417 | echo "$ac_t""yes" 1>&6 |
| 1418 | cat >> confdefs.h <<\EOF |
| 1419 | #define HAVE_VPRINTF 1 |
| 1420 | EOF |
| 1421 | |
| 1422 | else |
| 1423 | echo "$ac_t""no" 1>&6 |
| 1424 | fi |
| 1425 | |
| 1426 | if test "$ac_cv_func_vprintf" != yes; then |
| 1427 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
| 1428 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
| 1429 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1430 | else |
| 1431 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1432 | #line 1433 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1433 | #include "confdefs.h" |
| 1434 | /* System header to define __stub macros and hopefully few prototypes, |
| 1435 | which can conflict with char _doprnt(); below. */ |
| 1436 | #include <assert.h> |
| 1437 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1438 | char _doprnt(); |
| 1439 | |
| 1440 | int main() { return 0; } |
| 1441 | int t() { |
| 1442 | |
| 1443 | /* The GNU C library defines this for functions which it implements |
| 1444 | to always fail with ENOSYS. Some functions are actually named |
| 1445 | something starting with __ and the normal name is an alias. */ |
| 1446 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
| 1447 | choke me |
| 1448 | #else |
| 1449 | _doprnt(); |
| 1450 | #endif |
| 1451 | |
| 1452 | ; return 0; } |
| 1453 | EOF |
| 1454 | if eval $ac_link; then |
| 1455 | rm -rf conftest* |
| 1456 | eval "ac_cv_func__doprnt=yes" |
| 1457 | else |
| 1458 | rm -rf conftest* |
| 1459 | eval "ac_cv_func__doprnt=no" |
| 1460 | fi |
| 1461 | rm -f conftest* |
| 1462 | |
| 1463 | fi |
| 1464 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
| 1465 | echo "$ac_t""yes" 1>&6 |
| 1466 | cat >> confdefs.h <<\EOF |
| 1467 | #define HAVE_DOPRNT 1 |
| 1468 | EOF |
| 1469 | |
| 1470 | else |
| 1471 | echo "$ac_t""no" 1>&6 |
| 1472 | fi |
| 1473 | |
| 1474 | fi |
| 1475 | |
| 1476 | echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6 |
| 1477 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then |
| 1478 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1479 | else |
| 1480 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1481 | #line 1482 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1482 | #include "confdefs.h" |
| 1483 | #include <sys/types.h> |
| 1484 | #include <dirent.h> |
| 1485 | int main() { return 0; } |
| 1486 | int t() { |
| 1487 | struct dirent de; de.d_namlen = 0; |
| 1488 | ; return 0; } |
| 1489 | EOF |
| 1490 | if eval $ac_compile; then |
| 1491 | rm -rf conftest* |
| 1492 | e2fsprogs_cv_struct_d_namlen=yes |
| 1493 | else |
| 1494 | rm -rf conftest* |
| 1495 | e2fsprogs_cv_struct_d_namlen=no |
| 1496 | fi |
| 1497 | rm -f conftest* |
| 1498 | |
| 1499 | fi |
| 1500 | |
| 1501 | echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6 |
| 1502 | if test "$e2fsprogs_cv_struct_d_namlen" = yes; then |
| 1503 | cat >> confdefs.h <<\EOF |
| 1504 | #define HAVE_DIRENT_NAMLEN 1 |
| 1505 | EOF |
| 1506 | |
| 1507 | fi |
| 1508 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
| 1509 | # if cross-compiling, with no cached values, just assume something common. |
| 1510 | ac_cv_sizeof_short=2 |
| 1511 | ac_cv_sizeof_int=4 |
| 1512 | ac_cv_sizeof_long=4 |
| 1513 | echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" 1>&2 |
| 1514 | fi |
| 1515 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
| 1516 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
| 1517 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1518 | else |
| 1519 | if test "$cross_compiling" = yes; then |
| 1520 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1521 | else |
| 1522 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1523 | #line 1524 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1524 | #include "confdefs.h" |
| 1525 | #include <stdio.h> |
| 1526 | main() |
| 1527 | { |
| 1528 | FILE *f=fopen("conftestval", "w"); |
| 1529 | if (!f) exit(1); |
| 1530 | fprintf(f, "%d\n", sizeof(short)); |
| 1531 | exit(0); |
| 1532 | } |
| 1533 | EOF |
| 1534 | eval $ac_link |
| 1535 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 1536 | ac_cv_sizeof_short=`cat conftestval` |
| 1537 | else |
| 1538 | ac_cv_sizeof_short=0 |
| 1539 | fi |
| 1540 | fi |
| 1541 | rm -fr conftest* |
| 1542 | fi |
| 1543 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 1544 | cat >> confdefs.h <<EOF |
| 1545 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 1546 | EOF |
| 1547 | |
| 1548 | |
| 1549 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
| 1550 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 1551 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1552 | else |
| 1553 | if test "$cross_compiling" = yes; then |
| 1554 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1555 | else |
| 1556 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1557 | #line 1558 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1558 | #include "confdefs.h" |
| 1559 | #include <stdio.h> |
| 1560 | main() |
| 1561 | { |
| 1562 | FILE *f=fopen("conftestval", "w"); |
| 1563 | if (!f) exit(1); |
| 1564 | fprintf(f, "%d\n", sizeof(int)); |
| 1565 | exit(0); |
| 1566 | } |
| 1567 | EOF |
| 1568 | eval $ac_link |
| 1569 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 1570 | ac_cv_sizeof_int=`cat conftestval` |
| 1571 | else |
| 1572 | ac_cv_sizeof_int=0 |
| 1573 | fi |
| 1574 | fi |
| 1575 | rm -fr conftest* |
| 1576 | fi |
| 1577 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 1578 | cat >> confdefs.h <<EOF |
| 1579 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 1580 | EOF |
| 1581 | |
| 1582 | |
| 1583 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
| 1584 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 1585 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1586 | else |
| 1587 | if test "$cross_compiling" = yes; then |
| 1588 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1589 | else |
| 1590 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1591 | #line 1592 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1592 | #include "confdefs.h" |
| 1593 | #include <stdio.h> |
| 1594 | main() |
| 1595 | { |
| 1596 | FILE *f=fopen("conftestval", "w"); |
| 1597 | if (!f) exit(1); |
| 1598 | fprintf(f, "%d\n", sizeof(long)); |
| 1599 | exit(0); |
| 1600 | } |
| 1601 | EOF |
| 1602 | eval $ac_link |
| 1603 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 1604 | ac_cv_sizeof_long=`cat conftestval` |
| 1605 | else |
| 1606 | ac_cv_sizeof_long=0 |
| 1607 | fi |
| 1608 | fi |
| 1609 | rm -fr conftest* |
| 1610 | fi |
| 1611 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 1612 | cat >> confdefs.h <<EOF |
| 1613 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 1614 | EOF |
| 1615 | |
| 1616 | |
| 1617 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 1618 | SIZEOF_INT=$ac_cv_sizeof_int |
| 1619 | SIZEOF_LONG=$ac_cv_sizeof_long |
| 1620 | |
| 1621 | |
| 1622 | |
| 1623 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 |
| 1624 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then |
| 1625 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1626 | else |
| 1627 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1628 | #line 1629 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1629 | #include "confdefs.h" |
| 1630 | #include <sys/stat.h> |
| 1631 | int main() { return 0; } |
| 1632 | int t() { |
| 1633 | struct stat stat; stat.st_flags = 0; |
| 1634 | ; return 0; } |
| 1635 | EOF |
| 1636 | if eval $ac_compile; then |
| 1637 | rm -rf conftest* |
| 1638 | e2fsprogs_cv_struct_st_flags=yes |
| 1639 | else |
| 1640 | rm -rf conftest* |
| 1641 | e2fsprogs_cv_struct_st_flags=no |
| 1642 | fi |
| 1643 | rm -f conftest* |
| 1644 | |
| 1645 | fi |
| 1646 | |
| 1647 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 |
| 1648 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
| 1649 | cat >> confdefs.h <<\EOF |
| 1650 | #define HAVE_STAT_FLAGS 1 |
| 1651 | EOF |
| 1652 | |
| 1653 | fi |
| 1654 | for ac_func in chflags getrusage llseek strdup getmntinfo |
| 1655 | do |
| 1656 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 1657 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 1658 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1659 | else |
| 1660 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1661 | #line 1662 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1662 | #include "confdefs.h" |
| 1663 | /* System header to define __stub macros and hopefully few prototypes, |
| 1664 | which can conflict with char $ac_func(); below. */ |
| 1665 | #include <assert.h> |
| 1666 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1667 | char $ac_func(); |
| 1668 | |
| 1669 | int main() { return 0; } |
| 1670 | int t() { |
| 1671 | |
| 1672 | /* The GNU C library defines this for functions which it implements |
| 1673 | to always fail with ENOSYS. Some functions are actually named |
| 1674 | something starting with __ and the normal name is an alias. */ |
| 1675 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 1676 | choke me |
| 1677 | #else |
| 1678 | $ac_func(); |
| 1679 | #endif |
| 1680 | |
| 1681 | ; return 0; } |
| 1682 | EOF |
| 1683 | if eval $ac_link; then |
| 1684 | rm -rf conftest* |
| 1685 | eval "ac_cv_func_$ac_func=yes" |
| 1686 | else |
| 1687 | rm -rf conftest* |
| 1688 | eval "ac_cv_func_$ac_func=no" |
| 1689 | fi |
| 1690 | rm -f conftest* |
| 1691 | |
| 1692 | fi |
| 1693 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 1694 | echo "$ac_t""yes" 1>&6 |
| 1695 | ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` |
| 1696 | cat >> confdefs.h <<EOF |
| 1697 | #define $ac_tr_func 1 |
| 1698 | EOF |
| 1699 | |
| 1700 | else |
| 1701 | echo "$ac_t""no" 1>&6 |
| 1702 | fi |
| 1703 | done |
| 1704 | |
| 1705 | ac_safe=`echo "linux/fs.h" | tr './\055' '___'` |
| 1706 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 |
| 1707 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1708 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1709 | else |
| 1710 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1711 | #line 1712 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1712 | #include "confdefs.h" |
| 1713 | #include <linux/fs.h> |
| 1714 | EOF |
| 1715 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1716 | ac_err=`grep -v '^ *+' conftest.out` |
| 1717 | if test -z "$ac_err"; then |
| 1718 | rm -rf conftest* |
| 1719 | eval "ac_cv_header_$ac_safe=yes" |
| 1720 | else |
| 1721 | echo "$ac_err" >&5 |
| 1722 | rm -rf conftest* |
| 1723 | eval "ac_cv_header_$ac_safe=no" |
| 1724 | fi |
| 1725 | rm -f conftest* |
| 1726 | fi |
| 1727 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1728 | echo "$ac_t""yes" 1>&6 |
| 1729 | linux_headers=yes |
| 1730 | else |
| 1731 | echo "$ac_t""no" 1>&6 |
| 1732 | linux_headers=no |
| 1733 | fi |
| 1734 | |
| 1735 | |
| 1736 | if test "$linux_headers" = yes; then |
| 1737 | cat >> confdefs.h <<\EOF |
| 1738 | #define HAVE_LINUX_FS_H 1 |
| 1739 | EOF |
| 1740 | |
| 1741 | # These are some programs that depend on having linux headers around, and |
| 1742 | # won't work otherwise. So we only compile them if we can. |
| 1743 | EXTRA_PROGS="$EXTRA_PROGS flushb" |
| 1744 | else |
| 1745 | LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include' |
| 1746 | # Use this include directory with test compiles in the configure script too. |
| 1747 | CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include" |
| 1748 | fi |
| 1749 | |
| 1750 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 |
| 1751 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then |
| 1752 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1753 | else |
| 1754 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1755 | #line 1756 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1756 | #include "confdefs.h" |
| 1757 | #include <unistd.h> |
| 1758 | EOF |
| 1759 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1760 | egrep "optreset" >/dev/null 2>&1; then |
| 1761 | rm -rf conftest* |
| 1762 | ac_cv_have_optreset=yes |
| 1763 | else |
| 1764 | rm -rf conftest* |
| 1765 | ac_cv_have_optreset=no |
| 1766 | fi |
| 1767 | rm -f conftest* |
| 1768 | |
| 1769 | fi |
| 1770 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 |
| 1771 | if test $ac_cv_have_optreset = yes; then |
| 1772 | cat >> confdefs.h <<\EOF |
| 1773 | #define HAVE_OPTRESET 1 |
| 1774 | EOF |
| 1775 | |
| 1776 | fi |
| 1777 | echo $ac_n "checking whether struct ext2_inode has frags fields""... $ac_c" 1>&6 |
| 1778 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_ext2_inode_frags'+set}'`\" = set"; then |
| 1779 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1780 | else |
| 1781 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1782 | #line 1783 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1783 | #include "confdefs.h" |
| 1784 | #include <linux/ext2_fs.h> |
| 1785 | int main() { return 0; } |
| 1786 | int t() { |
| 1787 | struct ext2_inode i; i.i_frag = i.i_fsize = 0; |
| 1788 | ; return 0; } |
| 1789 | EOF |
| 1790 | if eval $ac_compile; then |
| 1791 | rm -rf conftest* |
| 1792 | e2fsprogs_cv_struct_ext2_inode_frags=yes |
| 1793 | else |
| 1794 | rm -rf conftest* |
| 1795 | e2fsprogs_cv_struct_ext2_inode_frags=no |
| 1796 | fi |
| 1797 | rm -f conftest* |
| 1798 | |
| 1799 | fi |
| 1800 | |
| 1801 | echo "$ac_t""$e2fsprogs_cv_struct_ext2_inode_frags" 1>&6 |
| 1802 | if test "$e2fsprogs_cv_struct_ext2_inode_frags" = yes; then |
| 1803 | cat >> confdefs.h <<\EOF |
| 1804 | #define HAVE_EXT2_FRAGS 1 |
| 1805 | EOF |
| 1806 | |
| 1807 | fi |
| 1808 | echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6 |
| 1809 | if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then |
| 1810 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1811 | else |
| 1812 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1813 | #line 1814 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1814 | #include "confdefs.h" |
| 1815 | #include <linux/ext2_fs.h> |
| 1816 | #include <sys/ioctl.h> |
| 1817 | int main() { return 0; } |
| 1818 | int t() { |
| 1819 | ioctl (0, EXT2_IOC_SETVERSION, 0); |
| 1820 | ; return 0; } |
| 1821 | EOF |
| 1822 | if eval $ac_compile; then |
| 1823 | rm -rf conftest* |
| 1824 | e2fsprogs_cv_ioctl_ext2=yes |
| 1825 | else |
| 1826 | rm -rf conftest* |
| 1827 | e2fsprogs_cv_ioctl_ext2=no |
| 1828 | fi |
| 1829 | rm -f conftest* |
| 1830 | |
| 1831 | fi |
| 1832 | |
| 1833 | echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6 |
| 1834 | if test "$e2fsprogs_cv_ioctl_ext2" = yes; then |
| 1835 | cat >> confdefs.h <<\EOF |
| 1836 | #define HAVE_EXT2_IOCTLS 1 |
| 1837 | EOF |
| 1838 | |
| 1839 | fi |
| 1840 | |
| 1841 | case "$host_os" in |
| 1842 | linux*) |
| 1843 | if test "$prefix" = NONE ; then |
| 1844 | prefix='/'; |
| 1845 | echo "On Linux systems, prefix defaults to '/'" |
| 1846 | fi |
| 1847 | ;; |
| 1848 | esac |
| 1849 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1850 | LDFLAG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1851 | case "$host_os" in |
| 1852 | linux*) |
| 1853 | LDFLAG_STATIC=-static |
| 1854 | echo "On Linux systems, assume -static works" |
| 1855 | ;; |
| 1856 | esac |
| 1857 | |
| 1858 | if test "$prefix" = / ; then |
| 1859 | usr_prefix=/usr |
| 1860 | else |
| 1861 | usr_prefix="\${prefix}" |
| 1862 | fi |
| 1863 | |
| 1864 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 1865 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 1866 | |
| 1867 | |
| 1868 | if test "$cross_compiling" = yes ; then |
| 1869 | DO_TEST_SUITE= |
| 1870 | else |
| 1871 | DO_TEST_SUITE=check |
| 1872 | fi |
| 1873 | |
| 1874 | test -d lib || mkdir lib |
| 1875 | test -d include || mkdir include |
| 1876 | test -d include/linux || mkdir include/linux |
| 1877 | trap '' 1 2 15 |
| 1878 | cat > confcache <<\EOF |
| 1879 | # This file is a shell script that caches the results of configure |
| 1880 | # tests run on this system so they can be shared between configure |
| 1881 | # scripts and configure runs. It is not useful on other systems. |
| 1882 | # If it contains results you don't want to keep, you may remove or edit it. |
| 1883 | # |
| 1884 | # By default, configure uses ./config.cache as the cache file, |
| 1885 | # creating it if it does not exist already. You can give configure |
| 1886 | # the --cache-file=FILE option to use a different cache file; that is |
| 1887 | # what configure does when it calls configure scripts in |
| 1888 | # subdirectories, so they share the cache. |
| 1889 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 1890 | # config.status only pays attention to the cache file if you give it the |
| 1891 | # --recheck option to rerun configure. |
| 1892 | # |
| 1893 | EOF |
| 1894 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 1895 | # and sets the high bit in the cache file unless we assign to the vars. |
| 1896 | (set) 2>&1 | |
| 1897 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ |
| 1898 | >> confcache |
| 1899 | if cmp -s $cache_file confcache; then |
| 1900 | : |
| 1901 | else |
| 1902 | if test -w $cache_file; then |
| 1903 | echo "updating cache $cache_file" |
| 1904 | cat confcache > $cache_file |
| 1905 | else |
| 1906 | echo "not updating unwritable cache $cache_file" |
| 1907 | fi |
| 1908 | fi |
| 1909 | rm -f confcache |
| 1910 | |
| 1911 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 1912 | |
| 1913 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 1914 | # Let make expand exec_prefix. |
| 1915 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 1916 | |
| 1917 | # Any assignment to VPATH causes Sun make to only execute |
| 1918 | # the first set of double-colon rules, so remove it if not needed. |
| 1919 | # If there is a colon in the path, we need to keep it. |
| 1920 | if test "x$srcdir" = x.; then |
| 1921 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 1922 | fi |
| 1923 | |
| 1924 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 1925 | |
| 1926 | # Transform confdefs.h into DEFS. |
| 1927 | # Protect against shell expansion while executing Makefile rules. |
| 1928 | # Protect against Makefile macro expansion. |
| 1929 | cat > conftest.defs <<\EOF |
| 1930 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g |
| 1931 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 1932 | s%\[%\\&%g |
| 1933 | s%\]%\\&%g |
| 1934 | s%\$%$$%g |
| 1935 | EOF |
| 1936 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 1937 | rm -f conftest.defs |
| 1938 | |
| 1939 | |
| 1940 | # Without the "./", some shells look in PATH for config.status. |
| 1941 | : ${CONFIG_STATUS=./config.status} |
| 1942 | |
| 1943 | echo creating $CONFIG_STATUS |
| 1944 | rm -f $CONFIG_STATUS |
| 1945 | cat > $CONFIG_STATUS <<EOF |
| 1946 | #! /bin/sh |
| 1947 | # Generated automatically by configure. |
| 1948 | # Run this file to recreate the current configuration. |
| 1949 | # This directory was configured as follows, |
| 1950 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 1951 | # |
| 1952 | # $0 $ac_configure_args |
| 1953 | # |
| 1954 | # Compiler output produced by configure, useful for debugging |
| 1955 | # configure, is in ./config.log if it exists. |
| 1956 | |
| 1957 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 1958 | for ac_option |
| 1959 | do |
| 1960 | case "\$ac_option" in |
| 1961 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 1962 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 1963 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 1964 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 1965 | echo "$CONFIG_STATUS generated by autoconf version 2.4" |
| 1966 | exit 0 ;; |
| 1967 | -help | --help | --hel | --he | --h) |
| 1968 | echo "\$ac_cs_usage"; exit 0 ;; |
| 1969 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 1970 | esac |
| 1971 | done |
| 1972 | |
| 1973 | ac_given_srcdir=$srcdir |
| 1974 | ac_given_INSTALL="$INSTALL" |
| 1975 | |
| 1976 | trap 'rm -fr `echo "MCONFIG include/linux/types.h Makefile lib/et/Makefile |
| 1977 | lib/et/compile_et.sh lib/ss/Makefile lib/ss/mk_cmds.sh |
| 1978 | lib/ext2fs/Makefile lib/e2p/Makefile misc/Makefile |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 1979 | e2fsck/Makefile debugfs/Makefile tests/Makefile lib/ext2fs/ext2_err.et |
| 1980 | debugfs/debugfs.8 e2fsck/e2fsck.8 misc/tune2fs.8 misc/lsattr.1 |
| 1981 | misc/chattr.1 misc/badblocks.8 misc/dumpe2fs.8 misc/mke2fs.8 |
| 1982 | misc/fsck.8 misc/mklost+found.8" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1983 | |
| 1984 | # Protect against being on the right side of a sed subst in config.status. |
| 1985 | sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; |
| 1986 | s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF |
| 1987 | $ac_vpsub |
| 1988 | $extrasub |
| 1989 | s%@CFLAGS@%$CFLAGS%g |
| 1990 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 1991 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 1992 | s%@DEFS@%$DEFS%g |
| 1993 | s%@LDFLAGS@%$LDFLAGS%g |
| 1994 | s%@LIBS@%$LIBS%g |
| 1995 | s%@exec_prefix@%$exec_prefix%g |
| 1996 | s%@prefix@%$prefix%g |
| 1997 | s%@program_transform_name@%$program_transform_name%g |
| 1998 | /@MCONFIG@/r $MCONFIG |
| 1999 | s%@MCONFIG@%%g |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 2000 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g |
| 2001 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g |
| 2002 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g |
| 2003 | s%@CC@%$CC%g |
| 2004 | s%@LD@%$LD%g |
| 2005 | s%@CCOPTS@%$CCOPTS%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2006 | s%@DLL_CMT@%$DLL_CMT%g |
| 2007 | /@MAKEFILE_DLL@/r $MAKEFILE_DLL |
| 2008 | s%@MAKEFILE_DLL@%%g |
| 2009 | s%@ELF_CMT@%$ELF_CMT%g |
| 2010 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF |
| 2011 | s%@MAKEFILE_ELF@%%g |
| 2012 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g |
| 2013 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB |
| 2014 | s%@MAKEFILE_BSDLIB@%%g |
| 2015 | s%@PROFILE_CMT@%$PROFILE_CMT%g |
| 2016 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE |
| 2017 | s%@MAKEFILE_PROFILE@%%g |
| 2018 | s%@CHECKER_CMT@%$CHECKER_CMT%g |
| 2019 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER |
| 2020 | s%@MAKEFILE_CHECKER@%%g |
| 2021 | s%@W@%$W%g |
| 2022 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY |
| 2023 | s%@MAKEFILE_LIBRARY@%%g |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 2024 | s%@BINARY_TYPE@%$BINARY_TYPE%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2025 | s%@SET_MAKE@%$SET_MAKE%g |
| 2026 | s%@LN@%$LN%g |
| 2027 | s%@MV@%$MV%g |
| 2028 | s%@CP@%$CP%g |
| 2029 | s%@RM@%$RM%g |
| 2030 | s%@CHMOD@%$CHMOD%g |
| 2031 | s%@AWK@%$AWK%g |
| 2032 | s%@SED@%$SED%g |
| 2033 | s%@host@%$host%g |
| 2034 | s%@host_alias@%$host_alias%g |
| 2035 | s%@host_cpu@%$host_cpu%g |
| 2036 | s%@host_vendor@%$host_vendor%g |
| 2037 | s%@host_os@%$host_os%g |
| 2038 | s%@build@%$build%g |
| 2039 | s%@build_alias@%$build_alias%g |
| 2040 | s%@build_cpu@%$build_cpu%g |
| 2041 | s%@build_vendor@%$build_vendor%g |
| 2042 | s%@build_os@%$build_os%g |
| 2043 | s%@AR@%$AR%g |
| 2044 | s%@RANLIB@%$RANLIB%g |
| 2045 | s%@STRIP@%$STRIP%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2046 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 2047 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 2048 | s%@CPP@%$CPP%g |
| 2049 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g |
| 2050 | s%@SIZEOF_INT@%$SIZEOF_INT%g |
| 2051 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g |
| 2052 | s%@EXTRA_PROGS@%$EXTRA_PROGS%g |
| 2053 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g |
| 2054 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g |
| 2055 | s%@usr_prefix@%$usr_prefix%g |
| 2056 | s%@SS_DIR@%$SS_DIR%g |
| 2057 | s%@ET_DIR@%$ET_DIR%g |
| 2058 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g |
| 2059 | |
| 2060 | CEOF |
| 2061 | EOF |
| 2062 | cat >> $CONFIG_STATUS <<EOF |
| 2063 | |
| 2064 | CONFIG_FILES=\${CONFIG_FILES-"MCONFIG include/linux/types.h Makefile lib/et/Makefile |
| 2065 | lib/et/compile_et.sh lib/ss/Makefile lib/ss/mk_cmds.sh |
| 2066 | lib/ext2fs/Makefile lib/e2p/Makefile misc/Makefile |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame^] | 2067 | e2fsck/Makefile debugfs/Makefile tests/Makefile lib/ext2fs/ext2_err.et |
| 2068 | debugfs/debugfs.8 e2fsck/e2fsck.8 misc/tune2fs.8 misc/lsattr.1 |
| 2069 | misc/chattr.1 misc/badblocks.8 misc/dumpe2fs.8 misc/mke2fs.8 |
| 2070 | misc/fsck.8 misc/mklost+found.8"} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2071 | EOF |
| 2072 | cat >> $CONFIG_STATUS <<\EOF |
| 2073 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 2074 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
| 2075 | case "$ac_file" in |
| 2076 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
| 2077 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 2078 | *) ac_file_in="${ac_file}.in" ;; |
| 2079 | esac |
| 2080 | |
| 2081 | # Adjust relative srcdir, etc. for subdirectories. |
| 2082 | |
| 2083 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 2084 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 2085 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 2086 | # The file is in a subdirectory. |
| 2087 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 2088 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 2089 | # A "../" for each directory in $ac_dir_suffix. |
| 2090 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 2091 | else |
| 2092 | ac_dir_suffix= ac_dots= |
| 2093 | fi |
| 2094 | |
| 2095 | case "$ac_given_srcdir" in |
| 2096 | .) srcdir=. |
| 2097 | if test -z "$ac_dots"; then top_srcdir=. |
| 2098 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 2099 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 2100 | *) # Relative path. |
| 2101 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 2102 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 2103 | esac |
| 2104 | |
| 2105 | case "$ac_given_INSTALL" in |
| 2106 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 2107 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 2108 | esac |
| 2109 | echo creating "$ac_file" |
| 2110 | rm -f "$ac_file" |
| 2111 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 2112 | case "$ac_file" in |
| 2113 | *Makefile*) ac_comsub="1i\\ |
| 2114 | # $configure_input" ;; |
| 2115 | *) ac_comsub= ;; |
| 2116 | esac |
| 2117 | sed -e "$ac_comsub |
| 2118 | s%@configure_input@%$configure_input%g |
| 2119 | s%@srcdir@%$srcdir%g |
| 2120 | s%@top_srcdir@%$top_srcdir%g |
| 2121 | s%@INSTALL@%$INSTALL%g |
| 2122 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file |
| 2123 | fi; done |
| 2124 | rm -f conftest.subs |
| 2125 | |
| 2126 | |
| 2127 | |
| 2128 | exit 0 |
| 2129 | EOF |
| 2130 | chmod +x $CONFIG_STATUS |
| 2131 | rm -fr confdefs* $ac_clean_files |
| 2132 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 2133 | |