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 |
| 39 | --enable-dll-shlibs select DLL libraries" |
| 40 | ac_help="$ac_help |
| 41 | --enable-elf-shlibs select ELF shared libraries" |
| 42 | ac_help="$ac_help |
| 43 | --enable-bsd-shlibs select BSD shared libraries" |
| 44 | ac_help="$ac_help |
| 45 | --enable-profile build profiling libraries" |
| 46 | ac_help="$ac_help |
| 47 | --enable-checker build checker libraries" |
| 48 | ac_help="$ac_help |
| 49 | --enable-jbd-debug enable journal debugging" |
| 50 | ac_help="$ac_help |
| 51 | --enable-blkid-debug enable blkid debugging" |
| 52 | ac_help="$ac_help |
| 53 | --enable-testio-debug enable the use of the test I/O manager for debugging" |
| 54 | ac_help="$ac_help |
| 55 | --disable-swapfs disable support of legacy byte-swapped filesystems" |
| 56 | ac_help="$ac_help |
| 57 | --disable-debugfs disable support of debugfs program" |
| 58 | ac_help="$ac_help |
| 59 | --disable-imager disable support of e2image program" |
| 60 | ac_help="$ac_help |
| 61 | --disable-resizer disable support of e2resize program" |
| 62 | ac_help="$ac_help |
| 63 | --enable-dynamic-e2fsck build e2fsck dynamically" |
| 64 | ac_help="$ac_help |
| 65 | --enable-fsck build fsck wrapper program" |
| 66 | ac_help="$ac_help |
| 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 |
| 603 | echo "configure:604: checking for ld used by GCC" >&5 |
| 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 |
| 633 | echo "configure:634: checking for GNU ld" >&5 |
| 634 | else |
| 635 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
| 636 | echo "configure:637: checking for non-GNU ld" >&5 |
| 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 |
| 671 | echo "configure:672: checking if the linker ($LD) is GNU ld" >&5 |
| 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 |
| 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 |
| 799 | echo "configure:800: checking for $ac_word" >&5 |
| 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 |
| 829 | echo "configure:830: checking for $ac_word" >&5 |
| 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 |
| 880 | echo "configure:881: checking for $ac_word" >&5 |
| 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 |
| 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 | |
| 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 |
| 928 | if { (eval echo configure:929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 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 |
| 954 | echo "configure:955: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 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 |
| 959 | echo "configure:960: checking whether we are using GNU C" >&5 |
| 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 |
| 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 |
| 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 |
| 987 | echo "configure:988: checking whether ${CC-cc} accepts -g" >&5 |
| 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 |
| 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 |
| 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" |
| 1057 | { (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 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 |
| 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" |
| 1074 | { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 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 |
| 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" |
| 1091 | { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 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 |
| 1117 | echo "configure:1118: checking for linux/fs.h" >&5 |
| 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 |
| 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" |
| 1127 | { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 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 |
| 1154 | echo "configure:1155: checking for additional special compiler flags" >&5 |
| 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-dll-shlibs or --disable-dll-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1297 | if test "${enable_dll_shlibs+set}" = set; then |
| 1298 | enableval="$enable_dll_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1299 | if test "$enableval" = "no" |
| 1300 | then |
| 1301 | DLL_CMT=# |
| 1302 | MAKEFILE_DLL=/dev/null |
| 1303 | echo "Disabling DLL shared libraries" |
| 1304 | else |
| 1305 | DLL_CMT= |
| 1306 | MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1307 | BINARY_TYPE=dllbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1308 | LIB_EXT=.sa |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1309 | echo "Enabling DLL shared libraries" |
| 1310 | fi |
| 1311 | |
| 1312 | else |
| 1313 | MAKEFILE_DLL=/dev/null |
| 1314 | DLL_CMT=# |
| 1315 | echo "Disabling DLL shared libraries by default" |
| 1316 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1317 | fi |
| 1318 | |
| 1319 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1320 | |
| 1321 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1322 | if test "${enable_elf_shlibs+set}" = set; then |
| 1323 | enableval="$enable_elf_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1324 | if test "$enableval" = "no" |
| 1325 | then |
| 1326 | ELF_CMT=# |
| 1327 | MAKEFILE_ELF=/dev/null |
| 1328 | echo "Disabling ELF shared libraries" |
| 1329 | else |
| 1330 | ELF_CMT= |
| 1331 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 1332 | case "$host_os" in |
| 1333 | solaris2.*) |
| 1334 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 1335 | ;; |
| 1336 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1337 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1338 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1339 | echo "Enabling ELF shared libraries" |
| 1340 | fi |
| 1341 | |
| 1342 | else |
| 1343 | MAKEFILE_ELF=/dev/null |
| 1344 | ELF_CMT=# |
| 1345 | echo "Disabling ELF shared libraries by default" |
| 1346 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1347 | fi |
| 1348 | |
| 1349 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1350 | |
| 1351 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1352 | if test "${enable_bsd_shlibs+set}" = set; then |
| 1353 | enableval="$enable_bsd_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1354 | if test "$enableval" = "no" |
| 1355 | then |
| 1356 | BSDLIB_CMT=# |
| 1357 | MAKEFILE_BSDLIB=/dev/null |
| 1358 | echo "Disabling BSD shared libraries" |
| 1359 | else |
| 1360 | BSDLIB_CMT= |
| 1361 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1362 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1363 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 1364 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1365 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 1366 | LIB_EXT=.dylib |
| 1367 | ;; |
| 1368 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1369 | echo "Enabling BSD shared libraries" |
| 1370 | fi |
| 1371 | |
| 1372 | else |
| 1373 | MAKEFILE_BSDLIB=/dev/null |
| 1374 | BSDLIB_CMT=# |
| 1375 | echo "Disabling BSD shared libraries by default" |
| 1376 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1377 | fi |
| 1378 | |
| 1379 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1380 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1381 | # Check whether --enable-profile or --disable-profile was given. |
| 1382 | if test "${enable_profile+set}" = set; then |
| 1383 | enableval="$enable_profile" |
| 1384 | if test "$enableval" = "no" |
| 1385 | then |
| 1386 | PROFILE_CMT=# |
| 1387 | MAKEFILE_PROFILE=/dev/null |
| 1388 | echo "Disabling profiling libraries" |
| 1389 | else |
| 1390 | PROFILE_CMT= |
| 1391 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 1392 | PROFILED_LIB_EXT=_p.a |
| 1393 | echo "Building profiling libraries" |
| 1394 | fi |
| 1395 | |
| 1396 | else |
| 1397 | PROFILE_CMT=# |
| 1398 | MAKEFILE_PROFILE=/dev/null |
| 1399 | echo "Disabling profiling libraries by default" |
| 1400 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1401 | fi |
| 1402 | |
| 1403 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1404 | |
| 1405 | # Check whether --enable-checker or --disable-checker was given. |
| 1406 | if test "${enable_checker+set}" = set; then |
| 1407 | enableval="$enable_checker" |
| 1408 | if test "$enableval" = "no" |
| 1409 | then |
| 1410 | CHECKER_CMT=# |
| 1411 | MAKEFILE_CHECKER=/dev/null |
| 1412 | echo "Disabling checker libraries" |
| 1413 | else |
| 1414 | CHECKER_CMT= |
| 1415 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 1416 | echo "Building checker libraries" |
| 1417 | fi |
| 1418 | |
| 1419 | else |
| 1420 | CHECKER_CMT=# |
| 1421 | MAKEFILE_CHECKER=/dev/null |
| 1422 | echo "Disabling checker libraries by default" |
| 1423 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1424 | fi |
| 1425 | |
| 1426 | |
| 1427 | |
| 1428 | |
| 1429 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1430 | |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 1431 | # Check whether --enable-jbd-debug or --disable-jbd-debug was given. |
| 1432 | if test "${enable_jbd_debug+set}" = set; then |
| 1433 | enableval="$enable_jbd_debug" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1434 | if test "$enableval" = "no" |
| 1435 | then |
| 1436 | echo "Disabling journal debugging" |
| 1437 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1438 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 1439 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1440 | EOF |
| 1441 | |
| 1442 | echo "Enabling journal debugging" |
| 1443 | fi |
| 1444 | |
| 1445 | else |
| 1446 | echo "Disabling journal debugging by default" |
| 1447 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1448 | fi |
| 1449 | |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 1450 | # Check whether --enable-blkid-debug or --disable-blkid-debug was given. |
| 1451 | if test "${enable_blkid_debug+set}" = set; then |
| 1452 | enableval="$enable_blkid_debug" |
| 1453 | if test "$enableval" = "no" |
| 1454 | then |
| 1455 | echo "Disabling blkid debugging" |
| 1456 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1457 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 1458 | #define CONFIG_BLKID_DEBUG 1 |
| 1459 | EOF |
| 1460 | |
| 1461 | echo "Enabling blkid debugging" |
| 1462 | fi |
| 1463 | |
| 1464 | else |
| 1465 | echo "Disabling blkid debugging by default" |
| 1466 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1467 | fi |
| 1468 | |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1469 | # Check whether --enable-testio-debug or --disable-testio-debug was given. |
| 1470 | if test "${enable_testio_debug+set}" = set; then |
| 1471 | enableval="$enable_testio_debug" |
| 1472 | if test "$enableval" = "no" |
| 1473 | then |
| 1474 | echo "Disabling testio debugging" |
| 1475 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1476 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1477 | #define CONFIG_TESTIO_DEBUG 1 |
| 1478 | EOF |
| 1479 | |
| 1480 | echo "Enabling testio debugging" |
| 1481 | fi |
| 1482 | |
| 1483 | else |
| 1484 | echo "Disabling testio debugging by default" |
| 1485 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1486 | fi |
| 1487 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1488 | # Check whether --enable-swapfs or --disable-swapfs was given. |
| 1489 | if test "${enable_swapfs+set}" = set; then |
| 1490 | enableval="$enable_swapfs" |
| 1491 | if test "$enableval" = "no" |
| 1492 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1493 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1494 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1495 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1496 | SWAPFS_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1497 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1498 | #define ENABLE_SWAPFS 1 |
| 1499 | EOF |
| 1500 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1501 | echo "Enabling swapfs support" |
| 1502 | fi |
| 1503 | |
| 1504 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1505 | SWAPFS_CMT= |
| 1506 | echo "Enabling swapfs support by default" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1507 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1508 | #define ENABLE_SWAPFS 1 |
| 1509 | EOF |
| 1510 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1511 | |
| 1512 | fi |
| 1513 | |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1514 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1515 | # Check whether --enable-debugfs or --disable-debugfs was given. |
| 1516 | if test "${enable_debugfs+set}" = set; then |
| 1517 | enableval="$enable_debugfs" |
| 1518 | if test "$enableval" = "no" |
| 1519 | then |
| 1520 | echo "Disabling debugfs support" |
| 1521 | DEBUGFS_CMT="#" |
| 1522 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1523 | DEBUGFS_CMT= |
| 1524 | echo "Enabling debugfs support" |
| 1525 | fi |
| 1526 | |
| 1527 | else |
| 1528 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1529 | DEBUGFS_CMT= |
| 1530 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1531 | fi |
| 1532 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1533 | |
| 1534 | # Check whether --enable-imager or --disable-imager was given. |
| 1535 | if test "${enable_imager+set}" = set; then |
| 1536 | enableval="$enable_imager" |
| 1537 | if test "$enableval" = "no" |
| 1538 | then |
| 1539 | echo "Disabling e2image support" |
| 1540 | IMAGER_CMT="#" |
| 1541 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1542 | IMAGER_CMT= |
| 1543 | echo "Enabling e2image support" |
| 1544 | fi |
| 1545 | |
| 1546 | else |
| 1547 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1548 | IMAGER_CMT= |
| 1549 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1550 | fi |
| 1551 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1552 | |
| 1553 | # Check whether --enable-resizer or --disable-resizer was given. |
| 1554 | if test "${enable_resizer+set}" = set; then |
| 1555 | enableval="$enable_resizer" |
| 1556 | if test "$enableval" = "no" |
| 1557 | then |
| 1558 | echo "Disabling e2resize support" |
| 1559 | RESIZER_CMT="#" |
| 1560 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1561 | RESIZER_CMT= |
| 1562 | echo "Enabling e2resize support" |
| 1563 | fi |
| 1564 | |
| 1565 | else |
| 1566 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1567 | RESIZER_CMT= |
| 1568 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1569 | fi |
| 1570 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1571 | |
| 1572 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. |
| 1573 | if test "${enable_dynamic_e2fsck+set}" = set; then |
| 1574 | enableval="$enable_dynamic_e2fsck" |
| 1575 | if test "$enableval" = "no" |
| 1576 | then |
| 1577 | E2FSCK_TYPE=static |
| 1578 | echo "Building e2fsck statically" |
| 1579 | else |
| 1580 | E2FSCK_TYPE=shared |
| 1581 | echo "Building e2fsck dynamically" |
| 1582 | fi |
| 1583 | |
| 1584 | else |
| 1585 | E2FSCK_TYPE=static |
| 1586 | echo "Building e2fsck statically by default" |
| 1587 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1588 | fi |
| 1589 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1590 | |
| 1591 | # Check whether --enable-fsck or --disable-fsck was given. |
| 1592 | if test "${enable_fsck+set}" = set; then |
| 1593 | enableval="$enable_fsck" |
| 1594 | if test "$enableval" = "no" |
| 1595 | then |
| 1596 | FSCK_PROG='' FSCK_MAN='' |
| 1597 | echo "Not building fsck wrapper" |
| 1598 | else |
| 1599 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 1600 | echo "Building fsck wrapper" |
| 1601 | fi |
| 1602 | |
| 1603 | else |
| 1604 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 1605 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1606 | FSCK_PROG='' FSCK_MAN='' |
| 1607 | echo "Not building fsck wrapper by default" |
| 1608 | ;; |
| 1609 | *) |
| 1610 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 1611 | echo "Building fsck wrapper by default" |
| 1612 | esac |
| 1613 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1614 | fi |
| 1615 | |
| 1616 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1617 | |
| 1618 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 1619 | |
| 1620 | # Check whether --enable-old-bitops or --disable-old-bitops was given. |
| 1621 | if test "${enable_old_bitops+set}" = set; then |
| 1622 | enableval="$enable_old_bitops" |
| 1623 | if test "$enableval" = "no" |
| 1624 | then |
| 1625 | echo "Using new (standard) bitmask operations" |
| 1626 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1627 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1628 | #define EXT2_OLD_BITOPS 1 |
| 1629 | EOF |
| 1630 | |
| 1631 | echo "Using old (native) bitmask operations" |
| 1632 | |
| 1633 | fi |
| 1634 | |
| 1635 | else |
| 1636 | echo "Using standard bitmask operations by default" |
| 1637 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1638 | fi |
| 1639 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1640 | PACKAGE=e2fsprogs |
| 1641 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1642 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1643 | #define PACKAGE "$PACKAGE" |
| 1644 | EOF |
| 1645 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1646 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1647 | #define VERSION "$VERSION" |
| 1648 | EOF |
| 1649 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1650 | |
| 1651 | |
| 1652 | |
| 1653 | |
| 1654 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1655 | echo "configure:1656: checking for inttypes.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1656 | if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then |
| 1657 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1658 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1659 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1660 | #line 1661 "configure" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1661 | #include "confdefs.h" |
| 1662 | #include <sys/types.h> |
| 1663 | #include <inttypes.h> |
| 1664 | int main() { |
| 1665 | uintmax_t i = (uintmax_t) -1; |
| 1666 | ; return 0; } |
| 1667 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1668 | if { (eval echo configure:1669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1669 | rm -rf conftest* |
| 1670 | jm_ac_cv_header_inttypes_h=yes |
| 1671 | else |
| 1672 | echo "configure: failed program was:" >&5 |
| 1673 | cat conftest.$ac_ext >&5 |
| 1674 | rm -rf conftest* |
| 1675 | jm_ac_cv_header_inttypes_h=no |
| 1676 | fi |
| 1677 | rm -f conftest* |
| 1678 | fi |
| 1679 | |
| 1680 | echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6 |
| 1681 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 1682 | cat >> confdefs.h <<EOF |
| 1683 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 1684 | EOF |
| 1685 | |
| 1686 | fi |
| 1687 | |
| 1688 | |
| 1689 | echo $ac_n "checking for stdint.h""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1690 | echo "configure:1691: checking for stdint.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1691 | if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then |
| 1692 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1693 | else |
| 1694 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1695 | #line 1696 "configure" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1696 | #include "confdefs.h" |
| 1697 | #include <sys/types.h> |
| 1698 | #include <stdint.h> |
| 1699 | int main() { |
| 1700 | uintmax_t i = (uintmax_t) -1; |
| 1701 | ; return 0; } |
| 1702 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1703 | if { (eval echo configure:1704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1704 | rm -rf conftest* |
| 1705 | jm_ac_cv_header_stdint_h=yes |
| 1706 | else |
| 1707 | echo "configure: failed program was:" >&5 |
| 1708 | cat conftest.$ac_ext >&5 |
| 1709 | rm -rf conftest* |
| 1710 | jm_ac_cv_header_stdint_h=no |
| 1711 | fi |
| 1712 | rm -f conftest* |
| 1713 | fi |
| 1714 | |
| 1715 | echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6 |
| 1716 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 1717 | cat >> confdefs.h <<EOF |
| 1718 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 1719 | EOF |
| 1720 | |
| 1721 | fi |
| 1722 | |
| 1723 | |
| 1724 | echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1725 | echo "configure:1726: checking for unsigned long long" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1726 | if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then |
| 1727 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1728 | else |
| 1729 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1730 | #line 1731 "configure" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1731 | #include "confdefs.h" |
| 1732 | unsigned long long ull = 1; int i = 63; |
| 1733 | int main() { |
| 1734 | unsigned long long ullmax = (unsigned long long) -1; |
| 1735 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 1736 | ; return 0; } |
| 1737 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1738 | if { (eval echo configure:1739: \"$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] | 1739 | rm -rf conftest* |
| 1740 | ac_cv_type_unsigned_long_long=yes |
| 1741 | else |
| 1742 | echo "configure: failed program was:" >&5 |
| 1743 | cat conftest.$ac_ext >&5 |
| 1744 | rm -rf conftest* |
| 1745 | ac_cv_type_unsigned_long_long=no |
| 1746 | fi |
| 1747 | rm -f conftest* |
| 1748 | fi |
| 1749 | |
| 1750 | echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6 |
| 1751 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 1752 | cat >> confdefs.h <<\EOF |
| 1753 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 1754 | EOF |
| 1755 | |
| 1756 | fi |
| 1757 | |
| 1758 | |
| 1759 | if test "X$prefix" = "XNONE"; then |
| 1760 | acl_final_prefix="$ac_default_prefix" |
| 1761 | else |
| 1762 | acl_final_prefix="$prefix" |
| 1763 | fi |
| 1764 | if test "X$exec_prefix" = "XNONE"; then |
| 1765 | acl_final_exec_prefix='${prefix}' |
| 1766 | else |
| 1767 | acl_final_exec_prefix="$exec_prefix" |
| 1768 | fi |
| 1769 | acl_save_prefix="$prefix" |
| 1770 | prefix="$acl_final_prefix" |
| 1771 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 1772 | prefix="$acl_save_prefix" |
| 1773 | |
| 1774 | |
| 1775 | echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1776 | echo "configure:1777: checking for shared library run path origin" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1777 | if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then |
| 1778 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1779 | else |
| 1780 | |
| 1781 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 1782 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 1783 | . ./conftest.sh |
| 1784 | rm -f ./conftest.sh |
| 1785 | acl_cv_rpath=done |
| 1786 | |
| 1787 | fi |
| 1788 | |
| 1789 | echo "$ac_t""$acl_cv_rpath" 1>&6 |
| 1790 | wl="$acl_cv_wl" |
| 1791 | libext="$acl_cv_libext" |
| 1792 | shlibext="$acl_cv_shlibext" |
| 1793 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 1794 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 1795 | hardcode_direct="$acl_cv_hardcode_direct" |
| 1796 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 1797 | sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" |
| 1798 | sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" |
| 1799 | # Check whether --enable-rpath or --disable-rpath was given. |
| 1800 | if test "${enable_rpath+set}" = set; then |
| 1801 | enableval="$enable_rpath" |
| 1802 | : |
| 1803 | else |
| 1804 | enable_rpath=yes |
| 1805 | fi |
| 1806 | |
| 1807 | |
| 1808 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1809 | echo "configure:1810: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1810 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 1811 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 1812 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1813 | else |
| 1814 | cat > conftestmake <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1815 | all: |
| 1816 | @echo 'ac_maketemp="${MAKE}"' |
| 1817 | EOF |
| 1818 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1819 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1820 | if test -n "$ac_maketemp"; then |
| 1821 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1822 | else |
| 1823 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1824 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1825 | rm -f conftestmake |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1826 | fi |
| 1827 | 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] | 1828 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1829 | SET_MAKE= |
| 1830 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1831 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1832 | SET_MAKE="MAKE=${MAKE-make}" |
| 1833 | fi |
| 1834 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1835 | # Find a good install program. We prefer a C program (faster), |
| 1836 | # so one script is as good as another. But avoid the broken or |
| 1837 | # incompatible versions: |
| 1838 | # SysV /etc/install, /usr/sbin/install |
| 1839 | # SunOS /usr/etc/install |
| 1840 | # IRIX /sbin/install |
| 1841 | # AIX /bin/install |
| 1842 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1843 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1844 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1845 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1846 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1847 | echo "configure:1848: checking for a BSD compatible install" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1848 | if test -z "$INSTALL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1849 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1850 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1851 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1852 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1853 | for ac_dir in $PATH; do |
| 1854 | # Account for people who put trailing slashes in PATH elements. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1855 | case "$ac_dir/" in |
| 1856 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1857 | *) |
| 1858 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1859 | # Don't use installbsd from OSF since it installs stuff as root |
| 1860 | # by default. |
| 1861 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1862 | if test -f $ac_dir/$ac_prog; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1863 | if test $ac_prog = install && |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1864 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1865 | # AIX install. It has an incompatible calling convention. |
| 1866 | : |
| 1867 | else |
| 1868 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1869 | break 2 |
| 1870 | fi |
| 1871 | fi |
| 1872 | done |
| 1873 | ;; |
| 1874 | esac |
| 1875 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1876 | IFS="$ac_save_IFS" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1877 | |
| 1878 | fi |
| 1879 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1880 | INSTALL="$ac_cv_path_install" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1881 | else |
| 1882 | # As a last resort, use the slow shell script. We don't cache a |
| 1883 | # path for INSTALL within a source directory, because that will |
| 1884 | # break other packages using the cache if that directory is |
| 1885 | # removed, or if the path is relative. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1886 | INSTALL="$ac_install_sh" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1887 | fi |
| 1888 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1889 | echo "$ac_t""$INSTALL" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1890 | |
| 1891 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1892 | # It thinks the first close brace ends the variable substitution. |
| 1893 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1894 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1895 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1896 | |
| 1897 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1898 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1899 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1900 | MKINSTALLDIRS= |
| 1901 | if test -n "$ac_aux_dir"; then |
| 1902 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
| 1903 | fi |
| 1904 | if test -z "$MKINSTALLDIRS"; then |
| 1905 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 1906 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1907 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1908 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1909 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1910 | set dummy ranlib; ac_word=$2 |
| 1911 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1912 | echo "configure:1913: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1913 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1914 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1915 | else |
| 1916 | if test -n "$RANLIB"; then |
| 1917 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1918 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1919 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1920 | ac_dummy="$PATH" |
| 1921 | for ac_dir in $ac_dummy; do |
| 1922 | test -z "$ac_dir" && ac_dir=. |
| 1923 | if test -f $ac_dir/$ac_word; then |
| 1924 | ac_cv_prog_RANLIB="ranlib" |
| 1925 | break |
| 1926 | fi |
| 1927 | done |
| 1928 | IFS="$ac_save_ifs" |
| 1929 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1930 | fi |
| 1931 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1932 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1933 | if test -n "$RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1934 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1935 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1936 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1937 | fi |
| 1938 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1939 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1940 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1941 | echo "configure:1942: checking for strerror in -lcposix" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1942 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
| 1943 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1944 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1945 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1946 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1947 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1948 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1949 | #line 1950 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1950 | #include "confdefs.h" |
| 1951 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1952 | /* 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] | 1953 | builtin and then its argument prototype would still apply. */ |
| 1954 | char strerror(); |
| 1955 | |
| 1956 | int main() { |
| 1957 | strerror() |
| 1958 | ; return 0; } |
| 1959 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1960 | if { (eval echo configure:1961: \"$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] | 1961 | rm -rf conftest* |
| 1962 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1963 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1964 | echo "configure: failed program was:" >&5 |
| 1965 | cat conftest.$ac_ext >&5 |
| 1966 | rm -rf conftest* |
| 1967 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1968 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1969 | rm -f conftest* |
| 1970 | LIBS="$ac_save_LIBS" |
| 1971 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1972 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1973 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1974 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1975 | LIBS="$LIBS -lcposix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1976 | else |
| 1977 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1978 | fi |
| 1979 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1980 | |
| 1981 | |
| 1982 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1983 | echo "configure:1984: checking for ANSI C header files" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1984 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1985 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1986 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1987 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1988 | #line 1989 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1989 | #include "confdefs.h" |
| 1990 | #include <stdlib.h> |
| 1991 | #include <stdarg.h> |
| 1992 | #include <string.h> |
| 1993 | #include <float.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1994 | EOF |
| 1995 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1996 | { (eval echo configure:1997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1997 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1998 | if test -z "$ac_err"; then |
| 1999 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2000 | ac_cv_header_stdc=yes |
| 2001 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2002 | echo "$ac_err" >&5 |
| 2003 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2004 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2005 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2006 | ac_cv_header_stdc=no |
| 2007 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2008 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2009 | |
| 2010 | if test $ac_cv_header_stdc = yes; then |
| 2011 | # 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] | 2012 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2013 | #line 2014 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2014 | #include "confdefs.h" |
| 2015 | #include <string.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2016 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2018 | egrep "memchr" >/dev/null 2>&1; then |
| 2019 | : |
| 2020 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2021 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2022 | ac_cv_header_stdc=no |
| 2023 | fi |
| 2024 | rm -f conftest* |
| 2025 | |
| 2026 | fi |
| 2027 | |
| 2028 | if test $ac_cv_header_stdc = yes; then |
| 2029 | # 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] | 2030 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2031 | #line 2032 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2032 | #include "confdefs.h" |
| 2033 | #include <stdlib.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2034 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2035 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2036 | egrep "free" >/dev/null 2>&1; then |
| 2037 | : |
| 2038 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2039 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2040 | ac_cv_header_stdc=no |
| 2041 | fi |
| 2042 | rm -f conftest* |
| 2043 | |
| 2044 | fi |
| 2045 | |
| 2046 | if test $ac_cv_header_stdc = yes; then |
| 2047 | # /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] | 2048 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2049 | : |
| 2050 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2051 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2052 | #line 2053 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2053 | #include "confdefs.h" |
| 2054 | #include <ctype.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2055 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2056 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2057 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2058 | int main () { int i; for (i = 0; i < 256; i++) |
| 2059 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2060 | exit (0); } |
| 2061 | |
| 2062 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2063 | if { (eval echo configure:2064: \"$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] | 2064 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2065 | : |
| 2066 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2067 | echo "configure: failed program was:" >&5 |
| 2068 | cat conftest.$ac_ext >&5 |
| 2069 | rm -fr conftest* |
| 2070 | ac_cv_header_stdc=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2071 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2072 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2073 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2074 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2075 | fi |
| 2076 | fi |
| 2077 | |
| 2078 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 2079 | if test $ac_cv_header_stdc = yes; then |
| 2080 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2081 | #define STDC_HEADERS 1 |
| 2082 | EOF |
| 2083 | |
| 2084 | fi |
| 2085 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2086 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2087 | echo "configure:2088: checking for working const" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2088 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 2089 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2090 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2091 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2092 | #line 2093 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2093 | #include "confdefs.h" |
| 2094 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2095 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2096 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2097 | /* Ultrix mips cc rejects this. */ |
| 2098 | typedef int charset[2]; const charset x; |
| 2099 | /* SunOS 4.1.1 cc rejects this. */ |
| 2100 | char const *const *ccp; |
| 2101 | char **p; |
| 2102 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 2103 | struct point {int x, y;}; |
| 2104 | static struct point const zero = {0,0}; |
| 2105 | /* AIX XL C 1.02.0.0 rejects this. |
| 2106 | It does not let you subtract one const X* pointer from another in an arm |
| 2107 | of an if-expression whose if-part is not a constant expression */ |
| 2108 | const char *g = "string"; |
| 2109 | ccp = &g + (g ? g-g : 0); |
| 2110 | /* HPUX 7.0 cc rejects these. */ |
| 2111 | ++ccp; |
| 2112 | p = (char**) ccp; |
| 2113 | ccp = (char const *const *) p; |
| 2114 | { /* SCO 3.2v4 cc rejects this. */ |
| 2115 | char *t; |
| 2116 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2117 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2118 | *t++ = 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2119 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2120 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 2121 | int x[] = {25, 17}; |
| 2122 | const int *foo = &x[0]; |
| 2123 | ++foo; |
| 2124 | } |
| 2125 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 2126 | typedef const int *iptr; |
| 2127 | iptr p = 0; |
| 2128 | ++p; |
| 2129 | } |
| 2130 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 2131 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 2132 | struct s { int j; const int *ap[3]; }; |
| 2133 | struct s *b; b->j = 5; |
| 2134 | } |
| 2135 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 2136 | const int foo = 10; |
| 2137 | } |
| 2138 | |
| 2139 | ; return 0; } |
| 2140 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2141 | if { (eval echo configure:2142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2142 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2143 | ac_cv_c_const=yes |
| 2144 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2145 | echo "configure: failed program was:" >&5 |
| 2146 | cat conftest.$ac_ext >&5 |
| 2147 | rm -rf conftest* |
| 2148 | ac_cv_c_const=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2149 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2150 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2151 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2152 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2153 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 2154 | if test $ac_cv_c_const = no; then |
| 2155 | cat >> confdefs.h <<\EOF |
| 2156 | #define const |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2157 | EOF |
| 2158 | |
| 2159 | fi |
| 2160 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2161 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2162 | echo "configure:2163: checking for inline" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2163 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 2164 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2165 | else |
| 2166 | ac_cv_c_inline=no |
| 2167 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2168 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2169 | #line 2170 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2170 | #include "confdefs.h" |
| 2171 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2172 | int main() { |
| 2173 | } $ac_kw foo() { |
| 2174 | ; return 0; } |
| 2175 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2176 | if { (eval echo configure:2177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2177 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2178 | ac_cv_c_inline=$ac_kw; break |
| 2179 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2180 | echo "configure: failed program was:" >&5 |
| 2181 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2182 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2183 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2184 | done |
| 2185 | |
| 2186 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2187 | |
| 2188 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 2189 | case "$ac_cv_c_inline" in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2190 | inline | yes) ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2191 | no) cat >> confdefs.h <<\EOF |
| 2192 | #define inline |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2193 | EOF |
| 2194 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2195 | *) cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2196 | #define inline $ac_cv_c_inline |
| 2197 | EOF |
| 2198 | ;; |
| 2199 | esac |
| 2200 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2201 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2202 | echo "configure:2203: checking for off_t" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2203 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 2204 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2205 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2206 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2207 | #line 2208 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2208 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2209 | #include <sys/types.h> |
| 2210 | #if STDC_HEADERS |
| 2211 | #include <stdlib.h> |
| 2212 | #include <stddef.h> |
| 2213 | #endif |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2214 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2216 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2217 | rm -rf conftest* |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2218 | ac_cv_type_off_t=yes |
| 2219 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2220 | rm -rf conftest* |
| 2221 | ac_cv_type_off_t=no |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2222 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2223 | rm -f conftest* |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2224 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2225 | fi |
| 2226 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2227 | if test $ac_cv_type_off_t = no; then |
| 2228 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2229 | #define off_t long |
| 2230 | EOF |
| 2231 | |
| 2232 | fi |
| 2233 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2234 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2235 | echo "configure:2236: checking for size_t" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2236 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 2237 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2238 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2239 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2240 | #line 2241 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2241 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2242 | #include <sys/types.h> |
| 2243 | #if STDC_HEADERS |
| 2244 | #include <stdlib.h> |
| 2245 | #include <stddef.h> |
| 2246 | #endif |
| 2247 | EOF |
| 2248 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2249 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2250 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2251 | ac_cv_type_size_t=yes |
| 2252 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2253 | rm -rf conftest* |
| 2254 | ac_cv_type_size_t=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2255 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2256 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2257 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2258 | fi |
| 2259 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2260 | if test $ac_cv_type_size_t = no; then |
| 2261 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2262 | #define size_t unsigned |
| 2263 | EOF |
| 2264 | |
| 2265 | fi |
| 2266 | |
| 2267 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 2268 | # for constant arguments. Useless! |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2269 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2270 | echo "configure:2271: checking for working alloca.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2271 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 2272 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2273 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2274 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2275 | #line 2276 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2276 | #include "confdefs.h" |
| 2277 | #include <alloca.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2278 | int main() { |
| 2279 | char *p = alloca(2 * sizeof(int)); |
| 2280 | ; return 0; } |
| 2281 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2282 | if { (eval echo configure:2283: \"$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] | 2283 | rm -rf conftest* |
| 2284 | ac_cv_header_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2285 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2286 | echo "configure: failed program was:" >&5 |
| 2287 | cat conftest.$ac_ext >&5 |
| 2288 | rm -rf conftest* |
| 2289 | ac_cv_header_alloca_h=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2290 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2291 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2292 | fi |
| 2293 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2294 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 2295 | if test $ac_cv_header_alloca_h = yes; then |
| 2296 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2297 | #define HAVE_ALLOCA_H 1 |
| 2298 | EOF |
| 2299 | |
| 2300 | fi |
| 2301 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2302 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2303 | echo "configure:2304: checking for alloca" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2304 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 2305 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2306 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2307 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2308 | #line 2309 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2309 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2310 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2311 | #ifdef __GNUC__ |
| 2312 | # define alloca __builtin_alloca |
| 2313 | #else |
| 2314 | # ifdef _MSC_VER |
| 2315 | # include <malloc.h> |
| 2316 | # define alloca _alloca |
| 2317 | # else |
| 2318 | # if HAVE_ALLOCA_H |
| 2319 | # include <alloca.h> |
| 2320 | # else |
| 2321 | # ifdef _AIX |
| 2322 | #pragma alloca |
| 2323 | # else |
| 2324 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 2325 | char *alloca (); |
| 2326 | # endif |
| 2327 | # endif |
| 2328 | # endif |
| 2329 | # endif |
| 2330 | #endif |
| 2331 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2332 | int main() { |
| 2333 | char *p = (char *) alloca(1); |
| 2334 | ; return 0; } |
| 2335 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2336 | if { (eval echo configure:2337: \"$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] | 2337 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2338 | ac_cv_func_alloca_works=yes |
| 2339 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2340 | echo "configure: failed program was:" >&5 |
| 2341 | cat conftest.$ac_ext >&5 |
| 2342 | rm -rf conftest* |
| 2343 | ac_cv_func_alloca_works=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2344 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2345 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2346 | fi |
| 2347 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2348 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2349 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2350 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2351 | #define HAVE_ALLOCA 1 |
| 2352 | EOF |
| 2353 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2354 | fi |
| 2355 | |
| 2356 | if test $ac_cv_func_alloca_works = no; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2357 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2358 | # that cause trouble. Some versions do not even contain alloca or |
| 2359 | # contain a buggy version. If you still want to use their alloca, |
| 2360 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 2361 | ALLOCA=alloca.${ac_objext} |
| 2362 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2363 | #define C_ALLOCA 1 |
| 2364 | EOF |
| 2365 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2366 | |
| 2367 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2368 | echo "configure:2369: checking whether alloca needs Cray hooks" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2369 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 2370 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2371 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2372 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2373 | #line 2374 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2374 | #include "confdefs.h" |
| 2375 | #if defined(CRAY) && ! defined(CRAY2) |
| 2376 | webecray |
| 2377 | #else |
| 2378 | wenotbecray |
| 2379 | #endif |
| 2380 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2381 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2382 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2383 | egrep "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2384 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2385 | ac_cv_os_cray=yes |
| 2386 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2387 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2388 | ac_cv_os_cray=no |
| 2389 | fi |
| 2390 | rm -f conftest* |
| 2391 | |
| 2392 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2393 | |
| 2394 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2395 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2396 | for ac_func in _getb67 GETB67 getb67; do |
| 2397 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2398 | echo "configure:2399: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2399 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2400 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2401 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2402 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2403 | #line 2404 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2404 | #include "confdefs.h" |
| 2405 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2406 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2407 | #include <assert.h> |
| 2408 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2409 | /* 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] | 2410 | builtin and then its argument prototype would still apply. */ |
| 2411 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2412 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2413 | int main() { |
| 2414 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2415 | /* The GNU C library defines this for functions which it implements |
| 2416 | to always fail with ENOSYS. Some functions are actually named |
| 2417 | something starting with __ and the normal name is an alias. */ |
| 2418 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2419 | choke me |
| 2420 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2421 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2422 | #endif |
| 2423 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2424 | ; return 0; } |
| 2425 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2426 | if { (eval echo configure:2427: \"$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] | 2427 | rm -rf conftest* |
| 2428 | eval "ac_cv_func_$ac_func=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2429 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2430 | echo "configure: failed program was:" >&5 |
| 2431 | cat conftest.$ac_ext >&5 |
| 2432 | rm -rf conftest* |
| 2433 | eval "ac_cv_func_$ac_func=no" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2434 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2435 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2436 | fi |
| 2437 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2438 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2439 | echo "$ac_t""yes" 1>&6 |
| 2440 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2441 | #define CRAY_STACKSEG_END $ac_func |
| 2442 | EOF |
| 2443 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2444 | break |
| 2445 | else |
| 2446 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2447 | fi |
| 2448 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2449 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2450 | fi |
| 2451 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2452 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2453 | echo "configure:2454: checking stack direction for C alloca" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2454 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 2455 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2456 | else |
| 2457 | if test "$cross_compiling" = yes; then |
| 2458 | ac_cv_c_stack_direction=0 |
| 2459 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2460 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2461 | #line 2462 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2462 | #include "confdefs.h" |
| 2463 | find_stack_direction () |
| 2464 | { |
| 2465 | static char *addr = 0; |
| 2466 | auto char dummy; |
| 2467 | if (addr == 0) |
| 2468 | { |
| 2469 | addr = &dummy; |
| 2470 | return find_stack_direction (); |
| 2471 | } |
| 2472 | else |
| 2473 | return (&dummy > addr) ? 1 : -1; |
| 2474 | } |
| 2475 | main () |
| 2476 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2477 | exit (find_stack_direction() < 0); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2478 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2479 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2480 | if { (eval echo configure:2481: \"$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] | 2481 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2482 | ac_cv_c_stack_direction=1 |
| 2483 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2484 | echo "configure: failed program was:" >&5 |
| 2485 | cat conftest.$ac_ext >&5 |
| 2486 | rm -fr conftest* |
| 2487 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2488 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2489 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2490 | fi |
| 2491 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2492 | fi |
| 2493 | |
| 2494 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 2495 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2496 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 2497 | EOF |
| 2498 | |
| 2499 | fi |
| 2500 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2501 | for ac_hdr in unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2502 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2503 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2504 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2505 | echo "configure:2506: checking for $ac_hdr" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2506 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2507 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2508 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2509 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2510 | #line 2511 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2511 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2512 | #include <$ac_hdr> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2513 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2514 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2515 | { (eval echo configure:2516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2516 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2517 | if test -z "$ac_err"; then |
| 2518 | rm -rf conftest* |
| 2519 | eval "ac_cv_header_$ac_safe=yes" |
| 2520 | else |
| 2521 | echo "$ac_err" >&5 |
| 2522 | echo "configure: failed program was:" >&5 |
| 2523 | cat conftest.$ac_ext >&5 |
| 2524 | rm -rf conftest* |
| 2525 | eval "ac_cv_header_$ac_safe=no" |
| 2526 | fi |
| 2527 | rm -f conftest* |
| 2528 | fi |
| 2529 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2530 | echo "$ac_t""yes" 1>&6 |
| 2531 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2532 | cat >> confdefs.h <<EOF |
| 2533 | #define $ac_tr_hdr 1 |
| 2534 | EOF |
| 2535 | |
| 2536 | else |
| 2537 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2538 | fi |
| 2539 | done |
| 2540 | |
| 2541 | for ac_func in getpagesize |
| 2542 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2543 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2544 | echo "configure:2545: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2545 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2546 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2547 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2548 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2549 | #line 2550 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2550 | #include "confdefs.h" |
| 2551 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2552 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2553 | #include <assert.h> |
| 2554 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2555 | /* 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] | 2556 | builtin and then its argument prototype would still apply. */ |
| 2557 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2558 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2559 | int main() { |
| 2560 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2561 | /* The GNU C library defines this for functions which it implements |
| 2562 | to always fail with ENOSYS. Some functions are actually named |
| 2563 | something starting with __ and the normal name is an alias. */ |
| 2564 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2565 | choke me |
| 2566 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2567 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2568 | #endif |
| 2569 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2570 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2571 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2572 | if { (eval echo configure:2573: \"$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] | 2573 | rm -rf conftest* |
| 2574 | eval "ac_cv_func_$ac_func=yes" |
| 2575 | else |
| 2576 | echo "configure: failed program was:" >&5 |
| 2577 | cat conftest.$ac_ext >&5 |
| 2578 | rm -rf conftest* |
| 2579 | eval "ac_cv_func_$ac_func=no" |
| 2580 | fi |
| 2581 | rm -f conftest* |
| 2582 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2583 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2584 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2585 | echo "$ac_t""yes" 1>&6 |
| 2586 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2587 | cat >> confdefs.h <<EOF |
| 2588 | #define $ac_tr_func 1 |
| 2589 | EOF |
| 2590 | |
| 2591 | else |
| 2592 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2593 | fi |
| 2594 | done |
| 2595 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2596 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2597 | echo "configure:2598: checking for working mmap" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2598 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
| 2599 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2600 | else |
| 2601 | if test "$cross_compiling" = yes; then |
| 2602 | ac_cv_func_mmap_fixed_mapped=no |
| 2603 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2604 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2605 | #line 2606 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2606 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2607 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2608 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 2609 | Here is a matrix of mmap possibilities: |
| 2610 | mmap private not fixed |
| 2611 | mmap private fixed at somewhere currently unmapped |
| 2612 | mmap private fixed at somewhere already mapped |
| 2613 | mmap shared not fixed |
| 2614 | mmap shared fixed at somewhere currently unmapped |
| 2615 | mmap shared fixed at somewhere already mapped |
| 2616 | For private mappings, we should verify that changes cannot be read() |
| 2617 | back from the file, nor mmap's back from the file at a different |
| 2618 | address. (There have been systems where private was not correctly |
| 2619 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2620 | VM page cache was not coherent with the filesystem buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2621 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 2622 | For shared mappings, we should conversely verify that changes get |
| 2623 | propogated back to all the places they're supposed to be. |
| 2624 | |
| 2625 | Grep wants private fixed already mapped. |
| 2626 | The main things grep needs to know about mmap are: |
| 2627 | * does it exist and is it safe to write into the mmap'd area |
| 2628 | * how to use it (BSD variants) */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2629 | #include <sys/types.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2630 | #include <fcntl.h> |
| 2631 | #include <sys/mman.h> |
| 2632 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2633 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2634 | #ifndef HAVE_GETPAGESIZE |
| 2635 | # ifdef HAVE_UNISTD_H |
| 2636 | # include <unistd.h> |
| 2637 | # endif |
| 2638 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2639 | /* 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] | 2640 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2641 | # define HAVE_SYS_PARAM_H 1 |
| 2642 | # endif |
| 2643 | |
| 2644 | # ifdef _SC_PAGESIZE |
| 2645 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 2646 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2647 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2648 | # include <sys/param.h> |
| 2649 | # ifdef EXEC_PAGESIZE |
| 2650 | # define getpagesize() EXEC_PAGESIZE |
| 2651 | # else /* no EXEC_PAGESIZE */ |
| 2652 | # ifdef NBPG |
| 2653 | # define getpagesize() NBPG * CLSIZE |
| 2654 | # ifndef CLSIZE |
| 2655 | # define CLSIZE 1 |
| 2656 | # endif /* no CLSIZE */ |
| 2657 | # else /* no NBPG */ |
| 2658 | # ifdef NBPC |
| 2659 | # define getpagesize() NBPC |
| 2660 | # else /* no NBPC */ |
| 2661 | # ifdef PAGESIZE |
| 2662 | # define getpagesize() PAGESIZE |
| 2663 | # endif /* PAGESIZE */ |
| 2664 | # endif /* no NBPC */ |
| 2665 | # endif /* no NBPG */ |
| 2666 | # endif /* no EXEC_PAGESIZE */ |
| 2667 | # else /* no HAVE_SYS_PARAM_H */ |
| 2668 | # define getpagesize() 8192 /* punt totally */ |
| 2669 | # endif /* no HAVE_SYS_PARAM_H */ |
| 2670 | # endif /* no _SC_PAGESIZE */ |
| 2671 | |
| 2672 | #endif /* no HAVE_GETPAGESIZE */ |
| 2673 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2674 | #ifdef __cplusplus |
| 2675 | extern "C" { void *malloc(unsigned); } |
| 2676 | #else |
| 2677 | char *malloc(); |
| 2678 | #endif |
| 2679 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2680 | int |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2681 | main() |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2682 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2683 | char *data, *data2, *data3; |
| 2684 | int i, pagesize; |
| 2685 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2686 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2687 | pagesize = getpagesize(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2688 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2689 | /* |
| 2690 | * First, make a file with some known garbage in it. |
| 2691 | */ |
| 2692 | data = malloc(pagesize); |
| 2693 | if (!data) |
| 2694 | exit(1); |
| 2695 | for (i = 0; i < pagesize; ++i) |
| 2696 | *(data + i) = rand(); |
| 2697 | umask(0); |
| 2698 | fd = creat("conftestmmap", 0600); |
| 2699 | if (fd < 0) |
| 2700 | exit(1); |
| 2701 | if (write(fd, data, pagesize) != pagesize) |
| 2702 | exit(1); |
| 2703 | close(fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2704 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2705 | /* |
| 2706 | * Next, try to mmap the file at a fixed address which |
| 2707 | * already has something else allocated at it. If we can, |
| 2708 | * also make sure that we see the same garbage. |
| 2709 | */ |
| 2710 | fd = open("conftestmmap", O_RDWR); |
| 2711 | if (fd < 0) |
| 2712 | exit(1); |
| 2713 | data2 = malloc(2 * pagesize); |
| 2714 | if (!data2) |
| 2715 | exit(1); |
| 2716 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 2717 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
| 2718 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 2719 | exit(1); |
| 2720 | for (i = 0; i < pagesize; ++i) |
| 2721 | if (*(data + i) != *(data2 + i)) |
| 2722 | exit(1); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2723 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2724 | /* |
| 2725 | * Finally, make sure that changes to the mapped area |
| 2726 | * do not percolate back to the file as seen by read(). |
| 2727 | * (This is a bug on some variants of i386 svr4.0.) |
| 2728 | */ |
| 2729 | for (i = 0; i < pagesize; ++i) |
| 2730 | *(data2 + i) = *(data2 + i) + 1; |
| 2731 | data3 = malloc(pagesize); |
| 2732 | if (!data3) |
| 2733 | exit(1); |
| 2734 | if (read(fd, data3, pagesize) != pagesize) |
| 2735 | exit(1); |
| 2736 | for (i = 0; i < pagesize; ++i) |
| 2737 | if (*(data + i) != *(data3 + i)) |
| 2738 | exit(1); |
| 2739 | close(fd); |
| 2740 | unlink("conftestmmap"); |
| 2741 | exit(0); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2742 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2743 | |
| 2744 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2745 | if { (eval echo configure:2746: \"$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] | 2746 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2747 | ac_cv_func_mmap_fixed_mapped=yes |
| 2748 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2749 | echo "configure: failed program was:" >&5 |
| 2750 | cat conftest.$ac_ext >&5 |
| 2751 | rm -fr conftest* |
| 2752 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2753 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2754 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2755 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2756 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2757 | fi |
| 2758 | |
| 2759 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
| 2760 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 2761 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2762 | #define HAVE_MMAP 1 |
| 2763 | EOF |
| 2764 | |
| 2765 | fi |
| 2766 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2767 | |
| 2768 | echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2769 | echo "configure:2770: 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] | 2770 | if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then |
| 2771 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2772 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2773 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2774 | #line 2775 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2775 | #include "confdefs.h" |
| 2776 | |
| 2777 | #include <features.h> |
| 2778 | #ifdef __GNU_LIBRARY__ |
| 2779 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 2780 | Lucky GNU user |
| 2781 | #endif |
| 2782 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2783 | |
| 2784 | EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2785 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2786 | egrep "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2787 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2788 | ac_cv_gnu_library_2_1=yes |
| 2789 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2790 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2791 | ac_cv_gnu_library_2_1=no |
| 2792 | fi |
| 2793 | rm -f conftest* |
| 2794 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2795 | |
| 2796 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2797 | fi |
| 2798 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2799 | echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6 |
| 2800 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2801 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2802 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2803 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2804 | |
| 2805 | |
| 2806 | echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2807 | echo "configure:2808: checking whether integer division by zero raises SIGFPE" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2808 | if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then |
| 2809 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2810 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2811 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2812 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2813 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2814 | # Guess based on the CPU. |
| 2815 | case "$host_cpu" in |
| 2816 | alpha* | i3456786 | m68k | s390*) |
| 2817 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 2818 | *) |
| 2819 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 2820 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2821 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2822 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2823 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2824 | #line 2825 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2825 | #include "confdefs.h" |
| 2826 | |
| 2827 | #include <stdlib.h> |
| 2828 | #include <signal.h> |
| 2829 | |
| 2830 | static void |
| 2831 | #ifdef __cplusplus |
| 2832 | sigfpe_handler (int sig) |
| 2833 | #else |
| 2834 | sigfpe_handler (sig) int sig; |
| 2835 | #endif |
| 2836 | { |
| 2837 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 2838 | exit (sig != SIGFPE); |
| 2839 | } |
| 2840 | |
| 2841 | int x = 1; |
| 2842 | int y = 0; |
| 2843 | int z; |
| 2844 | int nan; |
| 2845 | |
| 2846 | int main () |
| 2847 | { |
| 2848 | signal (SIGFPE, sigfpe_handler); |
| 2849 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 2850 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 2851 | signal (SIGTRAP, sigfpe_handler); |
| 2852 | #endif |
| 2853 | /* Linux/SPARC yields signal SIGILL. */ |
| 2854 | #if defined (__sparc__) && defined (__linux__) |
| 2855 | signal (SIGILL, sigfpe_handler); |
| 2856 | #endif |
| 2857 | |
| 2858 | z = x / y; |
| 2859 | nan = y / y; |
| 2860 | exit (1); |
| 2861 | } |
| 2862 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2863 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2864 | if { (eval echo configure:2865: \"$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] | 2865 | then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2866 | gt_cv_int_divbyzero_sigfpe=yes |
| 2867 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2868 | echo "configure: failed program was:" >&5 |
| 2869 | cat conftest.$ac_ext >&5 |
| 2870 | rm -fr conftest* |
| 2871 | gt_cv_int_divbyzero_sigfpe=no |
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 | rm -fr conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2874 | fi |
| 2875 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2876 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2877 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2878 | |
| 2879 | echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2880 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 2881 | *yes) value=1;; |
| 2882 | *) value=0;; |
| 2883 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2884 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2885 | #define INTDIV0_RAISES_SIGFPE $value |
| 2886 | EOF |
| 2887 | |
| 2888 | |
| 2889 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2890 | |
| 2891 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2892 | 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] | 2893 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2894 | test $ac_cv_type_unsigned_long_long = yes \ |
| 2895 | && ac_type='unsigned long long' \ |
| 2896 | || ac_type='unsigned long' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2897 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2898 | #define uintmax_t $ac_type |
| 2899 | EOF |
| 2900 | |
| 2901 | fi |
| 2902 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2903 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2904 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2905 | echo "configure:2906: checking for inttypes.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2906 | if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then |
| 2907 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2908 | else |
| 2909 | |
| 2910 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2911 | #line 2912 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2912 | #include "confdefs.h" |
| 2913 | #include <sys/types.h> |
| 2914 | #include <inttypes.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2915 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2916 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2917 | ; return 0; } |
| 2918 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2919 | if { (eval echo configure:2920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2920 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2921 | gt_cv_header_inttypes_h=yes |
| 2922 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2923 | echo "configure: failed program was:" >&5 |
| 2924 | cat conftest.$ac_ext >&5 |
| 2925 | rm -rf conftest* |
| 2926 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2927 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2928 | rm -f conftest* |
| 2929 | |
| 2930 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2931 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2932 | echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2933 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2934 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2935 | #define HAVE_INTTYPES_H 1 |
| 2936 | EOF |
| 2937 | |
| 2938 | fi |
| 2939 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2940 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2941 | |
| 2942 | if test $gt_cv_header_inttypes_h = yes; then |
| 2943 | echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2944 | echo "configure:2945: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2945 | if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then |
| 2946 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2947 | else |
| 2948 | |
| 2949 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2950 | #line 2951 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2951 | #include "confdefs.h" |
| 2952 | #include <inttypes.h> |
| 2953 | #ifdef PRId32 |
| 2954 | char *p = PRId32; |
| 2955 | #endif |
| 2956 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2957 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2958 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2959 | ; return 0; } |
| 2960 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 2961 | if { (eval echo configure:2962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2962 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2963 | gt_cv_inttypes_pri_broken=no |
| 2964 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2965 | echo "configure: failed program was:" >&5 |
| 2966 | cat conftest.$ac_ext >&5 |
| 2967 | rm -rf conftest* |
| 2968 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2969 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2970 | rm -f conftest* |
| 2971 | |
| 2972 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2973 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2974 | echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2975 | fi |
| 2976 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2977 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2978 | #define PRI_MACROS_BROKEN 1 |
| 2979 | EOF |
| 2980 | |
| 2981 | fi |
| 2982 | |
| 2983 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2984 | |
| 2985 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2986 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2987 | |
| 2988 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2989 | use_additional=yes |
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 | acl_save_prefix="$prefix" |
| 2992 | prefix="$acl_final_prefix" |
| 2993 | acl_save_exec_prefix="$exec_prefix" |
| 2994 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2995 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2996 | eval additional_includedir=\"$includedir\" |
| 2997 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2998 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2999 | exec_prefix="$acl_save_exec_prefix" |
| 3000 | prefix="$acl_save_prefix" |
| 3001 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3002 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3003 | if test "${with_libiconv_prefix+set}" = set; then |
| 3004 | withval="$with_libiconv_prefix" |
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 | if test "X$withval" = "Xno"; then |
| 3007 | use_additional=no |
| 3008 | else |
| 3009 | if test "X$withval" = "X"; then |
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 | acl_save_prefix="$prefix" |
| 3012 | prefix="$acl_final_prefix" |
| 3013 | acl_save_exec_prefix="$exec_prefix" |
| 3014 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3015 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3016 | eval additional_includedir=\"$includedir\" |
| 3017 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3018 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3019 | exec_prefix="$acl_save_exec_prefix" |
| 3020 | prefix="$acl_save_prefix" |
| 3021 | |
| 3022 | else |
| 3023 | additional_includedir="$withval/include" |
| 3024 | additional_libdir="$withval/lib" |
| 3025 | fi |
| 3026 | fi |
| 3027 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3028 | fi |
| 3029 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3030 | LIBICONV= |
| 3031 | LTLIBICONV= |
| 3032 | INCICONV= |
| 3033 | rpathdirs= |
| 3034 | ltrpathdirs= |
| 3035 | names_already_handled= |
| 3036 | names_next_round='iconv ' |
| 3037 | while test -n "$names_next_round"; do |
| 3038 | names_this_round="$names_next_round" |
| 3039 | names_next_round= |
| 3040 | for name in $names_this_round; do |
| 3041 | already_handled= |
| 3042 | for n in $names_already_handled; do |
| 3043 | if test "$n" = "$name"; then |
| 3044 | already_handled=yes |
| 3045 | break |
| 3046 | fi |
| 3047 | done |
| 3048 | if test -z "$already_handled"; then |
| 3049 | names_already_handled="$names_already_handled $name" |
| 3050 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 3051 | eval value=\"\$HAVE_LIB$uppername\" |
| 3052 | if test -n "$value"; then |
| 3053 | if test "$value" = yes; then |
| 3054 | eval value=\"\$LIB$uppername\" |
| 3055 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 3056 | eval value=\"\$LTLIB$uppername\" |
| 3057 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 3058 | else |
| 3059 | : |
| 3060 | fi |
| 3061 | else |
| 3062 | found_dir= |
| 3063 | found_la= |
| 3064 | found_so= |
| 3065 | found_a= |
| 3066 | if test $use_additional = yes; then |
| 3067 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 3068 | found_dir="$additional_libdir" |
| 3069 | found_so="$additional_libdir/lib$name.$shlibext" |
| 3070 | if test -f "$additional_libdir/lib$name.la"; then |
| 3071 | found_la="$additional_libdir/lib$name.la" |
| 3072 | fi |
| 3073 | else |
| 3074 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 3075 | found_dir="$additional_libdir" |
| 3076 | found_a="$additional_libdir/lib$name.$libext" |
| 3077 | if test -f "$additional_libdir/lib$name.la"; then |
| 3078 | found_la="$additional_libdir/lib$name.la" |
| 3079 | fi |
| 3080 | fi |
| 3081 | fi |
| 3082 | fi |
| 3083 | if test "X$found_dir" = "X"; then |
| 3084 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3085 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3086 | acl_save_prefix="$prefix" |
| 3087 | prefix="$acl_final_prefix" |
| 3088 | acl_save_exec_prefix="$exec_prefix" |
| 3089 | exec_prefix="$acl_final_exec_prefix" |
| 3090 | eval x=\"$x\" |
| 3091 | exec_prefix="$acl_save_exec_prefix" |
| 3092 | prefix="$acl_save_prefix" |
| 3093 | |
| 3094 | case "$x" in |
| 3095 | -L*) |
| 3096 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 3097 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 3098 | found_dir="$dir" |
| 3099 | found_so="$dir/lib$name.$shlibext" |
| 3100 | if test -f "$dir/lib$name.la"; then |
| 3101 | found_la="$dir/lib$name.la" |
| 3102 | fi |
| 3103 | else |
| 3104 | if test -f "$dir/lib$name.$libext"; then |
| 3105 | found_dir="$dir" |
| 3106 | found_a="$dir/lib$name.$libext" |
| 3107 | if test -f "$dir/lib$name.la"; then |
| 3108 | found_la="$dir/lib$name.la" |
| 3109 | fi |
| 3110 | fi |
| 3111 | fi |
| 3112 | ;; |
| 3113 | esac |
| 3114 | if test "X$found_dir" != "X"; then |
| 3115 | break |
| 3116 | fi |
| 3117 | done |
| 3118 | fi |
| 3119 | if test "X$found_dir" != "X"; then |
| 3120 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 3121 | if test "X$found_so" != "X"; then |
| 3122 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 3123 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3124 | else |
| 3125 | haveit= |
| 3126 | for x in $ltrpathdirs; do |
| 3127 | if test "X$x" = "X$found_dir"; then |
| 3128 | haveit=yes |
| 3129 | break |
| 3130 | fi |
| 3131 | done |
| 3132 | if test -z "$haveit"; then |
| 3133 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 3134 | fi |
| 3135 | if test "$hardcode_direct" = yes; then |
| 3136 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3137 | else |
| 3138 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 3139 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3140 | haveit= |
| 3141 | for x in $rpathdirs; do |
| 3142 | if test "X$x" = "X$found_dir"; then |
| 3143 | haveit=yes |
| 3144 | break |
| 3145 | fi |
| 3146 | done |
| 3147 | if test -z "$haveit"; then |
| 3148 | rpathdirs="$rpathdirs $found_dir" |
| 3149 | fi |
| 3150 | else |
| 3151 | haveit= |
| 3152 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3153 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3154 | acl_save_prefix="$prefix" |
| 3155 | prefix="$acl_final_prefix" |
| 3156 | acl_save_exec_prefix="$exec_prefix" |
| 3157 | exec_prefix="$acl_final_exec_prefix" |
| 3158 | eval x=\"$x\" |
| 3159 | exec_prefix="$acl_save_exec_prefix" |
| 3160 | prefix="$acl_save_prefix" |
| 3161 | |
| 3162 | if test "X$x" = "X-L$found_dir"; then |
| 3163 | haveit=yes |
| 3164 | break |
| 3165 | fi |
| 3166 | done |
| 3167 | if test -z "$haveit"; then |
| 3168 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 3169 | fi |
| 3170 | if test "$hardcode_minus_L" != no; then |
| 3171 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3172 | else |
| 3173 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 3174 | fi |
| 3175 | fi |
| 3176 | fi |
| 3177 | fi |
| 3178 | else |
| 3179 | if test "X$found_a" != "X"; then |
| 3180 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 3181 | else |
| 3182 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 3183 | fi |
| 3184 | fi |
| 3185 | additional_includedir= |
| 3186 | case "$found_dir" in |
| 3187 | */lib | */lib/) |
| 3188 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 3189 | additional_includedir="$basedir/include" |
| 3190 | ;; |
| 3191 | esac |
| 3192 | if test "X$additional_includedir" != "X"; then |
| 3193 | if test "X$additional_includedir" != "X/usr/include"; then |
| 3194 | haveit= |
| 3195 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 3196 | if test -n "$GCC"; then |
| 3197 | case $host_os in |
| 3198 | linux*) haveit=yes;; |
| 3199 | esac |
| 3200 | fi |
| 3201 | fi |
| 3202 | if test -z "$haveit"; then |
| 3203 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3204 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3205 | acl_save_prefix="$prefix" |
| 3206 | prefix="$acl_final_prefix" |
| 3207 | acl_save_exec_prefix="$exec_prefix" |
| 3208 | exec_prefix="$acl_final_exec_prefix" |
| 3209 | eval x=\"$x\" |
| 3210 | exec_prefix="$acl_save_exec_prefix" |
| 3211 | prefix="$acl_save_prefix" |
| 3212 | |
| 3213 | if test "X$x" = "X-I$additional_includedir"; then |
| 3214 | haveit=yes |
| 3215 | break |
| 3216 | fi |
| 3217 | done |
| 3218 | if test -z "$haveit"; then |
| 3219 | if test -d "$additional_includedir"; then |
| 3220 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 3221 | fi |
| 3222 | fi |
| 3223 | fi |
| 3224 | fi |
| 3225 | fi |
| 3226 | if test -n "$found_la"; then |
| 3227 | save_libdir="$libdir" |
| 3228 | case "$found_la" in |
| 3229 | */* | *\\*) . "$found_la" ;; |
| 3230 | *) . "./$found_la" ;; |
| 3231 | esac |
| 3232 | libdir="$save_libdir" |
| 3233 | for dep in $dependency_libs; do |
| 3234 | case "$dep" in |
| 3235 | -L*) |
| 3236 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 3237 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 3238 | haveit= |
| 3239 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 3240 | if test -n "$GCC"; then |
| 3241 | case $host_os in |
| 3242 | linux*) haveit=yes;; |
| 3243 | esac |
| 3244 | fi |
| 3245 | fi |
| 3246 | if test -z "$haveit"; then |
| 3247 | haveit= |
| 3248 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3249 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3250 | acl_save_prefix="$prefix" |
| 3251 | prefix="$acl_final_prefix" |
| 3252 | acl_save_exec_prefix="$exec_prefix" |
| 3253 | exec_prefix="$acl_final_exec_prefix" |
| 3254 | eval x=\"$x\" |
| 3255 | exec_prefix="$acl_save_exec_prefix" |
| 3256 | prefix="$acl_save_prefix" |
| 3257 | |
| 3258 | if test "X$x" = "X-L$additional_libdir"; then |
| 3259 | haveit=yes |
| 3260 | break |
| 3261 | fi |
| 3262 | done |
| 3263 | if test -z "$haveit"; then |
| 3264 | if test -d "$additional_libdir"; then |
| 3265 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 3266 | fi |
| 3267 | fi |
| 3268 | haveit= |
| 3269 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3270 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3271 | acl_save_prefix="$prefix" |
| 3272 | prefix="$acl_final_prefix" |
| 3273 | acl_save_exec_prefix="$exec_prefix" |
| 3274 | exec_prefix="$acl_final_exec_prefix" |
| 3275 | eval x=\"$x\" |
| 3276 | exec_prefix="$acl_save_exec_prefix" |
| 3277 | prefix="$acl_save_prefix" |
| 3278 | |
| 3279 | if test "X$x" = "X-L$additional_libdir"; then |
| 3280 | haveit=yes |
| 3281 | break |
| 3282 | fi |
| 3283 | done |
| 3284 | if test -z "$haveit"; then |
| 3285 | if test -d "$additional_libdir"; then |
| 3286 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 3287 | fi |
| 3288 | fi |
| 3289 | fi |
| 3290 | fi |
| 3291 | ;; |
| 3292 | -R*) |
| 3293 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 3294 | if test "$enable_rpath" != no; then |
| 3295 | haveit= |
| 3296 | for x in $rpathdirs; do |
| 3297 | if test "X$x" = "X$dir"; then |
| 3298 | haveit=yes |
| 3299 | break |
| 3300 | fi |
| 3301 | done |
| 3302 | if test -z "$haveit"; then |
| 3303 | rpathdirs="$rpathdirs $dir" |
| 3304 | fi |
| 3305 | haveit= |
| 3306 | for x in $ltrpathdirs; do |
| 3307 | if test "X$x" = "X$dir"; then |
| 3308 | haveit=yes |
| 3309 | break |
| 3310 | fi |
| 3311 | done |
| 3312 | if test -z "$haveit"; then |
| 3313 | ltrpathdirs="$ltrpathdirs $dir" |
| 3314 | fi |
| 3315 | fi |
| 3316 | ;; |
| 3317 | -l*) |
| 3318 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 3319 | ;; |
| 3320 | *.la) |
| 3321 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 3322 | ;; |
| 3323 | *) |
| 3324 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 3325 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 3326 | ;; |
| 3327 | esac |
| 3328 | done |
| 3329 | fi |
| 3330 | else |
| 3331 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 3332 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 3333 | fi |
| 3334 | fi |
| 3335 | fi |
| 3336 | done |
| 3337 | done |
| 3338 | if test "X$rpathdirs" != "X"; then |
| 3339 | if test -n "$hardcode_libdir_separator"; then |
| 3340 | alldirs= |
| 3341 | for found_dir in $rpathdirs; do |
| 3342 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 3343 | done |
| 3344 | acl_save_libdir="$libdir" |
| 3345 | libdir="$alldirs" |
| 3346 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 3347 | libdir="$acl_save_libdir" |
| 3348 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 3349 | else |
| 3350 | for found_dir in $rpathdirs; do |
| 3351 | acl_save_libdir="$libdir" |
| 3352 | libdir="$found_dir" |
| 3353 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 3354 | libdir="$acl_save_libdir" |
| 3355 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 3356 | done |
| 3357 | fi |
| 3358 | fi |
| 3359 | if test "X$ltrpathdirs" != "X"; then |
| 3360 | for found_dir in $ltrpathdirs; do |
| 3361 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 3362 | done |
| 3363 | fi |
| 3364 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3365 | |
| 3366 | |
| 3367 | |
| 3368 | |
| 3369 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 3370 | set dummy msgfmt; ac_word=$2 |
| 3371 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3372 | echo "configure:3373: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3373 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 3374 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3375 | else |
| 3376 | case "$MSGFMT" in |
| 3377 | /*) |
| 3378 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 3379 | ;; |
| 3380 | *) |
| 3381 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3382 | for ac_dir in $PATH; do |
| 3383 | test -z "$ac_dir" && ac_dir=. |
| 3384 | if test -f $ac_dir/$ac_word; then |
| 3385 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 3386 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3387 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 3388 | break |
| 3389 | fi |
| 3390 | fi |
| 3391 | done |
| 3392 | IFS="$ac_save_ifs" |
| 3393 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 3394 | ;; |
| 3395 | esac |
| 3396 | fi |
| 3397 | MSGFMT="$ac_cv_path_MSGFMT" |
| 3398 | if test "$MSGFMT" != ":"; then |
| 3399 | echo "$ac_t""$MSGFMT" 1>&6 |
| 3400 | else |
| 3401 | echo "$ac_t""no" 1>&6 |
| 3402 | fi |
| 3403 | |
| 3404 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 3405 | set dummy gmsgfmt; ac_word=$2 |
| 3406 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3407 | echo "configure:3408: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3408 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 3409 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3410 | else |
| 3411 | case "$GMSGFMT" in |
| 3412 | /*) |
| 3413 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 3414 | ;; |
| 3415 | ?:/*) |
| 3416 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 3417 | ;; |
| 3418 | *) |
| 3419 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3420 | ac_dummy="$PATH" |
| 3421 | for ac_dir in $ac_dummy; do |
| 3422 | test -z "$ac_dir" && ac_dir=. |
| 3423 | if test -f $ac_dir/$ac_word; then |
| 3424 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 3425 | break |
| 3426 | fi |
| 3427 | done |
| 3428 | IFS="$ac_save_ifs" |
| 3429 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 3430 | ;; |
| 3431 | esac |
| 3432 | fi |
| 3433 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 3434 | if test -n "$GMSGFMT"; then |
| 3435 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 3436 | else |
| 3437 | echo "$ac_t""no" 1>&6 |
| 3438 | fi |
| 3439 | |
| 3440 | |
| 3441 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 3442 | set dummy xgettext; ac_word=$2 |
| 3443 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3444 | echo "configure:3445: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3445 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 3446 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3447 | else |
| 3448 | case "$XGETTEXT" in |
| 3449 | /*) |
| 3450 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 3451 | ;; |
| 3452 | *) |
| 3453 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3454 | for ac_dir in $PATH; do |
| 3455 | test -z "$ac_dir" && ac_dir=. |
| 3456 | if test -f $ac_dir/$ac_word; then |
| 3457 | if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 3458 | (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 |
| 3459 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 3460 | break |
| 3461 | fi |
| 3462 | fi |
| 3463 | done |
| 3464 | IFS="$ac_save_ifs" |
| 3465 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 3466 | ;; |
| 3467 | esac |
| 3468 | fi |
| 3469 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 3470 | if test "$XGETTEXT" != ":"; then |
| 3471 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 3472 | else |
| 3473 | echo "$ac_t""no" 1>&6 |
| 3474 | fi |
| 3475 | |
| 3476 | rm -f messages.po |
| 3477 | |
| 3478 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 3479 | set dummy msgmerge; ac_word=$2 |
| 3480 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3481 | echo "configure:3482: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3482 | if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then |
| 3483 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3484 | else |
| 3485 | case "$MSGMERGE" in |
| 3486 | /*) |
| 3487 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 3488 | ;; |
| 3489 | *) |
| 3490 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3491 | for ac_dir in $PATH; do |
| 3492 | test -z "$ac_dir" && ac_dir=. |
| 3493 | if test -f $ac_dir/$ac_word; then |
| 3494 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 3495 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word" |
| 3496 | break |
| 3497 | fi |
| 3498 | fi |
| 3499 | done |
| 3500 | IFS="$ac_save_ifs" |
| 3501 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 3502 | ;; |
| 3503 | esac |
| 3504 | fi |
| 3505 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 3506 | if test "$MSGMERGE" != ":"; then |
| 3507 | echo "$ac_t""$MSGMERGE" 1>&6 |
| 3508 | else |
| 3509 | echo "$ac_t""no" 1>&6 |
| 3510 | fi |
| 3511 | |
| 3512 | |
| 3513 | if test "$GMSGFMT" != ":"; then |
| 3514 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 3515 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3516 | : ; |
| 3517 | else |
| 3518 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 3519 | echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6 |
| 3520 | GMSGFMT=":" |
| 3521 | fi |
| 3522 | fi |
| 3523 | |
| 3524 | if test "$XGETTEXT" != ":"; then |
| 3525 | if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 3526 | (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3527 | : ; |
| 3528 | else |
| 3529 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 |
| 3530 | XGETTEXT=":" |
| 3531 | fi |
| 3532 | rm -f messages.po |
| 3533 | fi |
| 3534 | |
| 3535 | |
| 3536 | |
| 3537 | |
| 3538 | |
| 3539 | 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] | 3540 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3541 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3542 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3543 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3544 | echo "configure:3545: checking for $ac_hdr" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3545 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3546 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3547 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3548 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3549 | #line 3550 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3550 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3551 | #include <$ac_hdr> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3552 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3553 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3554 | { (eval echo configure:3555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3555 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3556 | if test -z "$ac_err"; then |
| 3557 | rm -rf conftest* |
| 3558 | eval "ac_cv_header_$ac_safe=yes" |
| 3559 | else |
| 3560 | echo "$ac_err" >&5 |
| 3561 | echo "configure: failed program was:" >&5 |
| 3562 | cat conftest.$ac_ext >&5 |
| 3563 | rm -rf conftest* |
| 3564 | eval "ac_cv_header_$ac_safe=no" |
| 3565 | fi |
| 3566 | rm -f conftest* |
| 3567 | fi |
| 3568 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3569 | echo "$ac_t""yes" 1>&6 |
| 3570 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3571 | cat >> confdefs.h <<EOF |
| 3572 | #define $ac_tr_hdr 1 |
| 3573 | EOF |
| 3574 | |
| 3575 | else |
| 3576 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3577 | fi |
| 3578 | done |
| 3579 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3580 | 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] | 3581 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ |
| 3582 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3583 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3584 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3585 | echo "configure:3586: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3586 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3587 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3588 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3589 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3590 | #line 3591 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3591 | #include "confdefs.h" |
| 3592 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3593 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3594 | #include <assert.h> |
| 3595 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3596 | /* 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] | 3597 | builtin and then its argument prototype would still apply. */ |
| 3598 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3599 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3600 | int main() { |
| 3601 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3602 | /* The GNU C library defines this for functions which it implements |
| 3603 | to always fail with ENOSYS. Some functions are actually named |
| 3604 | something starting with __ and the normal name is an alias. */ |
| 3605 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3606 | choke me |
| 3607 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3608 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3609 | #endif |
| 3610 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3611 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3612 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3613 | if { (eval echo configure:3614: \"$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] | 3614 | rm -rf conftest* |
| 3615 | eval "ac_cv_func_$ac_func=yes" |
| 3616 | else |
| 3617 | echo "configure: failed program was:" >&5 |
| 3618 | cat conftest.$ac_ext >&5 |
| 3619 | rm -rf conftest* |
| 3620 | eval "ac_cv_func_$ac_func=no" |
| 3621 | fi |
| 3622 | rm -f conftest* |
| 3623 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3624 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3625 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3626 | echo "$ac_t""yes" 1>&6 |
| 3627 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3628 | cat >> confdefs.h <<EOF |
| 3629 | #define $ac_tr_func 1 |
| 3630 | EOF |
| 3631 | |
| 3632 | else |
| 3633 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3634 | fi |
| 3635 | done |
| 3636 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3637 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3638 | |
| 3639 | |
| 3640 | |
| 3641 | |
| 3642 | |
| 3643 | am_save_CPPFLAGS="$CPPFLAGS" |
| 3644 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3645 | for element in $INCICONV; do |
| 3646 | haveit= |
| 3647 | for x in $CPPFLAGS; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3648 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3649 | acl_save_prefix="$prefix" |
| 3650 | prefix="$acl_final_prefix" |
| 3651 | acl_save_exec_prefix="$exec_prefix" |
| 3652 | exec_prefix="$acl_final_exec_prefix" |
| 3653 | eval x=\"$x\" |
| 3654 | exec_prefix="$acl_save_exec_prefix" |
| 3655 | prefix="$acl_save_prefix" |
| 3656 | |
| 3657 | if test "X$x" = "X$element"; then |
| 3658 | haveit=yes |
| 3659 | break |
| 3660 | fi |
| 3661 | done |
| 3662 | if test -z "$haveit"; then |
| 3663 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 3664 | fi |
| 3665 | done |
| 3666 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3667 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3668 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3669 | echo "configure:3670: checking for iconv" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3670 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
| 3671 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3672 | else |
| 3673 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3674 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 3675 | am_cv_lib_iconv=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3676 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3677 | #line 3678 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3678 | #include "confdefs.h" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3679 | #include <stdlib.h> |
| 3680 | #include <iconv.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3681 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3682 | iconv_t cd = iconv_open("",""); |
| 3683 | iconv(cd,NULL,NULL,NULL,NULL); |
| 3684 | iconv_close(cd); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3685 | ; return 0; } |
| 3686 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3687 | if { (eval echo configure:3688: \"$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] | 3688 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3689 | am_cv_func_iconv=yes |
| 3690 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3691 | echo "configure: failed program was:" >&5 |
| 3692 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3693 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3694 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3695 | if test "$am_cv_func_iconv" != yes; then |
| 3696 | am_save_LIBS="$LIBS" |
| 3697 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3698 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3699 | #line 3700 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3700 | #include "confdefs.h" |
| 3701 | #include <stdlib.h> |
| 3702 | #include <iconv.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3703 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3704 | iconv_t cd = iconv_open("",""); |
| 3705 | iconv(cd,NULL,NULL,NULL,NULL); |
| 3706 | iconv_close(cd); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3707 | ; return 0; } |
| 3708 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3709 | if { (eval echo configure:3710: \"$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] | 3710 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3711 | am_cv_lib_iconv=yes |
| 3712 | am_cv_func_iconv=yes |
| 3713 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3714 | echo "configure: failed program was:" >&5 |
| 3715 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3716 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3717 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3718 | LIBS="$am_save_LIBS" |
| 3719 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3720 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3721 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3722 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3723 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
| 3724 | if test "$am_cv_func_iconv" = yes; then |
| 3725 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3726 | #define HAVE_ICONV 1 |
| 3727 | EOF |
| 3728 | |
| 3729 | fi |
| 3730 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3731 | echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3732 | echo "configure:3733: checking how to link with libiconv" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3733 | echo "$ac_t""$LIBICONV" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3734 | else |
| 3735 | CPPFLAGS="$am_save_CPPFLAGS" |
| 3736 | LIBICONV= |
| 3737 | LTLIBICONV= |
| 3738 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3739 | |
| 3740 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3741 | |
| 3742 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3743 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3744 | echo "configure:3745: checking for iconv declaration" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3745 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then |
| 3746 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3747 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3748 | |
| 3749 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3750 | #line 3751 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3751 | #include "confdefs.h" |
| 3752 | |
| 3753 | #include <stdlib.h> |
| 3754 | #include <iconv.h> |
| 3755 | extern |
| 3756 | #ifdef __cplusplus |
| 3757 | "C" |
| 3758 | #endif |
| 3759 | #if defined(__STDC__) || defined(__cplusplus) |
| 3760 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 3761 | #else |
| 3762 | size_t iconv(); |
| 3763 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3764 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3765 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3766 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3767 | ; return 0; } |
| 3768 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3769 | if { (eval echo configure:3770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3770 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3771 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3772 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3773 | echo "configure: failed program was:" >&5 |
| 3774 | cat conftest.$ac_ext >&5 |
| 3775 | rm -rf conftest* |
| 3776 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3777 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3778 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3779 | 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] | 3780 | fi |
| 3781 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3782 | 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] | 3783 | echo "$ac_t""${ac_t:- |
| 3784 | }$am_cv_proto_iconv" 1>&6 |
| 3785 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3786 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3787 | EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3788 | |
| 3789 | fi |
| 3790 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3791 | |
| 3792 | echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3793 | echo "configure:3794: checking for nl_langinfo and CODESET" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3794 | if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then |
| 3795 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3796 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3797 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3798 | #line 3799 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3799 | #include "confdefs.h" |
| 3800 | #include <langinfo.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3801 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3802 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3803 | ; return 0; } |
| 3804 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3805 | if { (eval echo configure:3806: \"$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] | 3806 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3807 | am_cv_langinfo_codeset=yes |
| 3808 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3809 | echo "configure: failed program was:" >&5 |
| 3810 | cat conftest.$ac_ext >&5 |
| 3811 | rm -rf conftest* |
| 3812 | am_cv_langinfo_codeset=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3813 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3814 | rm -f conftest* |
| 3815 | |
| 3816 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3817 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3818 | echo "$ac_t""$am_cv_langinfo_codeset" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3819 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3820 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3821 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3822 | EOF |
| 3823 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3824 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3825 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3826 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3827 | |
| 3828 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3829 | echo "configure:3830: checking for LC_MESSAGES" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3830 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
| 3831 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3832 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3833 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3834 | #line 3835 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3835 | #include "confdefs.h" |
| 3836 | #include <locale.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3837 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3838 | return LC_MESSAGES |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3839 | ; return 0; } |
| 3840 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3841 | if { (eval echo configure:3842: \"$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] | 3842 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3843 | am_cv_val_LC_MESSAGES=yes |
| 3844 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3845 | echo "configure: failed program was:" >&5 |
| 3846 | cat conftest.$ac_ext >&5 |
| 3847 | rm -rf conftest* |
| 3848 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3849 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3850 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3851 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3852 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3853 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
| 3854 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 3855 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3856 | #define HAVE_LC_MESSAGES 1 |
| 3857 | EOF |
| 3858 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3859 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3860 | |
| 3861 | fi |
| 3862 | |
| 3863 | for ac_prog in bison |
| 3864 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3865 | # 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] | 3866 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3867 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3868 | echo "configure:3869: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3869 | if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then |
| 3870 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3871 | else |
| 3872 | if test -n "$INTLBISON"; then |
| 3873 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 3874 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3875 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3876 | ac_dummy="$PATH" |
| 3877 | for ac_dir in $ac_dummy; do |
| 3878 | test -z "$ac_dir" && ac_dir=. |
| 3879 | if test -f $ac_dir/$ac_word; then |
| 3880 | ac_cv_prog_INTLBISON="$ac_prog" |
| 3881 | break |
| 3882 | fi |
| 3883 | done |
| 3884 | IFS="$ac_save_ifs" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3885 | fi |
| 3886 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3887 | INTLBISON="$ac_cv_prog_INTLBISON" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3888 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3889 | echo "$ac_t""$INTLBISON" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3890 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3891 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3892 | fi |
| 3893 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3894 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3895 | done |
| 3896 | |
| 3897 | if test -z "$INTLBISON"; then |
| 3898 | ac_verc_fail=yes |
| 3899 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3900 | echo $ac_n "checking version of bison""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3901 | echo "configure:3902: checking version of bison" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3902 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 3903 | case $ac_prog_version in |
| 3904 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 3905 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 3906 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 3907 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 3908 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3909 | echo "$ac_t""$ac_prog_version" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3910 | fi |
| 3911 | if test $ac_verc_fail = yes; then |
| 3912 | INTLBISON=: |
| 3913 | fi |
| 3914 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3915 | |
| 3916 | |
| 3917 | |
| 3918 | |
| 3919 | |
| 3920 | |
| 3921 | |
| 3922 | |
| 3923 | |
| 3924 | |
| 3925 | |
| 3926 | |
| 3927 | |
| 3928 | |
| 3929 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3930 | echo "configure:3931: checking whether NLS is requested" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3931 | # Check whether --enable-nls or --disable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3932 | if test "${enable_nls+set}" = set; then |
| 3933 | enableval="$enable_nls" |
| 3934 | USE_NLS=$enableval |
| 3935 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3936 | USE_NLS=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3937 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3938 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3939 | echo "$ac_t""$USE_NLS" 1>&6 |
| 3940 | |
| 3941 | |
| 3942 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3943 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3944 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3945 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3946 | LIBINTL= |
| 3947 | LTLIBINTL= |
| 3948 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3949 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3950 | if test "$USE_NLS" = "yes"; then |
| 3951 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3952 | |
| 3953 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3954 | echo "configure:3955: checking whether included gettext is requested" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3955 | # Check whether --with-included-gettext or --without-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3956 | if test "${with_included_gettext+set}" = set; then |
| 3957 | withval="$with_included_gettext" |
| 3958 | nls_cv_force_use_gnu_gettext=$withval |
| 3959 | else |
| 3960 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3961 | fi |
| 3962 | |
| 3963 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3964 | |
| 3965 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 3966 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3967 | |
| 3968 | |
| 3969 | |
| 3970 | |
| 3971 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3972 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3973 | echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3974 | echo "configure:3975: checking for GNU gettext in libc" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3975 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then |
| 3976 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3977 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3978 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3979 | #line 3980 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3980 | #include "confdefs.h" |
| 3981 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3982 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3983 | extern int *_nl_domain_bindings; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3984 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3985 | bindtextdomain ("", ""); |
| 3986 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3987 | ; return 0; } |
| 3988 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3989 | if { (eval echo configure:3990: \"$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] | 3990 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3991 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3992 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3993 | echo "configure: failed program was:" >&5 |
| 3994 | cat conftest.$ac_ext >&5 |
| 3995 | rm -rf conftest* |
| 3996 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3997 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3998 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3999 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4000 | |
| 4001 | echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4002 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4003 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4004 | |
| 4005 | |
| 4006 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4007 | use_additional=yes |
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 | acl_save_prefix="$prefix" |
| 4010 | prefix="$acl_final_prefix" |
| 4011 | acl_save_exec_prefix="$exec_prefix" |
| 4012 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4013 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4014 | eval additional_includedir=\"$includedir\" |
| 4015 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4016 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4017 | exec_prefix="$acl_save_exec_prefix" |
| 4018 | prefix="$acl_save_prefix" |
| 4019 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4020 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4021 | if test "${with_libintl_prefix+set}" = set; then |
| 4022 | withval="$with_libintl_prefix" |
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 | if test "X$withval" = "Xno"; then |
| 4025 | use_additional=no |
| 4026 | else |
| 4027 | if test "X$withval" = "X"; then |
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 | acl_save_prefix="$prefix" |
| 4030 | prefix="$acl_final_prefix" |
| 4031 | acl_save_exec_prefix="$exec_prefix" |
| 4032 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4033 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4034 | eval additional_includedir=\"$includedir\" |
| 4035 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4036 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4037 | exec_prefix="$acl_save_exec_prefix" |
| 4038 | prefix="$acl_save_prefix" |
| 4039 | |
| 4040 | else |
| 4041 | additional_includedir="$withval/include" |
| 4042 | additional_libdir="$withval/lib" |
| 4043 | fi |
| 4044 | fi |
| 4045 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4046 | fi |
| 4047 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4048 | LIBINTL= |
| 4049 | LTLIBINTL= |
| 4050 | INCINTL= |
| 4051 | rpathdirs= |
| 4052 | ltrpathdirs= |
| 4053 | names_already_handled= |
| 4054 | names_next_round='intl ' |
| 4055 | while test -n "$names_next_round"; do |
| 4056 | names_this_round="$names_next_round" |
| 4057 | names_next_round= |
| 4058 | for name in $names_this_round; do |
| 4059 | already_handled= |
| 4060 | for n in $names_already_handled; do |
| 4061 | if test "$n" = "$name"; then |
| 4062 | already_handled=yes |
| 4063 | break |
| 4064 | fi |
| 4065 | done |
| 4066 | if test -z "$already_handled"; then |
| 4067 | names_already_handled="$names_already_handled $name" |
| 4068 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 4069 | eval value=\"\$HAVE_LIB$uppername\" |
| 4070 | if test -n "$value"; then |
| 4071 | if test "$value" = yes; then |
| 4072 | eval value=\"\$LIB$uppername\" |
| 4073 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 4074 | eval value=\"\$LTLIB$uppername\" |
| 4075 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 4076 | else |
| 4077 | : |
| 4078 | fi |
| 4079 | else |
| 4080 | found_dir= |
| 4081 | found_la= |
| 4082 | found_so= |
| 4083 | found_a= |
| 4084 | if test $use_additional = yes; then |
| 4085 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 4086 | found_dir="$additional_libdir" |
| 4087 | found_so="$additional_libdir/lib$name.$shlibext" |
| 4088 | if test -f "$additional_libdir/lib$name.la"; then |
| 4089 | found_la="$additional_libdir/lib$name.la" |
| 4090 | fi |
| 4091 | else |
| 4092 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 4093 | found_dir="$additional_libdir" |
| 4094 | found_a="$additional_libdir/lib$name.$libext" |
| 4095 | if test -f "$additional_libdir/lib$name.la"; then |
| 4096 | found_la="$additional_libdir/lib$name.la" |
| 4097 | fi |
| 4098 | fi |
| 4099 | fi |
| 4100 | fi |
| 4101 | if test "X$found_dir" = "X"; then |
| 4102 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4103 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4104 | acl_save_prefix="$prefix" |
| 4105 | prefix="$acl_final_prefix" |
| 4106 | acl_save_exec_prefix="$exec_prefix" |
| 4107 | exec_prefix="$acl_final_exec_prefix" |
| 4108 | eval x=\"$x\" |
| 4109 | exec_prefix="$acl_save_exec_prefix" |
| 4110 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4111 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4112 | case "$x" in |
| 4113 | -L*) |
| 4114 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 4115 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 4116 | found_dir="$dir" |
| 4117 | found_so="$dir/lib$name.$shlibext" |
| 4118 | if test -f "$dir/lib$name.la"; then |
| 4119 | found_la="$dir/lib$name.la" |
| 4120 | fi |
| 4121 | else |
| 4122 | if test -f "$dir/lib$name.$libext"; then |
| 4123 | found_dir="$dir" |
| 4124 | found_a="$dir/lib$name.$libext" |
| 4125 | if test -f "$dir/lib$name.la"; then |
| 4126 | found_la="$dir/lib$name.la" |
| 4127 | fi |
| 4128 | fi |
| 4129 | fi |
| 4130 | ;; |
| 4131 | esac |
| 4132 | if test "X$found_dir" != "X"; then |
| 4133 | break |
| 4134 | fi |
| 4135 | done |
| 4136 | fi |
| 4137 | if test "X$found_dir" != "X"; then |
| 4138 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 4139 | if test "X$found_so" != "X"; then |
| 4140 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 4141 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4142 | else |
| 4143 | haveit= |
| 4144 | for x in $ltrpathdirs; do |
| 4145 | if test "X$x" = "X$found_dir"; then |
| 4146 | haveit=yes |
| 4147 | break |
| 4148 | fi |
| 4149 | done |
| 4150 | if test -z "$haveit"; then |
| 4151 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 4152 | fi |
| 4153 | if test "$hardcode_direct" = yes; then |
| 4154 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4155 | else |
| 4156 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 4157 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4158 | haveit= |
| 4159 | for x in $rpathdirs; do |
| 4160 | if test "X$x" = "X$found_dir"; then |
| 4161 | haveit=yes |
| 4162 | break |
| 4163 | fi |
| 4164 | done |
| 4165 | if test -z "$haveit"; then |
| 4166 | rpathdirs="$rpathdirs $found_dir" |
| 4167 | fi |
| 4168 | else |
| 4169 | haveit= |
| 4170 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4171 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4172 | acl_save_prefix="$prefix" |
| 4173 | prefix="$acl_final_prefix" |
| 4174 | acl_save_exec_prefix="$exec_prefix" |
| 4175 | exec_prefix="$acl_final_exec_prefix" |
| 4176 | eval x=\"$x\" |
| 4177 | exec_prefix="$acl_save_exec_prefix" |
| 4178 | prefix="$acl_save_prefix" |
| 4179 | |
| 4180 | if test "X$x" = "X-L$found_dir"; then |
| 4181 | haveit=yes |
| 4182 | break |
| 4183 | fi |
| 4184 | done |
| 4185 | if test -z "$haveit"; then |
| 4186 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 4187 | fi |
| 4188 | if test "$hardcode_minus_L" != no; then |
| 4189 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4190 | else |
| 4191 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 4192 | fi |
| 4193 | fi |
| 4194 | fi |
| 4195 | fi |
| 4196 | else |
| 4197 | if test "X$found_a" != "X"; then |
| 4198 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 4199 | else |
| 4200 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 4201 | fi |
| 4202 | fi |
| 4203 | additional_includedir= |
| 4204 | case "$found_dir" in |
| 4205 | */lib | */lib/) |
| 4206 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 4207 | additional_includedir="$basedir/include" |
| 4208 | ;; |
| 4209 | esac |
| 4210 | if test "X$additional_includedir" != "X"; then |
| 4211 | if test "X$additional_includedir" != "X/usr/include"; then |
| 4212 | haveit= |
| 4213 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 4214 | if test -n "$GCC"; then |
| 4215 | case $host_os in |
| 4216 | linux*) haveit=yes;; |
| 4217 | esac |
| 4218 | fi |
| 4219 | fi |
| 4220 | if test -z "$haveit"; then |
| 4221 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4222 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4223 | acl_save_prefix="$prefix" |
| 4224 | prefix="$acl_final_prefix" |
| 4225 | acl_save_exec_prefix="$exec_prefix" |
| 4226 | exec_prefix="$acl_final_exec_prefix" |
| 4227 | eval x=\"$x\" |
| 4228 | exec_prefix="$acl_save_exec_prefix" |
| 4229 | prefix="$acl_save_prefix" |
| 4230 | |
| 4231 | if test "X$x" = "X-I$additional_includedir"; then |
| 4232 | haveit=yes |
| 4233 | break |
| 4234 | fi |
| 4235 | done |
| 4236 | if test -z "$haveit"; then |
| 4237 | if test -d "$additional_includedir"; then |
| 4238 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 4239 | fi |
| 4240 | fi |
| 4241 | fi |
| 4242 | fi |
| 4243 | fi |
| 4244 | if test -n "$found_la"; then |
| 4245 | save_libdir="$libdir" |
| 4246 | case "$found_la" in |
| 4247 | */* | *\\*) . "$found_la" ;; |
| 4248 | *) . "./$found_la" ;; |
| 4249 | esac |
| 4250 | libdir="$save_libdir" |
| 4251 | for dep in $dependency_libs; do |
| 4252 | case "$dep" in |
| 4253 | -L*) |
| 4254 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 4255 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 4256 | haveit= |
| 4257 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 4258 | if test -n "$GCC"; then |
| 4259 | case $host_os in |
| 4260 | linux*) haveit=yes;; |
| 4261 | esac |
| 4262 | fi |
| 4263 | fi |
| 4264 | if test -z "$haveit"; then |
| 4265 | haveit= |
| 4266 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4267 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4268 | acl_save_prefix="$prefix" |
| 4269 | prefix="$acl_final_prefix" |
| 4270 | acl_save_exec_prefix="$exec_prefix" |
| 4271 | exec_prefix="$acl_final_exec_prefix" |
| 4272 | eval x=\"$x\" |
| 4273 | exec_prefix="$acl_save_exec_prefix" |
| 4274 | prefix="$acl_save_prefix" |
| 4275 | |
| 4276 | if test "X$x" = "X-L$additional_libdir"; then |
| 4277 | haveit=yes |
| 4278 | break |
| 4279 | fi |
| 4280 | done |
| 4281 | if test -z "$haveit"; then |
| 4282 | if test -d "$additional_libdir"; then |
| 4283 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 4284 | fi |
| 4285 | fi |
| 4286 | haveit= |
| 4287 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4288 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4289 | acl_save_prefix="$prefix" |
| 4290 | prefix="$acl_final_prefix" |
| 4291 | acl_save_exec_prefix="$exec_prefix" |
| 4292 | exec_prefix="$acl_final_exec_prefix" |
| 4293 | eval x=\"$x\" |
| 4294 | exec_prefix="$acl_save_exec_prefix" |
| 4295 | prefix="$acl_save_prefix" |
| 4296 | |
| 4297 | if test "X$x" = "X-L$additional_libdir"; then |
| 4298 | haveit=yes |
| 4299 | break |
| 4300 | fi |
| 4301 | done |
| 4302 | if test -z "$haveit"; then |
| 4303 | if test -d "$additional_libdir"; then |
| 4304 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 4305 | fi |
| 4306 | fi |
| 4307 | fi |
| 4308 | fi |
| 4309 | ;; |
| 4310 | -R*) |
| 4311 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 4312 | if test "$enable_rpath" != no; then |
| 4313 | haveit= |
| 4314 | for x in $rpathdirs; do |
| 4315 | if test "X$x" = "X$dir"; then |
| 4316 | haveit=yes |
| 4317 | break |
| 4318 | fi |
| 4319 | done |
| 4320 | if test -z "$haveit"; then |
| 4321 | rpathdirs="$rpathdirs $dir" |
| 4322 | fi |
| 4323 | haveit= |
| 4324 | for x in $ltrpathdirs; do |
| 4325 | if test "X$x" = "X$dir"; then |
| 4326 | haveit=yes |
| 4327 | break |
| 4328 | fi |
| 4329 | done |
| 4330 | if test -z "$haveit"; then |
| 4331 | ltrpathdirs="$ltrpathdirs $dir" |
| 4332 | fi |
| 4333 | fi |
| 4334 | ;; |
| 4335 | -l*) |
| 4336 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 4337 | ;; |
| 4338 | *.la) |
| 4339 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 4340 | ;; |
| 4341 | *) |
| 4342 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 4343 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 4344 | ;; |
| 4345 | esac |
| 4346 | done |
| 4347 | fi |
| 4348 | else |
| 4349 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 4350 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 4351 | fi |
| 4352 | fi |
| 4353 | fi |
| 4354 | done |
| 4355 | done |
| 4356 | if test "X$rpathdirs" != "X"; then |
| 4357 | if test -n "$hardcode_libdir_separator"; then |
| 4358 | alldirs= |
| 4359 | for found_dir in $rpathdirs; do |
| 4360 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 4361 | done |
| 4362 | acl_save_libdir="$libdir" |
| 4363 | libdir="$alldirs" |
| 4364 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 4365 | libdir="$acl_save_libdir" |
| 4366 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 4367 | else |
| 4368 | for found_dir in $rpathdirs; do |
| 4369 | acl_save_libdir="$libdir" |
| 4370 | libdir="$found_dir" |
| 4371 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 4372 | libdir="$acl_save_libdir" |
| 4373 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 4374 | done |
| 4375 | fi |
| 4376 | fi |
| 4377 | if test "X$ltrpathdirs" != "X"; then |
| 4378 | for found_dir in $ltrpathdirs; do |
| 4379 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 4380 | done |
| 4381 | fi |
| 4382 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4383 | echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4384 | echo "configure:4385: checking for GNU gettext in libintl" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4385 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then |
| 4386 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4387 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4388 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 4389 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 4390 | gt_save_LIBS="$LIBS" |
| 4391 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4392 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4393 | #line 4394 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4394 | #include "confdefs.h" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4395 | #include <libintl.h> |
| 4396 | extern int _nl_msg_cat_cntr; |
| 4397 | extern |
| 4398 | #ifdef __cplusplus |
| 4399 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4400 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4401 | const char *_nl_expand_alias (); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4402 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4403 | bindtextdomain ("", ""); |
| 4404 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4405 | ; return 0; } |
| 4406 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4407 | if { (eval echo configure:4408: \"$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] | 4408 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4409 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4410 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4411 | echo "configure: failed program was:" >&5 |
| 4412 | cat conftest.$ac_ext >&5 |
| 4413 | rm -rf conftest* |
| 4414 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4415 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4416 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4417 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 4418 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4419 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4420 | #line 4421 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4421 | #include "confdefs.h" |
| 4422 | #include <libintl.h> |
| 4423 | extern int _nl_msg_cat_cntr; |
| 4424 | extern |
| 4425 | #ifdef __cplusplus |
| 4426 | "C" |
| 4427 | #endif |
| 4428 | const char *_nl_expand_alias (); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4429 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4430 | bindtextdomain ("", ""); |
| 4431 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4432 | ; return 0; } |
| 4433 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4434 | if { (eval echo configure:4435: \"$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] | 4435 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4436 | LIBINTL="$LIBINTL $LIBICONV" |
| 4437 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 4438 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4439 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4440 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4441 | echo "configure: failed program was:" >&5 |
| 4442 | cat conftest.$ac_ext >&5 |
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 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4445 | fi |
| 4446 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 4447 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4448 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4449 | |
| 4450 | echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4451 | fi |
| 4452 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4453 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 4454 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
| 4455 | && test "$PACKAGE" != gettext; }; then |
| 4456 | gt_use_preinstalled_gnugettext=yes |
| 4457 | else |
| 4458 | LIBINTL= |
| 4459 | LTLIBINTL= |
| 4460 | INCINTL= |
| 4461 | fi |
| 4462 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4463 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4464 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 4465 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4466 | fi |
| 4467 | fi |
| 4468 | |
| 4469 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4470 | INTLOBJS="\$(GETTOBJS)" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4471 | BUILD_INCLUDED_LIBINTL=yes |
| 4472 | USE_INCLUDED_LIBINTL=yes |
| 4473 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 4474 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 4475 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4476 | fi |
| 4477 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4478 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 4479 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4480 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4481 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4482 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4483 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4484 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 4485 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4486 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4487 | #define ENABLE_NLS 1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4488 | EOF |
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 | else |
| 4491 | USE_NLS=no |
| 4492 | fi |
| 4493 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4494 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4495 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4496 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4497 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 4498 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4499 | echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4500 | echo "configure:4501: checking how to link with libintl" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4501 | echo "$ac_t""$LIBINTL" 1>&6 |
| 4502 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4503 | for element in $INCINTL; do |
| 4504 | haveit= |
| 4505 | for x in $CPPFLAGS; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4506 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4507 | acl_save_prefix="$prefix" |
| 4508 | prefix="$acl_final_prefix" |
| 4509 | acl_save_exec_prefix="$exec_prefix" |
| 4510 | exec_prefix="$acl_final_exec_prefix" |
| 4511 | eval x=\"$x\" |
| 4512 | exec_prefix="$acl_save_exec_prefix" |
| 4513 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4514 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4515 | if test "X$x" = "X$element"; then |
| 4516 | haveit=yes |
| 4517 | break |
| 4518 | fi |
| 4519 | done |
| 4520 | if test -z "$haveit"; then |
| 4521 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 4522 | fi |
| 4523 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4524 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4525 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4526 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4527 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4528 | #define HAVE_GETTEXT 1 |
| 4529 | EOF |
| 4530 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4531 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4532 | #define HAVE_DCGETTEXT 1 |
| 4533 | EOF |
| 4534 | |
| 4535 | fi |
| 4536 | |
| 4537 | POSUB=po |
| 4538 | fi |
| 4539 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4540 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4541 | if test "$PACKAGE" = gettext; then |
| 4542 | BUILD_INCLUDED_LIBINTL=yes |
| 4543 | fi |
| 4544 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4545 | |
| 4546 | |
| 4547 | |
| 4548 | |
| 4549 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4550 | nls_cv_header_intl= |
| 4551 | nls_cv_header_libgt= |
| 4552 | |
| 4553 | DATADIRNAME=share |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4554 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4555 | |
| 4556 | INSTOBJEXT=.mo |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4557 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4558 | |
| 4559 | GENCAT=gencat |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4560 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4561 | |
| 4562 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4563 | |
| 4564 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4565 | |
| 4566 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4567 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4568 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4569 | |
| 4570 | |
| 4571 | |
| 4572 | |
| 4573 | |
| 4574 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4575 | echo "configure:4576: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4576 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 4577 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 4578 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4579 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4580 | cat > conftestmake <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4581 | all: |
| 4582 | @echo 'ac_maketemp="${MAKE}"' |
| 4583 | EOF |
| 4584 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4585 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4586 | if test -n "$ac_maketemp"; then |
| 4587 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 4588 | else |
| 4589 | eval ac_cv_prog_make_${ac_make}_set=no |
| 4590 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4591 | rm -f conftestmake |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4592 | fi |
| 4593 | 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] | 4594 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4595 | SET_MAKE= |
| 4596 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4597 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4598 | SET_MAKE="MAKE=${MAKE-make}" |
| 4599 | fi |
| 4600 | |
| 4601 | # Extract the first word of "ln", so it can be a program name with args. |
| 4602 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4603 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4604 | echo "configure:4605: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4605 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
| 4606 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4607 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4608 | case "$LN" in |
| 4609 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4610 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 4611 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4612 | ?:/*) |
| 4613 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. |
| 4614 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4615 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4616 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4617 | ac_dummy="$PATH" |
| 4618 | for ac_dir in $ac_dummy; do |
| 4619 | test -z "$ac_dir" && ac_dir=. |
| 4620 | if test -f $ac_dir/$ac_word; then |
| 4621 | ac_cv_path_LN="$ac_dir/$ac_word" |
| 4622 | break |
| 4623 | fi |
| 4624 | done |
| 4625 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4626 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 4627 | ;; |
| 4628 | esac |
| 4629 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4630 | LN="$ac_cv_path_LN" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4631 | if test -n "$LN"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4632 | echo "$ac_t""$LN" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4633 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4634 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4635 | fi |
| 4636 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4637 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4638 | echo "configure:4639: checking whether ln -s works" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4639 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 4640 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4641 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4642 | rm -f conftestdata |
| 4643 | if ln -s X conftestdata 2>/dev/null |
| 4644 | then |
| 4645 | rm -f conftestdata |
| 4646 | ac_cv_prog_LN_S="ln -s" |
| 4647 | else |
| 4648 | ac_cv_prog_LN_S=ln |
| 4649 | fi |
| 4650 | fi |
| 4651 | LN_S="$ac_cv_prog_LN_S" |
| 4652 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 4653 | echo "$ac_t""yes" 1>&6 |
| 4654 | else |
| 4655 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4656 | fi |
| 4657 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4658 | # Extract the first word of "mv", so it can be a program name with args. |
| 4659 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4660 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4661 | echo "configure:4662: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4662 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
| 4663 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4664 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4665 | case "$MV" in |
| 4666 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4667 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 4668 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4669 | ?:/*) |
| 4670 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. |
| 4671 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4672 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4673 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4674 | ac_dummy="$PATH" |
| 4675 | for ac_dir in $ac_dummy; do |
| 4676 | test -z "$ac_dir" && ac_dir=. |
| 4677 | if test -f $ac_dir/$ac_word; then |
| 4678 | ac_cv_path_MV="$ac_dir/$ac_word" |
| 4679 | break |
| 4680 | fi |
| 4681 | done |
| 4682 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4683 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 4684 | ;; |
| 4685 | esac |
| 4686 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4687 | MV="$ac_cv_path_MV" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4688 | if test -n "$MV"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4689 | echo "$ac_t""$MV" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4690 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4691 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4692 | fi |
| 4693 | |
| 4694 | # Extract the first word of "cp", so it can be a program name with args. |
| 4695 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4696 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4697 | echo "configure:4698: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4698 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
| 4699 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4700 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4701 | case "$CP" in |
| 4702 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4703 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 4704 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4705 | ?:/*) |
| 4706 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. |
| 4707 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4708 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4709 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4710 | ac_dummy="$PATH" |
| 4711 | for ac_dir in $ac_dummy; do |
| 4712 | test -z "$ac_dir" && ac_dir=. |
| 4713 | if test -f $ac_dir/$ac_word; then |
| 4714 | ac_cv_path_CP="$ac_dir/$ac_word" |
| 4715 | break |
| 4716 | fi |
| 4717 | done |
| 4718 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4719 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 4720 | ;; |
| 4721 | esac |
| 4722 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4723 | CP="$ac_cv_path_CP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4724 | if test -n "$CP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4725 | echo "$ac_t""$CP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4726 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4727 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4728 | fi |
| 4729 | |
| 4730 | # Extract the first word of "rm", so it can be a program name with args. |
| 4731 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4732 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4733 | echo "configure:4734: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4734 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
| 4735 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4736 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4737 | case "$RM" in |
| 4738 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4739 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 4740 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4741 | ?:/*) |
| 4742 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. |
| 4743 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4744 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4745 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4746 | ac_dummy="$PATH" |
| 4747 | for ac_dir in $ac_dummy; do |
| 4748 | test -z "$ac_dir" && ac_dir=. |
| 4749 | if test -f $ac_dir/$ac_word; then |
| 4750 | ac_cv_path_RM="$ac_dir/$ac_word" |
| 4751 | break |
| 4752 | fi |
| 4753 | done |
| 4754 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4755 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 4756 | ;; |
| 4757 | esac |
| 4758 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4759 | RM="$ac_cv_path_RM" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4760 | if test -n "$RM"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4761 | echo "$ac_t""$RM" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4762 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4763 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4764 | fi |
| 4765 | |
| 4766 | # Extract the first word of "chmod", so it can be a program name with args. |
| 4767 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4768 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4769 | echo "configure:4770: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4770 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
| 4771 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4772 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4773 | case "$CHMOD" in |
| 4774 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4775 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 4776 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4777 | ?:/*) |
| 4778 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. |
| 4779 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4780 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4781 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4782 | ac_dummy="$PATH" |
| 4783 | for ac_dir in $ac_dummy; do |
| 4784 | test -z "$ac_dir" && ac_dir=. |
| 4785 | if test -f $ac_dir/$ac_word; then |
| 4786 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
| 4787 | break |
| 4788 | fi |
| 4789 | done |
| 4790 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4791 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 4792 | ;; |
| 4793 | esac |
| 4794 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4795 | CHMOD="$ac_cv_path_CHMOD" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4796 | if test -n "$CHMOD"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4797 | echo "$ac_t""$CHMOD" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4798 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4799 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4800 | fi |
| 4801 | |
| 4802 | # Extract the first word of "awk", so it can be a program name with args. |
| 4803 | set dummy awk; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4804 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4805 | echo "configure:4806: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4806 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then |
| 4807 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4808 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4809 | case "$AWK" in |
| 4810 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4811 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. |
| 4812 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4813 | ?:/*) |
| 4814 | ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path. |
| 4815 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4816 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4817 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4818 | ac_dummy="$PATH" |
| 4819 | for ac_dir in $ac_dummy; do |
| 4820 | test -z "$ac_dir" && ac_dir=. |
| 4821 | if test -f $ac_dir/$ac_word; then |
| 4822 | ac_cv_path_AWK="$ac_dir/$ac_word" |
| 4823 | break |
| 4824 | fi |
| 4825 | done |
| 4826 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4827 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" |
| 4828 | ;; |
| 4829 | esac |
| 4830 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4831 | AWK="$ac_cv_path_AWK" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4832 | if test -n "$AWK"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4833 | echo "$ac_t""$AWK" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4834 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4835 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4836 | fi |
| 4837 | |
| 4838 | # Extract the first word of "sed", so it can be a program name with args. |
| 4839 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4840 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4841 | echo "configure:4842: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4842 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
| 4843 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4844 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4845 | case "$SED" in |
| 4846 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4847 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 4848 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4849 | ?:/*) |
| 4850 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. |
| 4851 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4852 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4853 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4854 | ac_dummy="$PATH" |
| 4855 | for ac_dir in $ac_dummy; do |
| 4856 | test -z "$ac_dir" && ac_dir=. |
| 4857 | if test -f $ac_dir/$ac_word; then |
| 4858 | ac_cv_path_SED="$ac_dir/$ac_word" |
| 4859 | break |
| 4860 | fi |
| 4861 | done |
| 4862 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4863 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 4864 | ;; |
| 4865 | esac |
| 4866 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4867 | SED="$ac_cv_path_SED" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4868 | if test -n "$SED"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4869 | echo "$ac_t""$SED" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4870 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4871 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4872 | fi |
| 4873 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4874 | # Extract the first word of "perl", so it can be a program name with args. |
| 4875 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4876 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4877 | echo "configure:4878: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4878 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
| 4879 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4880 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4881 | case "$PERL" in |
| 4882 | /*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4883 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 4884 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4885 | ?:/*) |
| 4886 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
| 4887 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4888 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4889 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4890 | ac_dummy="$PATH" |
| 4891 | for ac_dir in $ac_dummy; do |
| 4892 | test -z "$ac_dir" && ac_dir=. |
| 4893 | if test -f $ac_dir/$ac_word; then |
| 4894 | ac_cv_path_PERL="$ac_dir/$ac_word" |
| 4895 | break |
| 4896 | fi |
| 4897 | done |
| 4898 | IFS="$ac_save_ifs" |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4899 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 4900 | ;; |
| 4901 | esac |
| 4902 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4903 | PERL="$ac_cv_path_PERL" |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4904 | if test -n "$PERL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4905 | echo "$ac_t""$PERL" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4906 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4907 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4908 | fi |
| 4909 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4910 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4911 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4912 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4913 | echo "configure:4914: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4914 | if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then |
| 4915 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4916 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4917 | case "$LDCONFIG" in |
| 4918 | /*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4919 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4920 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4921 | ?:/*) |
| 4922 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path. |
| 4923 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4924 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4925 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4926 | ac_dummy="$PATH" |
| 4927 | for ac_dir in $ac_dummy; do |
| 4928 | test -z "$ac_dir" && ac_dir=. |
| 4929 | if test -f $ac_dir/$ac_word; then |
| 4930 | ac_cv_path_LDCONFIG="$ac_dir/$ac_word" |
| 4931 | break |
| 4932 | fi |
| 4933 | done |
| 4934 | IFS="$ac_save_ifs" |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4935 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 4936 | ;; |
| 4937 | esac |
| 4938 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4939 | LDCONFIG="$ac_cv_path_LDCONFIG" |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4940 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4941 | echo "$ac_t""$LDCONFIG" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4942 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4943 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4944 | fi |
| 4945 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4946 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4947 | echo "configure:4948: checking build system type" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4948 | |
| 4949 | build_alias=$build |
| 4950 | case "$build_alias" in |
| 4951 | NONE) |
| 4952 | case $nonopt in |
| 4953 | NONE) build_alias=$host_alias ;; |
| 4954 | *) build_alias=$nonopt ;; |
| 4955 | esac ;; |
| 4956 | esac |
| 4957 | |
| 4958 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 4959 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 4960 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 4961 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 4962 | echo "$ac_t""$build" 1>&6 |
| 4963 | |
| 4964 | if test $host != $build; then |
| 4965 | ac_tool_prefix=${host_alias}- |
| 4966 | else |
| 4967 | ac_tool_prefix= |
| 4968 | fi |
| 4969 | |
| 4970 | # 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] | 4971 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4972 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4973 | echo "configure:4974: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4974 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 4975 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4976 | else |
| 4977 | if test -n "$AR"; then |
| 4978 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4979 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4980 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4981 | ac_dummy="$PATH" |
| 4982 | for ac_dir in $ac_dummy; do |
| 4983 | test -z "$ac_dir" && ac_dir=. |
| 4984 | if test -f $ac_dir/$ac_word; then |
| 4985 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 4986 | break |
| 4987 | fi |
| 4988 | done |
| 4989 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4990 | fi |
| 4991 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4992 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4993 | if test -n "$AR"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4994 | echo "$ac_t""$AR" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4995 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4996 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4997 | fi |
| 4998 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4999 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5000 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5001 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5002 | # Extract the first word of "ar", so it can be a program name with args. |
| 5003 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5004 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5005 | echo "configure:5006: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5006 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 5007 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5008 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5009 | if test -n "$AR"; then |
| 5010 | ac_cv_prog_AR="$AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5011 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5012 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5013 | ac_dummy="$PATH" |
| 5014 | for ac_dir in $ac_dummy; do |
| 5015 | test -z "$ac_dir" && ac_dir=. |
| 5016 | if test -f $ac_dir/$ac_word; then |
| 5017 | ac_cv_prog_AR="ar" |
| 5018 | break |
| 5019 | fi |
| 5020 | done |
| 5021 | IFS="$ac_save_ifs" |
| 5022 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5023 | fi |
| 5024 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5025 | AR="$ac_cv_prog_AR" |
| 5026 | if test -n "$AR"; then |
| 5027 | echo "$ac_t""$AR" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5028 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5029 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5030 | fi |
| 5031 | |
| 5032 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5033 | AR="ar" |
| 5034 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5035 | fi |
| 5036 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5037 | # 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] | 5038 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5039 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5040 | echo "configure:5041: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5041 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 5042 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5043 | else |
| 5044 | if test -n "$RANLIB"; then |
| 5045 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5046 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5047 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5048 | ac_dummy="$PATH" |
| 5049 | for ac_dir in $ac_dummy; do |
| 5050 | test -z "$ac_dir" && ac_dir=. |
| 5051 | if test -f $ac_dir/$ac_word; then |
| 5052 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5053 | break |
| 5054 | fi |
| 5055 | done |
| 5056 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5057 | fi |
| 5058 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5059 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5060 | if test -n "$RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5061 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5062 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5063 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5064 | fi |
| 5065 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5066 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5067 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5068 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5069 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5070 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5071 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5072 | echo "configure:5073: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5073 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 5074 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5075 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5076 | if test -n "$RANLIB"; then |
| 5077 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5078 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5079 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5080 | ac_dummy="$PATH" |
| 5081 | for ac_dir in $ac_dummy; do |
| 5082 | test -z "$ac_dir" && ac_dir=. |
| 5083 | if test -f $ac_dir/$ac_word; then |
| 5084 | ac_cv_prog_RANLIB="ranlib" |
| 5085 | break |
| 5086 | fi |
| 5087 | done |
| 5088 | IFS="$ac_save_ifs" |
| 5089 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5090 | fi |
| 5091 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5092 | RANLIB="$ac_cv_prog_RANLIB" |
| 5093 | if test -n "$RANLIB"; then |
| 5094 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5095 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5096 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5097 | fi |
| 5098 | |
| 5099 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5100 | RANLIB=":" |
| 5101 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5102 | fi |
| 5103 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5104 | # 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] | 5105 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5106 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5107 | echo "configure:5108: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5108 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 5109 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5110 | else |
| 5111 | if test -n "$STRIP"; then |
| 5112 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5113 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5114 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5115 | ac_dummy="$PATH" |
| 5116 | for ac_dir in $ac_dummy; do |
| 5117 | test -z "$ac_dir" && ac_dir=. |
| 5118 | if test -f $ac_dir/$ac_word; then |
| 5119 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5120 | break |
| 5121 | fi |
| 5122 | done |
| 5123 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5124 | fi |
| 5125 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5126 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5127 | if test -n "$STRIP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5128 | echo "$ac_t""$STRIP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5129 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5130 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5131 | fi |
| 5132 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5133 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5134 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5135 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5136 | # Extract the first word of "strip", so it can be a program name with args. |
| 5137 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5138 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5139 | echo "configure:5140: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5140 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 5141 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5142 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5143 | if test -n "$STRIP"; then |
| 5144 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5145 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5146 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5147 | ac_dummy="$PATH" |
| 5148 | for ac_dir in $ac_dummy; do |
| 5149 | test -z "$ac_dir" && ac_dir=. |
| 5150 | if test -f $ac_dir/$ac_word; then |
| 5151 | ac_cv_prog_STRIP="strip" |
| 5152 | break |
| 5153 | fi |
| 5154 | done |
| 5155 | IFS="$ac_save_ifs" |
| 5156 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5157 | fi |
| 5158 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5159 | STRIP="$ac_cv_prog_STRIP" |
| 5160 | if test -n "$STRIP"; then |
| 5161 | echo "$ac_t""$STRIP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5162 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5163 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5164 | fi |
| 5165 | |
| 5166 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5167 | STRIP=":" |
| 5168 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5169 | fi |
| 5170 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5171 | # Find a good install program. We prefer a C program (faster), |
| 5172 | # so one script is as good as another. But avoid the broken or |
| 5173 | # incompatible versions: |
| 5174 | # SysV /etc/install, /usr/sbin/install |
| 5175 | # SunOS /usr/etc/install |
| 5176 | # IRIX /sbin/install |
| 5177 | # AIX /bin/install |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5178 | # 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] | 5179 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5180 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5181 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5182 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5183 | echo "configure:5184: checking for a BSD compatible install" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5184 | if test -z "$INSTALL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5185 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 5186 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5187 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5188 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5189 | for ac_dir in $PATH; do |
| 5190 | # Account for people who put trailing slashes in PATH elements. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5191 | case "$ac_dir/" in |
| 5192 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5193 | *) |
| 5194 | # 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] | 5195 | # Don't use installbsd from OSF since it installs stuff as root |
| 5196 | # by default. |
| 5197 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5198 | if test -f $ac_dir/$ac_prog; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5199 | if test $ac_prog = install && |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5200 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5201 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5202 | : |
| 5203 | else |
| 5204 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 5205 | break 2 |
| 5206 | fi |
| 5207 | fi |
| 5208 | done |
| 5209 | ;; |
| 5210 | esac |
| 5211 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5212 | IFS="$ac_save_IFS" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5213 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5214 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5215 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5216 | INSTALL="$ac_cv_path_install" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5217 | else |
| 5218 | # As a last resort, use the slow shell script. We don't cache a |
| 5219 | # path for INSTALL within a source directory, because that will |
| 5220 | # break other packages using the cache if that directory is |
| 5221 | # removed, or if the path is relative. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5222 | INSTALL="$ac_install_sh" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5223 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5224 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5225 | echo "$ac_t""$INSTALL" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5226 | |
| 5227 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5228 | # It thinks the first close brace ends the variable substitution. |
| 5229 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5230 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5231 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5232 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5233 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5234 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5235 | # See if we need a separate native compiler. |
| 5236 | if test $cross_compiling = no; then |
| 5237 | BUILD_CC="$CC" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5238 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5239 | else |
| 5240 | for ac_prog in gcc cc |
| 5241 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5242 | # 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] | 5243 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5244 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5245 | echo "configure:5246: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5246 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
| 5247 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5248 | else |
| 5249 | if test -n "$BUILD_CC"; then |
| 5250 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 5251 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5252 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5253 | ac_dummy="$PATH" |
| 5254 | for ac_dir in $ac_dummy; do |
| 5255 | test -z "$ac_dir" && ac_dir=. |
| 5256 | if test -f $ac_dir/$ac_word; then |
| 5257 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 5258 | break |
| 5259 | fi |
| 5260 | done |
| 5261 | IFS="$ac_save_ifs" |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5262 | fi |
| 5263 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5264 | BUILD_CC="$ac_cv_prog_BUILD_CC" |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5265 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5266 | echo "$ac_t""$BUILD_CC" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5267 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5268 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5269 | fi |
| 5270 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5271 | test -n "$BUILD_CC" && break |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5272 | done |
| 5273 | |
| 5274 | fi |
Theodore Ts'o | 2625803 | 2004-04-03 10:20:26 -0500 | [diff] [blame] | 5275 | 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/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] | 5276 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5277 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5278 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5279 | echo "configure:5280: checking for $ac_hdr" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5280 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5281 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5282 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5283 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5284 | #line 5285 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5285 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5286 | #include <$ac_hdr> |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5287 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5288 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5289 | { (eval echo configure:5290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5290 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5291 | if test -z "$ac_err"; then |
| 5292 | rm -rf conftest* |
| 5293 | eval "ac_cv_header_$ac_safe=yes" |
| 5294 | else |
| 5295 | echo "$ac_err" >&5 |
| 5296 | echo "configure: failed program was:" >&5 |
| 5297 | cat conftest.$ac_ext >&5 |
| 5298 | rm -rf conftest* |
| 5299 | eval "ac_cv_header_$ac_safe=no" |
| 5300 | fi |
| 5301 | rm -f conftest* |
| 5302 | fi |
| 5303 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5304 | echo "$ac_t""yes" 1>&6 |
| 5305 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5306 | cat >> confdefs.h <<EOF |
| 5307 | #define $ac_tr_hdr 1 |
| 5308 | EOF |
| 5309 | |
| 5310 | else |
| 5311 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5312 | fi |
| 5313 | done |
| 5314 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5315 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5316 | echo "configure:5317: checking for vprintf" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5317 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
| 5318 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5319 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5320 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5321 | #line 5322 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5322 | #include "confdefs.h" |
| 5323 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5324 | which can conflict with char vprintf(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5325 | #include <assert.h> |
| 5326 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5327 | /* 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] | 5328 | builtin and then its argument prototype would still apply. */ |
| 5329 | char vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5330 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5331 | int main() { |
| 5332 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5333 | /* The GNU C library defines this for functions which it implements |
| 5334 | to always fail with ENOSYS. Some functions are actually named |
| 5335 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5336 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5337 | choke me |
| 5338 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5339 | vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5340 | #endif |
| 5341 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5342 | ; return 0; } |
| 5343 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5344 | if { (eval echo configure:5345: \"$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] | 5345 | rm -rf conftest* |
| 5346 | eval "ac_cv_func_vprintf=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5347 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5348 | echo "configure: failed program was:" >&5 |
| 5349 | cat conftest.$ac_ext >&5 |
| 5350 | rm -rf conftest* |
| 5351 | eval "ac_cv_func_vprintf=no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5352 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5353 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5354 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5355 | |
| 5356 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
| 5357 | echo "$ac_t""yes" 1>&6 |
| 5358 | cat >> confdefs.h <<\EOF |
| 5359 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5360 | EOF |
| 5361 | |
| 5362 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5363 | echo "$ac_t""no" 1>&6 |
| 5364 | fi |
| 5365 | |
| 5366 | if test "$ac_cv_func_vprintf" != yes; then |
| 5367 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5368 | echo "configure:5369: checking for _doprnt" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5369 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
| 5370 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5371 | else |
| 5372 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5373 | #line 5374 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5374 | #include "confdefs.h" |
| 5375 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5376 | which can conflict with char _doprnt(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5377 | #include <assert.h> |
| 5378 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5379 | /* 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] | 5380 | builtin and then its argument prototype would still apply. */ |
| 5381 | char _doprnt(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5382 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5383 | int main() { |
| 5384 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5385 | /* The GNU C library defines this for functions which it implements |
| 5386 | to always fail with ENOSYS. Some functions are actually named |
| 5387 | something starting with __ and the normal name is an alias. */ |
| 5388 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
| 5389 | choke me |
| 5390 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5391 | _doprnt(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5392 | #endif |
| 5393 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5394 | ; return 0; } |
| 5395 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5396 | if { (eval echo configure:5397: \"$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] | 5397 | rm -rf conftest* |
| 5398 | eval "ac_cv_func__doprnt=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5399 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5400 | echo "configure: failed program was:" >&5 |
| 5401 | cat conftest.$ac_ext >&5 |
| 5402 | rm -rf conftest* |
| 5403 | eval "ac_cv_func__doprnt=no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5404 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5405 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5406 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5407 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5408 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
| 5409 | echo "$ac_t""yes" 1>&6 |
| 5410 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5411 | #define HAVE_DOPRNT 1 |
| 5412 | EOF |
| 5413 | |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5414 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5415 | echo "$ac_t""no" 1>&6 |
| 5416 | fi |
| 5417 | |
| 5418 | fi |
| 5419 | |
| 5420 | echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5421 | echo "configure:5422: checking whether d_reclen declared in dirent" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5422 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then |
| 5423 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5424 | else |
| 5425 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5426 | #line 5427 "configure" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5427 | #include "confdefs.h" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5428 | #include <dirent.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5429 | int main() { |
| 5430 | struct dirent de; de.d_reclen = 0; |
| 5431 | ; return 0; } |
| 5432 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5433 | if { (eval echo configure:5434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5434 | rm -rf conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5435 | e2fsprogs_cv_have_d_reclen_dirent=yes |
| 5436 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5437 | echo "configure: failed program was:" >&5 |
| 5438 | cat conftest.$ac_ext >&5 |
| 5439 | rm -rf conftest* |
| 5440 | e2fsprogs_cv_have_d_reclen_dirent=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5441 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5442 | rm -f conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5443 | fi |
| 5444 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5445 | echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5446 | if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5447 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5448 | #define HAVE_RECLEN_DIRENT 1 |
| 5449 | EOF |
| 5450 | |
| 5451 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5452 | echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5453 | echo "configure:5454: checking whether ssize_t declared" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5454 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then |
| 5455 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5456 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5457 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5458 | #line 5459 "configure" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5459 | #include "confdefs.h" |
| 5460 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5461 | int main() { |
| 5462 | ssize_t a = 0; |
| 5463 | ; return 0; } |
| 5464 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5465 | if { (eval echo configure:5466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5466 | rm -rf conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5467 | e2fsprogs_cv_have_ssize_t=yes |
| 5468 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5469 | echo "configure: failed program was:" >&5 |
| 5470 | cat conftest.$ac_ext >&5 |
| 5471 | rm -rf conftest* |
| 5472 | e2fsprogs_cv_have_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5473 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5474 | rm -f conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5475 | fi |
| 5476 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5477 | echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5478 | if test "$e2fsprogs_cv_have_ssize_t" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5479 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5480 | #define HAVE_TYPE_SSIZE_T 1 |
| 5481 | EOF |
| 5482 | |
| 5483 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5484 | echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5485 | echo "configure:5486: checking whether llseek declared in unistd.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5486 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then |
| 5487 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5488 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5489 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5490 | #line 5491 "configure" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5491 | #include "confdefs.h" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5492 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5493 | int main() { |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5494 | extern int llseek(int); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5495 | ; return 0; } |
| 5496 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5497 | if { (eval echo configure:5498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5498 | rm -rf conftest* |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5499 | e2fsprogs_cv_have_llseek_prototype=no |
| 5500 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5501 | echo "configure: failed program was:" >&5 |
| 5502 | cat conftest.$ac_ext >&5 |
| 5503 | rm -rf conftest* |
| 5504 | e2fsprogs_cv_have_llseek_prototype=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5505 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5506 | rm -f conftest* |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5507 | fi |
| 5508 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5509 | echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5510 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5511 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5512 | #define HAVE_LLSEEK_PROTOTYPE 1 |
| 5513 | EOF |
| 5514 | |
| 5515 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5516 | echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5517 | echo "configure:5518: checking whether lseek64 declared in unistd.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5518 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then |
| 5519 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5520 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5521 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5522 | #line 5523 "configure" |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5523 | #include "confdefs.h" |
| 5524 | #define _LARGEFILE_SOURCE |
| 5525 | #define _LARGEFILE64_SOURCE |
| 5526 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5527 | int main() { |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5528 | extern int lseek64(int); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5529 | ; return 0; } |
| 5530 | EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5531 | if { (eval echo configure:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5532 | rm -rf conftest* |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5533 | e2fsprogs_cv_have_lseek64_prototype=no |
| 5534 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5535 | echo "configure: failed program was:" >&5 |
| 5536 | cat conftest.$ac_ext >&5 |
| 5537 | rm -rf conftest* |
| 5538 | e2fsprogs_cv_have_lseek64_prototype=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5539 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5540 | rm -f conftest* |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5541 | fi |
| 5542 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5543 | echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5544 | if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5545 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5546 | #define HAVE_LSEEK64_PROTOTYPE 1 |
| 5547 | EOF |
| 5548 | |
| 5549 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5550 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5551 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5552 | ac_cv_sizeof_short=2 |
| 5553 | ac_cv_sizeof_int=4 |
| 5554 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5555 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5556 | 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] | 5557 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5558 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5559 | echo "configure:5560: checking size of short" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5560 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
| 5561 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5562 | else |
| 5563 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5564 | { 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] | 5565 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5566 | cat > conftest.$ac_ext <<EOF |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 5567 | #line 5568 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5568 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5569 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5570 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5571 | main() |
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 | FILE *f=fopen("conftestval", "w"); |
| 5574 | if (!f) exit(1); |
| 5575 | fprintf(f, "%d\n", sizeof(short)); |
| 5576 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5577 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5578 | EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5579 | if { (eval echo configure:5580: \"$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] | 5580 | then |
| 5581 | ac_cv_sizeof_short=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5582 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5583 | echo "configure: failed program was:" >&5 |
| 5584 | cat conftest.$ac_ext >&5 |
| 5585 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5586 | ac_cv_sizeof_short=0 |
| 5587 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5588 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5589 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5590 | |
| 5591 | fi |
| 5592 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 5593 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5594 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 5595 | EOF |
| 5596 | |
| 5597 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5598 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5599 | echo "configure:5600: checking size of int" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5600 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 5601 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5602 | else |
| 5603 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5604 | { 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] | 5605 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5606 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5607 | #line 5608 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5608 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5609 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5610 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5611 | main() |
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 | FILE *f=fopen("conftestval", "w"); |
| 5614 | if (!f) exit(1); |
| 5615 | fprintf(f, "%d\n", sizeof(int)); |
| 5616 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5617 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5618 | EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5619 | if { (eval echo configure:5620: \"$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] | 5620 | then |
| 5621 | ac_cv_sizeof_int=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5622 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5623 | echo "configure: failed program was:" >&5 |
| 5624 | cat conftest.$ac_ext >&5 |
| 5625 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5626 | ac_cv_sizeof_int=0 |
| 5627 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5628 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5629 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5630 | |
| 5631 | fi |
| 5632 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 5633 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5634 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 5635 | EOF |
| 5636 | |
| 5637 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5638 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5639 | echo "configure:5640: checking size of long" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5640 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 5641 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5642 | else |
| 5643 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5644 | { 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] | 5645 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5646 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5647 | #line 5648 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5648 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5649 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5650 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5651 | main() |
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 | FILE *f=fopen("conftestval", "w"); |
| 5654 | if (!f) exit(1); |
| 5655 | fprintf(f, "%d\n", sizeof(long)); |
| 5656 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5657 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5658 | EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5659 | if { (eval echo configure:5660: \"$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] | 5660 | then |
| 5661 | ac_cv_sizeof_long=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5662 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5663 | echo "configure: failed program was:" >&5 |
| 5664 | cat conftest.$ac_ext >&5 |
| 5665 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5666 | ac_cv_sizeof_long=0 |
| 5667 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5668 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5669 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5670 | |
| 5671 | fi |
| 5672 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 5673 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5674 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 5675 | EOF |
| 5676 | |
| 5677 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5678 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5679 | echo "configure:5680: checking size of long long" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5680 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 5681 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5682 | else |
| 5683 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5684 | { 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] | 5685 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5686 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5687 | #line 5688 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5688 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5689 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5690 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5691 | main() |
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 | FILE *f=fopen("conftestval", "w"); |
| 5694 | if (!f) exit(1); |
| 5695 | fprintf(f, "%d\n", sizeof(long long)); |
| 5696 | exit(0); |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5697 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5698 | EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5699 | if { (eval echo configure:5700: \"$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] | 5700 | then |
| 5701 | ac_cv_sizeof_long_long=`cat conftestval` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5702 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5703 | echo "configure: failed program was:" >&5 |
| 5704 | cat conftest.$ac_ext >&5 |
| 5705 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5706 | ac_cv_sizeof_long_long=0 |
| 5707 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5708 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5709 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5710 | |
| 5711 | fi |
| 5712 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 5713 | cat >> confdefs.h <<EOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5714 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 5715 | EOF |
| 5716 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5717 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5718 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 5719 | SIZEOF_INT=$ac_cv_sizeof_int |
| 5720 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5721 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 5722 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5723 | |
| 5724 | |
| 5725 | |
| 5726 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5727 | echo "configure:5728: checking whether byte ordering is bigendian" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5728 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
| 5729 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5730 | else |
| 5731 | ac_cv_c_bigendian=unknown |
| 5732 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5733 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5734 | #line 5735 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5735 | #include "confdefs.h" |
| 5736 | #include <sys/types.h> |
| 5737 | #include <sys/param.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5738 | int main() { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5739 | |
| 5740 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5741 | bogus endian macros |
| 5742 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5743 | ; return 0; } |
| 5744 | EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5745 | if { (eval echo configure:5746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5746 | rm -rf conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5747 | # 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] | 5748 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5749 | #line 5750 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5750 | #include "confdefs.h" |
| 5751 | #include <sys/types.h> |
| 5752 | #include <sys/param.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5753 | int main() { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5754 | |
| 5755 | #if BYTE_ORDER != BIG_ENDIAN |
| 5756 | not big endian |
| 5757 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5758 | ; return 0; } |
| 5759 | EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5760 | if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5761 | rm -rf conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5762 | ac_cv_c_bigendian=yes |
| 5763 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5764 | echo "configure: failed program was:" >&5 |
| 5765 | cat conftest.$ac_ext >&5 |
| 5766 | rm -rf conftest* |
| 5767 | ac_cv_c_bigendian=no |
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 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5771 | echo "configure: failed program was:" >&5 |
| 5772 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5773 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5774 | rm -f conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5775 | if test $ac_cv_c_bigendian = unknown; then |
| 5776 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5777 | { 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] | 5778 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5779 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5780 | #line 5781 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5781 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5782 | main () { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5783 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5784 | union |
| 5785 | { |
| 5786 | long l; |
| 5787 | char c[sizeof (long)]; |
| 5788 | } u; |
| 5789 | u.l = 1; |
| 5790 | exit (u.c[sizeof (long) - 1] == 1); |
| 5791 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5792 | EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5793 | if { (eval echo configure:5794: \"$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] | 5794 | then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5795 | ac_cv_c_bigendian=no |
| 5796 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5797 | echo "configure: failed program was:" >&5 |
| 5798 | cat conftest.$ac_ext >&5 |
| 5799 | rm -fr conftest* |
| 5800 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5801 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5802 | rm -fr conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5803 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5804 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5805 | fi |
| 5806 | fi |
| 5807 | |
| 5808 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5809 | if test $ac_cv_c_bigendian = yes; then |
| 5810 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5811 | #define WORDS_BIGENDIAN 1 |
| 5812 | EOF |
| 5813 | |
| 5814 | fi |
| 5815 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5816 | for ac_hdr in inttypes.h |
| 5817 | do |
| 5818 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5819 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5820 | echo "configure:5821: checking for $ac_hdr" >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5821 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5822 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5823 | else |
| 5824 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5825 | #line 5826 "configure" |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5826 | #include "confdefs.h" |
| 5827 | #include <$ac_hdr> |
| 5828 | EOF |
| 5829 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5830 | { (eval echo configure:5831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5831 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5832 | if test -z "$ac_err"; then |
| 5833 | rm -rf conftest* |
| 5834 | eval "ac_cv_header_$ac_safe=yes" |
| 5835 | else |
| 5836 | echo "$ac_err" >&5 |
| 5837 | echo "configure: failed program was:" >&5 |
| 5838 | cat conftest.$ac_ext >&5 |
| 5839 | rm -rf conftest* |
| 5840 | eval "ac_cv_header_$ac_safe=no" |
| 5841 | fi |
| 5842 | rm -f conftest* |
| 5843 | fi |
| 5844 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5845 | echo "$ac_t""yes" 1>&6 |
| 5846 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5847 | cat >> confdefs.h <<EOF |
| 5848 | #define $ac_tr_hdr 1 |
| 5849 | EOF |
| 5850 | |
| 5851 | else |
| 5852 | echo "$ac_t""no" 1>&6 |
| 5853 | fi |
| 5854 | done |
| 5855 | |
| 5856 | echo $ac_n "checking for intptr_t""... $ac_c" 1>&6 |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5857 | echo "configure:5858: checking for intptr_t" >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5858 | if eval "test \"`echo '$''{'ac_cv_type_intptr_t'+set}'`\" = set"; then |
| 5859 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5860 | else |
| 5861 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5862 | #line 5863 "configure" |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5863 | #include "confdefs.h" |
| 5864 | #include <sys/types.h> |
| 5865 | #if STDC_HEADERS |
| 5866 | #include <stdlib.h> |
| 5867 | #include <stddef.h> |
| 5868 | #endif |
| 5869 | EOF |
| 5870 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5871 | egrep "(^|[^a-zA-Z_0-9])intptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5872 | rm -rf conftest* |
| 5873 | ac_cv_type_intptr_t=yes |
| 5874 | else |
| 5875 | rm -rf conftest* |
| 5876 | ac_cv_type_intptr_t=no |
| 5877 | fi |
| 5878 | rm -f conftest* |
| 5879 | |
| 5880 | fi |
| 5881 | echo "$ac_t""$ac_cv_type_intptr_t" 1>&6 |
| 5882 | if test $ac_cv_type_intptr_t = no; then |
| 5883 | cat >> confdefs.h <<\EOF |
| 5884 | #define intptr_t long |
| 5885 | EOF |
| 5886 | |
| 5887 | fi |
| 5888 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5889 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5890 | echo "configure:5891: checking whether struct stat has a st_flags field" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5891 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then |
| 5892 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5893 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5894 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5895 | #line 5896 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5896 | #include "confdefs.h" |
| 5897 | #include <sys/stat.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5898 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5899 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5900 | ; return 0; } |
| 5901 | EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5902 | if { (eval echo configure:5903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5903 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5904 | e2fsprogs_cv_struct_st_flags=yes |
| 5905 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5906 | echo "configure: failed program was:" >&5 |
| 5907 | cat conftest.$ac_ext >&5 |
| 5908 | rm -rf conftest* |
| 5909 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5910 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5911 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5912 | fi |
| 5913 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5914 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5915 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5916 | echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6 |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5917 | echo "configure:5918: checking whether st_flags field is useful" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5918 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then |
| 5919 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5920 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5921 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5922 | #line 5923 "configure" |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5923 | #include "confdefs.h" |
| 5924 | #include <sys/stat.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5925 | int main() { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5926 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5927 | ; return 0; } |
| 5928 | EOF |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5929 | if { (eval echo configure:5930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5930 | rm -rf conftest* |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5931 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 5932 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5933 | echo "configure: failed program was:" >&5 |
| 5934 | cat conftest.$ac_ext >&5 |
| 5935 | rm -rf conftest* |
| 5936 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5937 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5938 | rm -f conftest* |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5939 | fi |
| 5940 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5941 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5942 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5943 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5944 | #define HAVE_STAT_FLAGS 1 |
| 5945 | EOF |
| 5946 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5947 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5948 | fi |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5949 | echo $ac_n "checking whether struct sockaddr contains sa_len""... $ac_c" 1>&6 |
| 5950 | echo "configure:5951: checking whether struct sockaddr contains sa_len" >&5 |
| 5951 | if eval "test \"`echo '$''{'e2fsprogs_cv_sockaddr_sa_len'+set}'`\" = set"; then |
| 5952 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5953 | else |
| 5954 | cat > conftest.$ac_ext <<EOF |
| 5955 | #line 5956 "configure" |
| 5956 | #include "confdefs.h" |
| 5957 | #include <sys/types.h> |
| 5958 | #include <sys/socket.h> |
| 5959 | |
| 5960 | int main() { |
| 5961 | struct sockaddr sa; |
| 5962 | sa.sa_len; |
| 5963 | ; return 0; } |
| 5964 | EOF |
| 5965 | if { (eval echo configure:5966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5966 | rm -rf conftest* |
| 5967 | e2fsprogs_cv_sockaddr_sa_len=yes |
| 5968 | else |
| 5969 | echo "configure: failed program was:" >&5 |
| 5970 | cat conftest.$ac_ext >&5 |
| 5971 | rm -rf conftest* |
| 5972 | e2fsprogs_cv_sockaddr_sa_len=no |
| 5973 | fi |
| 5974 | rm -f conftest* |
| 5975 | fi |
| 5976 | |
| 5977 | echo "$ac_t""$e2fsprogs_cv_sockaddr_sa_len" 1>&6 |
| 5978 | if test $e2fsprogs_cv_sockaddr_sa_len = yes; then |
| 5979 | cat >> confdefs.h <<EOF |
| 5980 | #define HAVE_SA_LEN 1 |
| 5981 | EOF |
| 5982 | |
| 5983 | fi |
Theodore Ts'o | 1c29b09 | 2003-07-12 16:01:45 -0400 | [diff] [blame] | 5984 | 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] | 5985 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5986 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5987 | echo "configure:5988: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5988 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5989 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5990 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5991 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5992 | #line 5993 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5993 | #include "confdefs.h" |
| 5994 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5995 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5996 | #include <assert.h> |
| 5997 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5998 | /* 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] | 5999 | builtin and then its argument prototype would still apply. */ |
| 6000 | char $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6001 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6002 | int main() { |
| 6003 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6004 | /* The GNU C library defines this for functions which it implements |
| 6005 | to always fail with ENOSYS. Some functions are actually named |
| 6006 | something starting with __ and the normal name is an alias. */ |
| 6007 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6008 | choke me |
| 6009 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6010 | $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6011 | #endif |
| 6012 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6013 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6014 | EOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 6015 | if { (eval echo configure:6016: \"$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] | 6016 | rm -rf conftest* |
| 6017 | eval "ac_cv_func_$ac_func=yes" |
| 6018 | else |
| 6019 | echo "configure: failed program was:" >&5 |
| 6020 | cat conftest.$ac_ext >&5 |
| 6021 | rm -rf conftest* |
| 6022 | eval "ac_cv_func_$ac_func=no" |
| 6023 | fi |
| 6024 | rm -f conftest* |
| 6025 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6026 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6027 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6028 | echo "$ac_t""yes" 1>&6 |
| 6029 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6030 | cat >> confdefs.h <<EOF |
| 6031 | #define $ac_tr_func 1 |
| 6032 | EOF |
| 6033 | |
| 6034 | else |
| 6035 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6036 | fi |
| 6037 | done |
| 6038 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6039 | SOCKET_LIB='' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6040 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 6041 | echo "configure:6042: checking for socket in -lsocket" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6042 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 6043 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 6044 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6045 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6046 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6047 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6048 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 6049 | #line 6050 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6050 | #include "confdefs.h" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6051 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6052 | /* 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] | 6053 | builtin and then its argument prototype would still apply. */ |
| 6054 | char socket(); |
| 6055 | |
| 6056 | int main() { |
| 6057 | socket() |
| 6058 | ; return 0; } |
| 6059 | EOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 6060 | if { (eval echo configure:6061: \"$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] | 6061 | rm -rf conftest* |
| 6062 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6063 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6064 | echo "configure: failed program was:" >&5 |
| 6065 | cat conftest.$ac_ext >&5 |
| 6066 | rm -rf conftest* |
| 6067 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6068 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6069 | rm -f conftest* |
| 6070 | LIBS="$ac_save_LIBS" |
| 6071 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6072 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6073 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6074 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6075 | SOCKET_LIB=-lsocket |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6076 | else |
| 6077 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6078 | fi |
| 6079 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6080 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6081 | DLOPEN_LIB='' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6082 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 6083 | echo "configure:6084: checking for dlopen in -ldl" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6084 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 6085 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 6086 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6087 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6088 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6089 | LIBS="-ldl $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6090 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 6091 | #line 6092 "configure" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6092 | #include "confdefs.h" |
| 6093 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6094 | /* 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] | 6095 | builtin and then its argument prototype would still apply. */ |
| 6096 | char dlopen(); |
| 6097 | |
| 6098 | int main() { |
| 6099 | dlopen() |
| 6100 | ; return 0; } |
| 6101 | EOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 6102 | if { (eval echo configure:6103: \"$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] | 6103 | rm -rf conftest* |
| 6104 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6105 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6106 | echo "configure: failed program was:" >&5 |
| 6107 | cat conftest.$ac_ext >&5 |
| 6108 | rm -rf conftest* |
| 6109 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6110 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6111 | rm -f conftest* |
| 6112 | LIBS="$ac_save_LIBS" |
| 6113 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6114 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6115 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6116 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6117 | DLOPEN_LIB=-ldl |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6118 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6119 | #define HAVE_DLOPEN 1 |
| 6120 | EOF |
| 6121 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6122 | else |
| 6123 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6124 | fi |
| 6125 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6126 | |
| 6127 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 6128 | echo "configure:6129: checking for optreset" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6129 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then |
| 6130 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6131 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6132 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 6133 | #line 6134 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6134 | #include "confdefs.h" |
| 6135 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6136 | EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6137 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6138 | egrep "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6139 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6140 | ac_cv_have_optreset=yes |
| 6141 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6142 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6143 | ac_cv_have_optreset=no |
| 6144 | fi |
| 6145 | rm -f conftest* |
| 6146 | |
| 6147 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6148 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6149 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6150 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6151 | #define HAVE_OPTRESET 1 |
| 6152 | EOF |
| 6153 | |
| 6154 | fi |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 6155 | case "$host_os" in |
| 6156 | linux*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6157 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6158 | #define HAVE_EXT2_IOCTLS 1 |
| 6159 | EOF |
| 6160 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 6161 | ;; |
| 6162 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6163 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6164 | CYGWIN_CMT="#" |
| 6165 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6166 | case "$host_os" in |
| 6167 | linux*) |
| 6168 | LINUX_CMT= |
| 6169 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6170 | cygwin) |
| 6171 | CYGWIN_CMT= |
| 6172 | UNIX_CMT="#" |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 6173 | EVMS_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6174 | ;; |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 6175 | *) |
| 6176 | EVMS_CMT="#" |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6177 | esac |
| 6178 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6179 | |
| 6180 | |
| 6181 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6182 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6183 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6184 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 6185 | root_prefix=""; |
| 6186 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6187 | fi |
| 6188 | ;; |
| 6189 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6190 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6191 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6192 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6193 | prefix="/usr"; |
| 6194 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 6195 | if test "$mandir" = '${prefix}/man' ; then |
| 6196 | echo "...and mandir defaults to /usr/share/man" |
| 6197 | mandir=/usr/share/man |
| 6198 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6199 | fi |
| 6200 | ;; |
| 6201 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6202 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 6203 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6204 | root_prefix="$ac_default_prefix" |
| 6205 | else |
| 6206 | root_prefix="$prefix" |
| 6207 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 6208 | root_bindir=$bindir |
| 6209 | root_sbindir=$sbindir |
| 6210 | root_libdir=$libdir |
| 6211 | root_sysconfdir=$sysconfdir |
| 6212 | else |
| 6213 | root_bindir='${root_prefix}/bin' |
| 6214 | root_sbindir='${root_prefix}/sbin' |
| 6215 | root_libdir='${root_prefix}/lib' |
| 6216 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6217 | fi |
| 6218 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6219 | |
| 6220 | |
| 6221 | |
| 6222 | |
| 6223 | echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 6224 | echo "configure:6225: checking whether linker accepts -static" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6225 | if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then |
| 6226 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6227 | else |
| 6228 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6229 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 6230 | #line 6231 "configure" |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6231 | #include "confdefs.h" |
| 6232 | #include <stdio.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6233 | int main() { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6234 | fflush(stdout); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6235 | ; return 0; } |
| 6236 | EOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 6237 | if { (eval echo configure:6238: \"$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] | 6238 | rm -rf conftest* |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6239 | ac_cv_e2fsprogs_use_static=yes |
| 6240 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6241 | echo "configure: failed program was:" >&5 |
| 6242 | cat conftest.$ac_ext >&5 |
| 6243 | rm -rf conftest* |
| 6244 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6245 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6246 | rm -f conftest* |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6247 | LDFLAGS=$SAVE_LDFLAGS |
| 6248 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6249 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6250 | case "$host_os" in |
| 6251 | solaris2.*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6252 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6253 | ;; |
| 6254 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6255 | echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6256 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6257 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6258 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6259 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6260 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6261 | case "$host_os" in |
| 6262 | darwin*) |
| 6263 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6264 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6265 | #define _INTL_REDIRECT_MACROS 1 |
| 6266 | EOF |
| 6267 | |
| 6268 | ;; |
| 6269 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6270 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 6271 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 6272 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6273 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6274 | if test "$cross_compiling" = yes ; then |
| 6275 | DO_TEST_SUITE= |
| 6276 | else |
| 6277 | DO_TEST_SUITE=check |
| 6278 | fi |
| 6279 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 6280 | INTL_FLAGS= |
| 6281 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 6282 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 6283 | fi |
| 6284 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6285 | test -d lib || mkdir lib |
| 6286 | test -d include || mkdir include |
| 6287 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6288 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 6289 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 6290 | util/Makefile util/subst.conf util/gen-tarball \ |
| 6291 | 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] | 6292 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 6293 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
| 6294 | lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
| 6295 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 6296 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 6297 | if test -d `dirname ${srcdir}/$i` ; then |
| 6298 | outlist="$outlist $i" |
| 6299 | fi |
| 6300 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6301 | trap '' 1 2 15 |
| 6302 | cat > confcache <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6303 | # This file is a shell script that caches the results of configure |
| 6304 | # 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] | 6305 | # scripts and configure runs. It is not useful on other systems. |
| 6306 | # 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] | 6307 | # |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6308 | # By default, configure uses ./config.cache as the cache file, |
| 6309 | # creating it if it does not exist already. You can give configure |
| 6310 | # the --cache-file=FILE option to use a different cache file; that is |
| 6311 | # what configure does when it calls configure scripts in |
| 6312 | # subdirectories, so they share the cache. |
| 6313 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6314 | # config.status only pays attention to the cache file if you give it the |
| 6315 | # --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6316 | # |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6317 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6318 | # The following way of writing the cache mishandles newlines in values, |
| 6319 | # but we know of no workaround that is simple, portable, and efficient. |
| 6320 | # So, don't put newlines in cache variables' values. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6321 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6322 | # 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] | 6323 | (set) 2>&1 | |
| 6324 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 6325 | *ac_space=\ *) |
| 6326 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 6327 | # turns \\\\ into \\, and sed turns \\ into \). |
| 6328 | sed -n \ |
| 6329 | -e "s/'/'\\\\''/g" \ |
| 6330 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 6331 | ;; |
| 6332 | *) |
| 6333 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6334 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 6335 | ;; |
| 6336 | esac >> confcache |
| 6337 | if cmp -s $cache_file confcache; then |
| 6338 | : |
| 6339 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6340 | if test -w $cache_file; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6341 | echo "updating cache $cache_file" |
| 6342 | cat confcache > $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6343 | else |
| 6344 | echo "not updating unwritable cache $cache_file" |
| 6345 | fi |
| 6346 | fi |
| 6347 | rm -f confcache |
| 6348 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6349 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 6350 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6351 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6352 | # Let make expand exec_prefix. |
| 6353 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6354 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6355 | # Any assignment to VPATH causes Sun make to only execute |
| 6356 | # the first set of double-colon rules, so remove it if not needed. |
| 6357 | # 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] | 6358 | if test "x$srcdir" = x.; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6359 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6360 | fi |
| 6361 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6362 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 6363 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6364 | # Transform confdefs.h into DEFS. |
| 6365 | # Protect against shell expansion while executing Makefile rules. |
| 6366 | # Protect against Makefile macro expansion. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6367 | cat > conftest.defs <<\EOF |
| 6368 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
| 6369 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 6370 | s%\[%\\&%g |
| 6371 | s%\]%\\&%g |
| 6372 | s%\$%$$%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6373 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6374 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 6375 | rm -f conftest.defs |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6376 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6377 | |
| 6378 | # Without the "./", some shells look in PATH for config.status. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6379 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6380 | |
| 6381 | echo creating $CONFIG_STATUS |
| 6382 | rm -f $CONFIG_STATUS |
| 6383 | cat > $CONFIG_STATUS <<EOF |
| 6384 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6385 | # Generated automatically by configure. |
| 6386 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6387 | # This directory was configured as follows, |
| 6388 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6389 | # |
| 6390 | # $0 $ac_configure_args |
| 6391 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6392 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6393 | # configure, is in ./config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6394 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6395 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 6396 | for ac_option |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6397 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6398 | case "\$ac_option" in |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6399 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6400 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6401 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 6402 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 6403 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 6404 | exit 0 ;; |
| 6405 | -help | --help | --hel | --he | --h) |
| 6406 | echo "\$ac_cs_usage"; exit 0 ;; |
| 6407 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6408 | esac |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6409 | done |
| 6410 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6411 | ac_given_srcdir=$srcdir |
| 6412 | ac_given_INSTALL="$INSTALL" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6413 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6414 | trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 6415 | EOF |
| 6416 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6417 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6418 | # Protect against being on the right side of a sed subst in config.status. |
| 6419 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6420 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 6421 | $ac_vpsub |
| 6422 | $extrasub |
| 6423 | s%@SHELL@%$SHELL%g |
| 6424 | s%@CFLAGS@%$CFLAGS%g |
| 6425 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 6426 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 6427 | s%@FFLAGS@%$FFLAGS%g |
| 6428 | s%@DEFS@%$DEFS%g |
| 6429 | s%@LDFLAGS@%$LDFLAGS%g |
| 6430 | s%@LIBS@%$LIBS%g |
| 6431 | s%@exec_prefix@%$exec_prefix%g |
| 6432 | s%@prefix@%$prefix%g |
| 6433 | s%@program_transform_name@%$program_transform_name%g |
| 6434 | s%@bindir@%$bindir%g |
| 6435 | s%@sbindir@%$sbindir%g |
| 6436 | s%@libexecdir@%$libexecdir%g |
| 6437 | s%@datadir@%$datadir%g |
| 6438 | s%@sysconfdir@%$sysconfdir%g |
| 6439 | s%@sharedstatedir@%$sharedstatedir%g |
| 6440 | s%@localstatedir@%$localstatedir%g |
| 6441 | s%@libdir@%$libdir%g |
| 6442 | s%@includedir@%$includedir%g |
| 6443 | s%@oldincludedir@%$oldincludedir%g |
| 6444 | s%@infodir@%$infodir%g |
| 6445 | s%@mandir@%$mandir%g |
| 6446 | /@MCONFIG@/r $MCONFIG |
| 6447 | s%@MCONFIG@%%g |
| 6448 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g |
| 6449 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g |
| 6450 | s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g |
| 6451 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g |
| 6452 | s%@host@%$host%g |
| 6453 | s%@host_alias@%$host_alias%g |
| 6454 | s%@host_cpu@%$host_cpu%g |
| 6455 | s%@host_vendor@%$host_vendor%g |
| 6456 | s%@host_os@%$host_os%g |
| 6457 | s%@CC@%$CC%g |
| 6458 | s%@LD@%$LD%g |
| 6459 | s%@CPP@%$CPP%g |
| 6460 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g |
| 6461 | s%@HTREE_CMT@%$HTREE_CMT%g |
| 6462 | s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g |
| 6463 | s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g |
| 6464 | s%@DLL_CMT@%$DLL_CMT%g |
| 6465 | /@MAKEFILE_DLL@/r $MAKEFILE_DLL |
| 6466 | s%@MAKEFILE_DLL@%%g |
| 6467 | s%@ELF_CMT@%$ELF_CMT%g |
| 6468 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF |
| 6469 | s%@MAKEFILE_ELF@%%g |
| 6470 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g |
| 6471 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB |
| 6472 | s%@MAKEFILE_BSDLIB@%%g |
| 6473 | s%@PROFILE_CMT@%$PROFILE_CMT%g |
| 6474 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE |
| 6475 | s%@MAKEFILE_PROFILE@%%g |
| 6476 | s%@CHECKER_CMT@%$CHECKER_CMT%g |
| 6477 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER |
| 6478 | s%@MAKEFILE_CHECKER@%%g |
| 6479 | s%@LIB_EXT@%$LIB_EXT%g |
| 6480 | s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g |
| 6481 | s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g |
| 6482 | s%@SWAPFS_CMT@%$SWAPFS_CMT%g |
| 6483 | s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g |
| 6484 | s%@IMAGER_CMT@%$IMAGER_CMT%g |
| 6485 | s%@RESIZER_CMT@%$RESIZER_CMT%g |
| 6486 | s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g |
| 6487 | s%@FSCK_PROG@%$FSCK_PROG%g |
| 6488 | s%@FSCK_MAN@%$FSCK_MAN%g |
| 6489 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY |
| 6490 | s%@MAKEFILE_LIBRARY@%%g |
| 6491 | s%@PACKAGE@%$PACKAGE%g |
| 6492 | s%@VERSION@%$VERSION%g |
| 6493 | s%@SET_MAKE@%$SET_MAKE%g |
| 6494 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 6495 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| 6496 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 6497 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
| 6498 | s%@MSGFMT@%$MSGFMT%g |
| 6499 | s%@GMSGFMT@%$GMSGFMT%g |
| 6500 | s%@XGETTEXT@%$XGETTEXT%g |
| 6501 | s%@MSGMERGE@%$MSGMERGE%g |
| 6502 | s%@RANLIB@%$RANLIB%g |
| 6503 | s%@ALLOCA@%$ALLOCA%g |
| 6504 | s%@GLIBC21@%$GLIBC21%g |
| 6505 | s%@LIBICONV@%$LIBICONV%g |
| 6506 | s%@LTLIBICONV@%$LTLIBICONV%g |
| 6507 | s%@INTLBISON@%$INTLBISON%g |
| 6508 | s%@USE_NLS@%$USE_NLS%g |
| 6509 | s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g |
| 6510 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
| 6511 | s%@CATOBJEXT@%$CATOBJEXT%g |
| 6512 | s%@INTLOBJS@%$INTLOBJS%g |
| 6513 | s%@DATADIRNAME@%$DATADIRNAME%g |
| 6514 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
| 6515 | s%@GENCAT@%$GENCAT%g |
| 6516 | s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g |
| 6517 | s%@INTLLIBS@%$INTLLIBS%g |
| 6518 | s%@LIBINTL@%$LIBINTL%g |
| 6519 | s%@LTLIBINTL@%$LTLIBINTL%g |
| 6520 | s%@POSUB@%$POSUB%g |
| 6521 | s%@BINARY_TYPE@%$BINARY_TYPE%g |
| 6522 | s%@LN@%$LN%g |
| 6523 | s%@LN_S@%$LN_S%g |
| 6524 | s%@MV@%$MV%g |
| 6525 | s%@CP@%$CP%g |
| 6526 | s%@RM@%$RM%g |
| 6527 | s%@CHMOD@%$CHMOD%g |
| 6528 | s%@AWK@%$AWK%g |
| 6529 | s%@SED@%$SED%g |
| 6530 | s%@PERL@%$PERL%g |
| 6531 | s%@LDCONFIG@%$LDCONFIG%g |
| 6532 | s%@build@%$build%g |
| 6533 | s%@build_alias@%$build_alias%g |
| 6534 | s%@build_cpu@%$build_cpu%g |
| 6535 | s%@build_vendor@%$build_vendor%g |
| 6536 | s%@build_os@%$build_os%g |
| 6537 | s%@AR@%$AR%g |
| 6538 | s%@STRIP@%$STRIP%g |
| 6539 | s%@BUILD_CC@%$BUILD_CC%g |
| 6540 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g |
| 6541 | s%@SIZEOF_INT@%$SIZEOF_INT%g |
| 6542 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g |
| 6543 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g |
| 6544 | s%@SOCKET_LIB@%$SOCKET_LIB%g |
| 6545 | s%@DLOPEN_LIB@%$DLOPEN_LIB%g |
| 6546 | s%@LINUX_CMT@%$LINUX_CMT%g |
| 6547 | s%@CYGWIN_CMT@%$CYGWIN_CMT%g |
| 6548 | s%@UNIX_CMT@%$UNIX_CMT%g |
| 6549 | s%@EVMS_CMT@%$EVMS_CMT%g |
| 6550 | s%@root_prefix@%$root_prefix%g |
| 6551 | s%@root_bindir@%$root_bindir%g |
| 6552 | s%@root_sbindir@%$root_sbindir%g |
| 6553 | s%@root_libdir@%$root_libdir%g |
| 6554 | s%@root_sysconfdir@%$root_sysconfdir%g |
| 6555 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g |
| 6556 | s%@SS_DIR@%$SS_DIR%g |
| 6557 | s%@ET_DIR@%$ET_DIR%g |
| 6558 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g |
| 6559 | s%@INTL_FLAGS@%$INTL_FLAGS%g |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6560 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6561 | CEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6562 | EOF |
| 6563 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6564 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6565 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6566 | # Split the substitutions into bite-sized pieces for seds with |
| 6567 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6568 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6569 | ac_file=1 # Number of current file. |
| 6570 | ac_beg=1 # First line for current file. |
| 6571 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6572 | ac_more_lines=: |
| 6573 | ac_sed_cmds="" |
| 6574 | while $ac_more_lines; do |
| 6575 | if test $ac_beg -gt 1; then |
| 6576 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6577 | else |
| 6578 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6579 | fi |
| 6580 | if test ! -s conftest.s$ac_file; then |
| 6581 | ac_more_lines=false |
| 6582 | rm -f conftest.s$ac_file |
| 6583 | else |
| 6584 | if test -z "$ac_sed_cmds"; then |
| 6585 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6586 | else |
| 6587 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6588 | fi |
| 6589 | ac_file=`expr $ac_file + 1` |
| 6590 | ac_beg=$ac_end |
| 6591 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6592 | fi |
| 6593 | done |
| 6594 | if test -z "$ac_sed_cmds"; then |
| 6595 | ac_sed_cmds=cat |
| 6596 | fi |
| 6597 | EOF |
| 6598 | |
| 6599 | cat >> $CONFIG_STATUS <<EOF |
| 6600 | |
| 6601 | CONFIG_FILES=\${CONFIG_FILES-"$outlist"} |
| 6602 | EOF |
| 6603 | cat >> $CONFIG_STATUS <<\EOF |
| 6604 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 6605 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6606 | case "$ac_file" in |
| 6607 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 6608 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6609 | *) ac_file_in="${ac_file}.in" ;; |
| 6610 | esac |
| 6611 | |
| 6612 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 6613 | |
| 6614 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6615 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6616 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6617 | # The file is in a subdirectory. |
| 6618 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6619 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 6620 | # A "../" for each directory in $ac_dir_suffix. |
| 6621 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6622 | else |
| 6623 | ac_dir_suffix= ac_dots= |
| 6624 | fi |
| 6625 | |
| 6626 | case "$ac_given_srcdir" in |
| 6627 | .) srcdir=. |
| 6628 | if test -z "$ac_dots"; then top_srcdir=. |
| 6629 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6630 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6631 | *) # Relative path. |
| 6632 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6633 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6634 | esac |
| 6635 | |
| 6636 | case "$ac_given_INSTALL" in |
| 6637 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 6638 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 6639 | esac |
| 6640 | |
| 6641 | echo creating "$ac_file" |
| 6642 | rm -f "$ac_file" |
| 6643 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6644 | case "$ac_file" in |
| 6645 | *Makefile*) ac_comsub="1i\\ |
| 6646 | # $configure_input" ;; |
| 6647 | *) ac_comsub= ;; |
| 6648 | esac |
| 6649 | |
| 6650 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6651 | sed -e "$ac_comsub |
| 6652 | s%@configure_input@%$configure_input%g |
| 6653 | s%@srcdir@%$srcdir%g |
| 6654 | s%@top_srcdir@%$top_srcdir%g |
| 6655 | s%@INSTALL@%$INSTALL%g |
| 6656 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 6657 | fi; done |
| 6658 | rm -f conftest.s* |
| 6659 | |
| 6660 | EOF |
| 6661 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6662 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 6663 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
| 6664 | # from automake. |
| 6665 | eval 'ALL_LINGUAS''="$ALL_LINGUAS"' |
| 6666 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 6667 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6668 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6669 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6670 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6671 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6672 | |
| 6673 | for ac_file in $CONFIG_FILES; do |
| 6674 | # Support "outfile[:infile[:infile...]]" |
| 6675 | case "$ac_file" in |
| 6676 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6677 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6678 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 6679 | case "$ac_file" in */Makefile.in) |
| 6680 | # Adjust a relative srcdir. |
| 6681 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 6682 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 6683 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 6684 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 6685 | # In autoconf-2.50 it is called $srcdir. |
| 6686 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 6687 | case "$ac_given_srcdir" in |
| 6688 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 6689 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 6690 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6691 | esac |
| 6692 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 6693 | rm -f "$ac_dir/POTFILES" |
| 6694 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 6695 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 6696 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
| 6697 | # on $ac_dir but don't depend on user-specified configuration |
| 6698 | # parameters. |
| 6699 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 6700 | # The LINGUAS file contains the set of available languages. |
| 6701 | if test -n "$ALL_LINGUAS"; then |
| 6702 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 6703 | fi |
| 6704 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 6705 | # Hide the ALL_LINGUAS assigment from automake. |
| 6706 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 6707 | fi |
| 6708 | case "$ac_given_srcdir" in |
| 6709 | .) srcdirpre= ;; |
| 6710 | *) srcdirpre='$(srcdir)/' ;; |
| 6711 | esac |
| 6712 | POFILES= |
| 6713 | GMOFILES= |
| 6714 | UPDATEPOFILES= |
| 6715 | DUMMYPOFILES= |
| 6716 | for lang in $ALL_LINGUAS; do |
| 6717 | POFILES="$POFILES $srcdirpre$lang.po" |
| 6718 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 6719 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 6720 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 6721 | done |
| 6722 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 6723 | # environment variable. |
| 6724 | INST_LINGUAS= |
| 6725 | if test -n "$ALL_LINGUAS"; then |
| 6726 | for presentlang in $ALL_LINGUAS; do |
| 6727 | useit=no |
| 6728 | if test "%UNSET%" != "$LINGUAS"; then |
| 6729 | desiredlanguages="$LINGUAS" |
| 6730 | else |
| 6731 | desiredlanguages="$ALL_LINGUAS" |
| 6732 | fi |
| 6733 | for desiredlang in $desiredlanguages; do |
| 6734 | # Use the presentlang catalog if desiredlang is |
| 6735 | # a. equal to presentlang, or |
| 6736 | # b. a variant of presentlang (because in this case, |
| 6737 | # presentlang can be used as a fallback for messages |
| 6738 | # which are not translated in the desiredlang catalog). |
| 6739 | case "$desiredlang" in |
| 6740 | "$presentlang"*) useit=yes;; |
| 6741 | esac |
| 6742 | done |
| 6743 | if test $useit = yes; then |
| 6744 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 6745 | fi |
| 6746 | done |
| 6747 | fi |
| 6748 | CATALOGS= |
| 6749 | if test -n "$INST_LINGUAS"; then |
| 6750 | for lang in $INST_LINGUAS; do |
| 6751 | CATALOGS="$CATALOGS $lang.gmo" |
| 6752 | done |
| 6753 | fi |
| 6754 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 6755 | 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" |
| 6756 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 6757 | if test -f "$f"; then |
| 6758 | case "$f" in |
| 6759 | *.orig | *.bak | *~) ;; |
| 6760 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 6761 | esac |
| 6762 | fi |
| 6763 | done |
| 6764 | fi |
| 6765 | ;; |
| 6766 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6767 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6768 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6769 | exit 0 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6770 | EOF |
| 6771 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6772 | rm -fr confdefs* $ac_clean_files |
| 6773 | 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] | 6774 | |