Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4 | # Generated automatically using autoconf version 2.13 |
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6 | # |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10 | # Defaults: |
| 11 | ac_help= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12 | ac_default_prefix=/usr/local |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | --with-diet-libc Use diet libc" |
| 16 | ac_help="$ac_help |
| 17 | --with-cc=COMPILER select compiler to use" |
| 18 | ac_help="$ac_help |
| 19 | --with-linker=LINKER select linker to use" |
| 20 | ac_help="$ac_help |
| 21 | --with-ccopts=CCOPTS select compiler command line options" |
| 22 | ac_help="$ac_help |
| 23 | --with-ldopts=LDOPTS select linker command line options" |
| 24 | ac_help="$ac_help |
| 25 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root" |
| 26 | ac_help="$ac_help |
| 27 | --enable-compression enable EXPERIMENTAL compression support" |
| 28 | ac_help="$ac_help |
| 29 | --enable-htree enable EXPERIMENTAL htree directory support" |
| 30 | ac_help="$ac_help |
| 31 | --enable-htree-clear clear htree because we don't trust e2fsck" |
| 32 | ac_help="$ac_help |
| 33 | --disable-evms don't build EVMS plugin" |
| 34 | ac_help="$ac_help |
| 35 | --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)" |
| 36 | ac_help="$ac_help |
| 37 | --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.2)" |
| 38 | ac_help="$ac_help |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 39 | --enable-elf-shlibs select ELF shared libraries" |
| 40 | ac_help="$ac_help |
| 41 | --enable-bsd-shlibs select BSD shared libraries" |
| 42 | ac_help="$ac_help |
| 43 | --enable-profile build profiling libraries" |
| 44 | ac_help="$ac_help |
| 45 | --enable-checker build checker libraries" |
| 46 | ac_help="$ac_help |
| 47 | --enable-jbd-debug enable journal debugging" |
| 48 | ac_help="$ac_help |
| 49 | --enable-blkid-debug enable blkid debugging" |
| 50 | ac_help="$ac_help |
| 51 | --enable-testio-debug enable the use of the test I/O manager for debugging" |
| 52 | ac_help="$ac_help |
| 53 | --disable-swapfs disable support of legacy byte-swapped filesystems" |
| 54 | ac_help="$ac_help |
| 55 | --disable-debugfs disable support of debugfs program" |
| 56 | ac_help="$ac_help |
| 57 | --disable-imager disable support of e2image program" |
| 58 | ac_help="$ac_help |
| 59 | --disable-resizer disable support of e2resize program" |
| 60 | ac_help="$ac_help |
| 61 | --enable-dynamic-e2fsck build e2fsck dynamically" |
| 62 | ac_help="$ac_help |
| 63 | --enable-fsck build fsck wrapper program" |
| 64 | ac_help="$ac_help |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 65 | --enable-e2initrd-helper build e2initrd-helper program" |
| 66 | ac_help="$ac_help |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 67 | --enable-old-bitops Use old (non-standard but native) bitmask operations" |
| 68 | ac_help="$ac_help |
| 69 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
| 70 | ac_help="$ac_help |
| 71 | --disable-rpath do not hardcode runtime library paths" |
| 72 | ac_help="$ac_help |
| 73 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 74 | --without-libiconv-prefix don't search for libiconv in includedir and libdir" |
| 75 | ac_help="$ac_help |
| 76 | --disable-nls do not use Native Language Support" |
| 77 | ac_help="$ac_help |
| 78 | --with-included-gettext use the GNU gettext library included here" |
| 79 | ac_help="$ac_help |
| 80 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 81 | --without-libintl-prefix don't search for libintl in includedir and libdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 82 | |
| 83 | # Initialize some variables set by options. |
| 84 | # The variables have the same names as the options, with |
| 85 | # dashes changed to underlines. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 86 | build=NONE |
| 87 | cache_file=./config.cache |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 88 | exec_prefix=NONE |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 89 | host=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 90 | no_create= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 91 | nonopt=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 92 | no_recursion= |
| 93 | prefix=NONE |
| 94 | program_prefix=NONE |
| 95 | program_suffix=NONE |
| 96 | program_transform_name=s,x,x, |
| 97 | silent= |
| 98 | site= |
| 99 | srcdir= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 100 | target=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 101 | verbose= |
| 102 | x_includes=NONE |
| 103 | x_libraries=NONE |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 104 | bindir='${exec_prefix}/bin' |
| 105 | sbindir='${exec_prefix}/sbin' |
| 106 | libexecdir='${exec_prefix}/libexec' |
| 107 | datadir='${prefix}/share' |
| 108 | sysconfdir='${prefix}/etc' |
| 109 | sharedstatedir='${prefix}/com' |
| 110 | localstatedir='${prefix}/var' |
| 111 | libdir='${exec_prefix}/lib' |
| 112 | includedir='${prefix}/include' |
| 113 | oldincludedir='/usr/include' |
| 114 | infodir='${prefix}/info' |
| 115 | mandir='${prefix}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 116 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 117 | # Initialize some other variables. |
| 118 | subdirs= |
| 119 | MFLAGS= MAKEFLAGS= |
| 120 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 121 | # Maximum number of lines to put in a shell here document. |
| 122 | ac_max_here_lines=12 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 123 | |
| 124 | ac_prev= |
| 125 | for ac_option |
| 126 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 127 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 128 | # If the previous option needs an argument, assign it. |
| 129 | if test -n "$ac_prev"; then |
| 130 | eval "$ac_prev=\$ac_option" |
| 131 | ac_prev= |
| 132 | continue |
| 133 | fi |
| 134 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 135 | case "$ac_option" in |
| 136 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 137 | *) ac_optarg= ;; |
| 138 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 139 | |
| 140 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 141 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 142 | case "$ac_option" in |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 143 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 144 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 145 | ac_prev=bindir ;; |
| 146 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 147 | bindir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 148 | |
| 149 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 150 | ac_prev=build ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 151 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 152 | build="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 153 | |
| 154 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 155 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 156 | ac_prev=cache_file ;; |
| 157 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 158 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 159 | cache_file="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 160 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 161 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 162 | ac_prev=datadir ;; |
| 163 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 164 | | --da=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 165 | datadir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 166 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 167 | -disable-* | --disable-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 168 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 169 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 170 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 171 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 172 | fi |
| 173 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 174 | eval "enable_${ac_feature}=no" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 175 | |
| 176 | -enable-* | --enable-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 177 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 178 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 179 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 180 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 181 | fi |
| 182 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 183 | case "$ac_option" in |
| 184 | *=*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 185 | *) ac_optarg=yes ;; |
| 186 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 187 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 188 | |
| 189 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 190 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 191 | | --exec | --exe | --ex) |
| 192 | ac_prev=exec_prefix ;; |
| 193 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 194 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 195 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 196 | exec_prefix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 197 | |
| 198 | -gas | --gas | --ga | --g) |
| 199 | # Obsolete; use --with-gas. |
| 200 | with_gas=yes ;; |
| 201 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 202 | -help | --help | --hel | --he) |
| 203 | # Omit some internal or obsolete options to make the list less imposing. |
| 204 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 205 | cat << EOF |
| 206 | Usage: configure [options] [host] |
| 207 | Options: [defaults in brackets after descriptions] |
| 208 | Configuration: |
| 209 | --cache-file=FILE cache test results in FILE |
| 210 | --help print this message |
| 211 | --no-create do not create output files |
| 212 | --quiet, --silent do not print \`checking...' messages |
| 213 | --version print the version of autoconf that created configure |
| 214 | Directory and file names: |
| 215 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 216 | [$ac_default_prefix] |
| 217 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 218 | [same as prefix] |
| 219 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 220 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 221 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 222 | --datadir=DIR read-only architecture-independent data in DIR |
| 223 | [PREFIX/share] |
| 224 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 225 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 226 | [PREFIX/com] |
| 227 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 228 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 229 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 230 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 231 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 232 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 233 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 234 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 235 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 236 | --program-transform-name=PROGRAM |
| 237 | run sed PROGRAM on installed program names |
| 238 | EOF |
| 239 | cat << EOF |
| 240 | Host type: |
| 241 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 242 | --host=HOST configure for HOST [guessed] |
| 243 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 244 | Features and packages: |
| 245 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 246 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 247 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 248 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 249 | --x-includes=DIR X include files are in DIR |
| 250 | --x-libraries=DIR X library files are in DIR |
| 251 | EOF |
| 252 | if test -n "$ac_help"; then |
| 253 | echo "--enable and --with options recognized:$ac_help" |
| 254 | fi |
| 255 | exit 0 ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 256 | |
| 257 | -host | --host | --hos | --ho) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 258 | ac_prev=host ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 259 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 260 | host="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 261 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 262 | -includedir | --includedir | --includedi | --included | --include \ |
| 263 | | --includ | --inclu | --incl | --inc) |
| 264 | ac_prev=includedir ;; |
| 265 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 266 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 267 | includedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 268 | |
| 269 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 270 | ac_prev=infodir ;; |
| 271 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 272 | infodir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 273 | |
| 274 | -libdir | --libdir | --libdi | --libd) |
| 275 | ac_prev=libdir ;; |
| 276 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 277 | libdir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 278 | |
| 279 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 280 | | --libexe | --libex | --libe) |
| 281 | ac_prev=libexecdir ;; |
| 282 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 283 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 284 | libexecdir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 285 | |
| 286 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 287 | | --localstate | --localstat | --localsta | --localst \ |
| 288 | | --locals | --local | --loca | --loc | --lo) |
| 289 | ac_prev=localstatedir ;; |
| 290 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 291 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 292 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 293 | localstatedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 294 | |
| 295 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 296 | ac_prev=mandir ;; |
| 297 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 298 | mandir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 299 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 300 | -nfp | --nfp | --nf) |
| 301 | # Obsolete; use --without-fp. |
| 302 | with_fp=no ;; |
| 303 | |
| 304 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 305 | | --no-cr | --no-c) |
| 306 | no_create=yes ;; |
| 307 | |
| 308 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 309 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 310 | no_recursion=yes ;; |
| 311 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 312 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 313 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 314 | | --oldin | --oldi | --old | --ol | --o) |
| 315 | ac_prev=oldincludedir ;; |
| 316 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 317 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 318 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 319 | oldincludedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 320 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 321 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 322 | ac_prev=prefix ;; |
| 323 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 324 | prefix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 325 | |
| 326 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 327 | | --program-pre | --program-pr | --program-p) |
| 328 | ac_prev=program_prefix ;; |
| 329 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 330 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 331 | program_prefix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 332 | |
| 333 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 334 | | --program-suf | --program-su | --program-s) |
| 335 | ac_prev=program_suffix ;; |
| 336 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 337 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 338 | program_suffix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 339 | |
| 340 | -program-transform-name | --program-transform-name \ |
| 341 | | --program-transform-nam | --program-transform-na \ |
| 342 | | --program-transform-n | --program-transform- \ |
| 343 | | --program-transform | --program-transfor \ |
| 344 | | --program-transfo | --program-transf \ |
| 345 | | --program-trans | --program-tran \ |
| 346 | | --progr-tra | --program-tr | --program-t) |
| 347 | ac_prev=program_transform_name ;; |
| 348 | -program-transform-name=* | --program-transform-name=* \ |
| 349 | | --program-transform-nam=* | --program-transform-na=* \ |
| 350 | | --program-transform-n=* | --program-transform-=* \ |
| 351 | | --program-transform=* | --program-transfor=* \ |
| 352 | | --program-transfo=* | --program-transf=* \ |
| 353 | | --program-trans=* | --program-tran=* \ |
| 354 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 355 | program_transform_name="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 356 | |
| 357 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 358 | | -silent | --silent | --silen | --sile | --sil) |
| 359 | silent=yes ;; |
| 360 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 361 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 362 | ac_prev=sbindir ;; |
| 363 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 364 | | --sbi=* | --sb=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 365 | sbindir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 366 | |
| 367 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 368 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 369 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 370 | | --sha | --sh) |
| 371 | ac_prev=sharedstatedir ;; |
| 372 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 373 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 374 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 375 | | --sha=* | --sh=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 376 | sharedstatedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 377 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 378 | -site | --site | --sit) |
| 379 | ac_prev=site ;; |
| 380 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 381 | site="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 382 | |
| 383 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 384 | ac_prev=srcdir ;; |
| 385 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 386 | srcdir="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 387 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 388 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 389 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 390 | ac_prev=sysconfdir ;; |
| 391 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 392 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 393 | sysconfdir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 394 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 395 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 396 | ac_prev=target ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 397 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 398 | target="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 399 | |
| 400 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 401 | verbose=yes ;; |
| 402 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 403 | -version | --version | --versio | --versi | --vers) |
| 404 | echo "configure generated by autoconf version 2.13" |
| 405 | exit 0 ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 406 | |
| 407 | -with-* | --with-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 408 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 409 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 410 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 411 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 412 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 413 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 414 | case "$ac_option" in |
| 415 | *=*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 416 | *) ac_optarg=yes ;; |
| 417 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 418 | eval "with_${ac_package}='$ac_optarg'" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 419 | |
| 420 | -without-* | --without-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 421 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 422 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 423 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 424 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 425 | fi |
| 426 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 427 | eval "with_${ac_package}=no" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 428 | |
| 429 | --x) |
| 430 | # Obsolete; use --with-x. |
| 431 | with_x=yes ;; |
| 432 | |
| 433 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 434 | | --x-incl | --x-inc | --x-in | --x-i) |
| 435 | ac_prev=x_includes ;; |
| 436 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 437 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 438 | x_includes="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 439 | |
| 440 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 441 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 442 | ac_prev=x_libraries ;; |
| 443 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 444 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 445 | x_libraries="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 446 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 447 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 448 | ;; |
| 449 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 450 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 451 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 452 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 453 | fi |
| 454 | if test "x$nonopt" != xNONE; then |
| 455 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 456 | fi |
| 457 | nonopt="$ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 458 | ;; |
| 459 | |
| 460 | esac |
| 461 | done |
| 462 | |
| 463 | if test -n "$ac_prev"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 464 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 465 | fi |
| 466 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 467 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 468 | |
| 469 | # File descriptor usage: |
| 470 | # 0 standard input |
| 471 | # 1 file creation |
| 472 | # 2 errors and warnings |
| 473 | # 3 some systems may open it to /dev/tty |
| 474 | # 4 used on the Kubota Titan |
| 475 | # 6 checking for... messages and results |
| 476 | # 5 compiler messages saved in config.log |
| 477 | if test "$silent" = yes; then |
| 478 | exec 6>/dev/null |
| 479 | else |
| 480 | exec 6>&1 |
| 481 | fi |
| 482 | exec 5>./config.log |
| 483 | |
| 484 | echo "\ |
| 485 | This file contains any messages produced by compilers while |
| 486 | running configure, to aid debugging if configure makes a mistake. |
| 487 | " 1>&5 |
| 488 | |
| 489 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 490 | # Also quote any args containing shell metacharacters. |
| 491 | ac_configure_args= |
| 492 | for ac_arg |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 493 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 494 | case "$ac_arg" in |
| 495 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 496 | | --no-cr | --no-c) ;; |
| 497 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 498 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 499 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 500 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 501 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 502 | esac |
| 503 | done |
| 504 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 505 | # NLS nuisances. |
| 506 | # Only set these to C if already set. These must not be set unconditionally |
| 507 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 508 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 509 | # Non-C LC_CTYPE values break the ctype check. |
| 510 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 511 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 512 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 513 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 514 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 515 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 516 | rm -rf conftest* confdefs.h |
| 517 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 518 | echo > confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 519 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 520 | # A filename unique to this package, relative to the directory that |
| 521 | # configure is in, which we can look for to find out if srcdir is correct. |
| 522 | ac_unique_file=version.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 523 | |
| 524 | # Find the source files, if location was not specified. |
| 525 | if test -z "$srcdir"; then |
| 526 | ac_srcdir_defaulted=yes |
| 527 | # Try the directory containing this script, then its parent. |
| 528 | ac_prog=$0 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 529 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 530 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 531 | srcdir=$ac_confdir |
| 532 | if test ! -r $srcdir/$ac_unique_file; then |
| 533 | srcdir=.. |
| 534 | fi |
| 535 | else |
| 536 | ac_srcdir_defaulted=no |
| 537 | fi |
| 538 | if test ! -r $srcdir/$ac_unique_file; then |
| 539 | if test "$ac_srcdir_defaulted" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 540 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 541 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 542 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 543 | fi |
| 544 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 545 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 546 | |
| 547 | # Prefer explicitly selected file to automatically selected ones. |
| 548 | if test -z "$CONFIG_SITE"; then |
| 549 | if test "x$prefix" != xNONE; then |
| 550 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 551 | else |
| 552 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 553 | fi |
| 554 | fi |
| 555 | for ac_site_file in $CONFIG_SITE; do |
| 556 | if test -r "$ac_site_file"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 557 | echo "loading site script $ac_site_file" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 558 | . "$ac_site_file" |
| 559 | fi |
| 560 | done |
| 561 | |
| 562 | if test -r "$cache_file"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 563 | echo "loading cache $cache_file" |
| 564 | . $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 565 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 566 | echo "creating cache $cache_file" |
| 567 | > $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 568 | fi |
| 569 | |
| 570 | ac_ext=c |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 571 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 572 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 573 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 574 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 575 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 576 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 577 | ac_exeext= |
| 578 | ac_objext=o |
| 579 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 580 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 581 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 582 | ac_n= ac_c=' |
| 583 | ' ac_t=' ' |
| 584 | else |
| 585 | ac_n=-n ac_c= ac_t= |
| 586 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 587 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 588 | ac_n= ac_c='\c' ac_t= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 589 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 590 | |
| 591 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 592 | if test "${with_gnu_ld+set}" = set; then |
| 593 | withval="$with_gnu_ld" |
| 594 | test "$withval" = no || with_gnu_ld=yes |
| 595 | else |
| 596 | with_gnu_ld=no |
| 597 | fi |
| 598 | |
| 599 | ac_prog=ld |
| 600 | if test "$GCC" = yes; then |
| 601 | # Check if gcc -print-prog-name=ld gives a path. |
| 602 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 603 | echo "configure:604: checking for ld used by GCC" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 604 | case $host in |
| 605 | *-*-mingw*) |
| 606 | # gcc leaves a trailing carriage return which upsets mingw |
| 607 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 608 | *) |
| 609 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 610 | esac |
| 611 | case $ac_prog in |
| 612 | # Accept absolute paths. |
| 613 | [\\/]* | [A-Za-z]:[\\/]*) |
| 614 | re_direlt='/[^/][^/]*/\.\./' |
| 615 | # Canonicalize the path of ld |
| 616 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 617 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 618 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 619 | done |
| 620 | test -z "$LD" && LD="$ac_prog" |
| 621 | ;; |
| 622 | "") |
| 623 | # If it fails, then pretend we aren't using GCC. |
| 624 | ac_prog=ld |
| 625 | ;; |
| 626 | *) |
| 627 | # If it is relative, then search for the first ld in PATH. |
| 628 | with_gnu_ld=unknown |
| 629 | ;; |
| 630 | esac |
| 631 | elif test "$with_gnu_ld" = yes; then |
| 632 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 633 | echo "configure:634: checking for GNU ld" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 634 | else |
| 635 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 636 | echo "configure:637: checking for non-GNU ld" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 637 | fi |
| 638 | if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then |
| 639 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 640 | else |
| 641 | if test -z "$LD"; then |
| 642 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 643 | for ac_dir in $PATH; do |
| 644 | test -z "$ac_dir" && ac_dir=. |
| 645 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 646 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 647 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 648 | # but apparently some GNU ld's only accept -v. |
| 649 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 650 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 651 | test "$with_gnu_ld" != no && break |
| 652 | else |
| 653 | test "$with_gnu_ld" != yes && break |
| 654 | fi |
| 655 | fi |
| 656 | done |
| 657 | IFS="$ac_save_ifs" |
| 658 | else |
| 659 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 660 | fi |
| 661 | fi |
| 662 | |
| 663 | LD="$acl_cv_path_LD" |
| 664 | if test -n "$LD"; then |
| 665 | echo "$ac_t""$LD" 1>&6 |
| 666 | else |
| 667 | echo "$ac_t""no" 1>&6 |
| 668 | fi |
| 669 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
| 670 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 671 | echo "configure:672: checking if the linker ($LD) is GNU ld" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 672 | if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then |
| 673 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 674 | else |
| 675 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 676 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 677 | acl_cv_prog_gnu_ld=yes |
| 678 | else |
| 679 | acl_cv_prog_gnu_ld=no |
| 680 | fi |
| 681 | fi |
| 682 | |
| 683 | echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6 |
| 684 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 685 | |
| 686 | |
| 687 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 688 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 689 | MCONFIG=./MCONFIG |
| 690 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 691 | BINARY_TYPE=bin |
| 692 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 693 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 694 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 695 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 696 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 697 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 698 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 699 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 700 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 701 | E2FSPROGS_YEAR=$YEAR |
| 702 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 703 | E2FSPROGS_YEAR=19$YEAR |
| 704 | else |
| 705 | E2FSPROGS_YEAR=20$YEAR |
| 706 | fi |
| 707 | |
| 708 | case $MONTH in |
| 709 | Jan) E2FSPROGS_MONTH="January" ;; |
| 710 | Feb) E2FSPROGS_MONTH="February" ;; |
| 711 | Mar) E2FSPROGS_MONTH="March" ;; |
| 712 | Apr) E2FSPROGS_MONTH="April" ;; |
| 713 | May) E2FSPROGS_MONTH="May" ;; |
| 714 | Jun) E2FSPROGS_MONTH="June" ;; |
| 715 | Jul) E2FSPROGS_MONTH="July" ;; |
| 716 | Aug) E2FSPROGS_MONTH="August" ;; |
| 717 | Sep) E2FSPROGS_MONTH="September" ;; |
| 718 | Oct) E2FSPROGS_MONTH="October" ;; |
| 719 | Nov) E2FSPROGS_MONTH="November" ;; |
| 720 | Dec) E2FSPROGS_MONTH="December" ;; |
| 721 | *) echo "Unknown month $MONTH??" ;; |
| 722 | esac |
| 723 | |
| 724 | unset DATE MONTH YEAR |
| 725 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 726 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 727 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 728 | |
| 729 | |
| 730 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 731 | ac_aux_dir= |
| 732 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 733 | if test -f $ac_dir/install-sh; then |
| 734 | ac_aux_dir=$ac_dir |
| 735 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 736 | break |
| 737 | elif test -f $ac_dir/install.sh; then |
| 738 | ac_aux_dir=$ac_dir |
| 739 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 740 | break |
| 741 | fi |
| 742 | done |
| 743 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 744 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 745 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 746 | ac_config_guess=$ac_aux_dir/config.guess |
| 747 | ac_config_sub=$ac_aux_dir/config.sub |
| 748 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 749 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 750 | |
| 751 | # Make sure we can run config.sub. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 752 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 753 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 754 | fi |
| 755 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 756 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 757 | echo "configure:758: checking host system type" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 758 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 759 | host_alias=$host |
| 760 | case "$host_alias" in |
| 761 | NONE) |
| 762 | case $nonopt in |
| 763 | NONE) |
| 764 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
| 765 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 766 | fi ;; |
| 767 | *) host_alias=$nonopt ;; |
| 768 | esac ;; |
| 769 | esac |
| 770 | |
| 771 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
| 772 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 773 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 774 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 775 | echo "$ac_t""$host" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 776 | |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 777 | EVMS_CMT= |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 778 | # Check whether --with-diet-libc or --without-diet-libc was given. |
| 779 | if test "${with_diet_libc+set}" = set; then |
| 780 | withval="$with_diet_libc" |
| 781 | CC="diet cc -nostdinc" |
| 782 | EVMS_CMT="#" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 783 | echo "$ac_t""CC=$CC" 1>&6 |
| 784 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 785 | # Check whether --with-cc or --without-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 786 | if test "${with_cc+set}" = set; then |
| 787 | withval="$with_cc" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 788 | echo "$ac_t""CC=$withval" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 789 | CC=$withval |
| 790 | else |
| 791 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 792 | echo "$ac_t""CC defaults to $CC" 1>&6 |
| 793 | fi |
| 794 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 795 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 796 | # Extract the first word of "gcc", so it can be a program name with args. |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 797 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 798 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 799 | echo "configure:800: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 800 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 801 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 802 | else |
| 803 | if test -n "$CC"; then |
| 804 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 805 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 806 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 807 | ac_dummy="$PATH" |
| 808 | for ac_dir in $ac_dummy; do |
| 809 | test -z "$ac_dir" && ac_dir=. |
| 810 | if test -f $ac_dir/$ac_word; then |
| 811 | ac_cv_prog_CC="gcc" |
| 812 | break |
| 813 | fi |
| 814 | done |
| 815 | IFS="$ac_save_ifs" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 816 | fi |
| 817 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 818 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 819 | if test -n "$CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 820 | echo "$ac_t""$CC" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 821 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 822 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 823 | fi |
| 824 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 825 | if test -z "$CC"; then |
| 826 | # Extract the first word of "cc", so it can be a program name with args. |
| 827 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 828 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 829 | echo "configure:830: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 830 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 831 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 832 | else |
| 833 | if test -n "$CC"; then |
| 834 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 835 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 836 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 837 | ac_prog_rejected=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 838 | ac_dummy="$PATH" |
| 839 | for ac_dir in $ac_dummy; do |
| 840 | test -z "$ac_dir" && ac_dir=. |
| 841 | if test -f $ac_dir/$ac_word; then |
| 842 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 843 | ac_prog_rejected=yes |
| 844 | continue |
| 845 | fi |
| 846 | ac_cv_prog_CC="cc" |
| 847 | break |
| 848 | fi |
| 849 | done |
| 850 | IFS="$ac_save_ifs" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 851 | if test $ac_prog_rejected = yes; then |
| 852 | # We found a bogon in the path, so make sure we never use it. |
| 853 | set dummy $ac_cv_prog_CC |
| 854 | shift |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 855 | if test $# -gt 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 856 | # We chose a different compiler from the bogus one. |
| 857 | # However, it has the same basename, so the bogon will be chosen |
| 858 | # first if we set CC to just the basename; use the full file name. |
| 859 | shift |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 860 | set dummy "$ac_dir/$ac_word" "$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 861 | shift |
| 862 | ac_cv_prog_CC="$@" |
| 863 | fi |
| 864 | fi |
| 865 | fi |
| 866 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 867 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 868 | if test -n "$CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 869 | echo "$ac_t""$CC" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 870 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 871 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 872 | fi |
| 873 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 874 | if test -z "$CC"; then |
| 875 | case "`uname -s`" in |
| 876 | *win32* | *WIN32*) |
| 877 | # Extract the first word of "cl", so it can be a program name with args. |
| 878 | set dummy cl; ac_word=$2 |
| 879 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 880 | echo "configure:881: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 881 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 882 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 883 | else |
| 884 | if test -n "$CC"; then |
| 885 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 886 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 887 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 888 | ac_dummy="$PATH" |
| 889 | for ac_dir in $ac_dummy; do |
| 890 | test -z "$ac_dir" && ac_dir=. |
| 891 | if test -f $ac_dir/$ac_word; then |
| 892 | ac_cv_prog_CC="cl" |
| 893 | break |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 894 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 895 | done |
| 896 | IFS="$ac_save_ifs" |
| 897 | fi |
| 898 | fi |
| 899 | CC="$ac_cv_prog_CC" |
| 900 | if test -n "$CC"; then |
| 901 | echo "$ac_t""$CC" 1>&6 |
| 902 | else |
| 903 | echo "$ac_t""no" 1>&6 |
| 904 | fi |
| 905 | ;; |
| 906 | esac |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 907 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 908 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 909 | fi |
| 910 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 911 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 912 | echo "configure:913: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 913 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 914 | ac_ext=c |
| 915 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 916 | ac_cpp='$CPP $CPPFLAGS' |
| 917 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 918 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 919 | cross_compiling=$ac_cv_prog_cc_cross |
| 920 | |
| 921 | cat > conftest.$ac_ext << EOF |
| 922 | |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 923 | #line 924 "configure" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 924 | #include "confdefs.h" |
| 925 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 926 | main(){return(0);} |
| 927 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 928 | if { (eval echo configure:929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 929 | ac_cv_prog_cc_works=yes |
| 930 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 931 | if (./conftest; exit) 2>/dev/null; then |
| 932 | ac_cv_prog_cc_cross=no |
| 933 | else |
| 934 | ac_cv_prog_cc_cross=yes |
| 935 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 936 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 937 | echo "configure: failed program was:" >&5 |
| 938 | cat conftest.$ac_ext >&5 |
| 939 | ac_cv_prog_cc_works=no |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 940 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 941 | rm -fr conftest* |
| 942 | ac_ext=c |
| 943 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 944 | ac_cpp='$CPP $CPPFLAGS' |
| 945 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 946 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 947 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 948 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 949 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 950 | if test $ac_cv_prog_cc_works = no; then |
| 951 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 952 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 953 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 954 | echo "configure:955: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 955 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 956 | cross_compiling=$ac_cv_prog_cc_cross |
| 957 | |
| 958 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 959 | echo "configure:960: checking whether we are using GNU C" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 960 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 961 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 962 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 963 | cat > conftest.c <<EOF |
| 964 | #ifdef __GNUC__ |
| 965 | yes; |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 966 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 967 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 968 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 969 | ac_cv_prog_gcc=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 970 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 971 | ac_cv_prog_gcc=no |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 972 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 973 | fi |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 974 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 975 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 976 | |
| 977 | if test $ac_cv_prog_gcc = yes; then |
| 978 | GCC=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 979 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 980 | GCC= |
| 981 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 982 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 983 | ac_test_CFLAGS="${CFLAGS+set}" |
| 984 | ac_save_CFLAGS="$CFLAGS" |
| 985 | CFLAGS= |
| 986 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 987 | echo "configure:988: checking whether ${CC-cc} accepts -g" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 988 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 989 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 990 | else |
| 991 | echo 'void f(){}' > conftest.c |
| 992 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 993 | ac_cv_prog_cc_g=yes |
| 994 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 995 | ac_cv_prog_cc_g=no |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 996 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 997 | rm -f conftest* |
| 998 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 999 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1000 | |
| 1001 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1002 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1003 | CFLAGS="$ac_save_CFLAGS" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1004 | elif test $ac_cv_prog_cc_g = yes; then |
| 1005 | if test "$GCC" = yes; then |
| 1006 | CFLAGS="-g -O2" |
| 1007 | else |
| 1008 | CFLAGS="-g" |
| 1009 | fi |
| 1010 | else |
| 1011 | if test "$GCC" = yes; then |
| 1012 | CFLAGS="-O2" |
| 1013 | else |
| 1014 | CFLAGS= |
| 1015 | fi |
| 1016 | fi |
| 1017 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1018 | # Check whether --with-linker or --without-linker was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1019 | if test "${with_linker+set}" = set; then |
| 1020 | withval="$with_linker" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1021 | echo "$ac_t""LD=$withval" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1022 | LD=$withval |
| 1023 | else |
| 1024 | if test -z "$LD" ; then LD=$CC; fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1025 | echo "$ac_t""LD defaults to $LD" 1>&6 |
| 1026 | fi |
| 1027 | export LD |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1028 | |
| 1029 | # Check whether --with-ccopts or --without-ccopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1030 | if test "${with_ccopts+set}" = set; then |
| 1031 | withval="$with_ccopts" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1032 | echo "$ac_t""CCOPTS is $withval" 1>&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1033 | CFLAGS=$withval |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1034 | fi |
| 1035 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1036 | echo "configure:1037: checking how to run the C preprocessor" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1037 | # On Suns, sometimes $CPP names a directory. |
| 1038 | if test -n "$CPP" && test -d "$CPP"; then |
| 1039 | CPP= |
| 1040 | fi |
| 1041 | if test -z "$CPP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1042 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1043 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1044 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1045 | # This must be in double quotes, not single quotes, because CPP may get |
| 1046 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1047 | CPP="${CC-cc} -E" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1048 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1049 | # not just through cpp. |
| 1050 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1051 | #line 1052 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1052 | #include "confdefs.h" |
| 1053 | #include <assert.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1054 | Syntax Error |
| 1055 | EOF |
| 1056 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1057 | { (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1058 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1059 | if test -z "$ac_err"; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1060 | : |
| 1061 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1062 | echo "$ac_err" >&5 |
| 1063 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1064 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1065 | rm -rf conftest* |
| 1066 | CPP="${CC-cc} -E -traditional-cpp" |
| 1067 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1068 | #line 1069 "configure" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1069 | #include "confdefs.h" |
| 1070 | #include <assert.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1071 | Syntax Error |
| 1072 | EOF |
| 1073 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1074 | { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1075 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1076 | if test -z "$ac_err"; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1077 | : |
| 1078 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1079 | echo "$ac_err" >&5 |
| 1080 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1081 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1082 | rm -rf conftest* |
| 1083 | CPP="${CC-cc} -nologo -E" |
| 1084 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1085 | #line 1086 "configure" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1086 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1087 | #include <assert.h> |
| 1088 | Syntax Error |
| 1089 | EOF |
| 1090 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1091 | { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1092 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1093 | if test -z "$ac_err"; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1094 | : |
| 1095 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1096 | echo "$ac_err" >&5 |
| 1097 | echo "configure: failed program was:" >&5 |
| 1098 | cat conftest.$ac_ext >&5 |
| 1099 | rm -rf conftest* |
| 1100 | CPP=/lib/cpp |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1101 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1102 | rm -f conftest* |
| 1103 | fi |
| 1104 | rm -f conftest* |
| 1105 | fi |
| 1106 | rm -f conftest* |
| 1107 | ac_cv_prog_CPP="$CPP" |
| 1108 | fi |
| 1109 | CPP="$ac_cv_prog_CPP" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1110 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1111 | ac_cv_prog_CPP="$CPP" |
| 1112 | fi |
| 1113 | echo "$ac_t""$CPP" 1>&6 |
| 1114 | |
| 1115 | ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'` |
| 1116 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1117 | echo "configure:1118: checking for linux/fs.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1118 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1119 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1120 | else |
| 1121 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1122 | #line 1123 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1123 | #include "confdefs.h" |
| 1124 | #include <linux/fs.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1125 | EOF |
| 1126 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1127 | { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1128 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1129 | if test -z "$ac_err"; then |
| 1130 | rm -rf conftest* |
| 1131 | eval "ac_cv_header_$ac_safe=yes" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1132 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1133 | echo "$ac_err" >&5 |
| 1134 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1135 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1136 | rm -rf conftest* |
| 1137 | eval "ac_cv_header_$ac_safe=no" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1138 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1139 | rm -f conftest* |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1140 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1141 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1142 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1143 | linux_headers=yes |
| 1144 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1145 | echo "$ac_t""no" 1>&6 |
| 1146 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1147 | fi |
| 1148 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1149 | if test "$linux_headers" != yes; then |
| 1150 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1151 | fi |
| 1152 | |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1153 | echo $ac_n "checking for additional special compiler flags""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1154 | echo "configure:1155: checking for additional special compiler flags" >&5 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1155 | if test "$GCC" = yes |
| 1156 | then |
| 1157 | case "$host_cpu" in |
| 1158 | alpha) addcflags="-mieee" ;; |
| 1159 | esac |
| 1160 | fi |
| 1161 | if test "x$addcflags" != x |
| 1162 | then |
| 1163 | echo "$ac_t""$addcflags" 1>&6 |
| 1164 | CFLAGS="$addcflags $CFLAGS" |
| 1165 | else |
| 1166 | echo "$ac_t""(none)" 1>&6 |
| 1167 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1168 | LIB_EXT=.a |
| 1169 | STATIC_LIB_EXT=.a |
| 1170 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1171 | # Check whether --with-ldopts or --without-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1172 | if test "${with_ldopts+set}" = set; then |
| 1173 | withval="$with_ldopts" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1174 | echo "$ac_t""LDFLAGS is $withval" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1175 | LDFLAGS=$withval |
| 1176 | else |
| 1177 | LDFLAGS= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1178 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1179 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1180 | # Check whether --with-root-prefix or --without-root-prefix was given. |
| 1181 | if test "${with_root_prefix+set}" = set; then |
| 1182 | withval="$with_root_prefix" |
| 1183 | root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1184 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1185 | root_prefix=NONE |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1186 | fi |
| 1187 | # Check whether --enable-compression or --disable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1188 | if test "${enable_compression+set}" = set; then |
| 1189 | enableval="$enable_compression" |
| 1190 | if test "$enableval" = "no" |
| 1191 | then |
| 1192 | echo "Disabling compression support" |
| 1193 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1194 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1195 | #define ENABLE_COMPRESSION 1 |
| 1196 | EOF |
| 1197 | |
| 1198 | echo "Enabling compression support" |
| 1199 | echo "WARNING: Compression support is experimental" |
| 1200 | fi |
| 1201 | |
| 1202 | else |
| 1203 | echo "Disabling compression support by default" |
| 1204 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1205 | fi |
| 1206 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1207 | # Check whether --enable-htree or --disable-htree was given. |
| 1208 | if test "${enable_htree+set}" = set; then |
| 1209 | enableval="$enable_htree" |
| 1210 | if test "$enableval" = "no" |
| 1211 | then |
| 1212 | HTREE_CMT=# |
| 1213 | echo "Disabling htree directory support" |
| 1214 | else |
| 1215 | HTREE_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1216 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1217 | #define ENABLE_HTREE 1 |
| 1218 | EOF |
| 1219 | |
| 1220 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1221 | fi |
| 1222 | |
| 1223 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 1224 | HTREE_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1225 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 1226 | #define ENABLE_HTREE 1 |
| 1227 | EOF |
| 1228 | |
| 1229 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1230 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1231 | fi |
| 1232 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1233 | |
| 1234 | # Check whether --enable-htree-clear or --disable-htree-clear was given. |
| 1235 | if test "${enable_htree_clear+set}" = set; then |
| 1236 | enableval="$enable_htree_clear" |
| 1237 | if test "$enableval" = "no" |
| 1238 | then |
| 1239 | HTREE_CLR_CMT=# |
| 1240 | echo "Disabling htree clearing" |
| 1241 | else |
| 1242 | HTREE_CLR_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1243 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1244 | #define ENABLE_HTREE_CLEAR 1 |
| 1245 | EOF |
| 1246 | |
| 1247 | echo "Enabling htree clearing" |
| 1248 | fi |
| 1249 | |
| 1250 | else |
| 1251 | HTREE_CLR_CMT=# |
| 1252 | echo "Disabling htree clearing by default" |
| 1253 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1254 | fi |
| 1255 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1256 | |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 1257 | # Check whether --enable-evms or --disable-evms was given. |
| 1258 | if test "${enable_evms+set}" = set; then |
| 1259 | enableval="$enable_evms" |
Theodore Ts'o | 5c70a50 | 2003-05-20 10:29:29 -0400 | [diff] [blame] | 1260 | if test "$enableval" == "no" |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 1261 | then |
| 1262 | EVMS_CMT="#" |
| 1263 | echo "Disabling EVMS plugin" |
| 1264 | fi |
| 1265 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1266 | fi |
| 1267 | |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1268 | EVMS_ABI_CODE=120 |
| 1269 | # Check whether --enable-evms-10 or --disable-evms-10 was given. |
| 1270 | if test "${enable_evms_10+set}" = set; then |
| 1271 | enableval="$enable_evms_10" |
| 1272 | if test "$enableval" != "no" |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1273 | then |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1274 | EVMS_ABI_CODE=100 |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1275 | echo "Enabling EVMS 1.0.0 ABI" |
| 1276 | fi |
| 1277 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1278 | fi |
| 1279 | |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1280 | # Check whether --enable-evms-11 or --disable-evms-11 was given. |
| 1281 | if test "${enable_evms_11+set}" = set; then |
| 1282 | enableval="$enable_evms_11" |
| 1283 | if test "$enableval" != "no" |
| 1284 | then |
| 1285 | EVMS_ABI_CODE=110 |
| 1286 | echo "Enabling EVMS 1.1.0 ABI" |
| 1287 | fi |
| 1288 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1289 | fi |
| 1290 | |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1291 | if test "$EVMS_ABI_CODE" = "120" |
| 1292 | then |
| 1293 | echo "Using EVMS 1.2.0 ABI by default" |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1294 | fi |
| 1295 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1296 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1297 | if test "${enable_elf_shlibs+set}" = set; then |
| 1298 | enableval="$enable_elf_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1299 | if test "$enableval" = "no" |
| 1300 | then |
| 1301 | ELF_CMT=# |
| 1302 | MAKEFILE_ELF=/dev/null |
| 1303 | echo "Disabling ELF shared libraries" |
| 1304 | else |
| 1305 | ELF_CMT= |
| 1306 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 1307 | case "$host_os" in |
| 1308 | solaris2.*) |
| 1309 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 1310 | ;; |
| 1311 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1312 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1313 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1314 | echo "Enabling ELF shared libraries" |
| 1315 | fi |
| 1316 | |
| 1317 | else |
| 1318 | MAKEFILE_ELF=/dev/null |
| 1319 | ELF_CMT=# |
| 1320 | echo "Disabling ELF shared libraries by default" |
| 1321 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1322 | fi |
| 1323 | |
| 1324 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1325 | |
| 1326 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1327 | if test "${enable_bsd_shlibs+set}" = set; then |
| 1328 | enableval="$enable_bsd_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1329 | if test "$enableval" = "no" |
| 1330 | then |
| 1331 | BSDLIB_CMT=# |
| 1332 | MAKEFILE_BSDLIB=/dev/null |
| 1333 | echo "Disabling BSD shared libraries" |
| 1334 | else |
| 1335 | BSDLIB_CMT= |
| 1336 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1337 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1338 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 1339 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1340 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 1341 | LIB_EXT=.dylib |
| 1342 | ;; |
| 1343 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1344 | echo "Enabling BSD shared libraries" |
| 1345 | fi |
| 1346 | |
| 1347 | else |
| 1348 | MAKEFILE_BSDLIB=/dev/null |
| 1349 | BSDLIB_CMT=# |
| 1350 | echo "Disabling BSD shared libraries by default" |
| 1351 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1352 | fi |
| 1353 | |
| 1354 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1355 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1356 | # Check whether --enable-profile or --disable-profile was given. |
| 1357 | if test "${enable_profile+set}" = set; then |
| 1358 | enableval="$enable_profile" |
| 1359 | if test "$enableval" = "no" |
| 1360 | then |
| 1361 | PROFILE_CMT=# |
| 1362 | MAKEFILE_PROFILE=/dev/null |
| 1363 | echo "Disabling profiling libraries" |
| 1364 | else |
| 1365 | PROFILE_CMT= |
| 1366 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 1367 | PROFILED_LIB_EXT=_p.a |
| 1368 | echo "Building profiling libraries" |
| 1369 | fi |
| 1370 | |
| 1371 | else |
| 1372 | PROFILE_CMT=# |
| 1373 | MAKEFILE_PROFILE=/dev/null |
| 1374 | echo "Disabling profiling libraries by default" |
| 1375 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1376 | fi |
| 1377 | |
| 1378 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1379 | |
| 1380 | # Check whether --enable-checker or --disable-checker was given. |
| 1381 | if test "${enable_checker+set}" = set; then |
| 1382 | enableval="$enable_checker" |
| 1383 | if test "$enableval" = "no" |
| 1384 | then |
| 1385 | CHECKER_CMT=# |
| 1386 | MAKEFILE_CHECKER=/dev/null |
| 1387 | echo "Disabling checker libraries" |
| 1388 | else |
| 1389 | CHECKER_CMT= |
| 1390 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 1391 | echo "Building checker libraries" |
| 1392 | fi |
| 1393 | |
| 1394 | else |
| 1395 | CHECKER_CMT=# |
| 1396 | MAKEFILE_CHECKER=/dev/null |
| 1397 | echo "Disabling checker libraries by default" |
| 1398 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1399 | fi |
| 1400 | |
| 1401 | |
| 1402 | |
| 1403 | |
| 1404 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1405 | |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 1406 | # Check whether --enable-jbd-debug or --disable-jbd-debug was given. |
| 1407 | if test "${enable_jbd_debug+set}" = set; then |
| 1408 | enableval="$enable_jbd_debug" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1409 | if test "$enableval" = "no" |
| 1410 | then |
| 1411 | echo "Disabling journal debugging" |
| 1412 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1413 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 1414 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1415 | EOF |
| 1416 | |
| 1417 | echo "Enabling journal debugging" |
| 1418 | fi |
| 1419 | |
| 1420 | else |
| 1421 | echo "Disabling journal debugging by default" |
| 1422 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1423 | fi |
| 1424 | |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 1425 | # Check whether --enable-blkid-debug or --disable-blkid-debug was given. |
| 1426 | if test "${enable_blkid_debug+set}" = set; then |
| 1427 | enableval="$enable_blkid_debug" |
| 1428 | if test "$enableval" = "no" |
| 1429 | then |
| 1430 | echo "Disabling blkid debugging" |
| 1431 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1432 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 1433 | #define CONFIG_BLKID_DEBUG 1 |
| 1434 | EOF |
| 1435 | |
| 1436 | echo "Enabling blkid debugging" |
| 1437 | fi |
| 1438 | |
| 1439 | else |
| 1440 | echo "Disabling blkid debugging by default" |
| 1441 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1442 | fi |
| 1443 | |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1444 | # Check whether --enable-testio-debug or --disable-testio-debug was given. |
| 1445 | if test "${enable_testio_debug+set}" = set; then |
| 1446 | enableval="$enable_testio_debug" |
| 1447 | if test "$enableval" = "no" |
| 1448 | then |
| 1449 | echo "Disabling testio debugging" |
| 1450 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1451 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1452 | #define CONFIG_TESTIO_DEBUG 1 |
| 1453 | EOF |
| 1454 | |
| 1455 | echo "Enabling testio debugging" |
| 1456 | fi |
| 1457 | |
| 1458 | else |
| 1459 | echo "Disabling testio debugging by default" |
| 1460 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1461 | fi |
| 1462 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1463 | # Check whether --enable-swapfs or --disable-swapfs was given. |
| 1464 | if test "${enable_swapfs+set}" = set; then |
| 1465 | enableval="$enable_swapfs" |
| 1466 | if test "$enableval" = "no" |
| 1467 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1468 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1469 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1470 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1471 | SWAPFS_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1472 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1473 | #define ENABLE_SWAPFS 1 |
| 1474 | EOF |
| 1475 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1476 | echo "Enabling swapfs support" |
| 1477 | fi |
| 1478 | |
| 1479 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1480 | SWAPFS_CMT= |
| 1481 | echo "Enabling swapfs support by default" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1482 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1483 | #define ENABLE_SWAPFS 1 |
| 1484 | EOF |
| 1485 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1486 | |
| 1487 | fi |
| 1488 | |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1489 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1490 | # Check whether --enable-debugfs or --disable-debugfs was given. |
| 1491 | if test "${enable_debugfs+set}" = set; then |
| 1492 | enableval="$enable_debugfs" |
| 1493 | if test "$enableval" = "no" |
| 1494 | then |
| 1495 | echo "Disabling debugfs support" |
| 1496 | DEBUGFS_CMT="#" |
| 1497 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1498 | DEBUGFS_CMT= |
| 1499 | echo "Enabling debugfs support" |
| 1500 | fi |
| 1501 | |
| 1502 | else |
| 1503 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1504 | DEBUGFS_CMT= |
| 1505 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1506 | fi |
| 1507 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1508 | |
| 1509 | # Check whether --enable-imager or --disable-imager was given. |
| 1510 | if test "${enable_imager+set}" = set; then |
| 1511 | enableval="$enable_imager" |
| 1512 | if test "$enableval" = "no" |
| 1513 | then |
| 1514 | echo "Disabling e2image support" |
| 1515 | IMAGER_CMT="#" |
| 1516 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1517 | IMAGER_CMT= |
| 1518 | echo "Enabling e2image support" |
| 1519 | fi |
| 1520 | |
| 1521 | else |
| 1522 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1523 | IMAGER_CMT= |
| 1524 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1525 | fi |
| 1526 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1527 | |
| 1528 | # Check whether --enable-resizer or --disable-resizer was given. |
| 1529 | if test "${enable_resizer+set}" = set; then |
| 1530 | enableval="$enable_resizer" |
| 1531 | if test "$enableval" = "no" |
| 1532 | then |
| 1533 | echo "Disabling e2resize support" |
| 1534 | RESIZER_CMT="#" |
| 1535 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1536 | RESIZER_CMT= |
| 1537 | echo "Enabling e2resize support" |
| 1538 | fi |
| 1539 | |
| 1540 | else |
| 1541 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1542 | RESIZER_CMT= |
| 1543 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1544 | fi |
| 1545 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1546 | |
| 1547 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. |
| 1548 | if test "${enable_dynamic_e2fsck+set}" = set; then |
| 1549 | enableval="$enable_dynamic_e2fsck" |
| 1550 | if test "$enableval" = "no" |
| 1551 | then |
| 1552 | E2FSCK_TYPE=static |
| 1553 | echo "Building e2fsck statically" |
| 1554 | else |
| 1555 | E2FSCK_TYPE=shared |
| 1556 | echo "Building e2fsck dynamically" |
| 1557 | fi |
| 1558 | |
| 1559 | else |
| 1560 | E2FSCK_TYPE=static |
| 1561 | echo "Building e2fsck statically by default" |
| 1562 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1563 | fi |
| 1564 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1565 | |
| 1566 | # Check whether --enable-fsck or --disable-fsck was given. |
| 1567 | if test "${enable_fsck+set}" = set; then |
| 1568 | enableval="$enable_fsck" |
| 1569 | if test "$enableval" = "no" |
| 1570 | then |
| 1571 | FSCK_PROG='' FSCK_MAN='' |
| 1572 | echo "Not building fsck wrapper" |
| 1573 | else |
| 1574 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 1575 | echo "Building fsck wrapper" |
| 1576 | fi |
| 1577 | |
| 1578 | else |
| 1579 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 1580 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1581 | FSCK_PROG='' FSCK_MAN='' |
| 1582 | echo "Not building fsck wrapper by default" |
| 1583 | ;; |
| 1584 | *) |
| 1585 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 1586 | echo "Building fsck wrapper by default" |
| 1587 | esac |
| 1588 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1589 | fi |
| 1590 | |
| 1591 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1592 | |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1593 | # Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given. |
| 1594 | if test "${enable_e2initrd_helper+set}" = set; then |
| 1595 | enableval="$enable_e2initrd_helper" |
| 1596 | if test "$enableval" = "no" |
| 1597 | then |
| 1598 | E2INITRD_PROG='' E2INITRD_MAN='' |
| 1599 | echo "Not building e2initrd helper" |
| 1600 | else |
| 1601 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 1602 | echo "Building e2initrd helper" |
| 1603 | fi |
| 1604 | |
| 1605 | else |
| 1606 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 1607 | echo "Building e2initrd helper by default" |
| 1608 | |
| 1609 | fi |
| 1610 | |
| 1611 | |
| 1612 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1613 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 1614 | |
| 1615 | # Check whether --enable-old-bitops or --disable-old-bitops was given. |
| 1616 | if test "${enable_old_bitops+set}" = set; then |
| 1617 | enableval="$enable_old_bitops" |
| 1618 | if test "$enableval" = "no" |
| 1619 | then |
| 1620 | echo "Using new (standard) bitmask operations" |
| 1621 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1622 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1623 | #define EXT2_OLD_BITOPS 1 |
| 1624 | EOF |
| 1625 | |
| 1626 | echo "Using old (native) bitmask operations" |
| 1627 | |
| 1628 | fi |
| 1629 | |
| 1630 | else |
| 1631 | echo "Using standard bitmask operations by default" |
| 1632 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1633 | fi |
| 1634 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1635 | PACKAGE=e2fsprogs |
| 1636 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1637 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1638 | #define PACKAGE "$PACKAGE" |
| 1639 | EOF |
| 1640 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1641 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1642 | #define VERSION "$VERSION" |
| 1643 | EOF |
| 1644 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1645 | |
| 1646 | |
| 1647 | |
| 1648 | |
| 1649 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1650 | echo "configure:1651: checking for inttypes.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1651 | if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then |
| 1652 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1653 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1654 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1655 | #line 1656 "configure" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1656 | #include "confdefs.h" |
| 1657 | #include <sys/types.h> |
| 1658 | #include <inttypes.h> |
| 1659 | int main() { |
| 1660 | uintmax_t i = (uintmax_t) -1; |
| 1661 | ; return 0; } |
| 1662 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1663 | if { (eval echo configure:1664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1664 | rm -rf conftest* |
| 1665 | jm_ac_cv_header_inttypes_h=yes |
| 1666 | else |
| 1667 | echo "configure: failed program was:" >&5 |
| 1668 | cat conftest.$ac_ext >&5 |
| 1669 | rm -rf conftest* |
| 1670 | jm_ac_cv_header_inttypes_h=no |
| 1671 | fi |
| 1672 | rm -f conftest* |
| 1673 | fi |
| 1674 | |
| 1675 | echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6 |
| 1676 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 1677 | cat >> confdefs.h <<EOF |
| 1678 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 1679 | EOF |
| 1680 | |
| 1681 | fi |
| 1682 | |
| 1683 | |
| 1684 | echo $ac_n "checking for stdint.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1685 | echo "configure:1686: checking for stdint.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1686 | if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then |
| 1687 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1688 | else |
| 1689 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1690 | #line 1691 "configure" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1691 | #include "confdefs.h" |
| 1692 | #include <sys/types.h> |
| 1693 | #include <stdint.h> |
| 1694 | int main() { |
| 1695 | uintmax_t i = (uintmax_t) -1; |
| 1696 | ; return 0; } |
| 1697 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1698 | if { (eval echo configure:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1699 | rm -rf conftest* |
| 1700 | jm_ac_cv_header_stdint_h=yes |
| 1701 | else |
| 1702 | echo "configure: failed program was:" >&5 |
| 1703 | cat conftest.$ac_ext >&5 |
| 1704 | rm -rf conftest* |
| 1705 | jm_ac_cv_header_stdint_h=no |
| 1706 | fi |
| 1707 | rm -f conftest* |
| 1708 | fi |
| 1709 | |
| 1710 | echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6 |
| 1711 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 1712 | cat >> confdefs.h <<EOF |
| 1713 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 1714 | EOF |
| 1715 | |
| 1716 | fi |
| 1717 | |
| 1718 | |
| 1719 | echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1720 | echo "configure:1721: checking for unsigned long long" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1721 | if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then |
| 1722 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1723 | else |
| 1724 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1725 | #line 1726 "configure" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1726 | #include "confdefs.h" |
| 1727 | unsigned long long ull = 1; int i = 63; |
| 1728 | int main() { |
| 1729 | unsigned long long ullmax = (unsigned long long) -1; |
| 1730 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 1731 | ; return 0; } |
| 1732 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1733 | if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1734 | rm -rf conftest* |
| 1735 | ac_cv_type_unsigned_long_long=yes |
| 1736 | else |
| 1737 | echo "configure: failed program was:" >&5 |
| 1738 | cat conftest.$ac_ext >&5 |
| 1739 | rm -rf conftest* |
| 1740 | ac_cv_type_unsigned_long_long=no |
| 1741 | fi |
| 1742 | rm -f conftest* |
| 1743 | fi |
| 1744 | |
| 1745 | echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6 |
| 1746 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 1747 | cat >> confdefs.h <<\EOF |
| 1748 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 1749 | EOF |
| 1750 | |
| 1751 | fi |
| 1752 | |
| 1753 | |
| 1754 | if test "X$prefix" = "XNONE"; then |
| 1755 | acl_final_prefix="$ac_default_prefix" |
| 1756 | else |
| 1757 | acl_final_prefix="$prefix" |
| 1758 | fi |
| 1759 | if test "X$exec_prefix" = "XNONE"; then |
| 1760 | acl_final_exec_prefix='${prefix}' |
| 1761 | else |
| 1762 | acl_final_exec_prefix="$exec_prefix" |
| 1763 | fi |
| 1764 | acl_save_prefix="$prefix" |
| 1765 | prefix="$acl_final_prefix" |
| 1766 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 1767 | prefix="$acl_save_prefix" |
| 1768 | |
| 1769 | |
| 1770 | echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1771 | echo "configure:1772: checking for shared library run path origin" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1772 | if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then |
| 1773 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1774 | else |
| 1775 | |
| 1776 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 1777 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 1778 | . ./conftest.sh |
| 1779 | rm -f ./conftest.sh |
| 1780 | acl_cv_rpath=done |
| 1781 | |
| 1782 | fi |
| 1783 | |
| 1784 | echo "$ac_t""$acl_cv_rpath" 1>&6 |
| 1785 | wl="$acl_cv_wl" |
| 1786 | libext="$acl_cv_libext" |
| 1787 | shlibext="$acl_cv_shlibext" |
| 1788 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 1789 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 1790 | hardcode_direct="$acl_cv_hardcode_direct" |
| 1791 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 1792 | sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" |
| 1793 | sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" |
| 1794 | # Check whether --enable-rpath or --disable-rpath was given. |
| 1795 | if test "${enable_rpath+set}" = set; then |
| 1796 | enableval="$enable_rpath" |
| 1797 | : |
| 1798 | else |
| 1799 | enable_rpath=yes |
| 1800 | fi |
| 1801 | |
| 1802 | |
| 1803 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1804 | echo "configure:1805: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1805 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 1806 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 1807 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1808 | else |
| 1809 | cat > conftestmake <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1810 | all: |
| 1811 | @echo 'ac_maketemp="${MAKE}"' |
| 1812 | EOF |
| 1813 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1814 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1815 | if test -n "$ac_maketemp"; then |
| 1816 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1817 | else |
| 1818 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1819 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1820 | rm -f conftestmake |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1821 | fi |
| 1822 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1823 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1824 | SET_MAKE= |
| 1825 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1826 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1827 | SET_MAKE="MAKE=${MAKE-make}" |
| 1828 | fi |
| 1829 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1830 | # Find a good install program. We prefer a C program (faster), |
| 1831 | # so one script is as good as another. But avoid the broken or |
| 1832 | # incompatible versions: |
| 1833 | # SysV /etc/install, /usr/sbin/install |
| 1834 | # SunOS /usr/etc/install |
| 1835 | # IRIX /sbin/install |
| 1836 | # AIX /bin/install |
| 1837 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1838 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1839 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1840 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1841 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1842 | echo "configure:1843: checking for a BSD compatible install" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1843 | if test -z "$INSTALL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1844 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1845 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1846 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1847 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1848 | for ac_dir in $PATH; do |
| 1849 | # Account for people who put trailing slashes in PATH elements. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1850 | case "$ac_dir/" in |
| 1851 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1852 | *) |
| 1853 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1854 | # Don't use installbsd from OSF since it installs stuff as root |
| 1855 | # by default. |
| 1856 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1857 | if test -f $ac_dir/$ac_prog; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1858 | if test $ac_prog = install && |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1859 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1860 | # AIX install. It has an incompatible calling convention. |
| 1861 | : |
| 1862 | else |
| 1863 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1864 | break 2 |
| 1865 | fi |
| 1866 | fi |
| 1867 | done |
| 1868 | ;; |
| 1869 | esac |
| 1870 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1871 | IFS="$ac_save_IFS" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1872 | |
| 1873 | fi |
| 1874 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1875 | INSTALL="$ac_cv_path_install" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1876 | else |
| 1877 | # As a last resort, use the slow shell script. We don't cache a |
| 1878 | # path for INSTALL within a source directory, because that will |
| 1879 | # break other packages using the cache if that directory is |
| 1880 | # removed, or if the path is relative. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1881 | INSTALL="$ac_install_sh" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1882 | fi |
| 1883 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1884 | echo "$ac_t""$INSTALL" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1885 | |
| 1886 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1887 | # It thinks the first close brace ends the variable substitution. |
| 1888 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1889 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1890 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1891 | |
| 1892 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1893 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1894 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1895 | MKINSTALLDIRS= |
| 1896 | if test -n "$ac_aux_dir"; then |
| 1897 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
| 1898 | fi |
| 1899 | if test -z "$MKINSTALLDIRS"; then |
| 1900 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 1901 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1902 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1903 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1904 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1905 | set dummy ranlib; ac_word=$2 |
| 1906 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1907 | echo "configure:1908: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1908 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1909 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1910 | else |
| 1911 | if test -n "$RANLIB"; then |
| 1912 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1913 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1914 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1915 | ac_dummy="$PATH" |
| 1916 | for ac_dir in $ac_dummy; do |
| 1917 | test -z "$ac_dir" && ac_dir=. |
| 1918 | if test -f $ac_dir/$ac_word; then |
| 1919 | ac_cv_prog_RANLIB="ranlib" |
| 1920 | break |
| 1921 | fi |
| 1922 | done |
| 1923 | IFS="$ac_save_ifs" |
| 1924 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1925 | fi |
| 1926 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1927 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1928 | if test -n "$RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1929 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1930 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1931 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1932 | fi |
| 1933 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1934 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1935 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1936 | echo "configure:1937: checking for strerror in -lcposix" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1937 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
| 1938 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1939 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1940 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1941 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1942 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1943 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1944 | #line 1945 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1945 | #include "confdefs.h" |
| 1946 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1947 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1948 | builtin and then its argument prototype would still apply. */ |
| 1949 | char strerror(); |
| 1950 | |
| 1951 | int main() { |
| 1952 | strerror() |
| 1953 | ; return 0; } |
| 1954 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1955 | if { (eval echo configure:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1956 | rm -rf conftest* |
| 1957 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1958 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1959 | echo "configure: failed program was:" >&5 |
| 1960 | cat conftest.$ac_ext >&5 |
| 1961 | rm -rf conftest* |
| 1962 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1963 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1964 | rm -f conftest* |
| 1965 | LIBS="$ac_save_LIBS" |
| 1966 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1967 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1968 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1969 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1970 | LIBS="$LIBS -lcposix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1971 | else |
| 1972 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1973 | fi |
| 1974 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1975 | |
| 1976 | |
| 1977 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1978 | echo "configure:1979: checking for ANSI C header files" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1979 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1980 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1981 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1982 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1983 | #line 1984 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1984 | #include "confdefs.h" |
| 1985 | #include <stdlib.h> |
| 1986 | #include <stdarg.h> |
| 1987 | #include <string.h> |
| 1988 | #include <float.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1989 | EOF |
| 1990 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 1991 | { (eval echo configure:1992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1992 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1993 | if test -z "$ac_err"; then |
| 1994 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1995 | ac_cv_header_stdc=yes |
| 1996 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1997 | echo "$ac_err" >&5 |
| 1998 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1999 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2000 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2001 | ac_cv_header_stdc=no |
| 2002 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2003 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2004 | |
| 2005 | if test $ac_cv_header_stdc = yes; then |
| 2006 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2007 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2008 | #line 2009 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2009 | #include "confdefs.h" |
| 2010 | #include <string.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2011 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2012 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2013 | egrep "memchr" >/dev/null 2>&1; then |
| 2014 | : |
| 2015 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2016 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2017 | ac_cv_header_stdc=no |
| 2018 | fi |
| 2019 | rm -f conftest* |
| 2020 | |
| 2021 | fi |
| 2022 | |
| 2023 | if test $ac_cv_header_stdc = yes; then |
| 2024 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2025 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2026 | #line 2027 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2027 | #include "confdefs.h" |
| 2028 | #include <stdlib.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2029 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2030 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2031 | egrep "free" >/dev/null 2>&1; then |
| 2032 | : |
| 2033 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2034 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2035 | ac_cv_header_stdc=no |
| 2036 | fi |
| 2037 | rm -f conftest* |
| 2038 | |
| 2039 | fi |
| 2040 | |
| 2041 | if test $ac_cv_header_stdc = yes; then |
| 2042 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2043 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2044 | : |
| 2045 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2046 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2047 | #line 2048 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2048 | #include "confdefs.h" |
| 2049 | #include <ctype.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2050 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2051 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2052 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2053 | int main () { int i; for (i = 0; i < 256; i++) |
| 2054 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2055 | exit (0); } |
| 2056 | |
| 2057 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2058 | if { (eval echo configure:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2059 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2060 | : |
| 2061 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2062 | echo "configure: failed program was:" >&5 |
| 2063 | cat conftest.$ac_ext >&5 |
| 2064 | rm -fr conftest* |
| 2065 | ac_cv_header_stdc=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2066 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2067 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2068 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2069 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2070 | fi |
| 2071 | fi |
| 2072 | |
| 2073 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 2074 | if test $ac_cv_header_stdc = yes; then |
| 2075 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2076 | #define STDC_HEADERS 1 |
| 2077 | EOF |
| 2078 | |
| 2079 | fi |
| 2080 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2081 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2082 | echo "configure:2083: checking for working const" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2083 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 2084 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2085 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2086 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2087 | #line 2088 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2088 | #include "confdefs.h" |
| 2089 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2090 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2091 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2092 | /* Ultrix mips cc rejects this. */ |
| 2093 | typedef int charset[2]; const charset x; |
| 2094 | /* SunOS 4.1.1 cc rejects this. */ |
| 2095 | char const *const *ccp; |
| 2096 | char **p; |
| 2097 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 2098 | struct point {int x, y;}; |
| 2099 | static struct point const zero = {0,0}; |
| 2100 | /* AIX XL C 1.02.0.0 rejects this. |
| 2101 | It does not let you subtract one const X* pointer from another in an arm |
| 2102 | of an if-expression whose if-part is not a constant expression */ |
| 2103 | const char *g = "string"; |
| 2104 | ccp = &g + (g ? g-g : 0); |
| 2105 | /* HPUX 7.0 cc rejects these. */ |
| 2106 | ++ccp; |
| 2107 | p = (char**) ccp; |
| 2108 | ccp = (char const *const *) p; |
| 2109 | { /* SCO 3.2v4 cc rejects this. */ |
| 2110 | char *t; |
| 2111 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2112 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2113 | *t++ = 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2114 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2115 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 2116 | int x[] = {25, 17}; |
| 2117 | const int *foo = &x[0]; |
| 2118 | ++foo; |
| 2119 | } |
| 2120 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 2121 | typedef const int *iptr; |
| 2122 | iptr p = 0; |
| 2123 | ++p; |
| 2124 | } |
| 2125 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 2126 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 2127 | struct s { int j; const int *ap[3]; }; |
| 2128 | struct s *b; b->j = 5; |
| 2129 | } |
| 2130 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 2131 | const int foo = 10; |
| 2132 | } |
| 2133 | |
| 2134 | ; return 0; } |
| 2135 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2136 | if { (eval echo configure:2137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2137 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2138 | ac_cv_c_const=yes |
| 2139 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2140 | echo "configure: failed program was:" >&5 |
| 2141 | cat conftest.$ac_ext >&5 |
| 2142 | rm -rf conftest* |
| 2143 | ac_cv_c_const=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2144 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2145 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2146 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2147 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2148 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 2149 | if test $ac_cv_c_const = no; then |
| 2150 | cat >> confdefs.h <<\EOF |
| 2151 | #define const |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2152 | EOF |
| 2153 | |
| 2154 | fi |
| 2155 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2156 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2157 | echo "configure:2158: checking for inline" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2158 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 2159 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2160 | else |
| 2161 | ac_cv_c_inline=no |
| 2162 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2163 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2164 | #line 2165 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2165 | #include "confdefs.h" |
| 2166 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2167 | int main() { |
| 2168 | } $ac_kw foo() { |
| 2169 | ; return 0; } |
| 2170 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2171 | if { (eval echo configure:2172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2172 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2173 | ac_cv_c_inline=$ac_kw; break |
| 2174 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2175 | echo "configure: failed program was:" >&5 |
| 2176 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2177 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2178 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2179 | done |
| 2180 | |
| 2181 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2182 | |
| 2183 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 2184 | case "$ac_cv_c_inline" in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2185 | inline | yes) ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2186 | no) cat >> confdefs.h <<\EOF |
| 2187 | #define inline |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2188 | EOF |
| 2189 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2190 | *) cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2191 | #define inline $ac_cv_c_inline |
| 2192 | EOF |
| 2193 | ;; |
| 2194 | esac |
| 2195 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2196 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2197 | echo "configure:2198: checking for off_t" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2198 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 2199 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2200 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2201 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2202 | #line 2203 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2203 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2204 | #include <sys/types.h> |
| 2205 | #if STDC_HEADERS |
| 2206 | #include <stdlib.h> |
| 2207 | #include <stddef.h> |
| 2208 | #endif |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2209 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2210 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2211 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2212 | rm -rf conftest* |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2213 | ac_cv_type_off_t=yes |
| 2214 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2215 | rm -rf conftest* |
| 2216 | ac_cv_type_off_t=no |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2217 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2218 | rm -f conftest* |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2219 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2220 | fi |
| 2221 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2222 | if test $ac_cv_type_off_t = no; then |
| 2223 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2224 | #define off_t long |
| 2225 | EOF |
| 2226 | |
| 2227 | fi |
| 2228 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2229 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2230 | echo "configure:2231: checking for size_t" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2231 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 2232 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2233 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2234 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2235 | #line 2236 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2236 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2237 | #include <sys/types.h> |
| 2238 | #if STDC_HEADERS |
| 2239 | #include <stdlib.h> |
| 2240 | #include <stddef.h> |
| 2241 | #endif |
| 2242 | EOF |
| 2243 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2244 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2245 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2246 | ac_cv_type_size_t=yes |
| 2247 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2248 | rm -rf conftest* |
| 2249 | ac_cv_type_size_t=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2250 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2251 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2252 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2253 | fi |
| 2254 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2255 | if test $ac_cv_type_size_t = no; then |
| 2256 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2257 | #define size_t unsigned |
| 2258 | EOF |
| 2259 | |
| 2260 | fi |
| 2261 | |
| 2262 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 2263 | # for constant arguments. Useless! |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2264 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2265 | echo "configure:2266: checking for working alloca.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2266 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 2267 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2268 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2269 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2270 | #line 2271 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2271 | #include "confdefs.h" |
| 2272 | #include <alloca.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2273 | int main() { |
| 2274 | char *p = alloca(2 * sizeof(int)); |
| 2275 | ; return 0; } |
| 2276 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2277 | if { (eval echo configure:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2278 | rm -rf conftest* |
| 2279 | ac_cv_header_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2280 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2281 | echo "configure: failed program was:" >&5 |
| 2282 | cat conftest.$ac_ext >&5 |
| 2283 | rm -rf conftest* |
| 2284 | ac_cv_header_alloca_h=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2285 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2286 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2287 | fi |
| 2288 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2289 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 2290 | if test $ac_cv_header_alloca_h = yes; then |
| 2291 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2292 | #define HAVE_ALLOCA_H 1 |
| 2293 | EOF |
| 2294 | |
| 2295 | fi |
| 2296 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2297 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2298 | echo "configure:2299: checking for alloca" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2299 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 2300 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2301 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2302 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2303 | #line 2304 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2304 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2305 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2306 | #ifdef __GNUC__ |
| 2307 | # define alloca __builtin_alloca |
| 2308 | #else |
| 2309 | # ifdef _MSC_VER |
| 2310 | # include <malloc.h> |
| 2311 | # define alloca _alloca |
| 2312 | # else |
| 2313 | # if HAVE_ALLOCA_H |
| 2314 | # include <alloca.h> |
| 2315 | # else |
| 2316 | # ifdef _AIX |
| 2317 | #pragma alloca |
| 2318 | # else |
| 2319 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 2320 | char *alloca (); |
| 2321 | # endif |
| 2322 | # endif |
| 2323 | # endif |
| 2324 | # endif |
| 2325 | #endif |
| 2326 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2327 | int main() { |
| 2328 | char *p = (char *) alloca(1); |
| 2329 | ; return 0; } |
| 2330 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2331 | if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2332 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2333 | ac_cv_func_alloca_works=yes |
| 2334 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2335 | echo "configure: failed program was:" >&5 |
| 2336 | cat conftest.$ac_ext >&5 |
| 2337 | rm -rf conftest* |
| 2338 | ac_cv_func_alloca_works=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2339 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2340 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2341 | fi |
| 2342 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2343 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2344 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2345 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2346 | #define HAVE_ALLOCA 1 |
| 2347 | EOF |
| 2348 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2349 | fi |
| 2350 | |
| 2351 | if test $ac_cv_func_alloca_works = no; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2352 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2353 | # that cause trouble. Some versions do not even contain alloca or |
| 2354 | # contain a buggy version. If you still want to use their alloca, |
| 2355 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 2356 | ALLOCA=alloca.${ac_objext} |
| 2357 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2358 | #define C_ALLOCA 1 |
| 2359 | EOF |
| 2360 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2361 | |
| 2362 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2363 | echo "configure:2364: checking whether alloca needs Cray hooks" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2364 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 2365 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2366 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2367 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2368 | #line 2369 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2369 | #include "confdefs.h" |
| 2370 | #if defined(CRAY) && ! defined(CRAY2) |
| 2371 | webecray |
| 2372 | #else |
| 2373 | wenotbecray |
| 2374 | #endif |
| 2375 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2376 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2377 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2378 | egrep "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2379 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2380 | ac_cv_os_cray=yes |
| 2381 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2382 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2383 | ac_cv_os_cray=no |
| 2384 | fi |
| 2385 | rm -f conftest* |
| 2386 | |
| 2387 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2388 | |
| 2389 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2390 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2391 | for ac_func in _getb67 GETB67 getb67; do |
| 2392 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2393 | echo "configure:2394: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2394 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2395 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2396 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2397 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2398 | #line 2399 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2399 | #include "confdefs.h" |
| 2400 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2401 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2402 | #include <assert.h> |
| 2403 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2404 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2405 | builtin and then its argument prototype would still apply. */ |
| 2406 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2407 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2408 | int main() { |
| 2409 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2410 | /* The GNU C library defines this for functions which it implements |
| 2411 | to always fail with ENOSYS. Some functions are actually named |
| 2412 | something starting with __ and the normal name is an alias. */ |
| 2413 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2414 | choke me |
| 2415 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2416 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2417 | #endif |
| 2418 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2419 | ; return 0; } |
| 2420 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2421 | if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2422 | rm -rf conftest* |
| 2423 | eval "ac_cv_func_$ac_func=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2424 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2425 | echo "configure: failed program was:" >&5 |
| 2426 | cat conftest.$ac_ext >&5 |
| 2427 | rm -rf conftest* |
| 2428 | eval "ac_cv_func_$ac_func=no" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2429 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2430 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2431 | fi |
| 2432 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2433 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2434 | echo "$ac_t""yes" 1>&6 |
| 2435 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2436 | #define CRAY_STACKSEG_END $ac_func |
| 2437 | EOF |
| 2438 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2439 | break |
| 2440 | else |
| 2441 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2442 | fi |
| 2443 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2444 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2445 | fi |
| 2446 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2447 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2448 | echo "configure:2449: checking stack direction for C alloca" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2449 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 2450 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2451 | else |
| 2452 | if test "$cross_compiling" = yes; then |
| 2453 | ac_cv_c_stack_direction=0 |
| 2454 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2455 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2456 | #line 2457 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2457 | #include "confdefs.h" |
| 2458 | find_stack_direction () |
| 2459 | { |
| 2460 | static char *addr = 0; |
| 2461 | auto char dummy; |
| 2462 | if (addr == 0) |
| 2463 | { |
| 2464 | addr = &dummy; |
| 2465 | return find_stack_direction (); |
| 2466 | } |
| 2467 | else |
| 2468 | return (&dummy > addr) ? 1 : -1; |
| 2469 | } |
| 2470 | main () |
| 2471 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2472 | exit (find_stack_direction() < 0); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2473 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2474 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2475 | if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2476 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2477 | ac_cv_c_stack_direction=1 |
| 2478 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2479 | echo "configure: failed program was:" >&5 |
| 2480 | cat conftest.$ac_ext >&5 |
| 2481 | rm -fr conftest* |
| 2482 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2483 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2484 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2485 | fi |
| 2486 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2487 | fi |
| 2488 | |
| 2489 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 2490 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2491 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 2492 | EOF |
| 2493 | |
| 2494 | fi |
| 2495 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2496 | for ac_hdr in unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2497 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2498 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2499 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2500 | echo "configure:2501: checking for $ac_hdr" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2501 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2502 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2503 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2504 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2505 | #line 2506 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2506 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2507 | #include <$ac_hdr> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2508 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2509 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2510 | { (eval echo configure:2511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2511 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2512 | if test -z "$ac_err"; then |
| 2513 | rm -rf conftest* |
| 2514 | eval "ac_cv_header_$ac_safe=yes" |
| 2515 | else |
| 2516 | echo "$ac_err" >&5 |
| 2517 | echo "configure: failed program was:" >&5 |
| 2518 | cat conftest.$ac_ext >&5 |
| 2519 | rm -rf conftest* |
| 2520 | eval "ac_cv_header_$ac_safe=no" |
| 2521 | fi |
| 2522 | rm -f conftest* |
| 2523 | fi |
| 2524 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2525 | echo "$ac_t""yes" 1>&6 |
| 2526 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2527 | cat >> confdefs.h <<EOF |
| 2528 | #define $ac_tr_hdr 1 |
| 2529 | EOF |
| 2530 | |
| 2531 | else |
| 2532 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2533 | fi |
| 2534 | done |
| 2535 | |
| 2536 | for ac_func in getpagesize |
| 2537 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2538 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2539 | echo "configure:2540: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2540 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2541 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2542 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2543 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2544 | #line 2545 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2545 | #include "confdefs.h" |
| 2546 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2547 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2548 | #include <assert.h> |
| 2549 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2550 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2551 | builtin and then its argument prototype would still apply. */ |
| 2552 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2553 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2554 | int main() { |
| 2555 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2556 | /* The GNU C library defines this for functions which it implements |
| 2557 | to always fail with ENOSYS. Some functions are actually named |
| 2558 | something starting with __ and the normal name is an alias. */ |
| 2559 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2560 | choke me |
| 2561 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2562 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2563 | #endif |
| 2564 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2565 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2566 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2567 | if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2568 | rm -rf conftest* |
| 2569 | eval "ac_cv_func_$ac_func=yes" |
| 2570 | else |
| 2571 | echo "configure: failed program was:" >&5 |
| 2572 | cat conftest.$ac_ext >&5 |
| 2573 | rm -rf conftest* |
| 2574 | eval "ac_cv_func_$ac_func=no" |
| 2575 | fi |
| 2576 | rm -f conftest* |
| 2577 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2578 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2579 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2580 | echo "$ac_t""yes" 1>&6 |
| 2581 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2582 | cat >> confdefs.h <<EOF |
| 2583 | #define $ac_tr_func 1 |
| 2584 | EOF |
| 2585 | |
| 2586 | else |
| 2587 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2588 | fi |
| 2589 | done |
| 2590 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2591 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2592 | echo "configure:2593: checking for working mmap" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2593 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
| 2594 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2595 | else |
| 2596 | if test "$cross_compiling" = yes; then |
| 2597 | ac_cv_func_mmap_fixed_mapped=no |
| 2598 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2599 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2600 | #line 2601 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2601 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2602 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2603 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 2604 | Here is a matrix of mmap possibilities: |
| 2605 | mmap private not fixed |
| 2606 | mmap private fixed at somewhere currently unmapped |
| 2607 | mmap private fixed at somewhere already mapped |
| 2608 | mmap shared not fixed |
| 2609 | mmap shared fixed at somewhere currently unmapped |
| 2610 | mmap shared fixed at somewhere already mapped |
| 2611 | For private mappings, we should verify that changes cannot be read() |
| 2612 | back from the file, nor mmap's back from the file at a different |
| 2613 | address. (There have been systems where private was not correctly |
| 2614 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2615 | VM page cache was not coherent with the filesystem buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2616 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 2617 | For shared mappings, we should conversely verify that changes get |
| 2618 | propogated back to all the places they're supposed to be. |
| 2619 | |
| 2620 | Grep wants private fixed already mapped. |
| 2621 | The main things grep needs to know about mmap are: |
| 2622 | * does it exist and is it safe to write into the mmap'd area |
| 2623 | * how to use it (BSD variants) */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2624 | #include <sys/types.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2625 | #include <fcntl.h> |
| 2626 | #include <sys/mman.h> |
| 2627 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2628 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2629 | #ifndef HAVE_GETPAGESIZE |
| 2630 | # ifdef HAVE_UNISTD_H |
| 2631 | # include <unistd.h> |
| 2632 | # endif |
| 2633 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2634 | /* Assume that all systems that can run configure have sys/param.h. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2635 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2636 | # define HAVE_SYS_PARAM_H 1 |
| 2637 | # endif |
| 2638 | |
| 2639 | # ifdef _SC_PAGESIZE |
| 2640 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 2641 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2642 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2643 | # include <sys/param.h> |
| 2644 | # ifdef EXEC_PAGESIZE |
| 2645 | # define getpagesize() EXEC_PAGESIZE |
| 2646 | # else /* no EXEC_PAGESIZE */ |
| 2647 | # ifdef NBPG |
| 2648 | # define getpagesize() NBPG * CLSIZE |
| 2649 | # ifndef CLSIZE |
| 2650 | # define CLSIZE 1 |
| 2651 | # endif /* no CLSIZE */ |
| 2652 | # else /* no NBPG */ |
| 2653 | # ifdef NBPC |
| 2654 | # define getpagesize() NBPC |
| 2655 | # else /* no NBPC */ |
| 2656 | # ifdef PAGESIZE |
| 2657 | # define getpagesize() PAGESIZE |
| 2658 | # endif /* PAGESIZE */ |
| 2659 | # endif /* no NBPC */ |
| 2660 | # endif /* no NBPG */ |
| 2661 | # endif /* no EXEC_PAGESIZE */ |
| 2662 | # else /* no HAVE_SYS_PARAM_H */ |
| 2663 | # define getpagesize() 8192 /* punt totally */ |
| 2664 | # endif /* no HAVE_SYS_PARAM_H */ |
| 2665 | # endif /* no _SC_PAGESIZE */ |
| 2666 | |
| 2667 | #endif /* no HAVE_GETPAGESIZE */ |
| 2668 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2669 | #ifdef __cplusplus |
| 2670 | extern "C" { void *malloc(unsigned); } |
| 2671 | #else |
| 2672 | char *malloc(); |
| 2673 | #endif |
| 2674 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2675 | int |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2676 | main() |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2677 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2678 | char *data, *data2, *data3; |
| 2679 | int i, pagesize; |
| 2680 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2681 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2682 | pagesize = getpagesize(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2683 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2684 | /* |
| 2685 | * First, make a file with some known garbage in it. |
| 2686 | */ |
| 2687 | data = malloc(pagesize); |
| 2688 | if (!data) |
| 2689 | exit(1); |
| 2690 | for (i = 0; i < pagesize; ++i) |
| 2691 | *(data + i) = rand(); |
| 2692 | umask(0); |
| 2693 | fd = creat("conftestmmap", 0600); |
| 2694 | if (fd < 0) |
| 2695 | exit(1); |
| 2696 | if (write(fd, data, pagesize) != pagesize) |
| 2697 | exit(1); |
| 2698 | close(fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2699 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2700 | /* |
| 2701 | * Next, try to mmap the file at a fixed address which |
| 2702 | * already has something else allocated at it. If we can, |
| 2703 | * also make sure that we see the same garbage. |
| 2704 | */ |
| 2705 | fd = open("conftestmmap", O_RDWR); |
| 2706 | if (fd < 0) |
| 2707 | exit(1); |
| 2708 | data2 = malloc(2 * pagesize); |
| 2709 | if (!data2) |
| 2710 | exit(1); |
| 2711 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 2712 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
| 2713 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 2714 | exit(1); |
| 2715 | for (i = 0; i < pagesize; ++i) |
| 2716 | if (*(data + i) != *(data2 + i)) |
| 2717 | exit(1); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2718 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2719 | /* |
| 2720 | * Finally, make sure that changes to the mapped area |
| 2721 | * do not percolate back to the file as seen by read(). |
| 2722 | * (This is a bug on some variants of i386 svr4.0.) |
| 2723 | */ |
| 2724 | for (i = 0; i < pagesize; ++i) |
| 2725 | *(data2 + i) = *(data2 + i) + 1; |
| 2726 | data3 = malloc(pagesize); |
| 2727 | if (!data3) |
| 2728 | exit(1); |
| 2729 | if (read(fd, data3, pagesize) != pagesize) |
| 2730 | exit(1); |
| 2731 | for (i = 0; i < pagesize; ++i) |
| 2732 | if (*(data + i) != *(data3 + i)) |
| 2733 | exit(1); |
| 2734 | close(fd); |
| 2735 | unlink("conftestmmap"); |
| 2736 | exit(0); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2737 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2738 | |
| 2739 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2740 | if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2741 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2742 | ac_cv_func_mmap_fixed_mapped=yes |
| 2743 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2744 | echo "configure: failed program was:" >&5 |
| 2745 | cat conftest.$ac_ext >&5 |
| 2746 | rm -fr conftest* |
| 2747 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2748 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2749 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2750 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2751 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2752 | fi |
| 2753 | |
| 2754 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
| 2755 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 2756 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2757 | #define HAVE_MMAP 1 |
| 2758 | EOF |
| 2759 | |
| 2760 | fi |
| 2761 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2762 | |
| 2763 | echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2764 | echo "configure:2765: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2765 | if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then |
| 2766 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2767 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2768 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2769 | #line 2770 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2770 | #include "confdefs.h" |
| 2771 | |
| 2772 | #include <features.h> |
| 2773 | #ifdef __GNU_LIBRARY__ |
| 2774 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 2775 | Lucky GNU user |
| 2776 | #endif |
| 2777 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2778 | |
| 2779 | EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2780 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2781 | egrep "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2782 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2783 | ac_cv_gnu_library_2_1=yes |
| 2784 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2785 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2786 | ac_cv_gnu_library_2_1=no |
| 2787 | fi |
| 2788 | rm -f conftest* |
| 2789 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2790 | |
| 2791 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2792 | fi |
| 2793 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2794 | echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6 |
| 2795 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2796 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2797 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2798 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2799 | |
| 2800 | |
| 2801 | echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2802 | echo "configure:2803: checking whether integer division by zero raises SIGFPE" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2803 | if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then |
| 2804 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2805 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2806 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2807 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2808 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2809 | # Guess based on the CPU. |
| 2810 | case "$host_cpu" in |
| 2811 | alpha* | i3456786 | m68k | s390*) |
| 2812 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 2813 | *) |
| 2814 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 2815 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2816 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2817 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2818 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2819 | #line 2820 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2820 | #include "confdefs.h" |
| 2821 | |
| 2822 | #include <stdlib.h> |
| 2823 | #include <signal.h> |
| 2824 | |
| 2825 | static void |
| 2826 | #ifdef __cplusplus |
| 2827 | sigfpe_handler (int sig) |
| 2828 | #else |
| 2829 | sigfpe_handler (sig) int sig; |
| 2830 | #endif |
| 2831 | { |
| 2832 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 2833 | exit (sig != SIGFPE); |
| 2834 | } |
| 2835 | |
| 2836 | int x = 1; |
| 2837 | int y = 0; |
| 2838 | int z; |
| 2839 | int nan; |
| 2840 | |
| 2841 | int main () |
| 2842 | { |
| 2843 | signal (SIGFPE, sigfpe_handler); |
| 2844 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 2845 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 2846 | signal (SIGTRAP, sigfpe_handler); |
| 2847 | #endif |
| 2848 | /* Linux/SPARC yields signal SIGILL. */ |
| 2849 | #if defined (__sparc__) && defined (__linux__) |
| 2850 | signal (SIGILL, sigfpe_handler); |
| 2851 | #endif |
| 2852 | |
| 2853 | z = x / y; |
| 2854 | nan = y / y; |
| 2855 | exit (1); |
| 2856 | } |
| 2857 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2858 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2859 | if { (eval echo configure:2860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2860 | then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2861 | gt_cv_int_divbyzero_sigfpe=yes |
| 2862 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2863 | echo "configure: failed program was:" >&5 |
| 2864 | cat conftest.$ac_ext >&5 |
| 2865 | rm -fr conftest* |
| 2866 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2867 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2868 | rm -fr conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2869 | fi |
| 2870 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2871 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2872 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2873 | |
| 2874 | echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2875 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 2876 | *yes) value=1;; |
| 2877 | *) value=0;; |
| 2878 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2879 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2880 | #define INTDIV0_RAISES_SIGFPE $value |
| 2881 | EOF |
| 2882 | |
| 2883 | |
| 2884 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2885 | |
| 2886 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2887 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2888 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2889 | test $ac_cv_type_unsigned_long_long = yes \ |
| 2890 | && ac_type='unsigned long long' \ |
| 2891 | || ac_type='unsigned long' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2892 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2893 | #define uintmax_t $ac_type |
| 2894 | EOF |
| 2895 | |
| 2896 | fi |
| 2897 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2898 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2899 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2900 | echo "configure:2901: checking for inttypes.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2901 | if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then |
| 2902 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2903 | else |
| 2904 | |
| 2905 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2906 | #line 2907 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2907 | #include "confdefs.h" |
| 2908 | #include <sys/types.h> |
| 2909 | #include <inttypes.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2910 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2911 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2912 | ; return 0; } |
| 2913 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2914 | if { (eval echo configure:2915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2915 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2916 | gt_cv_header_inttypes_h=yes |
| 2917 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2918 | echo "configure: failed program was:" >&5 |
| 2919 | cat conftest.$ac_ext >&5 |
| 2920 | rm -rf conftest* |
| 2921 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2922 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2923 | rm -f conftest* |
| 2924 | |
| 2925 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2926 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2927 | echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2928 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2929 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2930 | #define HAVE_INTTYPES_H 1 |
| 2931 | EOF |
| 2932 | |
| 2933 | fi |
| 2934 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2935 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2936 | |
| 2937 | if test $gt_cv_header_inttypes_h = yes; then |
| 2938 | echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2939 | echo "configure:2940: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2940 | if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then |
| 2941 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2942 | else |
| 2943 | |
| 2944 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2945 | #line 2946 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2946 | #include "confdefs.h" |
| 2947 | #include <inttypes.h> |
| 2948 | #ifdef PRId32 |
| 2949 | char *p = PRId32; |
| 2950 | #endif |
| 2951 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2952 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2953 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2954 | ; return 0; } |
| 2955 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 2956 | if { (eval echo configure:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2957 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2958 | gt_cv_inttypes_pri_broken=no |
| 2959 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2960 | echo "configure: failed program was:" >&5 |
| 2961 | cat conftest.$ac_ext >&5 |
| 2962 | rm -rf conftest* |
| 2963 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2964 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2965 | rm -f conftest* |
| 2966 | |
| 2967 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2968 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2969 | echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2970 | fi |
| 2971 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2972 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2973 | #define PRI_MACROS_BROKEN 1 |
| 2974 | EOF |
| 2975 | |
| 2976 | fi |
| 2977 | |
| 2978 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2979 | |
| 2980 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2981 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2982 | |
| 2983 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2984 | use_additional=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2985 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2986 | acl_save_prefix="$prefix" |
| 2987 | prefix="$acl_final_prefix" |
| 2988 | acl_save_exec_prefix="$exec_prefix" |
| 2989 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2990 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2991 | eval additional_includedir=\"$includedir\" |
| 2992 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2993 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2994 | exec_prefix="$acl_save_exec_prefix" |
| 2995 | prefix="$acl_save_prefix" |
| 2996 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2997 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2998 | if test "${with_libiconv_prefix+set}" = set; then |
| 2999 | withval="$with_libiconv_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3000 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3001 | if test "X$withval" = "Xno"; then |
| 3002 | use_additional=no |
| 3003 | else |
| 3004 | if test "X$withval" = "X"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3005 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3006 | acl_save_prefix="$prefix" |
| 3007 | prefix="$acl_final_prefix" |
| 3008 | acl_save_exec_prefix="$exec_prefix" |
| 3009 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3010 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3011 | eval additional_includedir=\"$includedir\" |
| 3012 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3013 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3014 | exec_prefix="$acl_save_exec_prefix" |
| 3015 | prefix="$acl_save_prefix" |
| 3016 | |
| 3017 | else |
| 3018 | additional_includedir="$withval/include" |
| 3019 | additional_libdir="$withval/lib" |
| 3020 | fi |
| 3021 | fi |
| 3022 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3023 | fi |
| 3024 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3025 | LIBICONV= |
| 3026 | LTLIBICONV= |
| 3027 | INCICONV= |
| 3028 | rpathdirs= |
| 3029 | ltrpathdirs= |
| 3030 | names_already_handled= |
| 3031 | names_next_round='iconv ' |
| 3032 | while test -n "$names_next_round"; do |
| 3033 | names_this_round="$names_next_round" |
| 3034 | names_next_round= |
| 3035 | for name in $names_this_round; do |
| 3036 | already_handled= |
| 3037 | for n in $names_already_handled; do |
| 3038 | if test "$n" = "$name"; then |
| 3039 | already_handled=yes |
| 3040 | break |
| 3041 | fi |
| 3042 | done |
| 3043 | if test -z "$already_handled"; then |
| 3044 | names_already_handled="$names_already_handled $name" |
| 3045 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 3046 | eval value=\"\$HAVE_LIB$uppername\" |
| 3047 | if test -n "$value"; then |
| 3048 | if test "$value" = yes; then |
| 3049 | eval value=\"\$LIB$uppername\" |
| 3050 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 3051 | eval value=\"\$LTLIB$uppername\" |
| 3052 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 3053 | else |
| 3054 | : |
| 3055 | fi |
| 3056 | else |
| 3057 | found_dir= |
| 3058 | found_la= |
| 3059 | found_so= |
| 3060 | found_a= |
| 3061 | if test $use_additional = yes; then |
| 3062 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 3063 | found_dir="$additional_libdir" |
| 3064 | found_so="$additional_libdir/lib$name.$shlibext" |
| 3065 | if test -f "$additional_libdir/lib$name.la"; then |
| 3066 | found_la="$additional_libdir/lib$name.la" |
| 3067 | fi |
| 3068 | else |
| 3069 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 3070 | found_dir="$additional_libdir" |
| 3071 | found_a="$additional_libdir/lib$name.$libext" |
| 3072 | if test -f "$additional_libdir/lib$name.la"; then |
| 3073 | found_la="$additional_libdir/lib$name.la" |
| 3074 | fi |
| 3075 | fi |
| 3076 | fi |
| 3077 | fi |
| 3078 | if test "X$found_dir" = "X"; then |
| 3079 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3080 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3081 | acl_save_prefix="$prefix" |
| 3082 | prefix="$acl_final_prefix" |
| 3083 | acl_save_exec_prefix="$exec_prefix" |
| 3084 | exec_prefix="$acl_final_exec_prefix" |
| 3085 | eval x=\"$x\" |
| 3086 | exec_prefix="$acl_save_exec_prefix" |
| 3087 | prefix="$acl_save_prefix" |
| 3088 | |
| 3089 | case "$x" in |
| 3090 | -L*) |
| 3091 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 3092 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 3093 | found_dir="$dir" |
| 3094 | found_so="$dir/lib$name.$shlibext" |
| 3095 | if test -f "$dir/lib$name.la"; then |
| 3096 | found_la="$dir/lib$name.la" |
| 3097 | fi |
| 3098 | else |
| 3099 | if test -f "$dir/lib$name.$libext"; then |
| 3100 | found_dir="$dir" |
| 3101 | found_a="$dir/lib$name.$libext" |
| 3102 | if test -f "$dir/lib$name.la"; then |
| 3103 | found_la="$dir/lib$name.la" |
| 3104 | fi |
| 3105 | fi |
| 3106 | fi |
| 3107 | ;; |
| 3108 | esac |
| 3109 | if test "X$found_dir" != "X"; then |
| 3110 | break |
| 3111 | fi |
| 3112 | done |
| 3113 | fi |
| 3114 | if test "X$found_dir" != "X"; then |
| 3115 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 3116 | if test "X$found_so" != "X"; then |
| 3117 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 3118 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3119 | else |
| 3120 | haveit= |
| 3121 | for x in $ltrpathdirs; do |
| 3122 | if test "X$x" = "X$found_dir"; then |
| 3123 | haveit=yes |
| 3124 | break |
| 3125 | fi |
| 3126 | done |
| 3127 | if test -z "$haveit"; then |
| 3128 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 3129 | fi |
| 3130 | if test "$hardcode_direct" = yes; then |
| 3131 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3132 | else |
| 3133 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 3134 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3135 | haveit= |
| 3136 | for x in $rpathdirs; do |
| 3137 | if test "X$x" = "X$found_dir"; then |
| 3138 | haveit=yes |
| 3139 | break |
| 3140 | fi |
| 3141 | done |
| 3142 | if test -z "$haveit"; then |
| 3143 | rpathdirs="$rpathdirs $found_dir" |
| 3144 | fi |
| 3145 | else |
| 3146 | haveit= |
| 3147 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3148 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3149 | acl_save_prefix="$prefix" |
| 3150 | prefix="$acl_final_prefix" |
| 3151 | acl_save_exec_prefix="$exec_prefix" |
| 3152 | exec_prefix="$acl_final_exec_prefix" |
| 3153 | eval x=\"$x\" |
| 3154 | exec_prefix="$acl_save_exec_prefix" |
| 3155 | prefix="$acl_save_prefix" |
| 3156 | |
| 3157 | if test "X$x" = "X-L$found_dir"; then |
| 3158 | haveit=yes |
| 3159 | break |
| 3160 | fi |
| 3161 | done |
| 3162 | if test -z "$haveit"; then |
| 3163 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 3164 | fi |
| 3165 | if test "$hardcode_minus_L" != no; then |
| 3166 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3167 | else |
| 3168 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 3169 | fi |
| 3170 | fi |
| 3171 | fi |
| 3172 | fi |
| 3173 | else |
| 3174 | if test "X$found_a" != "X"; then |
| 3175 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 3176 | else |
| 3177 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 3178 | fi |
| 3179 | fi |
| 3180 | additional_includedir= |
| 3181 | case "$found_dir" in |
| 3182 | */lib | */lib/) |
| 3183 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 3184 | additional_includedir="$basedir/include" |
| 3185 | ;; |
| 3186 | esac |
| 3187 | if test "X$additional_includedir" != "X"; then |
| 3188 | if test "X$additional_includedir" != "X/usr/include"; then |
| 3189 | haveit= |
| 3190 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 3191 | if test -n "$GCC"; then |
| 3192 | case $host_os in |
| 3193 | linux*) haveit=yes;; |
| 3194 | esac |
| 3195 | fi |
| 3196 | fi |
| 3197 | if test -z "$haveit"; then |
| 3198 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3199 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3200 | acl_save_prefix="$prefix" |
| 3201 | prefix="$acl_final_prefix" |
| 3202 | acl_save_exec_prefix="$exec_prefix" |
| 3203 | exec_prefix="$acl_final_exec_prefix" |
| 3204 | eval x=\"$x\" |
| 3205 | exec_prefix="$acl_save_exec_prefix" |
| 3206 | prefix="$acl_save_prefix" |
| 3207 | |
| 3208 | if test "X$x" = "X-I$additional_includedir"; then |
| 3209 | haveit=yes |
| 3210 | break |
| 3211 | fi |
| 3212 | done |
| 3213 | if test -z "$haveit"; then |
| 3214 | if test -d "$additional_includedir"; then |
| 3215 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 3216 | fi |
| 3217 | fi |
| 3218 | fi |
| 3219 | fi |
| 3220 | fi |
| 3221 | if test -n "$found_la"; then |
| 3222 | save_libdir="$libdir" |
| 3223 | case "$found_la" in |
| 3224 | */* | *\\*) . "$found_la" ;; |
| 3225 | *) . "./$found_la" ;; |
| 3226 | esac |
| 3227 | libdir="$save_libdir" |
| 3228 | for dep in $dependency_libs; do |
| 3229 | case "$dep" in |
| 3230 | -L*) |
| 3231 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 3232 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 3233 | haveit= |
| 3234 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 3235 | if test -n "$GCC"; then |
| 3236 | case $host_os in |
| 3237 | linux*) haveit=yes;; |
| 3238 | esac |
| 3239 | fi |
| 3240 | fi |
| 3241 | if test -z "$haveit"; then |
| 3242 | haveit= |
| 3243 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3244 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3245 | acl_save_prefix="$prefix" |
| 3246 | prefix="$acl_final_prefix" |
| 3247 | acl_save_exec_prefix="$exec_prefix" |
| 3248 | exec_prefix="$acl_final_exec_prefix" |
| 3249 | eval x=\"$x\" |
| 3250 | exec_prefix="$acl_save_exec_prefix" |
| 3251 | prefix="$acl_save_prefix" |
| 3252 | |
| 3253 | if test "X$x" = "X-L$additional_libdir"; then |
| 3254 | haveit=yes |
| 3255 | break |
| 3256 | fi |
| 3257 | done |
| 3258 | if test -z "$haveit"; then |
| 3259 | if test -d "$additional_libdir"; then |
| 3260 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 3261 | fi |
| 3262 | fi |
| 3263 | haveit= |
| 3264 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3265 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3266 | acl_save_prefix="$prefix" |
| 3267 | prefix="$acl_final_prefix" |
| 3268 | acl_save_exec_prefix="$exec_prefix" |
| 3269 | exec_prefix="$acl_final_exec_prefix" |
| 3270 | eval x=\"$x\" |
| 3271 | exec_prefix="$acl_save_exec_prefix" |
| 3272 | prefix="$acl_save_prefix" |
| 3273 | |
| 3274 | if test "X$x" = "X-L$additional_libdir"; then |
| 3275 | haveit=yes |
| 3276 | break |
| 3277 | fi |
| 3278 | done |
| 3279 | if test -z "$haveit"; then |
| 3280 | if test -d "$additional_libdir"; then |
| 3281 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 3282 | fi |
| 3283 | fi |
| 3284 | fi |
| 3285 | fi |
| 3286 | ;; |
| 3287 | -R*) |
| 3288 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 3289 | if test "$enable_rpath" != no; then |
| 3290 | haveit= |
| 3291 | for x in $rpathdirs; do |
| 3292 | if test "X$x" = "X$dir"; then |
| 3293 | haveit=yes |
| 3294 | break |
| 3295 | fi |
| 3296 | done |
| 3297 | if test -z "$haveit"; then |
| 3298 | rpathdirs="$rpathdirs $dir" |
| 3299 | fi |
| 3300 | haveit= |
| 3301 | for x in $ltrpathdirs; do |
| 3302 | if test "X$x" = "X$dir"; then |
| 3303 | haveit=yes |
| 3304 | break |
| 3305 | fi |
| 3306 | done |
| 3307 | if test -z "$haveit"; then |
| 3308 | ltrpathdirs="$ltrpathdirs $dir" |
| 3309 | fi |
| 3310 | fi |
| 3311 | ;; |
| 3312 | -l*) |
| 3313 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 3314 | ;; |
| 3315 | *.la) |
| 3316 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 3317 | ;; |
| 3318 | *) |
| 3319 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 3320 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 3321 | ;; |
| 3322 | esac |
| 3323 | done |
| 3324 | fi |
| 3325 | else |
| 3326 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 3327 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 3328 | fi |
| 3329 | fi |
| 3330 | fi |
| 3331 | done |
| 3332 | done |
| 3333 | if test "X$rpathdirs" != "X"; then |
| 3334 | if test -n "$hardcode_libdir_separator"; then |
| 3335 | alldirs= |
| 3336 | for found_dir in $rpathdirs; do |
| 3337 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 3338 | done |
| 3339 | acl_save_libdir="$libdir" |
| 3340 | libdir="$alldirs" |
| 3341 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 3342 | libdir="$acl_save_libdir" |
| 3343 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 3344 | else |
| 3345 | for found_dir in $rpathdirs; do |
| 3346 | acl_save_libdir="$libdir" |
| 3347 | libdir="$found_dir" |
| 3348 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 3349 | libdir="$acl_save_libdir" |
| 3350 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 3351 | done |
| 3352 | fi |
| 3353 | fi |
| 3354 | if test "X$ltrpathdirs" != "X"; then |
| 3355 | for found_dir in $ltrpathdirs; do |
| 3356 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 3357 | done |
| 3358 | fi |
| 3359 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3360 | |
| 3361 | |
| 3362 | |
| 3363 | |
| 3364 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 3365 | set dummy msgfmt; ac_word=$2 |
| 3366 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3367 | echo "configure:3368: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3368 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 3369 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3370 | else |
| 3371 | case "$MSGFMT" in |
| 3372 | /*) |
| 3373 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 3374 | ;; |
| 3375 | *) |
| 3376 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3377 | for ac_dir in $PATH; do |
| 3378 | test -z "$ac_dir" && ac_dir=. |
| 3379 | if test -f $ac_dir/$ac_word; then |
| 3380 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 3381 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3382 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 3383 | break |
| 3384 | fi |
| 3385 | fi |
| 3386 | done |
| 3387 | IFS="$ac_save_ifs" |
| 3388 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 3389 | ;; |
| 3390 | esac |
| 3391 | fi |
| 3392 | MSGFMT="$ac_cv_path_MSGFMT" |
| 3393 | if test "$MSGFMT" != ":"; then |
| 3394 | echo "$ac_t""$MSGFMT" 1>&6 |
| 3395 | else |
| 3396 | echo "$ac_t""no" 1>&6 |
| 3397 | fi |
| 3398 | |
| 3399 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 3400 | set dummy gmsgfmt; ac_word=$2 |
| 3401 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3402 | echo "configure:3403: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3403 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 3404 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3405 | else |
| 3406 | case "$GMSGFMT" in |
| 3407 | /*) |
| 3408 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 3409 | ;; |
| 3410 | ?:/*) |
| 3411 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 3412 | ;; |
| 3413 | *) |
| 3414 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3415 | ac_dummy="$PATH" |
| 3416 | for ac_dir in $ac_dummy; do |
| 3417 | test -z "$ac_dir" && ac_dir=. |
| 3418 | if test -f $ac_dir/$ac_word; then |
| 3419 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 3420 | break |
| 3421 | fi |
| 3422 | done |
| 3423 | IFS="$ac_save_ifs" |
| 3424 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 3425 | ;; |
| 3426 | esac |
| 3427 | fi |
| 3428 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 3429 | if test -n "$GMSGFMT"; then |
| 3430 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 3431 | else |
| 3432 | echo "$ac_t""no" 1>&6 |
| 3433 | fi |
| 3434 | |
| 3435 | |
| 3436 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 3437 | set dummy xgettext; ac_word=$2 |
| 3438 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3439 | echo "configure:3440: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3440 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 3441 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3442 | else |
| 3443 | case "$XGETTEXT" in |
| 3444 | /*) |
| 3445 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 3446 | ;; |
| 3447 | *) |
| 3448 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3449 | for ac_dir in $PATH; do |
| 3450 | test -z "$ac_dir" && ac_dir=. |
| 3451 | if test -f $ac_dir/$ac_word; then |
| 3452 | if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 3453 | (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3454 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 3455 | break |
| 3456 | fi |
| 3457 | fi |
| 3458 | done |
| 3459 | IFS="$ac_save_ifs" |
| 3460 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 3461 | ;; |
| 3462 | esac |
| 3463 | fi |
| 3464 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 3465 | if test "$XGETTEXT" != ":"; then |
| 3466 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 3467 | else |
| 3468 | echo "$ac_t""no" 1>&6 |
| 3469 | fi |
| 3470 | |
| 3471 | rm -f messages.po |
| 3472 | |
| 3473 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 3474 | set dummy msgmerge; ac_word=$2 |
| 3475 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3476 | echo "configure:3477: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3477 | if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then |
| 3478 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3479 | else |
| 3480 | case "$MSGMERGE" in |
| 3481 | /*) |
| 3482 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 3483 | ;; |
| 3484 | *) |
| 3485 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3486 | for ac_dir in $PATH; do |
| 3487 | test -z "$ac_dir" && ac_dir=. |
| 3488 | if test -f $ac_dir/$ac_word; then |
| 3489 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 3490 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word" |
| 3491 | break |
| 3492 | fi |
| 3493 | fi |
| 3494 | done |
| 3495 | IFS="$ac_save_ifs" |
| 3496 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 3497 | ;; |
| 3498 | esac |
| 3499 | fi |
| 3500 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 3501 | if test "$MSGMERGE" != ":"; then |
| 3502 | echo "$ac_t""$MSGMERGE" 1>&6 |
| 3503 | else |
| 3504 | echo "$ac_t""no" 1>&6 |
| 3505 | fi |
| 3506 | |
| 3507 | |
| 3508 | if test "$GMSGFMT" != ":"; then |
| 3509 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 3510 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3511 | : ; |
| 3512 | else |
| 3513 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 3514 | echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6 |
| 3515 | GMSGFMT=":" |
| 3516 | fi |
| 3517 | fi |
| 3518 | |
| 3519 | if test "$XGETTEXT" != ":"; then |
| 3520 | if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 3521 | (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3522 | : ; |
| 3523 | else |
| 3524 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 |
| 3525 | XGETTEXT=":" |
| 3526 | fi |
| 3527 | rm -f messages.po |
| 3528 | fi |
| 3529 | |
| 3530 | |
| 3531 | |
| 3532 | |
| 3533 | |
| 3534 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3535 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3536 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3537 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3538 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3539 | echo "configure:3540: checking for $ac_hdr" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3540 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3541 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3542 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3543 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3544 | #line 3545 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3545 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3546 | #include <$ac_hdr> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3547 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3548 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3549 | { (eval echo configure:3550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3550 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3551 | if test -z "$ac_err"; then |
| 3552 | rm -rf conftest* |
| 3553 | eval "ac_cv_header_$ac_safe=yes" |
| 3554 | else |
| 3555 | echo "$ac_err" >&5 |
| 3556 | echo "configure: failed program was:" >&5 |
| 3557 | cat conftest.$ac_ext >&5 |
| 3558 | rm -rf conftest* |
| 3559 | eval "ac_cv_header_$ac_safe=no" |
| 3560 | fi |
| 3561 | rm -f conftest* |
| 3562 | fi |
| 3563 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3564 | echo "$ac_t""yes" 1>&6 |
| 3565 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3566 | cat >> confdefs.h <<EOF |
| 3567 | #define $ac_tr_hdr 1 |
| 3568 | EOF |
| 3569 | |
| 3570 | else |
| 3571 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3572 | fi |
| 3573 | done |
| 3574 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3575 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3576 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ |
| 3577 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3578 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3579 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3580 | echo "configure:3581: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3581 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3582 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3583 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3584 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3585 | #line 3586 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3586 | #include "confdefs.h" |
| 3587 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3588 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3589 | #include <assert.h> |
| 3590 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3591 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3592 | builtin and then its argument prototype would still apply. */ |
| 3593 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3594 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3595 | int main() { |
| 3596 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3597 | /* The GNU C library defines this for functions which it implements |
| 3598 | to always fail with ENOSYS. Some functions are actually named |
| 3599 | something starting with __ and the normal name is an alias. */ |
| 3600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3601 | choke me |
| 3602 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3603 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3604 | #endif |
| 3605 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3606 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3607 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3608 | if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3609 | rm -rf conftest* |
| 3610 | eval "ac_cv_func_$ac_func=yes" |
| 3611 | else |
| 3612 | echo "configure: failed program was:" >&5 |
| 3613 | cat conftest.$ac_ext >&5 |
| 3614 | rm -rf conftest* |
| 3615 | eval "ac_cv_func_$ac_func=no" |
| 3616 | fi |
| 3617 | rm -f conftest* |
| 3618 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3619 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3620 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3621 | echo "$ac_t""yes" 1>&6 |
| 3622 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3623 | cat >> confdefs.h <<EOF |
| 3624 | #define $ac_tr_func 1 |
| 3625 | EOF |
| 3626 | |
| 3627 | else |
| 3628 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3629 | fi |
| 3630 | done |
| 3631 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3632 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3633 | |
| 3634 | |
| 3635 | |
| 3636 | |
| 3637 | |
| 3638 | am_save_CPPFLAGS="$CPPFLAGS" |
| 3639 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3640 | for element in $INCICONV; do |
| 3641 | haveit= |
| 3642 | for x in $CPPFLAGS; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3643 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3644 | acl_save_prefix="$prefix" |
| 3645 | prefix="$acl_final_prefix" |
| 3646 | acl_save_exec_prefix="$exec_prefix" |
| 3647 | exec_prefix="$acl_final_exec_prefix" |
| 3648 | eval x=\"$x\" |
| 3649 | exec_prefix="$acl_save_exec_prefix" |
| 3650 | prefix="$acl_save_prefix" |
| 3651 | |
| 3652 | if test "X$x" = "X$element"; then |
| 3653 | haveit=yes |
| 3654 | break |
| 3655 | fi |
| 3656 | done |
| 3657 | if test -z "$haveit"; then |
| 3658 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 3659 | fi |
| 3660 | done |
| 3661 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3662 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3663 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3664 | echo "configure:3665: checking for iconv" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3665 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
| 3666 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3667 | else |
| 3668 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3669 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 3670 | am_cv_lib_iconv=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3671 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3672 | #line 3673 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3673 | #include "confdefs.h" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3674 | #include <stdlib.h> |
| 3675 | #include <iconv.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3676 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3677 | iconv_t cd = iconv_open("",""); |
| 3678 | iconv(cd,NULL,NULL,NULL,NULL); |
| 3679 | iconv_close(cd); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3680 | ; return 0; } |
| 3681 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3682 | if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3683 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3684 | am_cv_func_iconv=yes |
| 3685 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3686 | echo "configure: failed program was:" >&5 |
| 3687 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3688 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3689 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3690 | if test "$am_cv_func_iconv" != yes; then |
| 3691 | am_save_LIBS="$LIBS" |
| 3692 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3693 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3694 | #line 3695 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3695 | #include "confdefs.h" |
| 3696 | #include <stdlib.h> |
| 3697 | #include <iconv.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3698 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3699 | iconv_t cd = iconv_open("",""); |
| 3700 | iconv(cd,NULL,NULL,NULL,NULL); |
| 3701 | iconv_close(cd); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3702 | ; return 0; } |
| 3703 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3704 | if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3705 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3706 | am_cv_lib_iconv=yes |
| 3707 | am_cv_func_iconv=yes |
| 3708 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3709 | echo "configure: failed program was:" >&5 |
| 3710 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3711 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3712 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3713 | LIBS="$am_save_LIBS" |
| 3714 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3715 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3716 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3717 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3718 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
| 3719 | if test "$am_cv_func_iconv" = yes; then |
| 3720 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3721 | #define HAVE_ICONV 1 |
| 3722 | EOF |
| 3723 | |
| 3724 | fi |
| 3725 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3726 | echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3727 | echo "configure:3728: checking how to link with libiconv" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3728 | echo "$ac_t""$LIBICONV" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3729 | else |
| 3730 | CPPFLAGS="$am_save_CPPFLAGS" |
| 3731 | LIBICONV= |
| 3732 | LTLIBICONV= |
| 3733 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3734 | |
| 3735 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3736 | |
| 3737 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3738 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3739 | echo "configure:3740: checking for iconv declaration" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3740 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then |
| 3741 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3742 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3743 | |
| 3744 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3745 | #line 3746 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3746 | #include "confdefs.h" |
| 3747 | |
| 3748 | #include <stdlib.h> |
| 3749 | #include <iconv.h> |
| 3750 | extern |
| 3751 | #ifdef __cplusplus |
| 3752 | "C" |
| 3753 | #endif |
| 3754 | #if defined(__STDC__) || defined(__cplusplus) |
| 3755 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 3756 | #else |
| 3757 | size_t iconv(); |
| 3758 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3759 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3760 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3761 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3762 | ; return 0; } |
| 3763 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3764 | if { (eval echo configure:3765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3765 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3766 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3767 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3768 | echo "configure: failed program was:" >&5 |
| 3769 | cat conftest.$ac_ext >&5 |
| 3770 | rm -rf conftest* |
| 3771 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3772 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3773 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3774 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3775 | fi |
| 3776 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3777 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3778 | echo "$ac_t""${ac_t:- |
| 3779 | }$am_cv_proto_iconv" 1>&6 |
| 3780 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3781 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3782 | EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3783 | |
| 3784 | fi |
| 3785 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3786 | |
| 3787 | echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3788 | echo "configure:3789: checking for nl_langinfo and CODESET" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3789 | if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then |
| 3790 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3791 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3792 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3793 | #line 3794 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3794 | #include "confdefs.h" |
| 3795 | #include <langinfo.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3796 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3797 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3798 | ; return 0; } |
| 3799 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3800 | if { (eval echo configure:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3801 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3802 | am_cv_langinfo_codeset=yes |
| 3803 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3804 | echo "configure: failed program was:" >&5 |
| 3805 | cat conftest.$ac_ext >&5 |
| 3806 | rm -rf conftest* |
| 3807 | am_cv_langinfo_codeset=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3808 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3809 | rm -f conftest* |
| 3810 | |
| 3811 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3812 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3813 | echo "$ac_t""$am_cv_langinfo_codeset" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3814 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3815 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3816 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3817 | EOF |
| 3818 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3819 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3820 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3821 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3822 | |
| 3823 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3824 | echo "configure:3825: checking for LC_MESSAGES" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3825 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
| 3826 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3827 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3828 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3829 | #line 3830 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3830 | #include "confdefs.h" |
| 3831 | #include <locale.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3832 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3833 | return LC_MESSAGES |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3834 | ; return 0; } |
| 3835 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3836 | if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3837 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3838 | am_cv_val_LC_MESSAGES=yes |
| 3839 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3840 | echo "configure: failed program was:" >&5 |
| 3841 | cat conftest.$ac_ext >&5 |
| 3842 | rm -rf conftest* |
| 3843 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3844 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3845 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3846 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3847 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3848 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
| 3849 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 3850 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3851 | #define HAVE_LC_MESSAGES 1 |
| 3852 | EOF |
| 3853 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3854 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3855 | |
| 3856 | fi |
| 3857 | |
| 3858 | for ac_prog in bison |
| 3859 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3860 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3861 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3862 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3863 | echo "configure:3864: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3864 | if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then |
| 3865 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3866 | else |
| 3867 | if test -n "$INTLBISON"; then |
| 3868 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 3869 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3870 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3871 | ac_dummy="$PATH" |
| 3872 | for ac_dir in $ac_dummy; do |
| 3873 | test -z "$ac_dir" && ac_dir=. |
| 3874 | if test -f $ac_dir/$ac_word; then |
| 3875 | ac_cv_prog_INTLBISON="$ac_prog" |
| 3876 | break |
| 3877 | fi |
| 3878 | done |
| 3879 | IFS="$ac_save_ifs" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3880 | fi |
| 3881 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3882 | INTLBISON="$ac_cv_prog_INTLBISON" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3883 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3884 | echo "$ac_t""$INTLBISON" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3885 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3886 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3887 | fi |
| 3888 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3889 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3890 | done |
| 3891 | |
| 3892 | if test -z "$INTLBISON"; then |
| 3893 | ac_verc_fail=yes |
| 3894 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3895 | echo $ac_n "checking version of bison""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3896 | echo "configure:3897: checking version of bison" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3897 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 3898 | case $ac_prog_version in |
| 3899 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 3900 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 3901 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 3902 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 3903 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3904 | echo "$ac_t""$ac_prog_version" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3905 | fi |
| 3906 | if test $ac_verc_fail = yes; then |
| 3907 | INTLBISON=: |
| 3908 | fi |
| 3909 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3910 | |
| 3911 | |
| 3912 | |
| 3913 | |
| 3914 | |
| 3915 | |
| 3916 | |
| 3917 | |
| 3918 | |
| 3919 | |
| 3920 | |
| 3921 | |
| 3922 | |
| 3923 | |
| 3924 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3925 | echo "configure:3926: checking whether NLS is requested" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3926 | # Check whether --enable-nls or --disable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3927 | if test "${enable_nls+set}" = set; then |
| 3928 | enableval="$enable_nls" |
| 3929 | USE_NLS=$enableval |
| 3930 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3931 | USE_NLS=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3932 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3933 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3934 | echo "$ac_t""$USE_NLS" 1>&6 |
| 3935 | |
| 3936 | |
| 3937 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3938 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3939 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3940 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3941 | LIBINTL= |
| 3942 | LTLIBINTL= |
| 3943 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3944 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3945 | if test "$USE_NLS" = "yes"; then |
| 3946 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3947 | |
| 3948 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3949 | echo "configure:3950: checking whether included gettext is requested" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3950 | # Check whether --with-included-gettext or --without-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3951 | if test "${with_included_gettext+set}" = set; then |
| 3952 | withval="$with_included_gettext" |
| 3953 | nls_cv_force_use_gnu_gettext=$withval |
| 3954 | else |
| 3955 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3956 | fi |
| 3957 | |
| 3958 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3959 | |
| 3960 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 3961 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3962 | |
| 3963 | |
| 3964 | |
| 3965 | |
| 3966 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3967 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3968 | echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3969 | echo "configure:3970: checking for GNU gettext in libc" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3970 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then |
| 3971 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3972 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3973 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3974 | #line 3975 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3975 | #include "confdefs.h" |
| 3976 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3977 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3978 | extern int *_nl_domain_bindings; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3979 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3980 | bindtextdomain ("", ""); |
| 3981 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3982 | ; return 0; } |
| 3983 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 3984 | if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3985 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3986 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3987 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3988 | echo "configure: failed program was:" >&5 |
| 3989 | cat conftest.$ac_ext >&5 |
| 3990 | rm -rf conftest* |
| 3991 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3992 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3993 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3994 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3995 | |
| 3996 | echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3997 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3998 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3999 | |
| 4000 | |
| 4001 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4002 | use_additional=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4003 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4004 | acl_save_prefix="$prefix" |
| 4005 | prefix="$acl_final_prefix" |
| 4006 | acl_save_exec_prefix="$exec_prefix" |
| 4007 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4008 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4009 | eval additional_includedir=\"$includedir\" |
| 4010 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4011 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4012 | exec_prefix="$acl_save_exec_prefix" |
| 4013 | prefix="$acl_save_prefix" |
| 4014 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4015 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4016 | if test "${with_libintl_prefix+set}" = set; then |
| 4017 | withval="$with_libintl_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4018 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4019 | if test "X$withval" = "Xno"; then |
| 4020 | use_additional=no |
| 4021 | else |
| 4022 | if test "X$withval" = "X"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4023 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4024 | acl_save_prefix="$prefix" |
| 4025 | prefix="$acl_final_prefix" |
| 4026 | acl_save_exec_prefix="$exec_prefix" |
| 4027 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4028 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4029 | eval additional_includedir=\"$includedir\" |
| 4030 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4031 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4032 | exec_prefix="$acl_save_exec_prefix" |
| 4033 | prefix="$acl_save_prefix" |
| 4034 | |
| 4035 | else |
| 4036 | additional_includedir="$withval/include" |
| 4037 | additional_libdir="$withval/lib" |
| 4038 | fi |
| 4039 | fi |
| 4040 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4041 | fi |
| 4042 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4043 | LIBINTL= |
| 4044 | LTLIBINTL= |
| 4045 | INCINTL= |
| 4046 | rpathdirs= |
| 4047 | ltrpathdirs= |
| 4048 | names_already_handled= |
| 4049 | names_next_round='intl ' |
| 4050 | while test -n "$names_next_round"; do |
| 4051 | names_this_round="$names_next_round" |
| 4052 | names_next_round= |
| 4053 | for name in $names_this_round; do |
| 4054 | already_handled= |
| 4055 | for n in $names_already_handled; do |
| 4056 | if test "$n" = "$name"; then |
| 4057 | already_handled=yes |
| 4058 | break |
| 4059 | fi |
| 4060 | done |
| 4061 | if test -z "$already_handled"; then |
| 4062 | names_already_handled="$names_already_handled $name" |
| 4063 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 4064 | eval value=\"\$HAVE_LIB$uppername\" |
| 4065 | if test -n "$value"; then |
| 4066 | if test "$value" = yes; then |
| 4067 | eval value=\"\$LIB$uppername\" |
| 4068 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 4069 | eval value=\"\$LTLIB$uppername\" |
| 4070 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 4071 | else |
| 4072 | : |
| 4073 | fi |
| 4074 | else |
| 4075 | found_dir= |
| 4076 | found_la= |
| 4077 | found_so= |
| 4078 | found_a= |
| 4079 | if test $use_additional = yes; then |
| 4080 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 4081 | found_dir="$additional_libdir" |
| 4082 | found_so="$additional_libdir/lib$name.$shlibext" |
| 4083 | if test -f "$additional_libdir/lib$name.la"; then |
| 4084 | found_la="$additional_libdir/lib$name.la" |
| 4085 | fi |
| 4086 | else |
| 4087 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 4088 | found_dir="$additional_libdir" |
| 4089 | found_a="$additional_libdir/lib$name.$libext" |
| 4090 | if test -f "$additional_libdir/lib$name.la"; then |
| 4091 | found_la="$additional_libdir/lib$name.la" |
| 4092 | fi |
| 4093 | fi |
| 4094 | fi |
| 4095 | fi |
| 4096 | if test "X$found_dir" = "X"; then |
| 4097 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4098 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4099 | acl_save_prefix="$prefix" |
| 4100 | prefix="$acl_final_prefix" |
| 4101 | acl_save_exec_prefix="$exec_prefix" |
| 4102 | exec_prefix="$acl_final_exec_prefix" |
| 4103 | eval x=\"$x\" |
| 4104 | exec_prefix="$acl_save_exec_prefix" |
| 4105 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4106 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4107 | case "$x" in |
| 4108 | -L*) |
| 4109 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 4110 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 4111 | found_dir="$dir" |
| 4112 | found_so="$dir/lib$name.$shlibext" |
| 4113 | if test -f "$dir/lib$name.la"; then |
| 4114 | found_la="$dir/lib$name.la" |
| 4115 | fi |
| 4116 | else |
| 4117 | if test -f "$dir/lib$name.$libext"; then |
| 4118 | found_dir="$dir" |
| 4119 | found_a="$dir/lib$name.$libext" |
| 4120 | if test -f "$dir/lib$name.la"; then |
| 4121 | found_la="$dir/lib$name.la" |
| 4122 | fi |
| 4123 | fi |
| 4124 | fi |
| 4125 | ;; |
| 4126 | esac |
| 4127 | if test "X$found_dir" != "X"; then |
| 4128 | break |
| 4129 | fi |
| 4130 | done |
| 4131 | fi |
| 4132 | if test "X$found_dir" != "X"; then |
| 4133 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 4134 | if test "X$found_so" != "X"; then |
| 4135 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 4136 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4137 | else |
| 4138 | haveit= |
| 4139 | for x in $ltrpathdirs; do |
| 4140 | if test "X$x" = "X$found_dir"; then |
| 4141 | haveit=yes |
| 4142 | break |
| 4143 | fi |
| 4144 | done |
| 4145 | if test -z "$haveit"; then |
| 4146 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 4147 | fi |
| 4148 | if test "$hardcode_direct" = yes; then |
| 4149 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4150 | else |
| 4151 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 4152 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4153 | haveit= |
| 4154 | for x in $rpathdirs; do |
| 4155 | if test "X$x" = "X$found_dir"; then |
| 4156 | haveit=yes |
| 4157 | break |
| 4158 | fi |
| 4159 | done |
| 4160 | if test -z "$haveit"; then |
| 4161 | rpathdirs="$rpathdirs $found_dir" |
| 4162 | fi |
| 4163 | else |
| 4164 | haveit= |
| 4165 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4166 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4167 | acl_save_prefix="$prefix" |
| 4168 | prefix="$acl_final_prefix" |
| 4169 | acl_save_exec_prefix="$exec_prefix" |
| 4170 | exec_prefix="$acl_final_exec_prefix" |
| 4171 | eval x=\"$x\" |
| 4172 | exec_prefix="$acl_save_exec_prefix" |
| 4173 | prefix="$acl_save_prefix" |
| 4174 | |
| 4175 | if test "X$x" = "X-L$found_dir"; then |
| 4176 | haveit=yes |
| 4177 | break |
| 4178 | fi |
| 4179 | done |
| 4180 | if test -z "$haveit"; then |
| 4181 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 4182 | fi |
| 4183 | if test "$hardcode_minus_L" != no; then |
| 4184 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4185 | else |
| 4186 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 4187 | fi |
| 4188 | fi |
| 4189 | fi |
| 4190 | fi |
| 4191 | else |
| 4192 | if test "X$found_a" != "X"; then |
| 4193 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 4194 | else |
| 4195 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 4196 | fi |
| 4197 | fi |
| 4198 | additional_includedir= |
| 4199 | case "$found_dir" in |
| 4200 | */lib | */lib/) |
| 4201 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 4202 | additional_includedir="$basedir/include" |
| 4203 | ;; |
| 4204 | esac |
| 4205 | if test "X$additional_includedir" != "X"; then |
| 4206 | if test "X$additional_includedir" != "X/usr/include"; then |
| 4207 | haveit= |
| 4208 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 4209 | if test -n "$GCC"; then |
| 4210 | case $host_os in |
| 4211 | linux*) haveit=yes;; |
| 4212 | esac |
| 4213 | fi |
| 4214 | fi |
| 4215 | if test -z "$haveit"; then |
| 4216 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4217 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4218 | acl_save_prefix="$prefix" |
| 4219 | prefix="$acl_final_prefix" |
| 4220 | acl_save_exec_prefix="$exec_prefix" |
| 4221 | exec_prefix="$acl_final_exec_prefix" |
| 4222 | eval x=\"$x\" |
| 4223 | exec_prefix="$acl_save_exec_prefix" |
| 4224 | prefix="$acl_save_prefix" |
| 4225 | |
| 4226 | if test "X$x" = "X-I$additional_includedir"; then |
| 4227 | haveit=yes |
| 4228 | break |
| 4229 | fi |
| 4230 | done |
| 4231 | if test -z "$haveit"; then |
| 4232 | if test -d "$additional_includedir"; then |
| 4233 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 4234 | fi |
| 4235 | fi |
| 4236 | fi |
| 4237 | fi |
| 4238 | fi |
| 4239 | if test -n "$found_la"; then |
| 4240 | save_libdir="$libdir" |
| 4241 | case "$found_la" in |
| 4242 | */* | *\\*) . "$found_la" ;; |
| 4243 | *) . "./$found_la" ;; |
| 4244 | esac |
| 4245 | libdir="$save_libdir" |
| 4246 | for dep in $dependency_libs; do |
| 4247 | case "$dep" in |
| 4248 | -L*) |
| 4249 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 4250 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 4251 | haveit= |
| 4252 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 4253 | if test -n "$GCC"; then |
| 4254 | case $host_os in |
| 4255 | linux*) haveit=yes;; |
| 4256 | esac |
| 4257 | fi |
| 4258 | fi |
| 4259 | if test -z "$haveit"; then |
| 4260 | haveit= |
| 4261 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4262 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4263 | acl_save_prefix="$prefix" |
| 4264 | prefix="$acl_final_prefix" |
| 4265 | acl_save_exec_prefix="$exec_prefix" |
| 4266 | exec_prefix="$acl_final_exec_prefix" |
| 4267 | eval x=\"$x\" |
| 4268 | exec_prefix="$acl_save_exec_prefix" |
| 4269 | prefix="$acl_save_prefix" |
| 4270 | |
| 4271 | if test "X$x" = "X-L$additional_libdir"; then |
| 4272 | haveit=yes |
| 4273 | break |
| 4274 | fi |
| 4275 | done |
| 4276 | if test -z "$haveit"; then |
| 4277 | if test -d "$additional_libdir"; then |
| 4278 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 4279 | fi |
| 4280 | fi |
| 4281 | haveit= |
| 4282 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4283 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4284 | acl_save_prefix="$prefix" |
| 4285 | prefix="$acl_final_prefix" |
| 4286 | acl_save_exec_prefix="$exec_prefix" |
| 4287 | exec_prefix="$acl_final_exec_prefix" |
| 4288 | eval x=\"$x\" |
| 4289 | exec_prefix="$acl_save_exec_prefix" |
| 4290 | prefix="$acl_save_prefix" |
| 4291 | |
| 4292 | if test "X$x" = "X-L$additional_libdir"; then |
| 4293 | haveit=yes |
| 4294 | break |
| 4295 | fi |
| 4296 | done |
| 4297 | if test -z "$haveit"; then |
| 4298 | if test -d "$additional_libdir"; then |
| 4299 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 4300 | fi |
| 4301 | fi |
| 4302 | fi |
| 4303 | fi |
| 4304 | ;; |
| 4305 | -R*) |
| 4306 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 4307 | if test "$enable_rpath" != no; then |
| 4308 | haveit= |
| 4309 | for x in $rpathdirs; do |
| 4310 | if test "X$x" = "X$dir"; then |
| 4311 | haveit=yes |
| 4312 | break |
| 4313 | fi |
| 4314 | done |
| 4315 | if test -z "$haveit"; then |
| 4316 | rpathdirs="$rpathdirs $dir" |
| 4317 | fi |
| 4318 | haveit= |
| 4319 | for x in $ltrpathdirs; do |
| 4320 | if test "X$x" = "X$dir"; then |
| 4321 | haveit=yes |
| 4322 | break |
| 4323 | fi |
| 4324 | done |
| 4325 | if test -z "$haveit"; then |
| 4326 | ltrpathdirs="$ltrpathdirs $dir" |
| 4327 | fi |
| 4328 | fi |
| 4329 | ;; |
| 4330 | -l*) |
| 4331 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 4332 | ;; |
| 4333 | *.la) |
| 4334 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 4335 | ;; |
| 4336 | *) |
| 4337 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 4338 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 4339 | ;; |
| 4340 | esac |
| 4341 | done |
| 4342 | fi |
| 4343 | else |
| 4344 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 4345 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 4346 | fi |
| 4347 | fi |
| 4348 | fi |
| 4349 | done |
| 4350 | done |
| 4351 | if test "X$rpathdirs" != "X"; then |
| 4352 | if test -n "$hardcode_libdir_separator"; then |
| 4353 | alldirs= |
| 4354 | for found_dir in $rpathdirs; do |
| 4355 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 4356 | done |
| 4357 | acl_save_libdir="$libdir" |
| 4358 | libdir="$alldirs" |
| 4359 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 4360 | libdir="$acl_save_libdir" |
| 4361 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 4362 | else |
| 4363 | for found_dir in $rpathdirs; do |
| 4364 | acl_save_libdir="$libdir" |
| 4365 | libdir="$found_dir" |
| 4366 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 4367 | libdir="$acl_save_libdir" |
| 4368 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 4369 | done |
| 4370 | fi |
| 4371 | fi |
| 4372 | if test "X$ltrpathdirs" != "X"; then |
| 4373 | for found_dir in $ltrpathdirs; do |
| 4374 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 4375 | done |
| 4376 | fi |
| 4377 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4378 | echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4379 | echo "configure:4380: checking for GNU gettext in libintl" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4380 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then |
| 4381 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4382 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4383 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 4384 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 4385 | gt_save_LIBS="$LIBS" |
| 4386 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4387 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4388 | #line 4389 "configure" |
| 4389 | #include "confdefs.h" |
| 4390 | #include <libintl.h> |
| 4391 | extern int _nl_msg_cat_cntr; |
| 4392 | extern |
| 4393 | #ifdef __cplusplus |
| 4394 | "C" |
| 4395 | #endif |
| 4396 | const char *_nl_expand_alias (); |
| 4397 | int main() { |
| 4398 | bindtextdomain ("", ""); |
| 4399 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
| 4400 | ; return 0; } |
| 4401 | EOF |
| 4402 | if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4403 | rm -rf conftest* |
| 4404 | gt_cv_func_gnugettext1_libintl=yes |
| 4405 | else |
| 4406 | echo "configure: failed program was:" >&5 |
| 4407 | cat conftest.$ac_ext >&5 |
| 4408 | rm -rf conftest* |
| 4409 | gt_cv_func_gnugettext1_libintl=no |
| 4410 | fi |
| 4411 | rm -f conftest* |
| 4412 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 4413 | LIBS="$LIBS $LIBICONV" |
| 4414 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4415 | #line 4416 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4416 | #include "confdefs.h" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4417 | #include <libintl.h> |
| 4418 | extern int _nl_msg_cat_cntr; |
| 4419 | extern |
| 4420 | #ifdef __cplusplus |
| 4421 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4422 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4423 | const char *_nl_expand_alias (); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4424 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4425 | bindtextdomain ("", ""); |
| 4426 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4427 | ; return 0; } |
| 4428 | EOF |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4429 | if { (eval echo configure:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4430 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4431 | LIBINTL="$LIBINTL $LIBICONV" |
| 4432 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 4433 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4434 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4435 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4436 | echo "configure: failed program was:" >&5 |
| 4437 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4438 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4439 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4440 | fi |
| 4441 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 4442 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4443 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4444 | |
| 4445 | echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4446 | fi |
| 4447 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4448 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 4449 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
| 4450 | && test "$PACKAGE" != gettext; }; then |
| 4451 | gt_use_preinstalled_gnugettext=yes |
| 4452 | else |
| 4453 | LIBINTL= |
| 4454 | LTLIBINTL= |
| 4455 | INCINTL= |
| 4456 | fi |
| 4457 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4458 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4459 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 4460 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4461 | fi |
| 4462 | fi |
| 4463 | |
| 4464 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4465 | INTLOBJS="\$(GETTOBJS)" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4466 | BUILD_INCLUDED_LIBINTL=yes |
| 4467 | USE_INCLUDED_LIBINTL=yes |
| 4468 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 4469 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 4470 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4471 | fi |
| 4472 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4473 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 4474 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4475 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4476 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4477 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4478 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4479 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 4480 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4481 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4482 | #define ENABLE_NLS 1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4483 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4484 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4485 | else |
| 4486 | USE_NLS=no |
| 4487 | fi |
| 4488 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4489 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4490 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4491 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4492 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 4493 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4494 | echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4495 | echo "configure:4496: checking how to link with libintl" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4496 | echo "$ac_t""$LIBINTL" 1>&6 |
| 4497 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4498 | for element in $INCINTL; do |
| 4499 | haveit= |
| 4500 | for x in $CPPFLAGS; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4501 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4502 | acl_save_prefix="$prefix" |
| 4503 | prefix="$acl_final_prefix" |
| 4504 | acl_save_exec_prefix="$exec_prefix" |
| 4505 | exec_prefix="$acl_final_exec_prefix" |
| 4506 | eval x=\"$x\" |
| 4507 | exec_prefix="$acl_save_exec_prefix" |
| 4508 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4509 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4510 | if test "X$x" = "X$element"; then |
| 4511 | haveit=yes |
| 4512 | break |
| 4513 | fi |
| 4514 | done |
| 4515 | if test -z "$haveit"; then |
| 4516 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 4517 | fi |
| 4518 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4519 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4520 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4521 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4522 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4523 | #define HAVE_GETTEXT 1 |
| 4524 | EOF |
| 4525 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4526 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4527 | #define HAVE_DCGETTEXT 1 |
| 4528 | EOF |
| 4529 | |
| 4530 | fi |
| 4531 | |
| 4532 | POSUB=po |
| 4533 | fi |
| 4534 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4535 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4536 | if test "$PACKAGE" = gettext; then |
| 4537 | BUILD_INCLUDED_LIBINTL=yes |
| 4538 | fi |
| 4539 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4540 | |
| 4541 | |
| 4542 | |
| 4543 | |
| 4544 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4545 | nls_cv_header_intl= |
| 4546 | nls_cv_header_libgt= |
| 4547 | |
| 4548 | DATADIRNAME=share |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4549 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4550 | |
| 4551 | INSTOBJEXT=.mo |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4552 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4553 | |
| 4554 | GENCAT=gencat |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4555 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4556 | |
| 4557 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4558 | |
| 4559 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4560 | |
| 4561 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4562 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4563 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4564 | |
| 4565 | |
| 4566 | |
| 4567 | |
| 4568 | |
| 4569 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4570 | echo "configure:4571: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4571 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 4572 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 4573 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4574 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4575 | cat > conftestmake <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4576 | all: |
| 4577 | @echo 'ac_maketemp="${MAKE}"' |
| 4578 | EOF |
| 4579 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4580 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4581 | if test -n "$ac_maketemp"; then |
| 4582 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 4583 | else |
| 4584 | eval ac_cv_prog_make_${ac_make}_set=no |
| 4585 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4586 | rm -f conftestmake |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4587 | fi |
| 4588 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4589 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4590 | SET_MAKE= |
| 4591 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4592 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4593 | SET_MAKE="MAKE=${MAKE-make}" |
| 4594 | fi |
| 4595 | |
| 4596 | # Extract the first word of "ln", so it can be a program name with args. |
| 4597 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4598 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4599 | echo "configure:4600: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4600 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
| 4601 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4602 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4603 | case "$LN" in |
| 4604 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4605 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 4606 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4607 | ?:/*) |
| 4608 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. |
| 4609 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4610 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4611 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4612 | ac_dummy="$PATH" |
| 4613 | for ac_dir in $ac_dummy; do |
| 4614 | test -z "$ac_dir" && ac_dir=. |
| 4615 | if test -f $ac_dir/$ac_word; then |
| 4616 | ac_cv_path_LN="$ac_dir/$ac_word" |
| 4617 | break |
| 4618 | fi |
| 4619 | done |
| 4620 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4621 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 4622 | ;; |
| 4623 | esac |
| 4624 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4625 | LN="$ac_cv_path_LN" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4626 | if test -n "$LN"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4627 | echo "$ac_t""$LN" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4628 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4629 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4630 | fi |
| 4631 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4632 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4633 | echo "configure:4634: checking whether ln -s works" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4634 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 4635 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4636 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4637 | rm -f conftestdata |
| 4638 | if ln -s X conftestdata 2>/dev/null |
| 4639 | then |
| 4640 | rm -f conftestdata |
| 4641 | ac_cv_prog_LN_S="ln -s" |
| 4642 | else |
| 4643 | ac_cv_prog_LN_S=ln |
| 4644 | fi |
| 4645 | fi |
| 4646 | LN_S="$ac_cv_prog_LN_S" |
| 4647 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 4648 | echo "$ac_t""yes" 1>&6 |
| 4649 | else |
| 4650 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4651 | fi |
| 4652 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4653 | # Extract the first word of "mv", so it can be a program name with args. |
| 4654 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4655 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4656 | echo "configure:4657: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4657 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
| 4658 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4659 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4660 | case "$MV" in |
| 4661 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4662 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 4663 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4664 | ?:/*) |
| 4665 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. |
| 4666 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4667 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4668 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4669 | ac_dummy="$PATH" |
| 4670 | for ac_dir in $ac_dummy; do |
| 4671 | test -z "$ac_dir" && ac_dir=. |
| 4672 | if test -f $ac_dir/$ac_word; then |
| 4673 | ac_cv_path_MV="$ac_dir/$ac_word" |
| 4674 | break |
| 4675 | fi |
| 4676 | done |
| 4677 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4678 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 4679 | ;; |
| 4680 | esac |
| 4681 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4682 | MV="$ac_cv_path_MV" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4683 | if test -n "$MV"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4684 | echo "$ac_t""$MV" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4685 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4686 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4687 | fi |
| 4688 | |
| 4689 | # Extract the first word of "cp", so it can be a program name with args. |
| 4690 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4691 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4692 | echo "configure:4693: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4693 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
| 4694 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4695 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4696 | case "$CP" in |
| 4697 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4698 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 4699 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4700 | ?:/*) |
| 4701 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. |
| 4702 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4703 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4704 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4705 | ac_dummy="$PATH" |
| 4706 | for ac_dir in $ac_dummy; do |
| 4707 | test -z "$ac_dir" && ac_dir=. |
| 4708 | if test -f $ac_dir/$ac_word; then |
| 4709 | ac_cv_path_CP="$ac_dir/$ac_word" |
| 4710 | break |
| 4711 | fi |
| 4712 | done |
| 4713 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4714 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 4715 | ;; |
| 4716 | esac |
| 4717 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4718 | CP="$ac_cv_path_CP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4719 | if test -n "$CP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4720 | echo "$ac_t""$CP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4721 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4722 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4723 | fi |
| 4724 | |
| 4725 | # Extract the first word of "rm", so it can be a program name with args. |
| 4726 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4727 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4728 | echo "configure:4729: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4729 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
| 4730 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4731 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4732 | case "$RM" in |
| 4733 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4734 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 4735 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4736 | ?:/*) |
| 4737 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. |
| 4738 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4739 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4740 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4741 | ac_dummy="$PATH" |
| 4742 | for ac_dir in $ac_dummy; do |
| 4743 | test -z "$ac_dir" && ac_dir=. |
| 4744 | if test -f $ac_dir/$ac_word; then |
| 4745 | ac_cv_path_RM="$ac_dir/$ac_word" |
| 4746 | break |
| 4747 | fi |
| 4748 | done |
| 4749 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4750 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 4751 | ;; |
| 4752 | esac |
| 4753 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4754 | RM="$ac_cv_path_RM" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4755 | if test -n "$RM"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4756 | echo "$ac_t""$RM" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4757 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4758 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4759 | fi |
| 4760 | |
| 4761 | # Extract the first word of "chmod", so it can be a program name with args. |
| 4762 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4763 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4764 | echo "configure:4765: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4765 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
| 4766 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4767 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4768 | case "$CHMOD" in |
| 4769 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4770 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 4771 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4772 | ?:/*) |
| 4773 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. |
| 4774 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4775 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4776 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4777 | ac_dummy="$PATH" |
| 4778 | for ac_dir in $ac_dummy; do |
| 4779 | test -z "$ac_dir" && ac_dir=. |
| 4780 | if test -f $ac_dir/$ac_word; then |
| 4781 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
| 4782 | break |
| 4783 | fi |
| 4784 | done |
| 4785 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4786 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 4787 | ;; |
| 4788 | esac |
| 4789 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4790 | CHMOD="$ac_cv_path_CHMOD" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4791 | if test -n "$CHMOD"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4792 | echo "$ac_t""$CHMOD" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4793 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4794 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4795 | fi |
| 4796 | |
| 4797 | # Extract the first word of "awk", so it can be a program name with args. |
| 4798 | set dummy awk; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4799 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4800 | echo "configure:4801: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4801 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then |
| 4802 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4803 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4804 | case "$AWK" in |
| 4805 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4806 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. |
| 4807 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4808 | ?:/*) |
| 4809 | ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path. |
| 4810 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4811 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4812 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4813 | ac_dummy="$PATH" |
| 4814 | for ac_dir in $ac_dummy; do |
| 4815 | test -z "$ac_dir" && ac_dir=. |
| 4816 | if test -f $ac_dir/$ac_word; then |
| 4817 | ac_cv_path_AWK="$ac_dir/$ac_word" |
| 4818 | break |
| 4819 | fi |
| 4820 | done |
| 4821 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4822 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" |
| 4823 | ;; |
| 4824 | esac |
| 4825 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4826 | AWK="$ac_cv_path_AWK" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4827 | if test -n "$AWK"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4828 | echo "$ac_t""$AWK" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4829 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4830 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4831 | fi |
| 4832 | |
| 4833 | # Extract the first word of "sed", so it can be a program name with args. |
| 4834 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4835 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4836 | echo "configure:4837: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4837 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
| 4838 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4839 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4840 | case "$SED" in |
| 4841 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4842 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 4843 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4844 | ?:/*) |
| 4845 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. |
| 4846 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4847 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4848 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4849 | ac_dummy="$PATH" |
| 4850 | for ac_dir in $ac_dummy; do |
| 4851 | test -z "$ac_dir" && ac_dir=. |
| 4852 | if test -f $ac_dir/$ac_word; then |
| 4853 | ac_cv_path_SED="$ac_dir/$ac_word" |
| 4854 | break |
| 4855 | fi |
| 4856 | done |
| 4857 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4858 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 4859 | ;; |
| 4860 | esac |
| 4861 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4862 | SED="$ac_cv_path_SED" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4863 | if test -n "$SED"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4864 | echo "$ac_t""$SED" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4865 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4866 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4867 | fi |
| 4868 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4869 | # Extract the first word of "perl", so it can be a program name with args. |
| 4870 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4871 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4872 | echo "configure:4873: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4873 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
| 4874 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4875 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4876 | case "$PERL" in |
| 4877 | /*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4878 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 4879 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4880 | ?:/*) |
| 4881 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
| 4882 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4883 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4884 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4885 | ac_dummy="$PATH" |
| 4886 | for ac_dir in $ac_dummy; do |
| 4887 | test -z "$ac_dir" && ac_dir=. |
| 4888 | if test -f $ac_dir/$ac_word; then |
| 4889 | ac_cv_path_PERL="$ac_dir/$ac_word" |
| 4890 | break |
| 4891 | fi |
| 4892 | done |
| 4893 | IFS="$ac_save_ifs" |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4894 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 4895 | ;; |
| 4896 | esac |
| 4897 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4898 | PERL="$ac_cv_path_PERL" |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4899 | if test -n "$PERL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4900 | echo "$ac_t""$PERL" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4901 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4902 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4903 | fi |
| 4904 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4905 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4906 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4907 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4908 | echo "configure:4909: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4909 | if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then |
| 4910 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4911 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4912 | case "$LDCONFIG" in |
| 4913 | /*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4914 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4915 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4916 | ?:/*) |
| 4917 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path. |
| 4918 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4919 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4920 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4921 | ac_dummy="$PATH" |
| 4922 | for ac_dir in $ac_dummy; do |
| 4923 | test -z "$ac_dir" && ac_dir=. |
| 4924 | if test -f $ac_dir/$ac_word; then |
| 4925 | ac_cv_path_LDCONFIG="$ac_dir/$ac_word" |
| 4926 | break |
| 4927 | fi |
| 4928 | done |
| 4929 | IFS="$ac_save_ifs" |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4930 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 4931 | ;; |
| 4932 | esac |
| 4933 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4934 | LDCONFIG="$ac_cv_path_LDCONFIG" |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4935 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4936 | echo "$ac_t""$LDCONFIG" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4937 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4938 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4939 | fi |
| 4940 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4941 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4942 | echo "configure:4943: checking build system type" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4943 | |
| 4944 | build_alias=$build |
| 4945 | case "$build_alias" in |
| 4946 | NONE) |
| 4947 | case $nonopt in |
| 4948 | NONE) build_alias=$host_alias ;; |
| 4949 | *) build_alias=$nonopt ;; |
| 4950 | esac ;; |
| 4951 | esac |
| 4952 | |
| 4953 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 4954 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 4955 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 4956 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 4957 | echo "$ac_t""$build" 1>&6 |
| 4958 | |
| 4959 | if test $host != $build; then |
| 4960 | ac_tool_prefix=${host_alias}- |
| 4961 | else |
| 4962 | ac_tool_prefix= |
| 4963 | fi |
| 4964 | |
| 4965 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4966 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4967 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 4968 | echo "configure:4969: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4969 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 4970 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4971 | else |
| 4972 | if test -n "$AR"; then |
| 4973 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4974 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4975 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4976 | ac_dummy="$PATH" |
| 4977 | for ac_dir in $ac_dummy; do |
| 4978 | test -z "$ac_dir" && ac_dir=. |
| 4979 | if test -f $ac_dir/$ac_word; then |
| 4980 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 4981 | break |
| 4982 | fi |
| 4983 | done |
| 4984 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4985 | fi |
| 4986 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4987 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4988 | if test -n "$AR"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4989 | echo "$ac_t""$AR" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4990 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4991 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4992 | fi |
| 4993 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4994 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4995 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4996 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4997 | # Extract the first word of "ar", so it can be a program name with args. |
| 4998 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4999 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5000 | echo "configure:5001: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5001 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 5002 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5003 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5004 | if test -n "$AR"; then |
| 5005 | ac_cv_prog_AR="$AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5006 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5007 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5008 | ac_dummy="$PATH" |
| 5009 | for ac_dir in $ac_dummy; do |
| 5010 | test -z "$ac_dir" && ac_dir=. |
| 5011 | if test -f $ac_dir/$ac_word; then |
| 5012 | ac_cv_prog_AR="ar" |
| 5013 | break |
| 5014 | fi |
| 5015 | done |
| 5016 | IFS="$ac_save_ifs" |
| 5017 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5018 | fi |
| 5019 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5020 | AR="$ac_cv_prog_AR" |
| 5021 | if test -n "$AR"; then |
| 5022 | echo "$ac_t""$AR" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5023 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5024 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5025 | fi |
| 5026 | |
| 5027 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5028 | AR="ar" |
| 5029 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5030 | fi |
| 5031 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5032 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5033 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5034 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5035 | echo "configure:5036: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5036 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 5037 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5038 | else |
| 5039 | if test -n "$RANLIB"; then |
| 5040 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5041 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5042 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5043 | ac_dummy="$PATH" |
| 5044 | for ac_dir in $ac_dummy; do |
| 5045 | test -z "$ac_dir" && ac_dir=. |
| 5046 | if test -f $ac_dir/$ac_word; then |
| 5047 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5048 | break |
| 5049 | fi |
| 5050 | done |
| 5051 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5052 | fi |
| 5053 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5054 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5055 | if test -n "$RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5056 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5057 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5058 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5059 | fi |
| 5060 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5061 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5062 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5063 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5064 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5065 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5066 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5067 | echo "configure:5068: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5068 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 5069 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5070 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5071 | if test -n "$RANLIB"; then |
| 5072 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5073 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5074 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5075 | ac_dummy="$PATH" |
| 5076 | for ac_dir in $ac_dummy; do |
| 5077 | test -z "$ac_dir" && ac_dir=. |
| 5078 | if test -f $ac_dir/$ac_word; then |
| 5079 | ac_cv_prog_RANLIB="ranlib" |
| 5080 | break |
| 5081 | fi |
| 5082 | done |
| 5083 | IFS="$ac_save_ifs" |
| 5084 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5085 | fi |
| 5086 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5087 | RANLIB="$ac_cv_prog_RANLIB" |
| 5088 | if test -n "$RANLIB"; then |
| 5089 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5090 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5091 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5092 | fi |
| 5093 | |
| 5094 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5095 | RANLIB=":" |
| 5096 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5097 | fi |
| 5098 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5099 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5100 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5101 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5102 | echo "configure:5103: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5103 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 5104 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5105 | else |
| 5106 | if test -n "$STRIP"; then |
| 5107 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5108 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5109 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5110 | ac_dummy="$PATH" |
| 5111 | for ac_dir in $ac_dummy; do |
| 5112 | test -z "$ac_dir" && ac_dir=. |
| 5113 | if test -f $ac_dir/$ac_word; then |
| 5114 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5115 | break |
| 5116 | fi |
| 5117 | done |
| 5118 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5119 | fi |
| 5120 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5121 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5122 | if test -n "$STRIP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5123 | echo "$ac_t""$STRIP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5124 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5125 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5126 | fi |
| 5127 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5128 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5129 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5130 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5131 | # Extract the first word of "strip", so it can be a program name with args. |
| 5132 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5133 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5134 | echo "configure:5135: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5135 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 5136 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5137 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5138 | if test -n "$STRIP"; then |
| 5139 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5140 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5141 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5142 | ac_dummy="$PATH" |
| 5143 | for ac_dir in $ac_dummy; do |
| 5144 | test -z "$ac_dir" && ac_dir=. |
| 5145 | if test -f $ac_dir/$ac_word; then |
| 5146 | ac_cv_prog_STRIP="strip" |
| 5147 | break |
| 5148 | fi |
| 5149 | done |
| 5150 | IFS="$ac_save_ifs" |
| 5151 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5152 | fi |
| 5153 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5154 | STRIP="$ac_cv_prog_STRIP" |
| 5155 | if test -n "$STRIP"; then |
| 5156 | echo "$ac_t""$STRIP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5157 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5158 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5159 | fi |
| 5160 | |
| 5161 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5162 | STRIP=":" |
| 5163 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5164 | fi |
| 5165 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5166 | # Find a good install program. We prefer a C program (faster), |
| 5167 | # so one script is as good as another. But avoid the broken or |
| 5168 | # incompatible versions: |
| 5169 | # SysV /etc/install, /usr/sbin/install |
| 5170 | # SunOS /usr/etc/install |
| 5171 | # IRIX /sbin/install |
| 5172 | # AIX /bin/install |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5173 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5174 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5175 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5176 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5177 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5178 | echo "configure:5179: checking for a BSD compatible install" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5179 | if test -z "$INSTALL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5180 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 5181 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5182 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5183 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5184 | for ac_dir in $PATH; do |
| 5185 | # Account for people who put trailing slashes in PATH elements. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5186 | case "$ac_dir/" in |
| 5187 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5188 | *) |
| 5189 | # OSF1 and SCO ODT 3.0 have their own names for install. |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5190 | # Don't use installbsd from OSF since it installs stuff as root |
| 5191 | # by default. |
| 5192 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5193 | if test -f $ac_dir/$ac_prog; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5194 | if test $ac_prog = install && |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5195 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5196 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5197 | : |
| 5198 | else |
| 5199 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 5200 | break 2 |
| 5201 | fi |
| 5202 | fi |
| 5203 | done |
| 5204 | ;; |
| 5205 | esac |
| 5206 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5207 | IFS="$ac_save_IFS" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5208 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5209 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5210 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5211 | INSTALL="$ac_cv_path_install" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5212 | else |
| 5213 | # As a last resort, use the slow shell script. We don't cache a |
| 5214 | # path for INSTALL within a source directory, because that will |
| 5215 | # break other packages using the cache if that directory is |
| 5216 | # removed, or if the path is relative. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5217 | INSTALL="$ac_install_sh" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5218 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5219 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5220 | echo "$ac_t""$INSTALL" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5221 | |
| 5222 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5223 | # It thinks the first close brace ends the variable substitution. |
| 5224 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5225 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5226 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5227 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5228 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5229 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5230 | # See if we need a separate native compiler. |
| 5231 | if test $cross_compiling = no; then |
| 5232 | BUILD_CC="$CC" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5233 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5234 | else |
| 5235 | for ac_prog in gcc cc |
| 5236 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5237 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5238 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5239 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5240 | echo "configure:5241: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5241 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
| 5242 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5243 | else |
| 5244 | if test -n "$BUILD_CC"; then |
| 5245 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 5246 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5247 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5248 | ac_dummy="$PATH" |
| 5249 | for ac_dir in $ac_dummy; do |
| 5250 | test -z "$ac_dir" && ac_dir=. |
| 5251 | if test -f $ac_dir/$ac_word; then |
| 5252 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 5253 | break |
| 5254 | fi |
| 5255 | done |
| 5256 | IFS="$ac_save_ifs" |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5257 | fi |
| 5258 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5259 | BUILD_CC="$ac_cv_prog_BUILD_CC" |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5260 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5261 | echo "$ac_t""$BUILD_CC" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5262 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5263 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5264 | fi |
| 5265 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5266 | test -n "$BUILD_CC" && break |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5267 | done |
| 5268 | |
| 5269 | fi |
Theodore Ts'o | 9845cf5 | 2004-09-17 19:07:03 -0400 | [diff] [blame] | 5270 | for ac_hdr in stdlib.h unistd.h stdarg.h stdint.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/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h net/if_dl.h netinet/in.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5271 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5272 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5273 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5274 | echo "configure:5275: checking for $ac_hdr" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5275 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5276 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5277 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5278 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5279 | #line 5280 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5280 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5281 | #include <$ac_hdr> |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5282 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5283 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5284 | { (eval echo configure:5285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5285 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5286 | if test -z "$ac_err"; then |
| 5287 | rm -rf conftest* |
| 5288 | eval "ac_cv_header_$ac_safe=yes" |
| 5289 | else |
| 5290 | echo "$ac_err" >&5 |
| 5291 | echo "configure: failed program was:" >&5 |
| 5292 | cat conftest.$ac_ext >&5 |
| 5293 | rm -rf conftest* |
| 5294 | eval "ac_cv_header_$ac_safe=no" |
| 5295 | fi |
| 5296 | rm -f conftest* |
| 5297 | fi |
| 5298 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5299 | echo "$ac_t""yes" 1>&6 |
| 5300 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5301 | cat >> confdefs.h <<EOF |
| 5302 | #define $ac_tr_hdr 1 |
| 5303 | EOF |
| 5304 | |
| 5305 | else |
| 5306 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5307 | fi |
| 5308 | done |
| 5309 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5310 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5311 | echo "configure:5312: checking for vprintf" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5312 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
| 5313 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5314 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5315 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5316 | #line 5317 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5317 | #include "confdefs.h" |
| 5318 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5319 | which can conflict with char vprintf(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5320 | #include <assert.h> |
| 5321 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5322 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5323 | builtin and then its argument prototype would still apply. */ |
| 5324 | char vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5325 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5326 | int main() { |
| 5327 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5328 | /* The GNU C library defines this for functions which it implements |
| 5329 | to always fail with ENOSYS. Some functions are actually named |
| 5330 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5331 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5332 | choke me |
| 5333 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5334 | vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5335 | #endif |
| 5336 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5337 | ; return 0; } |
| 5338 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5339 | if { (eval echo configure:5340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5340 | rm -rf conftest* |
| 5341 | eval "ac_cv_func_vprintf=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5342 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5343 | echo "configure: failed program was:" >&5 |
| 5344 | cat conftest.$ac_ext >&5 |
| 5345 | rm -rf conftest* |
| 5346 | eval "ac_cv_func_vprintf=no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5347 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5348 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5349 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5350 | |
| 5351 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
| 5352 | echo "$ac_t""yes" 1>&6 |
| 5353 | cat >> confdefs.h <<\EOF |
| 5354 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5355 | EOF |
| 5356 | |
| 5357 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5358 | echo "$ac_t""no" 1>&6 |
| 5359 | fi |
| 5360 | |
| 5361 | if test "$ac_cv_func_vprintf" != yes; then |
| 5362 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5363 | echo "configure:5364: checking for _doprnt" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5364 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
| 5365 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5366 | else |
| 5367 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5368 | #line 5369 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5369 | #include "confdefs.h" |
| 5370 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5371 | which can conflict with char _doprnt(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5372 | #include <assert.h> |
| 5373 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5374 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5375 | builtin and then its argument prototype would still apply. */ |
| 5376 | char _doprnt(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5377 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5378 | int main() { |
| 5379 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5380 | /* The GNU C library defines this for functions which it implements |
| 5381 | to always fail with ENOSYS. Some functions are actually named |
| 5382 | something starting with __ and the normal name is an alias. */ |
| 5383 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
| 5384 | choke me |
| 5385 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5386 | _doprnt(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5387 | #endif |
| 5388 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5389 | ; return 0; } |
| 5390 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5391 | if { (eval echo configure:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5392 | rm -rf conftest* |
| 5393 | eval "ac_cv_func__doprnt=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5394 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5395 | echo "configure: failed program was:" >&5 |
| 5396 | cat conftest.$ac_ext >&5 |
| 5397 | rm -rf conftest* |
| 5398 | eval "ac_cv_func__doprnt=no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5399 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5400 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5401 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5402 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5403 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
| 5404 | echo "$ac_t""yes" 1>&6 |
| 5405 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5406 | #define HAVE_DOPRNT 1 |
| 5407 | EOF |
| 5408 | |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5409 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5410 | echo "$ac_t""no" 1>&6 |
| 5411 | fi |
| 5412 | |
| 5413 | fi |
| 5414 | |
| 5415 | echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5416 | echo "configure:5417: checking whether d_reclen declared in dirent" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5417 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then |
| 5418 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5419 | else |
| 5420 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5421 | #line 5422 "configure" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5422 | #include "confdefs.h" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5423 | #include <dirent.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5424 | int main() { |
| 5425 | struct dirent de; de.d_reclen = 0; |
| 5426 | ; return 0; } |
| 5427 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5428 | if { (eval echo configure:5429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5429 | rm -rf conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5430 | e2fsprogs_cv_have_d_reclen_dirent=yes |
| 5431 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5432 | echo "configure: failed program was:" >&5 |
| 5433 | cat conftest.$ac_ext >&5 |
| 5434 | rm -rf conftest* |
| 5435 | e2fsprogs_cv_have_d_reclen_dirent=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5436 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5437 | rm -f conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5438 | fi |
| 5439 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5440 | echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5441 | if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5442 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5443 | #define HAVE_RECLEN_DIRENT 1 |
| 5444 | EOF |
| 5445 | |
| 5446 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5447 | echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5448 | echo "configure:5449: checking whether ssize_t declared" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5449 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then |
| 5450 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5451 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5452 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5453 | #line 5454 "configure" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5454 | #include "confdefs.h" |
| 5455 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5456 | int main() { |
| 5457 | ssize_t a = 0; |
| 5458 | ; return 0; } |
| 5459 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5460 | if { (eval echo configure:5461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5461 | rm -rf conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5462 | e2fsprogs_cv_have_ssize_t=yes |
| 5463 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5464 | echo "configure: failed program was:" >&5 |
| 5465 | cat conftest.$ac_ext >&5 |
| 5466 | rm -rf conftest* |
| 5467 | e2fsprogs_cv_have_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5468 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5469 | rm -f conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5470 | fi |
| 5471 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5472 | echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5473 | if test "$e2fsprogs_cv_have_ssize_t" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5474 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5475 | #define HAVE_TYPE_SSIZE_T 1 |
| 5476 | EOF |
| 5477 | |
| 5478 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5479 | echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5480 | echo "configure:5481: checking whether llseek declared in unistd.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5481 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then |
| 5482 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5483 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5484 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5485 | #line 5486 "configure" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5486 | #include "confdefs.h" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5487 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5488 | int main() { |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5489 | extern int llseek(int); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5490 | ; return 0; } |
| 5491 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5492 | if { (eval echo configure:5493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5493 | rm -rf conftest* |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5494 | e2fsprogs_cv_have_llseek_prototype=no |
| 5495 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5496 | echo "configure: failed program was:" >&5 |
| 5497 | cat conftest.$ac_ext >&5 |
| 5498 | rm -rf conftest* |
| 5499 | e2fsprogs_cv_have_llseek_prototype=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5500 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5501 | rm -f conftest* |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5502 | fi |
| 5503 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5504 | echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5505 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5506 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5507 | #define HAVE_LLSEEK_PROTOTYPE 1 |
| 5508 | EOF |
| 5509 | |
| 5510 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5511 | echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5512 | echo "configure:5513: checking whether lseek64 declared in unistd.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5513 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then |
| 5514 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5515 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5516 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5517 | #line 5518 "configure" |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5518 | #include "confdefs.h" |
| 5519 | #define _LARGEFILE_SOURCE |
| 5520 | #define _LARGEFILE64_SOURCE |
| 5521 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5522 | int main() { |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5523 | extern int lseek64(int); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5524 | ; return 0; } |
| 5525 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5526 | if { (eval echo configure:5527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5527 | rm -rf conftest* |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5528 | e2fsprogs_cv_have_lseek64_prototype=no |
| 5529 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5530 | echo "configure: failed program was:" >&5 |
| 5531 | cat conftest.$ac_ext >&5 |
| 5532 | rm -rf conftest* |
| 5533 | e2fsprogs_cv_have_lseek64_prototype=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5534 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5535 | rm -f conftest* |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5536 | fi |
| 5537 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5538 | echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5539 | if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5540 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5541 | #define HAVE_LSEEK64_PROTOTYPE 1 |
| 5542 | EOF |
| 5543 | |
| 5544 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5545 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5546 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5547 | ac_cv_sizeof_short=2 |
| 5548 | ac_cv_sizeof_int=4 |
| 5549 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5550 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5551 | echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5552 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5553 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5554 | echo "configure:5555: checking size of short" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5555 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
| 5556 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5557 | else |
| 5558 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5559 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5560 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5561 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5562 | #line 5563 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5563 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5564 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5565 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5566 | main() |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5567 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5568 | FILE *f=fopen("conftestval", "w"); |
| 5569 | if (!f) exit(1); |
| 5570 | fprintf(f, "%d\n", sizeof(short)); |
| 5571 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5572 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5573 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5574 | if { (eval echo configure:5575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5575 | then |
| 5576 | ac_cv_sizeof_short=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5577 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5578 | echo "configure: failed program was:" >&5 |
| 5579 | cat conftest.$ac_ext >&5 |
| 5580 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5581 | ac_cv_sizeof_short=0 |
| 5582 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5583 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5584 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5585 | |
| 5586 | fi |
| 5587 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 5588 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5589 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 5590 | EOF |
| 5591 | |
| 5592 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5593 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5594 | echo "configure:5595: checking size of int" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5595 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 5596 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5597 | else |
| 5598 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5599 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5600 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5601 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5602 | #line 5603 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5603 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5604 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5605 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5606 | main() |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5607 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5608 | FILE *f=fopen("conftestval", "w"); |
| 5609 | if (!f) exit(1); |
| 5610 | fprintf(f, "%d\n", sizeof(int)); |
| 5611 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5612 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5613 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5614 | if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5615 | then |
| 5616 | ac_cv_sizeof_int=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5617 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5618 | echo "configure: failed program was:" >&5 |
| 5619 | cat conftest.$ac_ext >&5 |
| 5620 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5621 | ac_cv_sizeof_int=0 |
| 5622 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5623 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5624 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5625 | |
| 5626 | fi |
| 5627 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 5628 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5629 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 5630 | EOF |
| 5631 | |
| 5632 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5633 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5634 | echo "configure:5635: checking size of long" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5635 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 5636 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5637 | else |
| 5638 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5639 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5640 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5641 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5642 | #line 5643 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5643 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5644 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5645 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5646 | main() |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5647 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5648 | FILE *f=fopen("conftestval", "w"); |
| 5649 | if (!f) exit(1); |
| 5650 | fprintf(f, "%d\n", sizeof(long)); |
| 5651 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5652 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5653 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5654 | if { (eval echo configure:5655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5655 | then |
| 5656 | ac_cv_sizeof_long=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5657 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5658 | echo "configure: failed program was:" >&5 |
| 5659 | cat conftest.$ac_ext >&5 |
| 5660 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5661 | ac_cv_sizeof_long=0 |
| 5662 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5663 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5664 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5665 | |
| 5666 | fi |
| 5667 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 5668 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5669 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 5670 | EOF |
| 5671 | |
| 5672 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5673 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5674 | echo "configure:5675: checking size of long long" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5675 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 5676 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5677 | else |
| 5678 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5679 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5680 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5681 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5682 | #line 5683 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5683 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5684 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5685 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5686 | main() |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5687 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5688 | FILE *f=fopen("conftestval", "w"); |
| 5689 | if (!f) exit(1); |
| 5690 | fprintf(f, "%d\n", sizeof(long long)); |
| 5691 | exit(0); |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5692 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5693 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5694 | if { (eval echo configure:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5695 | then |
| 5696 | ac_cv_sizeof_long_long=`cat conftestval` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5697 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5698 | echo "configure: failed program was:" >&5 |
| 5699 | cat conftest.$ac_ext >&5 |
| 5700 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5701 | ac_cv_sizeof_long_long=0 |
| 5702 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5703 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5704 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5705 | |
| 5706 | fi |
| 5707 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 5708 | cat >> confdefs.h <<EOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5709 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 5710 | EOF |
| 5711 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5712 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5713 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 5714 | SIZEOF_INT=$ac_cv_sizeof_int |
| 5715 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5716 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 5717 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5718 | |
| 5719 | |
| 5720 | |
| 5721 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5722 | echo "configure:5723: checking whether byte ordering is bigendian" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5723 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
| 5724 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5725 | else |
| 5726 | ac_cv_c_bigendian=unknown |
| 5727 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5728 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5729 | #line 5730 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5730 | #include "confdefs.h" |
| 5731 | #include <sys/types.h> |
| 5732 | #include <sys/param.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5733 | int main() { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5734 | |
| 5735 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5736 | bogus endian macros |
| 5737 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5738 | ; return 0; } |
| 5739 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5740 | if { (eval echo configure:5741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5741 | rm -rf conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5742 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5743 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5744 | #line 5745 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5745 | #include "confdefs.h" |
| 5746 | #include <sys/types.h> |
| 5747 | #include <sys/param.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5748 | int main() { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5749 | |
| 5750 | #if BYTE_ORDER != BIG_ENDIAN |
| 5751 | not big endian |
| 5752 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5753 | ; return 0; } |
| 5754 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5755 | if { (eval echo configure:5756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5756 | rm -rf conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5757 | ac_cv_c_bigendian=yes |
| 5758 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5759 | echo "configure: failed program was:" >&5 |
| 5760 | cat conftest.$ac_ext >&5 |
| 5761 | rm -rf conftest* |
| 5762 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5763 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5764 | rm -f conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5765 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5766 | echo "configure: failed program was:" >&5 |
| 5767 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5768 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5769 | rm -f conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5770 | if test $ac_cv_c_bigendian = unknown; then |
| 5771 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5772 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5773 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5774 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5775 | #line 5776 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5776 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5777 | main () { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5778 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5779 | union |
| 5780 | { |
| 5781 | long l; |
| 5782 | char c[sizeof (long)]; |
| 5783 | } u; |
| 5784 | u.l = 1; |
| 5785 | exit (u.c[sizeof (long) - 1] == 1); |
| 5786 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5787 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5788 | if { (eval echo configure:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5789 | then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5790 | ac_cv_c_bigendian=no |
| 5791 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5792 | echo "configure: failed program was:" >&5 |
| 5793 | cat conftest.$ac_ext >&5 |
| 5794 | rm -fr conftest* |
| 5795 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5796 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5797 | rm -fr conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5798 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5799 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5800 | fi |
| 5801 | fi |
| 5802 | |
| 5803 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5804 | if test $ac_cv_c_bigendian = yes; then |
| 5805 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5806 | #define WORDS_BIGENDIAN 1 |
| 5807 | EOF |
| 5808 | |
| 5809 | fi |
| 5810 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5811 | for ac_hdr in inttypes.h |
| 5812 | do |
| 5813 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5814 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5815 | echo "configure:5816: checking for $ac_hdr" >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5816 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5817 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5818 | else |
| 5819 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5820 | #line 5821 "configure" |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5821 | #include "confdefs.h" |
| 5822 | #include <$ac_hdr> |
| 5823 | EOF |
| 5824 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5825 | { (eval echo configure:5826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5826 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5827 | if test -z "$ac_err"; then |
| 5828 | rm -rf conftest* |
| 5829 | eval "ac_cv_header_$ac_safe=yes" |
| 5830 | else |
| 5831 | echo "$ac_err" >&5 |
| 5832 | echo "configure: failed program was:" >&5 |
| 5833 | cat conftest.$ac_ext >&5 |
| 5834 | rm -rf conftest* |
| 5835 | eval "ac_cv_header_$ac_safe=no" |
| 5836 | fi |
| 5837 | rm -f conftest* |
| 5838 | fi |
| 5839 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5840 | echo "$ac_t""yes" 1>&6 |
| 5841 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5842 | cat >> confdefs.h <<EOF |
| 5843 | #define $ac_tr_hdr 1 |
| 5844 | EOF |
| 5845 | |
| 5846 | else |
| 5847 | echo "$ac_t""no" 1>&6 |
| 5848 | fi |
| 5849 | done |
| 5850 | |
| 5851 | echo $ac_n "checking for intptr_t""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5852 | echo "configure:5853: checking for intptr_t" >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5853 | if eval "test \"`echo '$''{'ac_cv_type_intptr_t'+set}'`\" = set"; then |
| 5854 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5855 | else |
| 5856 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5857 | #line 5858 "configure" |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5858 | #include "confdefs.h" |
| 5859 | #include <sys/types.h> |
| 5860 | #if STDC_HEADERS |
| 5861 | #include <stdlib.h> |
| 5862 | #include <stddef.h> |
| 5863 | #endif |
| 5864 | EOF |
| 5865 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5866 | egrep "(^|[^a-zA-Z_0-9])intptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5867 | rm -rf conftest* |
| 5868 | ac_cv_type_intptr_t=yes |
| 5869 | else |
| 5870 | rm -rf conftest* |
| 5871 | ac_cv_type_intptr_t=no |
| 5872 | fi |
| 5873 | rm -f conftest* |
| 5874 | |
| 5875 | fi |
| 5876 | echo "$ac_t""$ac_cv_type_intptr_t" 1>&6 |
| 5877 | if test $ac_cv_type_intptr_t = no; then |
| 5878 | cat >> confdefs.h <<\EOF |
| 5879 | #define intptr_t long |
| 5880 | EOF |
| 5881 | |
| 5882 | fi |
| 5883 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5884 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5885 | echo "configure:5886: checking whether struct stat has a st_flags field" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5886 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then |
| 5887 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5888 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5889 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5890 | #line 5891 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5891 | #include "confdefs.h" |
| 5892 | #include <sys/stat.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5893 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5894 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5895 | ; return 0; } |
| 5896 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5897 | if { (eval echo configure:5898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5898 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5899 | e2fsprogs_cv_struct_st_flags=yes |
| 5900 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5901 | echo "configure: failed program was:" >&5 |
| 5902 | cat conftest.$ac_ext >&5 |
| 5903 | rm -rf conftest* |
| 5904 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5905 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5906 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5907 | fi |
| 5908 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5909 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5910 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5911 | echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5912 | echo "configure:5913: checking whether st_flags field is useful" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5913 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then |
| 5914 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5915 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5916 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5917 | #line 5918 "configure" |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5918 | #include "confdefs.h" |
| 5919 | #include <sys/stat.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5920 | int main() { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5921 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5922 | ; return 0; } |
| 5923 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5924 | if { (eval echo configure:5925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5925 | rm -rf conftest* |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5926 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 5927 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5928 | echo "configure: failed program was:" >&5 |
| 5929 | cat conftest.$ac_ext >&5 |
| 5930 | rm -rf conftest* |
| 5931 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5932 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5933 | rm -f conftest* |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5934 | fi |
| 5935 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5936 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5937 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5938 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5939 | #define HAVE_STAT_FLAGS 1 |
| 5940 | EOF |
| 5941 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5942 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5943 | fi |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5944 | echo $ac_n "checking whether struct sockaddr contains sa_len""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5945 | echo "configure:5946: checking whether struct sockaddr contains sa_len" >&5 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5946 | if eval "test \"`echo '$''{'e2fsprogs_cv_sockaddr_sa_len'+set}'`\" = set"; then |
| 5947 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5948 | else |
| 5949 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5950 | #line 5951 "configure" |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5951 | #include "confdefs.h" |
| 5952 | #include <sys/types.h> |
| 5953 | #include <sys/socket.h> |
| 5954 | |
| 5955 | int main() { |
| 5956 | struct sockaddr sa; |
| 5957 | sa.sa_len; |
| 5958 | ; return 0; } |
| 5959 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5960 | if { (eval echo configure:5961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5961 | rm -rf conftest* |
| 5962 | e2fsprogs_cv_sockaddr_sa_len=yes |
| 5963 | else |
| 5964 | echo "configure: failed program was:" >&5 |
| 5965 | cat conftest.$ac_ext >&5 |
| 5966 | rm -rf conftest* |
| 5967 | e2fsprogs_cv_sockaddr_sa_len=no |
| 5968 | fi |
| 5969 | rm -f conftest* |
| 5970 | fi |
| 5971 | |
| 5972 | echo "$ac_t""$e2fsprogs_cv_sockaddr_sa_len" 1>&6 |
| 5973 | if test $e2fsprogs_cv_sockaddr_sa_len = yes; then |
| 5974 | cat >> confdefs.h <<EOF |
| 5975 | #define HAVE_SA_LEN 1 |
| 5976 | EOF |
| 5977 | |
| 5978 | fi |
Theodore Ts'o | 1c29b09 | 2003-07-12 16:01:45 -0400 | [diff] [blame] | 5979 | for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5980 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5981 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5982 | echo "configure:5983: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5983 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5984 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5985 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5986 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 5987 | #line 5988 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5988 | #include "confdefs.h" |
| 5989 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5990 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5991 | #include <assert.h> |
| 5992 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5993 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5994 | builtin and then its argument prototype would still apply. */ |
| 5995 | char $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5996 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5997 | int main() { |
| 5998 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5999 | /* The GNU C library defines this for functions which it implements |
| 6000 | to always fail with ENOSYS. Some functions are actually named |
| 6001 | something starting with __ and the normal name is an alias. */ |
| 6002 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6003 | choke me |
| 6004 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6005 | $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6006 | #endif |
| 6007 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6008 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6009 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 6010 | if { (eval echo configure:6011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6011 | rm -rf conftest* |
| 6012 | eval "ac_cv_func_$ac_func=yes" |
| 6013 | else |
| 6014 | echo "configure: failed program was:" >&5 |
| 6015 | cat conftest.$ac_ext >&5 |
| 6016 | rm -rf conftest* |
| 6017 | eval "ac_cv_func_$ac_func=no" |
| 6018 | fi |
| 6019 | rm -f conftest* |
| 6020 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6021 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6022 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6023 | echo "$ac_t""yes" 1>&6 |
| 6024 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6025 | cat >> confdefs.h <<EOF |
| 6026 | #define $ac_tr_func 1 |
| 6027 | EOF |
| 6028 | |
| 6029 | else |
| 6030 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6031 | fi |
| 6032 | done |
| 6033 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6034 | SOCKET_LIB='' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6035 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 6036 | echo "configure:6037: checking for socket in -lsocket" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6037 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 6038 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 6039 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6040 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6041 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6042 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6043 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 6044 | #line 6045 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6045 | #include "confdefs.h" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6046 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6047 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6048 | builtin and then its argument prototype would still apply. */ |
| 6049 | char socket(); |
| 6050 | |
| 6051 | int main() { |
| 6052 | socket() |
| 6053 | ; return 0; } |
| 6054 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 6055 | if { (eval echo configure:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6056 | rm -rf conftest* |
| 6057 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6058 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6059 | echo "configure: failed program was:" >&5 |
| 6060 | cat conftest.$ac_ext >&5 |
| 6061 | rm -rf conftest* |
| 6062 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6063 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6064 | rm -f conftest* |
| 6065 | LIBS="$ac_save_LIBS" |
| 6066 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6067 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6068 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6069 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6070 | SOCKET_LIB=-lsocket |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6071 | else |
| 6072 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6073 | fi |
| 6074 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6075 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6076 | DLOPEN_LIB='' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6077 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 6078 | echo "configure:6079: checking for dlopen in -ldl" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6079 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 6080 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 6081 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6082 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6083 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6084 | LIBS="-ldl $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6085 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 6086 | #line 6087 "configure" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6087 | #include "confdefs.h" |
| 6088 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6089 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6090 | builtin and then its argument prototype would still apply. */ |
| 6091 | char dlopen(); |
| 6092 | |
| 6093 | int main() { |
| 6094 | dlopen() |
| 6095 | ; return 0; } |
| 6096 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 6097 | if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6098 | rm -rf conftest* |
| 6099 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6100 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6101 | echo "configure: failed program was:" >&5 |
| 6102 | cat conftest.$ac_ext >&5 |
| 6103 | rm -rf conftest* |
| 6104 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6105 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6106 | rm -f conftest* |
| 6107 | LIBS="$ac_save_LIBS" |
| 6108 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6109 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6110 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6111 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6112 | DLOPEN_LIB=-ldl |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6113 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6114 | #define HAVE_DLOPEN 1 |
| 6115 | EOF |
| 6116 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6117 | else |
| 6118 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6119 | fi |
| 6120 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6121 | |
| 6122 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 6123 | echo "configure:6124: checking for optreset" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6124 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then |
| 6125 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6126 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6127 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 6128 | #line 6129 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6129 | #include "confdefs.h" |
| 6130 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6131 | EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6133 | egrep "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6134 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6135 | ac_cv_have_optreset=yes |
| 6136 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6137 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6138 | ac_cv_have_optreset=no |
| 6139 | fi |
| 6140 | rm -f conftest* |
| 6141 | |
| 6142 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6143 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6144 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6145 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6146 | #define HAVE_OPTRESET 1 |
| 6147 | EOF |
| 6148 | |
| 6149 | fi |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 6150 | case "$host_os" in |
| 6151 | linux*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6152 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6153 | #define HAVE_EXT2_IOCTLS 1 |
| 6154 | EOF |
| 6155 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 6156 | ;; |
| 6157 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6158 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6159 | CYGWIN_CMT="#" |
| 6160 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6161 | case "$host_os" in |
| 6162 | linux*) |
| 6163 | LINUX_CMT= |
| 6164 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6165 | cygwin) |
| 6166 | CYGWIN_CMT= |
| 6167 | UNIX_CMT="#" |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 6168 | EVMS_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6169 | ;; |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 6170 | *) |
| 6171 | EVMS_CMT="#" |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6172 | esac |
| 6173 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6174 | |
| 6175 | |
| 6176 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6177 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6178 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6179 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 6180 | root_prefix=""; |
| 6181 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6182 | fi |
| 6183 | ;; |
| 6184 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6185 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6186 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6187 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6188 | prefix="/usr"; |
| 6189 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 6190 | if test "$mandir" = '${prefix}/man' ; then |
| 6191 | echo "...and mandir defaults to /usr/share/man" |
| 6192 | mandir=/usr/share/man |
| 6193 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6194 | fi |
| 6195 | ;; |
| 6196 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6197 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 6198 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6199 | root_prefix="$ac_default_prefix" |
| 6200 | else |
| 6201 | root_prefix="$prefix" |
| 6202 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 6203 | root_bindir=$bindir |
| 6204 | root_sbindir=$sbindir |
| 6205 | root_libdir=$libdir |
| 6206 | root_sysconfdir=$sysconfdir |
| 6207 | else |
| 6208 | root_bindir='${root_prefix}/bin' |
| 6209 | root_sbindir='${root_prefix}/sbin' |
| 6210 | root_libdir='${root_prefix}/lib' |
| 6211 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6212 | fi |
| 6213 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6214 | |
| 6215 | |
| 6216 | |
| 6217 | |
| 6218 | echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 6219 | echo "configure:6220: checking whether linker accepts -static" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6220 | if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then |
| 6221 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6222 | else |
| 6223 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6224 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 6225 | #line 6226 "configure" |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6226 | #include "confdefs.h" |
| 6227 | #include <stdio.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6228 | int main() { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6229 | fflush(stdout); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6230 | ; return 0; } |
| 6231 | EOF |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame^] | 6232 | if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6233 | rm -rf conftest* |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6234 | ac_cv_e2fsprogs_use_static=yes |
| 6235 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6236 | echo "configure: failed program was:" >&5 |
| 6237 | cat conftest.$ac_ext >&5 |
| 6238 | rm -rf conftest* |
| 6239 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6240 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6241 | rm -f conftest* |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6242 | LDFLAGS=$SAVE_LDFLAGS |
| 6243 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6244 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6245 | case "$host_os" in |
| 6246 | solaris2.*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6247 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6248 | ;; |
| 6249 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6250 | echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6251 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6252 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6253 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6254 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6255 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6256 | case "$host_os" in |
| 6257 | darwin*) |
| 6258 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6259 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6260 | #define _INTL_REDIRECT_MACROS 1 |
| 6261 | EOF |
| 6262 | |
| 6263 | ;; |
| 6264 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6265 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 6266 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 6267 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6268 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6269 | if test "$cross_compiling" = yes ; then |
| 6270 | DO_TEST_SUITE= |
| 6271 | else |
| 6272 | DO_TEST_SUITE=check |
| 6273 | fi |
| 6274 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 6275 | INTL_FLAGS= |
| 6276 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 6277 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 6278 | fi |
| 6279 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6280 | test -d lib || mkdir lib |
| 6281 | test -d include || mkdir include |
| 6282 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6283 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 6284 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 6285 | util/Makefile util/subst.conf util/gen-tarball \ |
| 6286 | lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 6287 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 6288 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
| 6289 | lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
| 6290 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 6291 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 6292 | if test -d `dirname ${srcdir}/$i` ; then |
| 6293 | outlist="$outlist $i" |
| 6294 | fi |
| 6295 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6296 | trap '' 1 2 15 |
| 6297 | cat > confcache <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6298 | # This file is a shell script that caches the results of configure |
| 6299 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6300 | # scripts and configure runs. It is not useful on other systems. |
| 6301 | # If it contains results you don't want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6302 | # |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6303 | # By default, configure uses ./config.cache as the cache file, |
| 6304 | # creating it if it does not exist already. You can give configure |
| 6305 | # the --cache-file=FILE option to use a different cache file; that is |
| 6306 | # what configure does when it calls configure scripts in |
| 6307 | # subdirectories, so they share the cache. |
| 6308 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6309 | # config.status only pays attention to the cache file if you give it the |
| 6310 | # --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6311 | # |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6312 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6313 | # The following way of writing the cache mishandles newlines in values, |
| 6314 | # but we know of no workaround that is simple, portable, and efficient. |
| 6315 | # So, don't put newlines in cache variables' values. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6316 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6317 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6318 | (set) 2>&1 | |
| 6319 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 6320 | *ac_space=\ *) |
| 6321 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 6322 | # turns \\\\ into \\, and sed turns \\ into \). |
| 6323 | sed -n \ |
| 6324 | -e "s/'/'\\\\''/g" \ |
| 6325 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 6326 | ;; |
| 6327 | *) |
| 6328 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6329 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 6330 | ;; |
| 6331 | esac >> confcache |
| 6332 | if cmp -s $cache_file confcache; then |
| 6333 | : |
| 6334 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6335 | if test -w $cache_file; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6336 | echo "updating cache $cache_file" |
| 6337 | cat confcache > $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6338 | else |
| 6339 | echo "not updating unwritable cache $cache_file" |
| 6340 | fi |
| 6341 | fi |
| 6342 | rm -f confcache |
| 6343 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6344 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 6345 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6346 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6347 | # Let make expand exec_prefix. |
| 6348 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6349 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6350 | # Any assignment to VPATH causes Sun make to only execute |
| 6351 | # the first set of double-colon rules, so remove it if not needed. |
| 6352 | # If there is a colon in the path, we need to keep it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6353 | if test "x$srcdir" = x.; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6354 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6355 | fi |
| 6356 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6357 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 6358 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6359 | # Transform confdefs.h into DEFS. |
| 6360 | # Protect against shell expansion while executing Makefile rules. |
| 6361 | # Protect against Makefile macro expansion. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6362 | cat > conftest.defs <<\EOF |
| 6363 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
| 6364 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 6365 | s%\[%\\&%g |
| 6366 | s%\]%\\&%g |
| 6367 | s%\$%$$%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6368 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6369 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 6370 | rm -f conftest.defs |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6371 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6372 | |
| 6373 | # Without the "./", some shells look in PATH for config.status. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6374 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6375 | |
| 6376 | echo creating $CONFIG_STATUS |
| 6377 | rm -f $CONFIG_STATUS |
| 6378 | cat > $CONFIG_STATUS <<EOF |
| 6379 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6380 | # Generated automatically by configure. |
| 6381 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6382 | # This directory was configured as follows, |
| 6383 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6384 | # |
| 6385 | # $0 $ac_configure_args |
| 6386 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6387 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6388 | # configure, is in ./config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6389 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6390 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 6391 | for ac_option |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6392 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6393 | case "\$ac_option" in |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6394 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6395 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6396 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 6397 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 6398 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 6399 | exit 0 ;; |
| 6400 | -help | --help | --hel | --he | --h) |
| 6401 | echo "\$ac_cs_usage"; exit 0 ;; |
| 6402 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6403 | esac |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6404 | done |
| 6405 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6406 | ac_given_srcdir=$srcdir |
| 6407 | ac_given_INSTALL="$INSTALL" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6408 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6409 | trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 6410 | EOF |
| 6411 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6412 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6413 | # Protect against being on the right side of a sed subst in config.status. |
| 6414 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6415 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 6416 | $ac_vpsub |
| 6417 | $extrasub |
| 6418 | s%@SHELL@%$SHELL%g |
| 6419 | s%@CFLAGS@%$CFLAGS%g |
| 6420 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 6421 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 6422 | s%@FFLAGS@%$FFLAGS%g |
| 6423 | s%@DEFS@%$DEFS%g |
| 6424 | s%@LDFLAGS@%$LDFLAGS%g |
| 6425 | s%@LIBS@%$LIBS%g |
| 6426 | s%@exec_prefix@%$exec_prefix%g |
| 6427 | s%@prefix@%$prefix%g |
| 6428 | s%@program_transform_name@%$program_transform_name%g |
| 6429 | s%@bindir@%$bindir%g |
| 6430 | s%@sbindir@%$sbindir%g |
| 6431 | s%@libexecdir@%$libexecdir%g |
| 6432 | s%@datadir@%$datadir%g |
| 6433 | s%@sysconfdir@%$sysconfdir%g |
| 6434 | s%@sharedstatedir@%$sharedstatedir%g |
| 6435 | s%@localstatedir@%$localstatedir%g |
| 6436 | s%@libdir@%$libdir%g |
| 6437 | s%@includedir@%$includedir%g |
| 6438 | s%@oldincludedir@%$oldincludedir%g |
| 6439 | s%@infodir@%$infodir%g |
| 6440 | s%@mandir@%$mandir%g |
| 6441 | /@MCONFIG@/r $MCONFIG |
| 6442 | s%@MCONFIG@%%g |
| 6443 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g |
| 6444 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g |
| 6445 | s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g |
| 6446 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g |
| 6447 | s%@host@%$host%g |
| 6448 | s%@host_alias@%$host_alias%g |
| 6449 | s%@host_cpu@%$host_cpu%g |
| 6450 | s%@host_vendor@%$host_vendor%g |
| 6451 | s%@host_os@%$host_os%g |
| 6452 | s%@CC@%$CC%g |
| 6453 | s%@LD@%$LD%g |
| 6454 | s%@CPP@%$CPP%g |
| 6455 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g |
| 6456 | s%@HTREE_CMT@%$HTREE_CMT%g |
| 6457 | s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g |
| 6458 | s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6459 | s%@ELF_CMT@%$ELF_CMT%g |
| 6460 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF |
| 6461 | s%@MAKEFILE_ELF@%%g |
| 6462 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g |
| 6463 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB |
| 6464 | s%@MAKEFILE_BSDLIB@%%g |
| 6465 | s%@PROFILE_CMT@%$PROFILE_CMT%g |
| 6466 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE |
| 6467 | s%@MAKEFILE_PROFILE@%%g |
| 6468 | s%@CHECKER_CMT@%$CHECKER_CMT%g |
| 6469 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER |
| 6470 | s%@MAKEFILE_CHECKER@%%g |
| 6471 | s%@LIB_EXT@%$LIB_EXT%g |
| 6472 | s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g |
| 6473 | s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g |
| 6474 | s%@SWAPFS_CMT@%$SWAPFS_CMT%g |
| 6475 | s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g |
| 6476 | s%@IMAGER_CMT@%$IMAGER_CMT%g |
| 6477 | s%@RESIZER_CMT@%$RESIZER_CMT%g |
| 6478 | s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g |
| 6479 | s%@FSCK_PROG@%$FSCK_PROG%g |
| 6480 | s%@FSCK_MAN@%$FSCK_MAN%g |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6481 | s%@E2INITRD_PROG@%$E2INITRD_PROG%g |
| 6482 | s%@E2INITRD_MAN@%$E2INITRD_MAN%g |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6483 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY |
| 6484 | s%@MAKEFILE_LIBRARY@%%g |
| 6485 | s%@PACKAGE@%$PACKAGE%g |
| 6486 | s%@VERSION@%$VERSION%g |
| 6487 | s%@SET_MAKE@%$SET_MAKE%g |
| 6488 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 6489 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| 6490 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 6491 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
| 6492 | s%@MSGFMT@%$MSGFMT%g |
| 6493 | s%@GMSGFMT@%$GMSGFMT%g |
| 6494 | s%@XGETTEXT@%$XGETTEXT%g |
| 6495 | s%@MSGMERGE@%$MSGMERGE%g |
| 6496 | s%@RANLIB@%$RANLIB%g |
| 6497 | s%@ALLOCA@%$ALLOCA%g |
| 6498 | s%@GLIBC21@%$GLIBC21%g |
| 6499 | s%@LIBICONV@%$LIBICONV%g |
| 6500 | s%@LTLIBICONV@%$LTLIBICONV%g |
| 6501 | s%@INTLBISON@%$INTLBISON%g |
| 6502 | s%@USE_NLS@%$USE_NLS%g |
| 6503 | s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g |
| 6504 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
| 6505 | s%@CATOBJEXT@%$CATOBJEXT%g |
| 6506 | s%@INTLOBJS@%$INTLOBJS%g |
| 6507 | s%@DATADIRNAME@%$DATADIRNAME%g |
| 6508 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
| 6509 | s%@GENCAT@%$GENCAT%g |
| 6510 | s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g |
| 6511 | s%@INTLLIBS@%$INTLLIBS%g |
| 6512 | s%@LIBINTL@%$LIBINTL%g |
| 6513 | s%@LTLIBINTL@%$LTLIBINTL%g |
| 6514 | s%@POSUB@%$POSUB%g |
| 6515 | s%@BINARY_TYPE@%$BINARY_TYPE%g |
| 6516 | s%@LN@%$LN%g |
| 6517 | s%@LN_S@%$LN_S%g |
| 6518 | s%@MV@%$MV%g |
| 6519 | s%@CP@%$CP%g |
| 6520 | s%@RM@%$RM%g |
| 6521 | s%@CHMOD@%$CHMOD%g |
| 6522 | s%@AWK@%$AWK%g |
| 6523 | s%@SED@%$SED%g |
| 6524 | s%@PERL@%$PERL%g |
| 6525 | s%@LDCONFIG@%$LDCONFIG%g |
| 6526 | s%@build@%$build%g |
| 6527 | s%@build_alias@%$build_alias%g |
| 6528 | s%@build_cpu@%$build_cpu%g |
| 6529 | s%@build_vendor@%$build_vendor%g |
| 6530 | s%@build_os@%$build_os%g |
| 6531 | s%@AR@%$AR%g |
| 6532 | s%@STRIP@%$STRIP%g |
| 6533 | s%@BUILD_CC@%$BUILD_CC%g |
| 6534 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g |
| 6535 | s%@SIZEOF_INT@%$SIZEOF_INT%g |
| 6536 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g |
| 6537 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g |
| 6538 | s%@SOCKET_LIB@%$SOCKET_LIB%g |
| 6539 | s%@DLOPEN_LIB@%$DLOPEN_LIB%g |
| 6540 | s%@LINUX_CMT@%$LINUX_CMT%g |
| 6541 | s%@CYGWIN_CMT@%$CYGWIN_CMT%g |
| 6542 | s%@UNIX_CMT@%$UNIX_CMT%g |
| 6543 | s%@EVMS_CMT@%$EVMS_CMT%g |
| 6544 | s%@root_prefix@%$root_prefix%g |
| 6545 | s%@root_bindir@%$root_bindir%g |
| 6546 | s%@root_sbindir@%$root_sbindir%g |
| 6547 | s%@root_libdir@%$root_libdir%g |
| 6548 | s%@root_sysconfdir@%$root_sysconfdir%g |
| 6549 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g |
| 6550 | s%@SS_DIR@%$SS_DIR%g |
| 6551 | s%@ET_DIR@%$ET_DIR%g |
| 6552 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g |
| 6553 | s%@INTL_FLAGS@%$INTL_FLAGS%g |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6554 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6555 | CEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6556 | EOF |
| 6557 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6558 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6559 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6560 | # Split the substitutions into bite-sized pieces for seds with |
| 6561 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6562 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6563 | ac_file=1 # Number of current file. |
| 6564 | ac_beg=1 # First line for current file. |
| 6565 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6566 | ac_more_lines=: |
| 6567 | ac_sed_cmds="" |
| 6568 | while $ac_more_lines; do |
| 6569 | if test $ac_beg -gt 1; then |
| 6570 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6571 | else |
| 6572 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6573 | fi |
| 6574 | if test ! -s conftest.s$ac_file; then |
| 6575 | ac_more_lines=false |
| 6576 | rm -f conftest.s$ac_file |
| 6577 | else |
| 6578 | if test -z "$ac_sed_cmds"; then |
| 6579 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6580 | else |
| 6581 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6582 | fi |
| 6583 | ac_file=`expr $ac_file + 1` |
| 6584 | ac_beg=$ac_end |
| 6585 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6586 | fi |
| 6587 | done |
| 6588 | if test -z "$ac_sed_cmds"; then |
| 6589 | ac_sed_cmds=cat |
| 6590 | fi |
| 6591 | EOF |
| 6592 | |
| 6593 | cat >> $CONFIG_STATUS <<EOF |
| 6594 | |
| 6595 | CONFIG_FILES=\${CONFIG_FILES-"$outlist"} |
| 6596 | EOF |
| 6597 | cat >> $CONFIG_STATUS <<\EOF |
| 6598 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 6599 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6600 | case "$ac_file" in |
| 6601 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 6602 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6603 | *) ac_file_in="${ac_file}.in" ;; |
| 6604 | esac |
| 6605 | |
| 6606 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 6607 | |
| 6608 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6609 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6610 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6611 | # The file is in a subdirectory. |
| 6612 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6613 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 6614 | # A "../" for each directory in $ac_dir_suffix. |
| 6615 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6616 | else |
| 6617 | ac_dir_suffix= ac_dots= |
| 6618 | fi |
| 6619 | |
| 6620 | case "$ac_given_srcdir" in |
| 6621 | .) srcdir=. |
| 6622 | if test -z "$ac_dots"; then top_srcdir=. |
| 6623 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6624 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6625 | *) # Relative path. |
| 6626 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6627 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6628 | esac |
| 6629 | |
| 6630 | case "$ac_given_INSTALL" in |
| 6631 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 6632 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 6633 | esac |
| 6634 | |
| 6635 | echo creating "$ac_file" |
| 6636 | rm -f "$ac_file" |
| 6637 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6638 | case "$ac_file" in |
| 6639 | *Makefile*) ac_comsub="1i\\ |
| 6640 | # $configure_input" ;; |
| 6641 | *) ac_comsub= ;; |
| 6642 | esac |
| 6643 | |
| 6644 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6645 | sed -e "$ac_comsub |
| 6646 | s%@configure_input@%$configure_input%g |
| 6647 | s%@srcdir@%$srcdir%g |
| 6648 | s%@top_srcdir@%$top_srcdir%g |
| 6649 | s%@INSTALL@%$INSTALL%g |
| 6650 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 6651 | fi; done |
| 6652 | rm -f conftest.s* |
| 6653 | |
| 6654 | EOF |
| 6655 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6656 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 6657 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
| 6658 | # from automake. |
| 6659 | eval 'ALL_LINGUAS''="$ALL_LINGUAS"' |
| 6660 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 6661 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6662 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6663 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6664 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6665 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6666 | |
| 6667 | for ac_file in $CONFIG_FILES; do |
| 6668 | # Support "outfile[:infile[:infile...]]" |
| 6669 | case "$ac_file" in |
| 6670 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6671 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6672 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 6673 | case "$ac_file" in */Makefile.in) |
| 6674 | # Adjust a relative srcdir. |
| 6675 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 6676 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 6677 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 6678 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 6679 | # In autoconf-2.50 it is called $srcdir. |
| 6680 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 6681 | case "$ac_given_srcdir" in |
| 6682 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 6683 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 6684 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6685 | esac |
| 6686 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 6687 | rm -f "$ac_dir/POTFILES" |
| 6688 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 6689 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 6690 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
| 6691 | # on $ac_dir but don't depend on user-specified configuration |
| 6692 | # parameters. |
| 6693 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 6694 | # The LINGUAS file contains the set of available languages. |
| 6695 | if test -n "$ALL_LINGUAS"; then |
| 6696 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 6697 | fi |
| 6698 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 6699 | # Hide the ALL_LINGUAS assigment from automake. |
| 6700 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 6701 | fi |
| 6702 | case "$ac_given_srcdir" in |
| 6703 | .) srcdirpre= ;; |
| 6704 | *) srcdirpre='$(srcdir)/' ;; |
| 6705 | esac |
| 6706 | POFILES= |
| 6707 | GMOFILES= |
| 6708 | UPDATEPOFILES= |
| 6709 | DUMMYPOFILES= |
| 6710 | for lang in $ALL_LINGUAS; do |
| 6711 | POFILES="$POFILES $srcdirpre$lang.po" |
| 6712 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 6713 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 6714 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 6715 | done |
| 6716 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 6717 | # environment variable. |
| 6718 | INST_LINGUAS= |
| 6719 | if test -n "$ALL_LINGUAS"; then |
| 6720 | for presentlang in $ALL_LINGUAS; do |
| 6721 | useit=no |
| 6722 | if test "%UNSET%" != "$LINGUAS"; then |
| 6723 | desiredlanguages="$LINGUAS" |
| 6724 | else |
| 6725 | desiredlanguages="$ALL_LINGUAS" |
| 6726 | fi |
| 6727 | for desiredlang in $desiredlanguages; do |
| 6728 | # Use the presentlang catalog if desiredlang is |
| 6729 | # a. equal to presentlang, or |
| 6730 | # b. a variant of presentlang (because in this case, |
| 6731 | # presentlang can be used as a fallback for messages |
| 6732 | # which are not translated in the desiredlang catalog). |
| 6733 | case "$desiredlang" in |
| 6734 | "$presentlang"*) useit=yes;; |
| 6735 | esac |
| 6736 | done |
| 6737 | if test $useit = yes; then |
| 6738 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 6739 | fi |
| 6740 | done |
| 6741 | fi |
| 6742 | CATALOGS= |
| 6743 | if test -n "$INST_LINGUAS"; then |
| 6744 | for lang in $INST_LINGUAS; do |
| 6745 | CATALOGS="$CATALOGS $lang.gmo" |
| 6746 | done |
| 6747 | fi |
| 6748 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 6749 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 6750 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 6751 | if test -f "$f"; then |
| 6752 | case "$f" in |
| 6753 | *.orig | *.bak | *~) ;; |
| 6754 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 6755 | esac |
| 6756 | fi |
| 6757 | done |
| 6758 | fi |
| 6759 | ;; |
| 6760 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6761 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6762 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6763 | exit 0 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6764 | EOF |
| 6765 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6766 | rm -fr confdefs* $ac_clean_files |
| 6767 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6768 | |