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 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 33 | --enable-elf-shlibs select ELF shared libraries" |
| 34 | ac_help="$ac_help |
| 35 | --enable-bsd-shlibs select BSD shared libraries" |
| 36 | ac_help="$ac_help |
| 37 | --enable-profile build profiling libraries" |
| 38 | ac_help="$ac_help |
| 39 | --enable-checker build checker libraries" |
| 40 | ac_help="$ac_help |
| 41 | --enable-jbd-debug enable journal debugging" |
| 42 | ac_help="$ac_help |
| 43 | --enable-blkid-debug enable blkid debugging" |
| 44 | ac_help="$ac_help |
| 45 | --enable-testio-debug enable the use of the test I/O manager for debugging" |
| 46 | ac_help="$ac_help |
| 47 | --disable-swapfs disable support of legacy byte-swapped filesystems" |
| 48 | ac_help="$ac_help |
| 49 | --disable-debugfs disable support of debugfs program" |
| 50 | ac_help="$ac_help |
| 51 | --disable-imager disable support of e2image program" |
| 52 | ac_help="$ac_help |
| 53 | --disable-resizer disable support of e2resize program" |
| 54 | ac_help="$ac_help |
| 55 | --enable-dynamic-e2fsck build e2fsck dynamically" |
| 56 | ac_help="$ac_help |
| 57 | --enable-fsck build fsck wrapper program" |
| 58 | ac_help="$ac_help |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 59 | --enable-e2initrd-helper build e2initrd-helper program" |
| 60 | ac_help="$ac_help |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 61 | --enable-old-bitops Use old (non-standard but native) bitmask operations" |
| 62 | ac_help="$ac_help |
| 63 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
| 64 | ac_help="$ac_help |
| 65 | --disable-rpath do not hardcode runtime library paths" |
| 66 | ac_help="$ac_help |
| 67 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 68 | --without-libiconv-prefix don't search for libiconv in includedir and libdir" |
| 69 | ac_help="$ac_help |
| 70 | --disable-nls do not use Native Language Support" |
| 71 | ac_help="$ac_help |
| 72 | --with-included-gettext use the GNU gettext library included here" |
| 73 | ac_help="$ac_help |
| 74 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 75 | --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] | 76 | |
| 77 | # Initialize some variables set by options. |
| 78 | # The variables have the same names as the options, with |
| 79 | # dashes changed to underlines. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 80 | build=NONE |
| 81 | cache_file=./config.cache |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 82 | exec_prefix=NONE |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 83 | host=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 84 | no_create= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 85 | nonopt=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 86 | no_recursion= |
| 87 | prefix=NONE |
| 88 | program_prefix=NONE |
| 89 | program_suffix=NONE |
| 90 | program_transform_name=s,x,x, |
| 91 | silent= |
| 92 | site= |
| 93 | srcdir= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 94 | target=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 95 | verbose= |
| 96 | x_includes=NONE |
| 97 | x_libraries=NONE |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 98 | bindir='${exec_prefix}/bin' |
| 99 | sbindir='${exec_prefix}/sbin' |
| 100 | libexecdir='${exec_prefix}/libexec' |
| 101 | datadir='${prefix}/share' |
| 102 | sysconfdir='${prefix}/etc' |
| 103 | sharedstatedir='${prefix}/com' |
| 104 | localstatedir='${prefix}/var' |
| 105 | libdir='${exec_prefix}/lib' |
| 106 | includedir='${prefix}/include' |
| 107 | oldincludedir='/usr/include' |
| 108 | infodir='${prefix}/info' |
| 109 | mandir='${prefix}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 110 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 111 | # Initialize some other variables. |
| 112 | subdirs= |
| 113 | MFLAGS= MAKEFLAGS= |
| 114 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 115 | # Maximum number of lines to put in a shell here document. |
| 116 | ac_max_here_lines=12 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 117 | |
| 118 | ac_prev= |
| 119 | for ac_option |
| 120 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 121 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 122 | # If the previous option needs an argument, assign it. |
| 123 | if test -n "$ac_prev"; then |
| 124 | eval "$ac_prev=\$ac_option" |
| 125 | ac_prev= |
| 126 | continue |
| 127 | fi |
| 128 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 129 | case "$ac_option" in |
| 130 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 131 | *) ac_optarg= ;; |
| 132 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 133 | |
| 134 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 135 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 136 | case "$ac_option" in |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 137 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 138 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 139 | ac_prev=bindir ;; |
| 140 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 141 | bindir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 142 | |
| 143 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 144 | ac_prev=build ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 145 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 146 | build="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 147 | |
| 148 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 149 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 150 | ac_prev=cache_file ;; |
| 151 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 152 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 153 | cache_file="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 154 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 155 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 156 | ac_prev=datadir ;; |
| 157 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 158 | | --da=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 159 | datadir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 160 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 161 | -disable-* | --disable-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 162 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 163 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 164 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 165 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 166 | fi |
| 167 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 168 | eval "enable_${ac_feature}=no" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 169 | |
| 170 | -enable-* | --enable-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 171 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 172 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 173 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 174 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 175 | fi |
| 176 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 177 | case "$ac_option" in |
| 178 | *=*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 179 | *) ac_optarg=yes ;; |
| 180 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 181 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 182 | |
| 183 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 184 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 185 | | --exec | --exe | --ex) |
| 186 | ac_prev=exec_prefix ;; |
| 187 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 188 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 189 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 190 | exec_prefix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 191 | |
| 192 | -gas | --gas | --ga | --g) |
| 193 | # Obsolete; use --with-gas. |
| 194 | with_gas=yes ;; |
| 195 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 196 | -help | --help | --hel | --he) |
| 197 | # Omit some internal or obsolete options to make the list less imposing. |
| 198 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 199 | cat << EOF |
| 200 | Usage: configure [options] [host] |
| 201 | Options: [defaults in brackets after descriptions] |
| 202 | Configuration: |
| 203 | --cache-file=FILE cache test results in FILE |
| 204 | --help print this message |
| 205 | --no-create do not create output files |
| 206 | --quiet, --silent do not print \`checking...' messages |
| 207 | --version print the version of autoconf that created configure |
| 208 | Directory and file names: |
| 209 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 210 | [$ac_default_prefix] |
| 211 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 212 | [same as prefix] |
| 213 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 214 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 215 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 216 | --datadir=DIR read-only architecture-independent data in DIR |
| 217 | [PREFIX/share] |
| 218 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 219 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 220 | [PREFIX/com] |
| 221 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 222 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 223 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 224 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 225 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 226 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 227 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 228 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 229 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 230 | --program-transform-name=PROGRAM |
| 231 | run sed PROGRAM on installed program names |
| 232 | EOF |
| 233 | cat << EOF |
| 234 | Host type: |
| 235 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 236 | --host=HOST configure for HOST [guessed] |
| 237 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 238 | Features and packages: |
| 239 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 240 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 241 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 242 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 243 | --x-includes=DIR X include files are in DIR |
| 244 | --x-libraries=DIR X library files are in DIR |
| 245 | EOF |
| 246 | if test -n "$ac_help"; then |
| 247 | echo "--enable and --with options recognized:$ac_help" |
| 248 | fi |
| 249 | exit 0 ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 250 | |
| 251 | -host | --host | --hos | --ho) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 252 | ac_prev=host ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 253 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 254 | host="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 255 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 256 | -includedir | --includedir | --includedi | --included | --include \ |
| 257 | | --includ | --inclu | --incl | --inc) |
| 258 | ac_prev=includedir ;; |
| 259 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 260 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 261 | includedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 262 | |
| 263 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 264 | ac_prev=infodir ;; |
| 265 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 266 | infodir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 267 | |
| 268 | -libdir | --libdir | --libdi | --libd) |
| 269 | ac_prev=libdir ;; |
| 270 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 271 | libdir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 272 | |
| 273 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 274 | | --libexe | --libex | --libe) |
| 275 | ac_prev=libexecdir ;; |
| 276 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 277 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 278 | libexecdir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 279 | |
| 280 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 281 | | --localstate | --localstat | --localsta | --localst \ |
| 282 | | --locals | --local | --loca | --loc | --lo) |
| 283 | ac_prev=localstatedir ;; |
| 284 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 285 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 286 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 287 | localstatedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 288 | |
| 289 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 290 | ac_prev=mandir ;; |
| 291 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 292 | mandir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 293 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 294 | -nfp | --nfp | --nf) |
| 295 | # Obsolete; use --without-fp. |
| 296 | with_fp=no ;; |
| 297 | |
| 298 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 299 | | --no-cr | --no-c) |
| 300 | no_create=yes ;; |
| 301 | |
| 302 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 303 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 304 | no_recursion=yes ;; |
| 305 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 306 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 307 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 308 | | --oldin | --oldi | --old | --ol | --o) |
| 309 | ac_prev=oldincludedir ;; |
| 310 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 311 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 312 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 313 | oldincludedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 314 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 315 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 316 | ac_prev=prefix ;; |
| 317 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 318 | prefix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 319 | |
| 320 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 321 | | --program-pre | --program-pr | --program-p) |
| 322 | ac_prev=program_prefix ;; |
| 323 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 324 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 325 | program_prefix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 326 | |
| 327 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 328 | | --program-suf | --program-su | --program-s) |
| 329 | ac_prev=program_suffix ;; |
| 330 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 331 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 332 | program_suffix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 333 | |
| 334 | -program-transform-name | --program-transform-name \ |
| 335 | | --program-transform-nam | --program-transform-na \ |
| 336 | | --program-transform-n | --program-transform- \ |
| 337 | | --program-transform | --program-transfor \ |
| 338 | | --program-transfo | --program-transf \ |
| 339 | | --program-trans | --program-tran \ |
| 340 | | --progr-tra | --program-tr | --program-t) |
| 341 | ac_prev=program_transform_name ;; |
| 342 | -program-transform-name=* | --program-transform-name=* \ |
| 343 | | --program-transform-nam=* | --program-transform-na=* \ |
| 344 | | --program-transform-n=* | --program-transform-=* \ |
| 345 | | --program-transform=* | --program-transfor=* \ |
| 346 | | --program-transfo=* | --program-transf=* \ |
| 347 | | --program-trans=* | --program-tran=* \ |
| 348 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 349 | program_transform_name="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 350 | |
| 351 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 352 | | -silent | --silent | --silen | --sile | --sil) |
| 353 | silent=yes ;; |
| 354 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 355 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 356 | ac_prev=sbindir ;; |
| 357 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 358 | | --sbi=* | --sb=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 359 | sbindir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 360 | |
| 361 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 362 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 363 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 364 | | --sha | --sh) |
| 365 | ac_prev=sharedstatedir ;; |
| 366 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 367 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 368 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 369 | | --sha=* | --sh=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 370 | sharedstatedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 371 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 372 | -site | --site | --sit) |
| 373 | ac_prev=site ;; |
| 374 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 375 | site="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 376 | |
| 377 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 378 | ac_prev=srcdir ;; |
| 379 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 380 | srcdir="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 381 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 382 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 383 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 384 | ac_prev=sysconfdir ;; |
| 385 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 386 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 387 | sysconfdir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 388 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 389 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 390 | ac_prev=target ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 391 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 392 | target="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 393 | |
| 394 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 395 | verbose=yes ;; |
| 396 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 397 | -version | --version | --versio | --versi | --vers) |
| 398 | echo "configure generated by autoconf version 2.13" |
| 399 | exit 0 ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 400 | |
| 401 | -with-* | --with-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 402 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 403 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 404 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 405 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 406 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 407 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 408 | case "$ac_option" in |
| 409 | *=*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 410 | *) ac_optarg=yes ;; |
| 411 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 412 | eval "with_${ac_package}='$ac_optarg'" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 413 | |
| 414 | -without-* | --without-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 415 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 416 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 417 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 418 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 419 | fi |
| 420 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 421 | eval "with_${ac_package}=no" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 422 | |
| 423 | --x) |
| 424 | # Obsolete; use --with-x. |
| 425 | with_x=yes ;; |
| 426 | |
| 427 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 428 | | --x-incl | --x-inc | --x-in | --x-i) |
| 429 | ac_prev=x_includes ;; |
| 430 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 431 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 432 | x_includes="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 433 | |
| 434 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 435 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 436 | ac_prev=x_libraries ;; |
| 437 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 438 | | --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] | 439 | x_libraries="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 440 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 441 | -*) { 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] | 442 | ;; |
| 443 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 444 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 445 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 446 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 447 | fi |
| 448 | if test "x$nonopt" != xNONE; then |
| 449 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 450 | fi |
| 451 | nonopt="$ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 452 | ;; |
| 453 | |
| 454 | esac |
| 455 | done |
| 456 | |
| 457 | if test -n "$ac_prev"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 458 | { 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] | 459 | fi |
| 460 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 461 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 462 | |
| 463 | # File descriptor usage: |
| 464 | # 0 standard input |
| 465 | # 1 file creation |
| 466 | # 2 errors and warnings |
| 467 | # 3 some systems may open it to /dev/tty |
| 468 | # 4 used on the Kubota Titan |
| 469 | # 6 checking for... messages and results |
| 470 | # 5 compiler messages saved in config.log |
| 471 | if test "$silent" = yes; then |
| 472 | exec 6>/dev/null |
| 473 | else |
| 474 | exec 6>&1 |
| 475 | fi |
| 476 | exec 5>./config.log |
| 477 | |
| 478 | echo "\ |
| 479 | This file contains any messages produced by compilers while |
| 480 | running configure, to aid debugging if configure makes a mistake. |
| 481 | " 1>&5 |
| 482 | |
| 483 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 484 | # Also quote any args containing shell metacharacters. |
| 485 | ac_configure_args= |
| 486 | for ac_arg |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 487 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 488 | case "$ac_arg" in |
| 489 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 490 | | --no-cr | --no-c) ;; |
| 491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 493 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 494 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 495 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 496 | esac |
| 497 | done |
| 498 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 499 | # NLS nuisances. |
| 500 | # Only set these to C if already set. These must not be set unconditionally |
| 501 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 502 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 503 | # Non-C LC_CTYPE values break the ctype check. |
| 504 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 505 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 506 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 507 | 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] | 508 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 509 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 510 | rm -rf conftest* confdefs.h |
| 511 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 512 | echo > confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 513 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 514 | # A filename unique to this package, relative to the directory that |
| 515 | # configure is in, which we can look for to find out if srcdir is correct. |
| 516 | ac_unique_file=version.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 517 | |
| 518 | # Find the source files, if location was not specified. |
| 519 | if test -z "$srcdir"; then |
| 520 | ac_srcdir_defaulted=yes |
| 521 | # Try the directory containing this script, then its parent. |
| 522 | ac_prog=$0 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 523 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 524 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 525 | srcdir=$ac_confdir |
| 526 | if test ! -r $srcdir/$ac_unique_file; then |
| 527 | srcdir=.. |
| 528 | fi |
| 529 | else |
| 530 | ac_srcdir_defaulted=no |
| 531 | fi |
| 532 | if test ! -r $srcdir/$ac_unique_file; then |
| 533 | if test "$ac_srcdir_defaulted" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 534 | { 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] | 535 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 536 | { 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] | 537 | fi |
| 538 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 539 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 540 | |
| 541 | # Prefer explicitly selected file to automatically selected ones. |
| 542 | if test -z "$CONFIG_SITE"; then |
| 543 | if test "x$prefix" != xNONE; then |
| 544 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 545 | else |
| 546 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 547 | fi |
| 548 | fi |
| 549 | for ac_site_file in $CONFIG_SITE; do |
| 550 | if test -r "$ac_site_file"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 551 | echo "loading site script $ac_site_file" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 552 | . "$ac_site_file" |
| 553 | fi |
| 554 | done |
| 555 | |
| 556 | if test -r "$cache_file"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 557 | echo "loading cache $cache_file" |
| 558 | . $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 559 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 560 | echo "creating cache $cache_file" |
| 561 | > $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 562 | fi |
| 563 | |
| 564 | ac_ext=c |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 565 | # 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] | 566 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 567 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 568 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 569 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 570 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 571 | ac_exeext= |
| 572 | ac_objext=o |
| 573 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 574 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 575 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 576 | ac_n= ac_c=' |
| 577 | ' ac_t=' ' |
| 578 | else |
| 579 | ac_n=-n ac_c= ac_t= |
| 580 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 581 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 582 | ac_n= ac_c='\c' ac_t= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 583 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 584 | |
| 585 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 586 | if test "${with_gnu_ld+set}" = set; then |
| 587 | withval="$with_gnu_ld" |
| 588 | test "$withval" = no || with_gnu_ld=yes |
| 589 | else |
| 590 | with_gnu_ld=no |
| 591 | fi |
| 592 | |
| 593 | ac_prog=ld |
| 594 | if test "$GCC" = yes; then |
| 595 | # Check if gcc -print-prog-name=ld gives a path. |
| 596 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 597 | echo "configure:598: checking for ld used by GCC" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 598 | case $host in |
| 599 | *-*-mingw*) |
| 600 | # gcc leaves a trailing carriage return which upsets mingw |
| 601 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 602 | *) |
| 603 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 604 | esac |
| 605 | case $ac_prog in |
| 606 | # Accept absolute paths. |
| 607 | [\\/]* | [A-Za-z]:[\\/]*) |
| 608 | re_direlt='/[^/][^/]*/\.\./' |
| 609 | # Canonicalize the path of ld |
| 610 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 611 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 612 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 613 | done |
| 614 | test -z "$LD" && LD="$ac_prog" |
| 615 | ;; |
| 616 | "") |
| 617 | # If it fails, then pretend we aren't using GCC. |
| 618 | ac_prog=ld |
| 619 | ;; |
| 620 | *) |
| 621 | # If it is relative, then search for the first ld in PATH. |
| 622 | with_gnu_ld=unknown |
| 623 | ;; |
| 624 | esac |
| 625 | elif test "$with_gnu_ld" = yes; then |
| 626 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 627 | echo "configure:628: checking for GNU ld" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 628 | else |
| 629 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 630 | echo "configure:631: checking for non-GNU ld" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 631 | fi |
| 632 | if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then |
| 633 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 634 | else |
| 635 | if test -z "$LD"; then |
| 636 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 637 | for ac_dir in $PATH; do |
| 638 | test -z "$ac_dir" && ac_dir=. |
| 639 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 640 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 641 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 642 | # but apparently some GNU ld's only accept -v. |
| 643 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 644 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 645 | test "$with_gnu_ld" != no && break |
| 646 | else |
| 647 | test "$with_gnu_ld" != yes && break |
| 648 | fi |
| 649 | fi |
| 650 | done |
| 651 | IFS="$ac_save_ifs" |
| 652 | else |
| 653 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 654 | fi |
| 655 | fi |
| 656 | |
| 657 | LD="$acl_cv_path_LD" |
| 658 | if test -n "$LD"; then |
| 659 | echo "$ac_t""$LD" 1>&6 |
| 660 | else |
| 661 | echo "$ac_t""no" 1>&6 |
| 662 | fi |
| 663 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
| 664 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 665 | echo "configure:666: checking if the linker ($LD) is GNU ld" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 666 | if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then |
| 667 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 668 | else |
| 669 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 670 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 671 | acl_cv_prog_gnu_ld=yes |
| 672 | else |
| 673 | acl_cv_prog_gnu_ld=no |
| 674 | fi |
| 675 | fi |
| 676 | |
| 677 | echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6 |
| 678 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 679 | |
| 680 | |
| 681 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 682 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 683 | MCONFIG=./MCONFIG |
| 684 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 685 | BINARY_TYPE=bin |
| 686 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 687 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 688 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 689 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 690 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 691 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 692 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 693 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 694 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 695 | E2FSPROGS_YEAR=$YEAR |
| 696 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 697 | E2FSPROGS_YEAR=19$YEAR |
| 698 | else |
| 699 | E2FSPROGS_YEAR=20$YEAR |
| 700 | fi |
| 701 | |
| 702 | case $MONTH in |
| 703 | Jan) E2FSPROGS_MONTH="January" ;; |
| 704 | Feb) E2FSPROGS_MONTH="February" ;; |
| 705 | Mar) E2FSPROGS_MONTH="March" ;; |
| 706 | Apr) E2FSPROGS_MONTH="April" ;; |
| 707 | May) E2FSPROGS_MONTH="May" ;; |
| 708 | Jun) E2FSPROGS_MONTH="June" ;; |
| 709 | Jul) E2FSPROGS_MONTH="July" ;; |
| 710 | Aug) E2FSPROGS_MONTH="August" ;; |
| 711 | Sep) E2FSPROGS_MONTH="September" ;; |
| 712 | Oct) E2FSPROGS_MONTH="October" ;; |
| 713 | Nov) E2FSPROGS_MONTH="November" ;; |
| 714 | Dec) E2FSPROGS_MONTH="December" ;; |
| 715 | *) echo "Unknown month $MONTH??" ;; |
| 716 | esac |
| 717 | |
| 718 | unset DATE MONTH YEAR |
| 719 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 720 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 721 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 722 | |
| 723 | |
| 724 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 725 | ac_aux_dir= |
| 726 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 727 | if test -f $ac_dir/install-sh; then |
| 728 | ac_aux_dir=$ac_dir |
| 729 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 730 | break |
| 731 | elif test -f $ac_dir/install.sh; then |
| 732 | ac_aux_dir=$ac_dir |
| 733 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 734 | break |
| 735 | fi |
| 736 | done |
| 737 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 738 | { 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] | 739 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 740 | ac_config_guess=$ac_aux_dir/config.guess |
| 741 | ac_config_sub=$ac_aux_dir/config.sub |
| 742 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 743 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 744 | |
| 745 | # Make sure we can run config.sub. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 746 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 747 | 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] | 748 | fi |
| 749 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 750 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 751 | echo "configure:752: checking host system type" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 752 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 753 | host_alias=$host |
| 754 | case "$host_alias" in |
| 755 | NONE) |
| 756 | case $nonopt in |
| 757 | NONE) |
| 758 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
| 759 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 760 | fi ;; |
| 761 | *) host_alias=$nonopt ;; |
| 762 | esac ;; |
| 763 | esac |
| 764 | |
| 765 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
| 766 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 767 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 768 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 769 | echo "$ac_t""$host" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 770 | |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 771 | # Check whether --with-diet-libc or --without-diet-libc was given. |
| 772 | if test "${with_diet_libc+set}" = set; then |
| 773 | withval="$with_diet_libc" |
| 774 | CC="diet cc -nostdinc" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 775 | echo "$ac_t""CC=$CC" 1>&6 |
| 776 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 777 | # Check whether --with-cc or --without-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 778 | if test "${with_cc+set}" = set; then |
| 779 | withval="$with_cc" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 780 | echo "$ac_t""CC=$withval" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 781 | CC=$withval |
| 782 | else |
| 783 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 784 | echo "$ac_t""CC defaults to $CC" 1>&6 |
| 785 | fi |
| 786 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 787 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 788 | # 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] | 789 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 790 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 791 | echo "configure:792: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 792 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 793 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 794 | else |
| 795 | if test -n "$CC"; then |
| 796 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 797 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 798 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 799 | ac_dummy="$PATH" |
| 800 | for ac_dir in $ac_dummy; do |
| 801 | test -z "$ac_dir" && ac_dir=. |
| 802 | if test -f $ac_dir/$ac_word; then |
| 803 | ac_cv_prog_CC="gcc" |
| 804 | break |
| 805 | fi |
| 806 | done |
| 807 | IFS="$ac_save_ifs" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 808 | fi |
| 809 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 810 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 811 | if test -n "$CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 812 | echo "$ac_t""$CC" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 813 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 814 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 815 | fi |
| 816 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 817 | if test -z "$CC"; then |
| 818 | # Extract the first word of "cc", so it can be a program name with args. |
| 819 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 820 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 821 | echo "configure:822: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 822 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 823 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 824 | else |
| 825 | if test -n "$CC"; then |
| 826 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 827 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 828 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 829 | ac_prog_rejected=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 830 | ac_dummy="$PATH" |
| 831 | for ac_dir in $ac_dummy; do |
| 832 | test -z "$ac_dir" && ac_dir=. |
| 833 | if test -f $ac_dir/$ac_word; then |
| 834 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 835 | ac_prog_rejected=yes |
| 836 | continue |
| 837 | fi |
| 838 | ac_cv_prog_CC="cc" |
| 839 | break |
| 840 | fi |
| 841 | done |
| 842 | IFS="$ac_save_ifs" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 843 | if test $ac_prog_rejected = yes; then |
| 844 | # We found a bogon in the path, so make sure we never use it. |
| 845 | set dummy $ac_cv_prog_CC |
| 846 | shift |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 847 | if test $# -gt 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 848 | # We chose a different compiler from the bogus one. |
| 849 | # However, it has the same basename, so the bogon will be chosen |
| 850 | # first if we set CC to just the basename; use the full file name. |
| 851 | shift |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 852 | set dummy "$ac_dir/$ac_word" "$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 853 | shift |
| 854 | ac_cv_prog_CC="$@" |
| 855 | fi |
| 856 | fi |
| 857 | fi |
| 858 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 859 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 860 | if test -n "$CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 861 | echo "$ac_t""$CC" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 862 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 863 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 864 | fi |
| 865 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 866 | if test -z "$CC"; then |
| 867 | case "`uname -s`" in |
| 868 | *win32* | *WIN32*) |
| 869 | # Extract the first word of "cl", so it can be a program name with args. |
| 870 | set dummy cl; ac_word=$2 |
| 871 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 872 | echo "configure:873: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 873 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 874 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 875 | else |
| 876 | if test -n "$CC"; then |
| 877 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 878 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 879 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 880 | ac_dummy="$PATH" |
| 881 | for ac_dir in $ac_dummy; do |
| 882 | test -z "$ac_dir" && ac_dir=. |
| 883 | if test -f $ac_dir/$ac_word; then |
| 884 | ac_cv_prog_CC="cl" |
| 885 | break |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 886 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 887 | done |
| 888 | IFS="$ac_save_ifs" |
| 889 | fi |
| 890 | fi |
| 891 | CC="$ac_cv_prog_CC" |
| 892 | if test -n "$CC"; then |
| 893 | echo "$ac_t""$CC" 1>&6 |
| 894 | else |
| 895 | echo "$ac_t""no" 1>&6 |
| 896 | fi |
| 897 | ;; |
| 898 | esac |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 899 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 900 | 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] | 901 | fi |
| 902 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 903 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 904 | echo "configure:905: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 905 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 906 | ac_ext=c |
| 907 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 908 | ac_cpp='$CPP $CPPFLAGS' |
| 909 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 910 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 911 | cross_compiling=$ac_cv_prog_cc_cross |
| 912 | |
| 913 | cat > conftest.$ac_ext << EOF |
| 914 | |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 915 | #line 916 "configure" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 916 | #include "confdefs.h" |
| 917 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 918 | main(){return(0);} |
| 919 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 920 | if { (eval echo configure:921: \"$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] | 921 | ac_cv_prog_cc_works=yes |
| 922 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 923 | if (./conftest; exit) 2>/dev/null; then |
| 924 | ac_cv_prog_cc_cross=no |
| 925 | else |
| 926 | ac_cv_prog_cc_cross=yes |
| 927 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 928 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 929 | echo "configure: failed program was:" >&5 |
| 930 | cat conftest.$ac_ext >&5 |
| 931 | ac_cv_prog_cc_works=no |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 932 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 933 | rm -fr conftest* |
| 934 | ac_ext=c |
| 935 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 936 | ac_cpp='$CPP $CPPFLAGS' |
| 937 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 938 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 939 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 940 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 941 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 942 | if test $ac_cv_prog_cc_works = no; then |
| 943 | { 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] | 944 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 945 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 946 | echo "configure:947: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 947 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 948 | cross_compiling=$ac_cv_prog_cc_cross |
| 949 | |
| 950 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 951 | echo "configure:952: checking whether we are using GNU C" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 952 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 953 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 954 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 955 | cat > conftest.c <<EOF |
| 956 | #ifdef __GNUC__ |
| 957 | yes; |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 958 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 959 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 960 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 961 | ac_cv_prog_gcc=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 962 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 963 | ac_cv_prog_gcc=no |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 964 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 965 | fi |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 966 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 967 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 968 | |
| 969 | if test $ac_cv_prog_gcc = yes; then |
| 970 | GCC=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 971 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 972 | GCC= |
| 973 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 974 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 975 | ac_test_CFLAGS="${CFLAGS+set}" |
| 976 | ac_save_CFLAGS="$CFLAGS" |
| 977 | CFLAGS= |
| 978 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 979 | echo "configure:980: checking whether ${CC-cc} accepts -g" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 980 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 981 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 982 | else |
| 983 | echo 'void f(){}' > conftest.c |
| 984 | 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] | 985 | ac_cv_prog_cc_g=yes |
| 986 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 987 | ac_cv_prog_cc_g=no |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 988 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 989 | rm -f conftest* |
| 990 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 991 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 992 | |
| 993 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 994 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 995 | CFLAGS="$ac_save_CFLAGS" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 996 | elif test $ac_cv_prog_cc_g = yes; then |
| 997 | if test "$GCC" = yes; then |
| 998 | CFLAGS="-g -O2" |
| 999 | else |
| 1000 | CFLAGS="-g" |
| 1001 | fi |
| 1002 | else |
| 1003 | if test "$GCC" = yes; then |
| 1004 | CFLAGS="-O2" |
| 1005 | else |
| 1006 | CFLAGS= |
| 1007 | fi |
| 1008 | fi |
| 1009 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1010 | # Check whether --with-linker or --without-linker was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1011 | if test "${with_linker+set}" = set; then |
| 1012 | withval="$with_linker" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1013 | echo "$ac_t""LD=$withval" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1014 | LD=$withval |
| 1015 | else |
| 1016 | if test -z "$LD" ; then LD=$CC; fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1017 | echo "$ac_t""LD defaults to $LD" 1>&6 |
| 1018 | fi |
| 1019 | export LD |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1020 | |
| 1021 | # Check whether --with-ccopts or --without-ccopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1022 | if test "${with_ccopts+set}" = set; then |
| 1023 | withval="$with_ccopts" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1024 | echo "$ac_t""CCOPTS is $withval" 1>&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1025 | CFLAGS=$withval |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1026 | fi |
| 1027 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1028 | echo "configure:1029: checking how to run the C preprocessor" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1029 | # On Suns, sometimes $CPP names a directory. |
| 1030 | if test -n "$CPP" && test -d "$CPP"; then |
| 1031 | CPP= |
| 1032 | fi |
| 1033 | if test -z "$CPP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1034 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1035 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1036 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1037 | # This must be in double quotes, not single quotes, because CPP may get |
| 1038 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1039 | CPP="${CC-cc} -E" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1040 | # 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] | 1041 | # not just through cpp. |
| 1042 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1043 | #line 1044 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1044 | #include "confdefs.h" |
| 1045 | #include <assert.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1046 | Syntax Error |
| 1047 | EOF |
| 1048 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1049 | { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1050 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1051 | if test -z "$ac_err"; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1052 | : |
| 1053 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1054 | echo "$ac_err" >&5 |
| 1055 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1056 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1057 | rm -rf conftest* |
| 1058 | CPP="${CC-cc} -E -traditional-cpp" |
| 1059 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1060 | #line 1061 "configure" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1061 | #include "confdefs.h" |
| 1062 | #include <assert.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1063 | Syntax Error |
| 1064 | EOF |
| 1065 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1066 | { (eval echo configure:1067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1067 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1068 | if test -z "$ac_err"; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1069 | : |
| 1070 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1071 | echo "$ac_err" >&5 |
| 1072 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1073 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1074 | rm -rf conftest* |
| 1075 | CPP="${CC-cc} -nologo -E" |
| 1076 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1077 | #line 1078 "configure" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1078 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1079 | #include <assert.h> |
| 1080 | Syntax Error |
| 1081 | EOF |
| 1082 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1083 | { (eval echo configure:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1084 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1085 | if test -z "$ac_err"; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1086 | : |
| 1087 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1088 | echo "$ac_err" >&5 |
| 1089 | echo "configure: failed program was:" >&5 |
| 1090 | cat conftest.$ac_ext >&5 |
| 1091 | rm -rf conftest* |
| 1092 | CPP=/lib/cpp |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1093 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1094 | rm -f conftest* |
| 1095 | fi |
| 1096 | rm -f conftest* |
| 1097 | fi |
| 1098 | rm -f conftest* |
| 1099 | ac_cv_prog_CPP="$CPP" |
| 1100 | fi |
| 1101 | CPP="$ac_cv_prog_CPP" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1102 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1103 | ac_cv_prog_CPP="$CPP" |
| 1104 | fi |
| 1105 | echo "$ac_t""$CPP" 1>&6 |
| 1106 | |
| 1107 | ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'` |
| 1108 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1109 | echo "configure:1110: checking for linux/fs.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1110 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1111 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1112 | else |
| 1113 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1114 | #line 1115 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1115 | #include "confdefs.h" |
| 1116 | #include <linux/fs.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1117 | EOF |
| 1118 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1119 | { (eval echo configure:1120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1120 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1121 | if test -z "$ac_err"; then |
| 1122 | rm -rf conftest* |
| 1123 | eval "ac_cv_header_$ac_safe=yes" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1124 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1125 | echo "$ac_err" >&5 |
| 1126 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1127 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1128 | rm -rf conftest* |
| 1129 | eval "ac_cv_header_$ac_safe=no" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1130 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1131 | rm -f conftest* |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1132 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1133 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1134 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1135 | linux_headers=yes |
| 1136 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1137 | echo "$ac_t""no" 1>&6 |
| 1138 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1139 | fi |
| 1140 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1141 | if test "$linux_headers" != yes; then |
| 1142 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1143 | fi |
| 1144 | |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1145 | echo $ac_n "checking for additional special compiler flags""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1146 | echo "configure:1147: checking for additional special compiler flags" >&5 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 1147 | if test "$GCC" = yes |
| 1148 | then |
| 1149 | case "$host_cpu" in |
| 1150 | alpha) addcflags="-mieee" ;; |
| 1151 | esac |
| 1152 | fi |
| 1153 | if test "x$addcflags" != x |
| 1154 | then |
| 1155 | echo "$ac_t""$addcflags" 1>&6 |
| 1156 | CFLAGS="$addcflags $CFLAGS" |
| 1157 | else |
| 1158 | echo "$ac_t""(none)" 1>&6 |
| 1159 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1160 | LIB_EXT=.a |
| 1161 | STATIC_LIB_EXT=.a |
| 1162 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1163 | # Check whether --with-ldopts or --without-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1164 | if test "${with_ldopts+set}" = set; then |
| 1165 | withval="$with_ldopts" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1166 | echo "$ac_t""LDFLAGS is $withval" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1167 | LDFLAGS=$withval |
| 1168 | else |
| 1169 | LDFLAGS= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1170 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1171 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1172 | # Check whether --with-root-prefix or --without-root-prefix was given. |
| 1173 | if test "${with_root_prefix+set}" = set; then |
| 1174 | withval="$with_root_prefix" |
| 1175 | root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1176 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1177 | root_prefix=NONE |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1178 | fi |
| 1179 | # Check whether --enable-compression or --disable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1180 | if test "${enable_compression+set}" = set; then |
| 1181 | enableval="$enable_compression" |
| 1182 | if test "$enableval" = "no" |
| 1183 | then |
| 1184 | echo "Disabling compression support" |
| 1185 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1186 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1187 | #define ENABLE_COMPRESSION 1 |
| 1188 | EOF |
| 1189 | |
| 1190 | echo "Enabling compression support" |
| 1191 | echo "WARNING: Compression support is experimental" |
| 1192 | fi |
| 1193 | |
| 1194 | else |
| 1195 | echo "Disabling compression support by default" |
| 1196 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1197 | fi |
| 1198 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1199 | # Check whether --enable-htree or --disable-htree was given. |
| 1200 | if test "${enable_htree+set}" = set; then |
| 1201 | enableval="$enable_htree" |
| 1202 | if test "$enableval" = "no" |
| 1203 | then |
| 1204 | HTREE_CMT=# |
| 1205 | echo "Disabling htree directory support" |
| 1206 | else |
| 1207 | HTREE_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1208 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1209 | #define ENABLE_HTREE 1 |
| 1210 | EOF |
| 1211 | |
| 1212 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1213 | fi |
| 1214 | |
| 1215 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 1216 | HTREE_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1217 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 1218 | #define ENABLE_HTREE 1 |
| 1219 | EOF |
| 1220 | |
| 1221 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1222 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1223 | fi |
| 1224 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1225 | |
| 1226 | # Check whether --enable-htree-clear or --disable-htree-clear was given. |
| 1227 | if test "${enable_htree_clear+set}" = set; then |
| 1228 | enableval="$enable_htree_clear" |
| 1229 | if test "$enableval" = "no" |
| 1230 | then |
| 1231 | HTREE_CLR_CMT=# |
| 1232 | echo "Disabling htree clearing" |
| 1233 | else |
| 1234 | HTREE_CLR_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1235 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1236 | #define ENABLE_HTREE_CLEAR 1 |
| 1237 | EOF |
| 1238 | |
| 1239 | echo "Enabling htree clearing" |
| 1240 | fi |
| 1241 | |
| 1242 | else |
| 1243 | HTREE_CLR_CMT=# |
| 1244 | echo "Disabling htree clearing by default" |
| 1245 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1246 | fi |
| 1247 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1248 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1249 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1250 | if test "${enable_elf_shlibs+set}" = set; then |
| 1251 | enableval="$enable_elf_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1252 | if test "$enableval" = "no" |
| 1253 | then |
| 1254 | ELF_CMT=# |
| 1255 | MAKEFILE_ELF=/dev/null |
| 1256 | echo "Disabling ELF shared libraries" |
| 1257 | else |
| 1258 | ELF_CMT= |
| 1259 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 1260 | case "$host_os" in |
| 1261 | solaris2.*) |
| 1262 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 1263 | ;; |
| 1264 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1265 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1266 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1267 | echo "Enabling ELF shared libraries" |
| 1268 | fi |
| 1269 | |
| 1270 | else |
| 1271 | MAKEFILE_ELF=/dev/null |
| 1272 | ELF_CMT=# |
| 1273 | echo "Disabling ELF shared libraries by default" |
| 1274 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1275 | fi |
| 1276 | |
| 1277 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1278 | |
| 1279 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1280 | if test "${enable_bsd_shlibs+set}" = set; then |
| 1281 | enableval="$enable_bsd_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1282 | if test "$enableval" = "no" |
| 1283 | then |
| 1284 | BSDLIB_CMT=# |
| 1285 | MAKEFILE_BSDLIB=/dev/null |
| 1286 | echo "Disabling BSD shared libraries" |
| 1287 | else |
| 1288 | BSDLIB_CMT= |
| 1289 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1290 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1291 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 1292 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1293 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 1294 | LIB_EXT=.dylib |
| 1295 | ;; |
| 1296 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1297 | echo "Enabling BSD shared libraries" |
| 1298 | fi |
| 1299 | |
| 1300 | else |
| 1301 | MAKEFILE_BSDLIB=/dev/null |
| 1302 | BSDLIB_CMT=# |
| 1303 | echo "Disabling BSD shared libraries by default" |
| 1304 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1305 | fi |
| 1306 | |
| 1307 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1308 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1309 | # Check whether --enable-profile or --disable-profile was given. |
| 1310 | if test "${enable_profile+set}" = set; then |
| 1311 | enableval="$enable_profile" |
| 1312 | if test "$enableval" = "no" |
| 1313 | then |
| 1314 | PROFILE_CMT=# |
| 1315 | MAKEFILE_PROFILE=/dev/null |
| 1316 | echo "Disabling profiling libraries" |
| 1317 | else |
| 1318 | PROFILE_CMT= |
| 1319 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 1320 | PROFILED_LIB_EXT=_p.a |
| 1321 | echo "Building profiling libraries" |
| 1322 | fi |
| 1323 | |
| 1324 | else |
| 1325 | PROFILE_CMT=# |
| 1326 | MAKEFILE_PROFILE=/dev/null |
| 1327 | echo "Disabling profiling libraries by default" |
| 1328 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1329 | fi |
| 1330 | |
| 1331 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1332 | |
| 1333 | # Check whether --enable-checker or --disable-checker was given. |
| 1334 | if test "${enable_checker+set}" = set; then |
| 1335 | enableval="$enable_checker" |
| 1336 | if test "$enableval" = "no" |
| 1337 | then |
| 1338 | CHECKER_CMT=# |
| 1339 | MAKEFILE_CHECKER=/dev/null |
| 1340 | echo "Disabling checker libraries" |
| 1341 | else |
| 1342 | CHECKER_CMT= |
| 1343 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 1344 | echo "Building checker libraries" |
| 1345 | fi |
| 1346 | |
| 1347 | else |
| 1348 | CHECKER_CMT=# |
| 1349 | MAKEFILE_CHECKER=/dev/null |
| 1350 | echo "Disabling checker libraries by default" |
| 1351 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1352 | fi |
| 1353 | |
| 1354 | |
| 1355 | |
| 1356 | |
| 1357 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1358 | |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 1359 | # Check whether --enable-jbd-debug or --disable-jbd-debug was given. |
| 1360 | if test "${enable_jbd_debug+set}" = set; then |
| 1361 | enableval="$enable_jbd_debug" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1362 | if test "$enableval" = "no" |
| 1363 | then |
| 1364 | echo "Disabling journal debugging" |
| 1365 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1366 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 1367 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1368 | EOF |
| 1369 | |
| 1370 | echo "Enabling journal debugging" |
| 1371 | fi |
| 1372 | |
| 1373 | else |
| 1374 | echo "Disabling journal debugging by default" |
| 1375 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1376 | fi |
| 1377 | |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 1378 | # Check whether --enable-blkid-debug or --disable-blkid-debug was given. |
| 1379 | if test "${enable_blkid_debug+set}" = set; then |
| 1380 | enableval="$enable_blkid_debug" |
| 1381 | if test "$enableval" = "no" |
| 1382 | then |
| 1383 | echo "Disabling blkid debugging" |
| 1384 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1385 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 1386 | #define CONFIG_BLKID_DEBUG 1 |
| 1387 | EOF |
| 1388 | |
| 1389 | echo "Enabling blkid debugging" |
| 1390 | fi |
| 1391 | |
| 1392 | else |
| 1393 | echo "Disabling blkid debugging by default" |
| 1394 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1395 | fi |
| 1396 | |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1397 | # Check whether --enable-testio-debug or --disable-testio-debug was given. |
| 1398 | if test "${enable_testio_debug+set}" = set; then |
| 1399 | enableval="$enable_testio_debug" |
| 1400 | if test "$enableval" = "no" |
| 1401 | then |
| 1402 | echo "Disabling testio debugging" |
| 1403 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1404 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1405 | #define CONFIG_TESTIO_DEBUG 1 |
| 1406 | EOF |
| 1407 | |
| 1408 | echo "Enabling testio debugging" |
| 1409 | fi |
| 1410 | |
| 1411 | else |
| 1412 | echo "Disabling testio debugging by default" |
| 1413 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1414 | fi |
| 1415 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1416 | # Check whether --enable-swapfs or --disable-swapfs was given. |
| 1417 | if test "${enable_swapfs+set}" = set; then |
| 1418 | enableval="$enable_swapfs" |
| 1419 | if test "$enableval" = "no" |
| 1420 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1421 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1422 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1423 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1424 | SWAPFS_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1425 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1426 | #define ENABLE_SWAPFS 1 |
| 1427 | EOF |
| 1428 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1429 | echo "Enabling swapfs support" |
| 1430 | fi |
| 1431 | |
| 1432 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1433 | SWAPFS_CMT= |
| 1434 | echo "Enabling swapfs support by default" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1435 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1436 | #define ENABLE_SWAPFS 1 |
| 1437 | EOF |
| 1438 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1439 | |
| 1440 | fi |
| 1441 | |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1442 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1443 | # Check whether --enable-debugfs or --disable-debugfs was given. |
| 1444 | if test "${enable_debugfs+set}" = set; then |
| 1445 | enableval="$enable_debugfs" |
| 1446 | if test "$enableval" = "no" |
| 1447 | then |
| 1448 | echo "Disabling debugfs support" |
| 1449 | DEBUGFS_CMT="#" |
| 1450 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1451 | DEBUGFS_CMT= |
| 1452 | echo "Enabling debugfs support" |
| 1453 | fi |
| 1454 | |
| 1455 | else |
| 1456 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1457 | DEBUGFS_CMT= |
| 1458 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1459 | fi |
| 1460 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1461 | |
| 1462 | # Check whether --enable-imager or --disable-imager was given. |
| 1463 | if test "${enable_imager+set}" = set; then |
| 1464 | enableval="$enable_imager" |
| 1465 | if test "$enableval" = "no" |
| 1466 | then |
| 1467 | echo "Disabling e2image support" |
| 1468 | IMAGER_CMT="#" |
| 1469 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1470 | IMAGER_CMT= |
| 1471 | echo "Enabling e2image support" |
| 1472 | fi |
| 1473 | |
| 1474 | else |
| 1475 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1476 | IMAGER_CMT= |
| 1477 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1478 | fi |
| 1479 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1480 | |
| 1481 | # Check whether --enable-resizer or --disable-resizer was given. |
| 1482 | if test "${enable_resizer+set}" = set; then |
| 1483 | enableval="$enable_resizer" |
| 1484 | if test "$enableval" = "no" |
| 1485 | then |
| 1486 | echo "Disabling e2resize support" |
| 1487 | RESIZER_CMT="#" |
| 1488 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1489 | RESIZER_CMT= |
| 1490 | echo "Enabling e2resize support" |
| 1491 | fi |
| 1492 | |
| 1493 | else |
| 1494 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1495 | RESIZER_CMT= |
| 1496 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1497 | fi |
| 1498 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1499 | |
| 1500 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. |
| 1501 | if test "${enable_dynamic_e2fsck+set}" = set; then |
| 1502 | enableval="$enable_dynamic_e2fsck" |
| 1503 | if test "$enableval" = "no" |
| 1504 | then |
| 1505 | E2FSCK_TYPE=static |
| 1506 | echo "Building e2fsck statically" |
| 1507 | else |
| 1508 | E2FSCK_TYPE=shared |
| 1509 | echo "Building e2fsck dynamically" |
| 1510 | fi |
| 1511 | |
| 1512 | else |
| 1513 | E2FSCK_TYPE=static |
| 1514 | echo "Building e2fsck statically by default" |
| 1515 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1516 | fi |
| 1517 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1518 | |
| 1519 | # Check whether --enable-fsck or --disable-fsck was given. |
| 1520 | if test "${enable_fsck+set}" = set; then |
| 1521 | enableval="$enable_fsck" |
| 1522 | if test "$enableval" = "no" |
| 1523 | then |
| 1524 | FSCK_PROG='' FSCK_MAN='' |
| 1525 | echo "Not building fsck wrapper" |
| 1526 | else |
| 1527 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 1528 | echo "Building fsck wrapper" |
| 1529 | fi |
| 1530 | |
| 1531 | else |
| 1532 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 1533 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1534 | FSCK_PROG='' FSCK_MAN='' |
| 1535 | echo "Not building fsck wrapper by default" |
| 1536 | ;; |
| 1537 | *) |
| 1538 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 1539 | echo "Building fsck wrapper by default" |
| 1540 | esac |
| 1541 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1542 | fi |
| 1543 | |
| 1544 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1545 | |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 1546 | # Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given. |
| 1547 | if test "${enable_e2initrd_helper+set}" = set; then |
| 1548 | enableval="$enable_e2initrd_helper" |
| 1549 | if test "$enableval" = "no" |
| 1550 | then |
| 1551 | E2INITRD_PROG='' E2INITRD_MAN='' |
| 1552 | echo "Not building e2initrd helper" |
| 1553 | else |
| 1554 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 1555 | echo "Building e2initrd helper" |
| 1556 | fi |
| 1557 | |
| 1558 | else |
| 1559 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 1560 | echo "Building e2initrd helper by default" |
| 1561 | |
| 1562 | fi |
| 1563 | |
| 1564 | |
| 1565 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1566 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 1567 | |
| 1568 | # Check whether --enable-old-bitops or --disable-old-bitops was given. |
| 1569 | if test "${enable_old_bitops+set}" = set; then |
| 1570 | enableval="$enable_old_bitops" |
| 1571 | if test "$enableval" = "no" |
| 1572 | then |
| 1573 | echo "Using new (standard) bitmask operations" |
| 1574 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1575 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1576 | #define EXT2_OLD_BITOPS 1 |
| 1577 | EOF |
| 1578 | |
| 1579 | echo "Using old (native) bitmask operations" |
| 1580 | |
| 1581 | fi |
| 1582 | |
| 1583 | else |
| 1584 | echo "Using standard bitmask operations by default" |
| 1585 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1586 | fi |
| 1587 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1588 | PACKAGE=e2fsprogs |
| 1589 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1590 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1591 | #define PACKAGE "$PACKAGE" |
| 1592 | EOF |
| 1593 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1594 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1595 | #define VERSION "$VERSION" |
| 1596 | EOF |
| 1597 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1598 | |
| 1599 | |
| 1600 | |
| 1601 | |
| 1602 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1603 | echo "configure:1604: checking for inttypes.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1604 | if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then |
| 1605 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1606 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1607 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1608 | #line 1609 "configure" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1609 | #include "confdefs.h" |
| 1610 | #include <sys/types.h> |
| 1611 | #include <inttypes.h> |
| 1612 | int main() { |
| 1613 | uintmax_t i = (uintmax_t) -1; |
| 1614 | ; return 0; } |
| 1615 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1616 | if { (eval echo configure:1617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1617 | rm -rf conftest* |
| 1618 | jm_ac_cv_header_inttypes_h=yes |
| 1619 | else |
| 1620 | echo "configure: failed program was:" >&5 |
| 1621 | cat conftest.$ac_ext >&5 |
| 1622 | rm -rf conftest* |
| 1623 | jm_ac_cv_header_inttypes_h=no |
| 1624 | fi |
| 1625 | rm -f conftest* |
| 1626 | fi |
| 1627 | |
| 1628 | echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6 |
| 1629 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 1630 | cat >> confdefs.h <<EOF |
| 1631 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 1632 | EOF |
| 1633 | |
| 1634 | fi |
| 1635 | |
| 1636 | |
| 1637 | echo $ac_n "checking for stdint.h""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1638 | echo "configure:1639: checking for stdint.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1639 | if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then |
| 1640 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1641 | else |
| 1642 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1643 | #line 1644 "configure" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1644 | #include "confdefs.h" |
| 1645 | #include <sys/types.h> |
| 1646 | #include <stdint.h> |
| 1647 | int main() { |
| 1648 | uintmax_t i = (uintmax_t) -1; |
| 1649 | ; return 0; } |
| 1650 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1651 | if { (eval echo configure:1652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1652 | rm -rf conftest* |
| 1653 | jm_ac_cv_header_stdint_h=yes |
| 1654 | else |
| 1655 | echo "configure: failed program was:" >&5 |
| 1656 | cat conftest.$ac_ext >&5 |
| 1657 | rm -rf conftest* |
| 1658 | jm_ac_cv_header_stdint_h=no |
| 1659 | fi |
| 1660 | rm -f conftest* |
| 1661 | fi |
| 1662 | |
| 1663 | echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6 |
| 1664 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 1665 | cat >> confdefs.h <<EOF |
| 1666 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 1667 | EOF |
| 1668 | |
| 1669 | fi |
| 1670 | |
| 1671 | |
| 1672 | echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1673 | echo "configure:1674: checking for unsigned long long" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1674 | if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then |
| 1675 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1676 | else |
| 1677 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1678 | #line 1679 "configure" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1679 | #include "confdefs.h" |
| 1680 | unsigned long long ull = 1; int i = 63; |
| 1681 | int main() { |
| 1682 | unsigned long long ullmax = (unsigned long long) -1; |
| 1683 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 1684 | ; return 0; } |
| 1685 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1686 | if { (eval echo configure:1687: \"$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] | 1687 | rm -rf conftest* |
| 1688 | ac_cv_type_unsigned_long_long=yes |
| 1689 | else |
| 1690 | echo "configure: failed program was:" >&5 |
| 1691 | cat conftest.$ac_ext >&5 |
| 1692 | rm -rf conftest* |
| 1693 | ac_cv_type_unsigned_long_long=no |
| 1694 | fi |
| 1695 | rm -f conftest* |
| 1696 | fi |
| 1697 | |
| 1698 | echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6 |
| 1699 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 1700 | cat >> confdefs.h <<\EOF |
| 1701 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 1702 | EOF |
| 1703 | |
| 1704 | fi |
| 1705 | |
| 1706 | |
| 1707 | if test "X$prefix" = "XNONE"; then |
| 1708 | acl_final_prefix="$ac_default_prefix" |
| 1709 | else |
| 1710 | acl_final_prefix="$prefix" |
| 1711 | fi |
| 1712 | if test "X$exec_prefix" = "XNONE"; then |
| 1713 | acl_final_exec_prefix='${prefix}' |
| 1714 | else |
| 1715 | acl_final_exec_prefix="$exec_prefix" |
| 1716 | fi |
| 1717 | acl_save_prefix="$prefix" |
| 1718 | prefix="$acl_final_prefix" |
| 1719 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 1720 | prefix="$acl_save_prefix" |
| 1721 | |
| 1722 | |
| 1723 | echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1724 | echo "configure:1725: checking for shared library run path origin" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1725 | if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then |
| 1726 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1727 | else |
| 1728 | |
| 1729 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 1730 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 1731 | . ./conftest.sh |
| 1732 | rm -f ./conftest.sh |
| 1733 | acl_cv_rpath=done |
| 1734 | |
| 1735 | fi |
| 1736 | |
| 1737 | echo "$ac_t""$acl_cv_rpath" 1>&6 |
| 1738 | wl="$acl_cv_wl" |
| 1739 | libext="$acl_cv_libext" |
| 1740 | shlibext="$acl_cv_shlibext" |
| 1741 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 1742 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 1743 | hardcode_direct="$acl_cv_hardcode_direct" |
| 1744 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 1745 | sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" |
| 1746 | sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" |
| 1747 | # Check whether --enable-rpath or --disable-rpath was given. |
| 1748 | if test "${enable_rpath+set}" = set; then |
| 1749 | enableval="$enable_rpath" |
| 1750 | : |
| 1751 | else |
| 1752 | enable_rpath=yes |
| 1753 | fi |
| 1754 | |
| 1755 | |
| 1756 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1757 | echo "configure:1758: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1758 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 1759 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 1760 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1761 | else |
| 1762 | cat > conftestmake <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1763 | all: |
| 1764 | @echo 'ac_maketemp="${MAKE}"' |
| 1765 | EOF |
| 1766 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1767 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1768 | if test -n "$ac_maketemp"; then |
| 1769 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1770 | else |
| 1771 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1772 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1773 | rm -f conftestmake |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1774 | fi |
| 1775 | 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] | 1776 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1777 | SET_MAKE= |
| 1778 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1779 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1780 | SET_MAKE="MAKE=${MAKE-make}" |
| 1781 | fi |
| 1782 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1783 | # Find a good install program. We prefer a C program (faster), |
| 1784 | # so one script is as good as another. But avoid the broken or |
| 1785 | # incompatible versions: |
| 1786 | # SysV /etc/install, /usr/sbin/install |
| 1787 | # SunOS /usr/etc/install |
| 1788 | # IRIX /sbin/install |
| 1789 | # AIX /bin/install |
| 1790 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1791 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1792 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1793 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1794 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1795 | echo "configure:1796: checking for a BSD compatible install" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1796 | if test -z "$INSTALL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1797 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1798 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1799 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1800 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1801 | for ac_dir in $PATH; do |
| 1802 | # Account for people who put trailing slashes in PATH elements. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1803 | case "$ac_dir/" in |
| 1804 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1805 | *) |
| 1806 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1807 | # Don't use installbsd from OSF since it installs stuff as root |
| 1808 | # by default. |
| 1809 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1810 | if test -f $ac_dir/$ac_prog; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1811 | if test $ac_prog = install && |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1812 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1813 | # AIX install. It has an incompatible calling convention. |
| 1814 | : |
| 1815 | else |
| 1816 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1817 | break 2 |
| 1818 | fi |
| 1819 | fi |
| 1820 | done |
| 1821 | ;; |
| 1822 | esac |
| 1823 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1824 | IFS="$ac_save_IFS" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1825 | |
| 1826 | fi |
| 1827 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1828 | INSTALL="$ac_cv_path_install" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1829 | else |
| 1830 | # As a last resort, use the slow shell script. We don't cache a |
| 1831 | # path for INSTALL within a source directory, because that will |
| 1832 | # break other packages using the cache if that directory is |
| 1833 | # removed, or if the path is relative. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1834 | INSTALL="$ac_install_sh" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1835 | fi |
| 1836 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1837 | echo "$ac_t""$INSTALL" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1838 | |
| 1839 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1840 | # It thinks the first close brace ends the variable substitution. |
| 1841 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1842 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1843 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1844 | |
| 1845 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1846 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1847 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1848 | MKINSTALLDIRS= |
| 1849 | if test -n "$ac_aux_dir"; then |
| 1850 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
| 1851 | fi |
| 1852 | if test -z "$MKINSTALLDIRS"; then |
| 1853 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 1854 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1855 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1856 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1857 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1858 | set dummy ranlib; ac_word=$2 |
| 1859 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1860 | echo "configure:1861: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1861 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1862 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1863 | else |
| 1864 | if test -n "$RANLIB"; then |
| 1865 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1866 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1867 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1868 | ac_dummy="$PATH" |
| 1869 | for ac_dir in $ac_dummy; do |
| 1870 | test -z "$ac_dir" && ac_dir=. |
| 1871 | if test -f $ac_dir/$ac_word; then |
| 1872 | ac_cv_prog_RANLIB="ranlib" |
| 1873 | break |
| 1874 | fi |
| 1875 | done |
| 1876 | IFS="$ac_save_ifs" |
| 1877 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1878 | fi |
| 1879 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1880 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1881 | if test -n "$RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1882 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1883 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1884 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1885 | fi |
| 1886 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1887 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1888 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1889 | echo "configure:1890: checking for strerror in -lcposix" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1890 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
| 1891 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1892 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1893 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1894 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1895 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1896 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1897 | #line 1898 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1898 | #include "confdefs.h" |
| 1899 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1900 | /* 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] | 1901 | builtin and then its argument prototype would still apply. */ |
| 1902 | char strerror(); |
| 1903 | |
| 1904 | int main() { |
| 1905 | strerror() |
| 1906 | ; return 0; } |
| 1907 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1908 | if { (eval echo configure:1909: \"$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] | 1909 | rm -rf conftest* |
| 1910 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1911 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1912 | echo "configure: failed program was:" >&5 |
| 1913 | cat conftest.$ac_ext >&5 |
| 1914 | rm -rf conftest* |
| 1915 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1916 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1917 | rm -f conftest* |
| 1918 | LIBS="$ac_save_LIBS" |
| 1919 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1920 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1921 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1922 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1923 | LIBS="$LIBS -lcposix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1924 | else |
| 1925 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1926 | fi |
| 1927 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1928 | |
| 1929 | |
| 1930 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1931 | echo "configure:1932: checking for ANSI C header files" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1932 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1933 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1934 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1935 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1936 | #line 1937 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1937 | #include "confdefs.h" |
| 1938 | #include <stdlib.h> |
| 1939 | #include <stdarg.h> |
| 1940 | #include <string.h> |
| 1941 | #include <float.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1942 | EOF |
| 1943 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1944 | { (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1945 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1946 | if test -z "$ac_err"; then |
| 1947 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1948 | ac_cv_header_stdc=yes |
| 1949 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1950 | echo "$ac_err" >&5 |
| 1951 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1952 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1953 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1954 | ac_cv_header_stdc=no |
| 1955 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1956 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1957 | |
| 1958 | if test $ac_cv_header_stdc = yes; then |
| 1959 | # 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] | 1960 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1961 | #line 1962 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1962 | #include "confdefs.h" |
| 1963 | #include <string.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1964 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1965 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1966 | egrep "memchr" >/dev/null 2>&1; then |
| 1967 | : |
| 1968 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1969 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1970 | ac_cv_header_stdc=no |
| 1971 | fi |
| 1972 | rm -f conftest* |
| 1973 | |
| 1974 | fi |
| 1975 | |
| 1976 | if test $ac_cv_header_stdc = yes; then |
| 1977 | # 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] | 1978 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 1979 | #line 1980 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1980 | #include "confdefs.h" |
| 1981 | #include <stdlib.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1982 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1983 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1984 | egrep "free" >/dev/null 2>&1; then |
| 1985 | : |
| 1986 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1987 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1988 | ac_cv_header_stdc=no |
| 1989 | fi |
| 1990 | rm -f conftest* |
| 1991 | |
| 1992 | fi |
| 1993 | |
| 1994 | if test $ac_cv_header_stdc = yes; then |
| 1995 | # /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] | 1996 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1997 | : |
| 1998 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1999 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2000 | #line 2001 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2001 | #include "confdefs.h" |
| 2002 | #include <ctype.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2003 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2004 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2005 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2006 | int main () { int i; for (i = 0; i < 256; i++) |
| 2007 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2008 | exit (0); } |
| 2009 | |
| 2010 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2011 | if { (eval echo configure:2012: \"$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] | 2012 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2013 | : |
| 2014 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2015 | echo "configure: failed program was:" >&5 |
| 2016 | cat conftest.$ac_ext >&5 |
| 2017 | rm -fr conftest* |
| 2018 | ac_cv_header_stdc=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2019 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2020 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2021 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2022 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2023 | fi |
| 2024 | fi |
| 2025 | |
| 2026 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 2027 | if test $ac_cv_header_stdc = yes; then |
| 2028 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2029 | #define STDC_HEADERS 1 |
| 2030 | EOF |
| 2031 | |
| 2032 | fi |
| 2033 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2034 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2035 | echo "configure:2036: checking for working const" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2036 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 2037 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2038 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2039 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2040 | #line 2041 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2041 | #include "confdefs.h" |
| 2042 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2043 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2044 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2045 | /* Ultrix mips cc rejects this. */ |
| 2046 | typedef int charset[2]; const charset x; |
| 2047 | /* SunOS 4.1.1 cc rejects this. */ |
| 2048 | char const *const *ccp; |
| 2049 | char **p; |
| 2050 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 2051 | struct point {int x, y;}; |
| 2052 | static struct point const zero = {0,0}; |
| 2053 | /* AIX XL C 1.02.0.0 rejects this. |
| 2054 | It does not let you subtract one const X* pointer from another in an arm |
| 2055 | of an if-expression whose if-part is not a constant expression */ |
| 2056 | const char *g = "string"; |
| 2057 | ccp = &g + (g ? g-g : 0); |
| 2058 | /* HPUX 7.0 cc rejects these. */ |
| 2059 | ++ccp; |
| 2060 | p = (char**) ccp; |
| 2061 | ccp = (char const *const *) p; |
| 2062 | { /* SCO 3.2v4 cc rejects this. */ |
| 2063 | char *t; |
| 2064 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2065 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2066 | *t++ = 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2067 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2068 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 2069 | int x[] = {25, 17}; |
| 2070 | const int *foo = &x[0]; |
| 2071 | ++foo; |
| 2072 | } |
| 2073 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 2074 | typedef const int *iptr; |
| 2075 | iptr p = 0; |
| 2076 | ++p; |
| 2077 | } |
| 2078 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 2079 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 2080 | struct s { int j; const int *ap[3]; }; |
| 2081 | struct s *b; b->j = 5; |
| 2082 | } |
| 2083 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 2084 | const int foo = 10; |
| 2085 | } |
| 2086 | |
| 2087 | ; return 0; } |
| 2088 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2089 | if { (eval echo configure:2090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2090 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2091 | ac_cv_c_const=yes |
| 2092 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2093 | echo "configure: failed program was:" >&5 |
| 2094 | cat conftest.$ac_ext >&5 |
| 2095 | rm -rf conftest* |
| 2096 | ac_cv_c_const=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2097 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2098 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2099 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2100 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2101 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 2102 | if test $ac_cv_c_const = no; then |
| 2103 | cat >> confdefs.h <<\EOF |
| 2104 | #define const |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2105 | EOF |
| 2106 | |
| 2107 | fi |
| 2108 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2109 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2110 | echo "configure:2111: checking for inline" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2111 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 2112 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2113 | else |
| 2114 | ac_cv_c_inline=no |
| 2115 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2116 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2117 | #line 2118 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2118 | #include "confdefs.h" |
| 2119 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2120 | int main() { |
| 2121 | } $ac_kw foo() { |
| 2122 | ; return 0; } |
| 2123 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2124 | if { (eval echo configure:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2125 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2126 | ac_cv_c_inline=$ac_kw; break |
| 2127 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2128 | echo "configure: failed program was:" >&5 |
| 2129 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2130 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2131 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2132 | done |
| 2133 | |
| 2134 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2135 | |
| 2136 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 2137 | case "$ac_cv_c_inline" in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2138 | inline | yes) ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2139 | no) cat >> confdefs.h <<\EOF |
| 2140 | #define inline |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2141 | EOF |
| 2142 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2143 | *) cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2144 | #define inline $ac_cv_c_inline |
| 2145 | EOF |
| 2146 | ;; |
| 2147 | esac |
| 2148 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2149 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2150 | echo "configure:2151: checking for off_t" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2151 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 2152 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2153 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2154 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2155 | #line 2156 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2156 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2157 | #include <sys/types.h> |
| 2158 | #if STDC_HEADERS |
| 2159 | #include <stdlib.h> |
| 2160 | #include <stddef.h> |
| 2161 | #endif |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2162 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2163 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2164 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2165 | rm -rf conftest* |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2166 | ac_cv_type_off_t=yes |
| 2167 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2168 | rm -rf conftest* |
| 2169 | ac_cv_type_off_t=no |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2170 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2171 | rm -f conftest* |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2172 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2173 | fi |
| 2174 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2175 | if test $ac_cv_type_off_t = no; then |
| 2176 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2177 | #define off_t long |
| 2178 | EOF |
| 2179 | |
| 2180 | fi |
| 2181 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2182 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2183 | echo "configure:2184: checking for size_t" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2184 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 2185 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2186 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2187 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2188 | #line 2189 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2189 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2190 | #include <sys/types.h> |
| 2191 | #if STDC_HEADERS |
| 2192 | #include <stdlib.h> |
| 2193 | #include <stddef.h> |
| 2194 | #endif |
| 2195 | EOF |
| 2196 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2197 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2198 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2199 | ac_cv_type_size_t=yes |
| 2200 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2201 | rm -rf conftest* |
| 2202 | ac_cv_type_size_t=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2203 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2204 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2205 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2206 | fi |
| 2207 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2208 | if test $ac_cv_type_size_t = no; then |
| 2209 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2210 | #define size_t unsigned |
| 2211 | EOF |
| 2212 | |
| 2213 | fi |
| 2214 | |
| 2215 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 2216 | # for constant arguments. Useless! |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2217 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2218 | echo "configure:2219: checking for working alloca.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2219 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 2220 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2221 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2222 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2223 | #line 2224 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2224 | #include "confdefs.h" |
| 2225 | #include <alloca.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2226 | int main() { |
| 2227 | char *p = alloca(2 * sizeof(int)); |
| 2228 | ; return 0; } |
| 2229 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2230 | if { (eval echo configure:2231: \"$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] | 2231 | rm -rf conftest* |
| 2232 | ac_cv_header_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2233 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2234 | echo "configure: failed program was:" >&5 |
| 2235 | cat conftest.$ac_ext >&5 |
| 2236 | rm -rf conftest* |
| 2237 | ac_cv_header_alloca_h=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2238 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2239 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2240 | fi |
| 2241 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2242 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 2243 | if test $ac_cv_header_alloca_h = yes; then |
| 2244 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2245 | #define HAVE_ALLOCA_H 1 |
| 2246 | EOF |
| 2247 | |
| 2248 | fi |
| 2249 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2250 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2251 | echo "configure:2252: checking for alloca" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2252 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 2253 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2254 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2255 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2256 | #line 2257 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2257 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2258 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2259 | #ifdef __GNUC__ |
| 2260 | # define alloca __builtin_alloca |
| 2261 | #else |
| 2262 | # ifdef _MSC_VER |
| 2263 | # include <malloc.h> |
| 2264 | # define alloca _alloca |
| 2265 | # else |
| 2266 | # if HAVE_ALLOCA_H |
| 2267 | # include <alloca.h> |
| 2268 | # else |
| 2269 | # ifdef _AIX |
| 2270 | #pragma alloca |
| 2271 | # else |
| 2272 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 2273 | char *alloca (); |
| 2274 | # endif |
| 2275 | # endif |
| 2276 | # endif |
| 2277 | # endif |
| 2278 | #endif |
| 2279 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2280 | int main() { |
| 2281 | char *p = (char *) alloca(1); |
| 2282 | ; return 0; } |
| 2283 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2284 | if { (eval echo configure:2285: \"$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] | 2285 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2286 | ac_cv_func_alloca_works=yes |
| 2287 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2288 | echo "configure: failed program was:" >&5 |
| 2289 | cat conftest.$ac_ext >&5 |
| 2290 | rm -rf conftest* |
| 2291 | ac_cv_func_alloca_works=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2292 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2293 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2294 | fi |
| 2295 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2296 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2297 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2298 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2299 | #define HAVE_ALLOCA 1 |
| 2300 | EOF |
| 2301 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2302 | fi |
| 2303 | |
| 2304 | if test $ac_cv_func_alloca_works = no; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2305 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2306 | # that cause trouble. Some versions do not even contain alloca or |
| 2307 | # contain a buggy version. If you still want to use their alloca, |
| 2308 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 2309 | ALLOCA=alloca.${ac_objext} |
| 2310 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2311 | #define C_ALLOCA 1 |
| 2312 | EOF |
| 2313 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2314 | |
| 2315 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2316 | echo "configure:2317: checking whether alloca needs Cray hooks" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2317 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 2318 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2319 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2320 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2321 | #line 2322 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2322 | #include "confdefs.h" |
| 2323 | #if defined(CRAY) && ! defined(CRAY2) |
| 2324 | webecray |
| 2325 | #else |
| 2326 | wenotbecray |
| 2327 | #endif |
| 2328 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2329 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2330 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2331 | egrep "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2332 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2333 | ac_cv_os_cray=yes |
| 2334 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2335 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2336 | ac_cv_os_cray=no |
| 2337 | fi |
| 2338 | rm -f conftest* |
| 2339 | |
| 2340 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2341 | |
| 2342 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2343 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2344 | for ac_func in _getb67 GETB67 getb67; do |
| 2345 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2346 | echo "configure:2347: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2347 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2348 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2349 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2350 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2351 | #line 2352 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2352 | #include "confdefs.h" |
| 2353 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2354 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2355 | #include <assert.h> |
| 2356 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2357 | /* 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] | 2358 | builtin and then its argument prototype would still apply. */ |
| 2359 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2360 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2361 | int main() { |
| 2362 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2363 | /* The GNU C library defines this for functions which it implements |
| 2364 | to always fail with ENOSYS. Some functions are actually named |
| 2365 | something starting with __ and the normal name is an alias. */ |
| 2366 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2367 | choke me |
| 2368 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2369 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2370 | #endif |
| 2371 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2372 | ; return 0; } |
| 2373 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2374 | if { (eval echo configure:2375: \"$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] | 2375 | rm -rf conftest* |
| 2376 | eval "ac_cv_func_$ac_func=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2377 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2378 | echo "configure: failed program was:" >&5 |
| 2379 | cat conftest.$ac_ext >&5 |
| 2380 | rm -rf conftest* |
| 2381 | eval "ac_cv_func_$ac_func=no" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2382 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2383 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2384 | fi |
| 2385 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2386 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2387 | echo "$ac_t""yes" 1>&6 |
| 2388 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2389 | #define CRAY_STACKSEG_END $ac_func |
| 2390 | EOF |
| 2391 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2392 | break |
| 2393 | else |
| 2394 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2395 | fi |
| 2396 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2397 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2398 | fi |
| 2399 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2400 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2401 | echo "configure:2402: checking stack direction for C alloca" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2402 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 2403 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2404 | else |
| 2405 | if test "$cross_compiling" = yes; then |
| 2406 | ac_cv_c_stack_direction=0 |
| 2407 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2408 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2409 | #line 2410 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2410 | #include "confdefs.h" |
| 2411 | find_stack_direction () |
| 2412 | { |
| 2413 | static char *addr = 0; |
| 2414 | auto char dummy; |
| 2415 | if (addr == 0) |
| 2416 | { |
| 2417 | addr = &dummy; |
| 2418 | return find_stack_direction (); |
| 2419 | } |
| 2420 | else |
| 2421 | return (&dummy > addr) ? 1 : -1; |
| 2422 | } |
| 2423 | main () |
| 2424 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2425 | exit (find_stack_direction() < 0); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2426 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2427 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2428 | if { (eval echo configure:2429: \"$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] | 2429 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2430 | ac_cv_c_stack_direction=1 |
| 2431 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2432 | echo "configure: failed program was:" >&5 |
| 2433 | cat conftest.$ac_ext >&5 |
| 2434 | rm -fr conftest* |
| 2435 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2436 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2437 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2438 | fi |
| 2439 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2440 | fi |
| 2441 | |
| 2442 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 2443 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2444 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 2445 | EOF |
| 2446 | |
| 2447 | fi |
| 2448 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2449 | for ac_hdr in unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2450 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2451 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2452 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2453 | echo "configure:2454: checking for $ac_hdr" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2454 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2457 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2458 | #line 2459 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2459 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2460 | #include <$ac_hdr> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2461 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2462 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2463 | { (eval echo configure:2464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2464 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2465 | if test -z "$ac_err"; then |
| 2466 | rm -rf conftest* |
| 2467 | eval "ac_cv_header_$ac_safe=yes" |
| 2468 | else |
| 2469 | echo "$ac_err" >&5 |
| 2470 | echo "configure: failed program was:" >&5 |
| 2471 | cat conftest.$ac_ext >&5 |
| 2472 | rm -rf conftest* |
| 2473 | eval "ac_cv_header_$ac_safe=no" |
| 2474 | fi |
| 2475 | rm -f conftest* |
| 2476 | fi |
| 2477 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2478 | echo "$ac_t""yes" 1>&6 |
| 2479 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2480 | cat >> confdefs.h <<EOF |
| 2481 | #define $ac_tr_hdr 1 |
| 2482 | EOF |
| 2483 | |
| 2484 | else |
| 2485 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2486 | fi |
| 2487 | done |
| 2488 | |
| 2489 | for ac_func in getpagesize |
| 2490 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2491 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2492 | echo "configure:2493: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2493 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2494 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2495 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2496 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2497 | #line 2498 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2498 | #include "confdefs.h" |
| 2499 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2500 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2501 | #include <assert.h> |
| 2502 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2503 | /* 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] | 2504 | builtin and then its argument prototype would still apply. */ |
| 2505 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2506 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2507 | int main() { |
| 2508 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2509 | /* The GNU C library defines this for functions which it implements |
| 2510 | to always fail with ENOSYS. Some functions are actually named |
| 2511 | something starting with __ and the normal name is an alias. */ |
| 2512 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2513 | choke me |
| 2514 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2515 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2516 | #endif |
| 2517 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2518 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2519 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2520 | if { (eval echo configure:2521: \"$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] | 2521 | rm -rf conftest* |
| 2522 | eval "ac_cv_func_$ac_func=yes" |
| 2523 | else |
| 2524 | echo "configure: failed program was:" >&5 |
| 2525 | cat conftest.$ac_ext >&5 |
| 2526 | rm -rf conftest* |
| 2527 | eval "ac_cv_func_$ac_func=no" |
| 2528 | fi |
| 2529 | rm -f conftest* |
| 2530 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2531 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2532 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2533 | echo "$ac_t""yes" 1>&6 |
| 2534 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2535 | cat >> confdefs.h <<EOF |
| 2536 | #define $ac_tr_func 1 |
| 2537 | EOF |
| 2538 | |
| 2539 | else |
| 2540 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2541 | fi |
| 2542 | done |
| 2543 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2544 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2545 | echo "configure:2546: checking for working mmap" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2546 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
| 2547 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2548 | else |
| 2549 | if test "$cross_compiling" = yes; then |
| 2550 | ac_cv_func_mmap_fixed_mapped=no |
| 2551 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2552 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2553 | #line 2554 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2554 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2555 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2556 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 2557 | Here is a matrix of mmap possibilities: |
| 2558 | mmap private not fixed |
| 2559 | mmap private fixed at somewhere currently unmapped |
| 2560 | mmap private fixed at somewhere already mapped |
| 2561 | mmap shared not fixed |
| 2562 | mmap shared fixed at somewhere currently unmapped |
| 2563 | mmap shared fixed at somewhere already mapped |
| 2564 | For private mappings, we should verify that changes cannot be read() |
| 2565 | back from the file, nor mmap's back from the file at a different |
| 2566 | address. (There have been systems where private was not correctly |
| 2567 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2568 | VM page cache was not coherent with the filesystem buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2569 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 2570 | For shared mappings, we should conversely verify that changes get |
| 2571 | propogated back to all the places they're supposed to be. |
| 2572 | |
| 2573 | Grep wants private fixed already mapped. |
| 2574 | The main things grep needs to know about mmap are: |
| 2575 | * does it exist and is it safe to write into the mmap'd area |
| 2576 | * how to use it (BSD variants) */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2577 | #include <sys/types.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2578 | #include <fcntl.h> |
| 2579 | #include <sys/mman.h> |
| 2580 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2581 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2582 | #ifndef HAVE_GETPAGESIZE |
| 2583 | # ifdef HAVE_UNISTD_H |
| 2584 | # include <unistd.h> |
| 2585 | # endif |
| 2586 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2587 | /* 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] | 2588 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2589 | # define HAVE_SYS_PARAM_H 1 |
| 2590 | # endif |
| 2591 | |
| 2592 | # ifdef _SC_PAGESIZE |
| 2593 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 2594 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2595 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2596 | # include <sys/param.h> |
| 2597 | # ifdef EXEC_PAGESIZE |
| 2598 | # define getpagesize() EXEC_PAGESIZE |
| 2599 | # else /* no EXEC_PAGESIZE */ |
| 2600 | # ifdef NBPG |
| 2601 | # define getpagesize() NBPG * CLSIZE |
| 2602 | # ifndef CLSIZE |
| 2603 | # define CLSIZE 1 |
| 2604 | # endif /* no CLSIZE */ |
| 2605 | # else /* no NBPG */ |
| 2606 | # ifdef NBPC |
| 2607 | # define getpagesize() NBPC |
| 2608 | # else /* no NBPC */ |
| 2609 | # ifdef PAGESIZE |
| 2610 | # define getpagesize() PAGESIZE |
| 2611 | # endif /* PAGESIZE */ |
| 2612 | # endif /* no NBPC */ |
| 2613 | # endif /* no NBPG */ |
| 2614 | # endif /* no EXEC_PAGESIZE */ |
| 2615 | # else /* no HAVE_SYS_PARAM_H */ |
| 2616 | # define getpagesize() 8192 /* punt totally */ |
| 2617 | # endif /* no HAVE_SYS_PARAM_H */ |
| 2618 | # endif /* no _SC_PAGESIZE */ |
| 2619 | |
| 2620 | #endif /* no HAVE_GETPAGESIZE */ |
| 2621 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2622 | #ifdef __cplusplus |
| 2623 | extern "C" { void *malloc(unsigned); } |
| 2624 | #else |
| 2625 | char *malloc(); |
| 2626 | #endif |
| 2627 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2628 | int |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2629 | main() |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2630 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2631 | char *data, *data2, *data3; |
| 2632 | int i, pagesize; |
| 2633 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2634 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2635 | pagesize = getpagesize(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2636 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2637 | /* |
| 2638 | * First, make a file with some known garbage in it. |
| 2639 | */ |
| 2640 | data = malloc(pagesize); |
| 2641 | if (!data) |
| 2642 | exit(1); |
| 2643 | for (i = 0; i < pagesize; ++i) |
| 2644 | *(data + i) = rand(); |
| 2645 | umask(0); |
| 2646 | fd = creat("conftestmmap", 0600); |
| 2647 | if (fd < 0) |
| 2648 | exit(1); |
| 2649 | if (write(fd, data, pagesize) != pagesize) |
| 2650 | exit(1); |
| 2651 | close(fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2652 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2653 | /* |
| 2654 | * Next, try to mmap the file at a fixed address which |
| 2655 | * already has something else allocated at it. If we can, |
| 2656 | * also make sure that we see the same garbage. |
| 2657 | */ |
| 2658 | fd = open("conftestmmap", O_RDWR); |
| 2659 | if (fd < 0) |
| 2660 | exit(1); |
| 2661 | data2 = malloc(2 * pagesize); |
| 2662 | if (!data2) |
| 2663 | exit(1); |
| 2664 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 2665 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
| 2666 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 2667 | exit(1); |
| 2668 | for (i = 0; i < pagesize; ++i) |
| 2669 | if (*(data + i) != *(data2 + i)) |
| 2670 | exit(1); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2671 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2672 | /* |
| 2673 | * Finally, make sure that changes to the mapped area |
| 2674 | * do not percolate back to the file as seen by read(). |
| 2675 | * (This is a bug on some variants of i386 svr4.0.) |
| 2676 | */ |
| 2677 | for (i = 0; i < pagesize; ++i) |
| 2678 | *(data2 + i) = *(data2 + i) + 1; |
| 2679 | data3 = malloc(pagesize); |
| 2680 | if (!data3) |
| 2681 | exit(1); |
| 2682 | if (read(fd, data3, pagesize) != pagesize) |
| 2683 | exit(1); |
| 2684 | for (i = 0; i < pagesize; ++i) |
| 2685 | if (*(data + i) != *(data3 + i)) |
| 2686 | exit(1); |
| 2687 | close(fd); |
| 2688 | unlink("conftestmmap"); |
| 2689 | exit(0); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2690 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2691 | |
| 2692 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2693 | if { (eval echo configure:2694: \"$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] | 2694 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2695 | ac_cv_func_mmap_fixed_mapped=yes |
| 2696 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2697 | echo "configure: failed program was:" >&5 |
| 2698 | cat conftest.$ac_ext >&5 |
| 2699 | rm -fr conftest* |
| 2700 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2701 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2702 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2703 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2704 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2705 | fi |
| 2706 | |
| 2707 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
| 2708 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 2709 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2710 | #define HAVE_MMAP 1 |
| 2711 | EOF |
| 2712 | |
| 2713 | fi |
| 2714 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2715 | |
| 2716 | echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2717 | echo "configure:2718: 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] | 2718 | if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then |
| 2719 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2720 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2721 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2722 | #line 2723 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2723 | #include "confdefs.h" |
| 2724 | |
| 2725 | #include <features.h> |
| 2726 | #ifdef __GNU_LIBRARY__ |
| 2727 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 2728 | Lucky GNU user |
| 2729 | #endif |
| 2730 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2731 | |
| 2732 | EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2734 | egrep "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2735 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2736 | ac_cv_gnu_library_2_1=yes |
| 2737 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2738 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2739 | ac_cv_gnu_library_2_1=no |
| 2740 | fi |
| 2741 | rm -f conftest* |
| 2742 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2743 | |
| 2744 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2745 | fi |
| 2746 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2747 | echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6 |
| 2748 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2749 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2750 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2751 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2752 | |
| 2753 | |
| 2754 | echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2755 | echo "configure:2756: checking whether integer division by zero raises SIGFPE" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2756 | if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then |
| 2757 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2758 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2759 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2760 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2761 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2762 | # Guess based on the CPU. |
| 2763 | case "$host_cpu" in |
| 2764 | alpha* | i3456786 | m68k | s390*) |
| 2765 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 2766 | *) |
| 2767 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 2768 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2769 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2770 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2771 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2772 | #line 2773 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2773 | #include "confdefs.h" |
| 2774 | |
| 2775 | #include <stdlib.h> |
| 2776 | #include <signal.h> |
| 2777 | |
| 2778 | static void |
| 2779 | #ifdef __cplusplus |
| 2780 | sigfpe_handler (int sig) |
| 2781 | #else |
| 2782 | sigfpe_handler (sig) int sig; |
| 2783 | #endif |
| 2784 | { |
| 2785 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 2786 | exit (sig != SIGFPE); |
| 2787 | } |
| 2788 | |
| 2789 | int x = 1; |
| 2790 | int y = 0; |
| 2791 | int z; |
| 2792 | int nan; |
| 2793 | |
| 2794 | int main () |
| 2795 | { |
| 2796 | signal (SIGFPE, sigfpe_handler); |
| 2797 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 2798 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 2799 | signal (SIGTRAP, sigfpe_handler); |
| 2800 | #endif |
| 2801 | /* Linux/SPARC yields signal SIGILL. */ |
| 2802 | #if defined (__sparc__) && defined (__linux__) |
| 2803 | signal (SIGILL, sigfpe_handler); |
| 2804 | #endif |
| 2805 | |
| 2806 | z = x / y; |
| 2807 | nan = y / y; |
| 2808 | exit (1); |
| 2809 | } |
| 2810 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2811 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2812 | if { (eval echo configure:2813: \"$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] | 2813 | then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2814 | gt_cv_int_divbyzero_sigfpe=yes |
| 2815 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2816 | echo "configure: failed program was:" >&5 |
| 2817 | cat conftest.$ac_ext >&5 |
| 2818 | rm -fr conftest* |
| 2819 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2820 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2821 | rm -fr conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2822 | fi |
| 2823 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2824 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2825 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2826 | |
| 2827 | echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2828 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 2829 | *yes) value=1;; |
| 2830 | *) value=0;; |
| 2831 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2832 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2833 | #define INTDIV0_RAISES_SIGFPE $value |
| 2834 | EOF |
| 2835 | |
| 2836 | |
| 2837 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2838 | |
| 2839 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2840 | 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] | 2841 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2842 | test $ac_cv_type_unsigned_long_long = yes \ |
| 2843 | && ac_type='unsigned long long' \ |
| 2844 | || ac_type='unsigned long' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2845 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2846 | #define uintmax_t $ac_type |
| 2847 | EOF |
| 2848 | |
| 2849 | fi |
| 2850 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2851 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2852 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2853 | echo "configure:2854: checking for inttypes.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2854 | if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then |
| 2855 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2856 | else |
| 2857 | |
| 2858 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2859 | #line 2860 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2860 | #include "confdefs.h" |
| 2861 | #include <sys/types.h> |
| 2862 | #include <inttypes.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2863 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2864 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2865 | ; return 0; } |
| 2866 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2867 | if { (eval echo configure:2868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2868 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2869 | gt_cv_header_inttypes_h=yes |
| 2870 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2871 | echo "configure: failed program was:" >&5 |
| 2872 | cat conftest.$ac_ext >&5 |
| 2873 | rm -rf conftest* |
| 2874 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2875 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2876 | rm -f conftest* |
| 2877 | |
| 2878 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2879 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2880 | echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2881 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2882 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2883 | #define HAVE_INTTYPES_H 1 |
| 2884 | EOF |
| 2885 | |
| 2886 | fi |
| 2887 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2888 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2889 | |
| 2890 | if test $gt_cv_header_inttypes_h = yes; then |
| 2891 | echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2892 | echo "configure:2893: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2893 | if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then |
| 2894 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2895 | else |
| 2896 | |
| 2897 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2898 | #line 2899 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2899 | #include "confdefs.h" |
| 2900 | #include <inttypes.h> |
| 2901 | #ifdef PRId32 |
| 2902 | char *p = PRId32; |
| 2903 | #endif |
| 2904 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2905 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2906 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2907 | ; return 0; } |
| 2908 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 2909 | if { (eval echo configure:2910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2910 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2911 | gt_cv_inttypes_pri_broken=no |
| 2912 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2913 | echo "configure: failed program was:" >&5 |
| 2914 | cat conftest.$ac_ext >&5 |
| 2915 | rm -rf conftest* |
| 2916 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2917 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2918 | rm -f conftest* |
| 2919 | |
| 2920 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2921 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2922 | echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2923 | fi |
| 2924 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2925 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2926 | #define PRI_MACROS_BROKEN 1 |
| 2927 | EOF |
| 2928 | |
| 2929 | fi |
| 2930 | |
| 2931 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2932 | |
| 2933 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2934 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2935 | |
| 2936 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2937 | use_additional=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2938 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2939 | acl_save_prefix="$prefix" |
| 2940 | prefix="$acl_final_prefix" |
| 2941 | acl_save_exec_prefix="$exec_prefix" |
| 2942 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2943 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2944 | eval additional_includedir=\"$includedir\" |
| 2945 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2946 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2947 | exec_prefix="$acl_save_exec_prefix" |
| 2948 | prefix="$acl_save_prefix" |
| 2949 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2950 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2951 | if test "${with_libiconv_prefix+set}" = set; then |
| 2952 | withval="$with_libiconv_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2953 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2954 | if test "X$withval" = "Xno"; then |
| 2955 | use_additional=no |
| 2956 | else |
| 2957 | if test "X$withval" = "X"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2958 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2959 | acl_save_prefix="$prefix" |
| 2960 | prefix="$acl_final_prefix" |
| 2961 | acl_save_exec_prefix="$exec_prefix" |
| 2962 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2963 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2964 | eval additional_includedir=\"$includedir\" |
| 2965 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2966 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2967 | exec_prefix="$acl_save_exec_prefix" |
| 2968 | prefix="$acl_save_prefix" |
| 2969 | |
| 2970 | else |
| 2971 | additional_includedir="$withval/include" |
| 2972 | additional_libdir="$withval/lib" |
| 2973 | fi |
| 2974 | fi |
| 2975 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2976 | fi |
| 2977 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2978 | LIBICONV= |
| 2979 | LTLIBICONV= |
| 2980 | INCICONV= |
| 2981 | rpathdirs= |
| 2982 | ltrpathdirs= |
| 2983 | names_already_handled= |
| 2984 | names_next_round='iconv ' |
| 2985 | while test -n "$names_next_round"; do |
| 2986 | names_this_round="$names_next_round" |
| 2987 | names_next_round= |
| 2988 | for name in $names_this_round; do |
| 2989 | already_handled= |
| 2990 | for n in $names_already_handled; do |
| 2991 | if test "$n" = "$name"; then |
| 2992 | already_handled=yes |
| 2993 | break |
| 2994 | fi |
| 2995 | done |
| 2996 | if test -z "$already_handled"; then |
| 2997 | names_already_handled="$names_already_handled $name" |
| 2998 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 2999 | eval value=\"\$HAVE_LIB$uppername\" |
| 3000 | if test -n "$value"; then |
| 3001 | if test "$value" = yes; then |
| 3002 | eval value=\"\$LIB$uppername\" |
| 3003 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 3004 | eval value=\"\$LTLIB$uppername\" |
| 3005 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 3006 | else |
| 3007 | : |
| 3008 | fi |
| 3009 | else |
| 3010 | found_dir= |
| 3011 | found_la= |
| 3012 | found_so= |
| 3013 | found_a= |
| 3014 | if test $use_additional = yes; then |
| 3015 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 3016 | found_dir="$additional_libdir" |
| 3017 | found_so="$additional_libdir/lib$name.$shlibext" |
| 3018 | if test -f "$additional_libdir/lib$name.la"; then |
| 3019 | found_la="$additional_libdir/lib$name.la" |
| 3020 | fi |
| 3021 | else |
| 3022 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 3023 | found_dir="$additional_libdir" |
| 3024 | found_a="$additional_libdir/lib$name.$libext" |
| 3025 | if test -f "$additional_libdir/lib$name.la"; then |
| 3026 | found_la="$additional_libdir/lib$name.la" |
| 3027 | fi |
| 3028 | fi |
| 3029 | fi |
| 3030 | fi |
| 3031 | if test "X$found_dir" = "X"; then |
| 3032 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3033 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3034 | acl_save_prefix="$prefix" |
| 3035 | prefix="$acl_final_prefix" |
| 3036 | acl_save_exec_prefix="$exec_prefix" |
| 3037 | exec_prefix="$acl_final_exec_prefix" |
| 3038 | eval x=\"$x\" |
| 3039 | exec_prefix="$acl_save_exec_prefix" |
| 3040 | prefix="$acl_save_prefix" |
| 3041 | |
| 3042 | case "$x" in |
| 3043 | -L*) |
| 3044 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 3045 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 3046 | found_dir="$dir" |
| 3047 | found_so="$dir/lib$name.$shlibext" |
| 3048 | if test -f "$dir/lib$name.la"; then |
| 3049 | found_la="$dir/lib$name.la" |
| 3050 | fi |
| 3051 | else |
| 3052 | if test -f "$dir/lib$name.$libext"; then |
| 3053 | found_dir="$dir" |
| 3054 | found_a="$dir/lib$name.$libext" |
| 3055 | if test -f "$dir/lib$name.la"; then |
| 3056 | found_la="$dir/lib$name.la" |
| 3057 | fi |
| 3058 | fi |
| 3059 | fi |
| 3060 | ;; |
| 3061 | esac |
| 3062 | if test "X$found_dir" != "X"; then |
| 3063 | break |
| 3064 | fi |
| 3065 | done |
| 3066 | fi |
| 3067 | if test "X$found_dir" != "X"; then |
| 3068 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 3069 | if test "X$found_so" != "X"; then |
| 3070 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 3071 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3072 | else |
| 3073 | haveit= |
| 3074 | for x in $ltrpathdirs; do |
| 3075 | if test "X$x" = "X$found_dir"; then |
| 3076 | haveit=yes |
| 3077 | break |
| 3078 | fi |
| 3079 | done |
| 3080 | if test -z "$haveit"; then |
| 3081 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 3082 | fi |
| 3083 | if test "$hardcode_direct" = yes; then |
| 3084 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3085 | else |
| 3086 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 3087 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3088 | haveit= |
| 3089 | for x in $rpathdirs; do |
| 3090 | if test "X$x" = "X$found_dir"; then |
| 3091 | haveit=yes |
| 3092 | break |
| 3093 | fi |
| 3094 | done |
| 3095 | if test -z "$haveit"; then |
| 3096 | rpathdirs="$rpathdirs $found_dir" |
| 3097 | fi |
| 3098 | else |
| 3099 | haveit= |
| 3100 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3101 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3102 | acl_save_prefix="$prefix" |
| 3103 | prefix="$acl_final_prefix" |
| 3104 | acl_save_exec_prefix="$exec_prefix" |
| 3105 | exec_prefix="$acl_final_exec_prefix" |
| 3106 | eval x=\"$x\" |
| 3107 | exec_prefix="$acl_save_exec_prefix" |
| 3108 | prefix="$acl_save_prefix" |
| 3109 | |
| 3110 | if test "X$x" = "X-L$found_dir"; then |
| 3111 | haveit=yes |
| 3112 | break |
| 3113 | fi |
| 3114 | done |
| 3115 | if test -z "$haveit"; then |
| 3116 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 3117 | fi |
| 3118 | if test "$hardcode_minus_L" != no; then |
| 3119 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3120 | else |
| 3121 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 3122 | fi |
| 3123 | fi |
| 3124 | fi |
| 3125 | fi |
| 3126 | else |
| 3127 | if test "X$found_a" != "X"; then |
| 3128 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 3129 | else |
| 3130 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 3131 | fi |
| 3132 | fi |
| 3133 | additional_includedir= |
| 3134 | case "$found_dir" in |
| 3135 | */lib | */lib/) |
| 3136 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 3137 | additional_includedir="$basedir/include" |
| 3138 | ;; |
| 3139 | esac |
| 3140 | if test "X$additional_includedir" != "X"; then |
| 3141 | if test "X$additional_includedir" != "X/usr/include"; then |
| 3142 | haveit= |
| 3143 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 3144 | if test -n "$GCC"; then |
| 3145 | case $host_os in |
| 3146 | linux*) haveit=yes;; |
| 3147 | esac |
| 3148 | fi |
| 3149 | fi |
| 3150 | if test -z "$haveit"; then |
| 3151 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3152 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3153 | acl_save_prefix="$prefix" |
| 3154 | prefix="$acl_final_prefix" |
| 3155 | acl_save_exec_prefix="$exec_prefix" |
| 3156 | exec_prefix="$acl_final_exec_prefix" |
| 3157 | eval x=\"$x\" |
| 3158 | exec_prefix="$acl_save_exec_prefix" |
| 3159 | prefix="$acl_save_prefix" |
| 3160 | |
| 3161 | if test "X$x" = "X-I$additional_includedir"; then |
| 3162 | haveit=yes |
| 3163 | break |
| 3164 | fi |
| 3165 | done |
| 3166 | if test -z "$haveit"; then |
| 3167 | if test -d "$additional_includedir"; then |
| 3168 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 3169 | fi |
| 3170 | fi |
| 3171 | fi |
| 3172 | fi |
| 3173 | fi |
| 3174 | if test -n "$found_la"; then |
| 3175 | save_libdir="$libdir" |
| 3176 | case "$found_la" in |
| 3177 | */* | *\\*) . "$found_la" ;; |
| 3178 | *) . "./$found_la" ;; |
| 3179 | esac |
| 3180 | libdir="$save_libdir" |
| 3181 | for dep in $dependency_libs; do |
| 3182 | case "$dep" in |
| 3183 | -L*) |
| 3184 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 3185 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 3186 | haveit= |
| 3187 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 3188 | if test -n "$GCC"; then |
| 3189 | case $host_os in |
| 3190 | linux*) haveit=yes;; |
| 3191 | esac |
| 3192 | fi |
| 3193 | fi |
| 3194 | if test -z "$haveit"; then |
| 3195 | haveit= |
| 3196 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3197 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3198 | acl_save_prefix="$prefix" |
| 3199 | prefix="$acl_final_prefix" |
| 3200 | acl_save_exec_prefix="$exec_prefix" |
| 3201 | exec_prefix="$acl_final_exec_prefix" |
| 3202 | eval x=\"$x\" |
| 3203 | exec_prefix="$acl_save_exec_prefix" |
| 3204 | prefix="$acl_save_prefix" |
| 3205 | |
| 3206 | if test "X$x" = "X-L$additional_libdir"; then |
| 3207 | haveit=yes |
| 3208 | break |
| 3209 | fi |
| 3210 | done |
| 3211 | if test -z "$haveit"; then |
| 3212 | if test -d "$additional_libdir"; then |
| 3213 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 3214 | fi |
| 3215 | fi |
| 3216 | haveit= |
| 3217 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3218 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3219 | acl_save_prefix="$prefix" |
| 3220 | prefix="$acl_final_prefix" |
| 3221 | acl_save_exec_prefix="$exec_prefix" |
| 3222 | exec_prefix="$acl_final_exec_prefix" |
| 3223 | eval x=\"$x\" |
| 3224 | exec_prefix="$acl_save_exec_prefix" |
| 3225 | prefix="$acl_save_prefix" |
| 3226 | |
| 3227 | if test "X$x" = "X-L$additional_libdir"; then |
| 3228 | haveit=yes |
| 3229 | break |
| 3230 | fi |
| 3231 | done |
| 3232 | if test -z "$haveit"; then |
| 3233 | if test -d "$additional_libdir"; then |
| 3234 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 3235 | fi |
| 3236 | fi |
| 3237 | fi |
| 3238 | fi |
| 3239 | ;; |
| 3240 | -R*) |
| 3241 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 3242 | if test "$enable_rpath" != no; then |
| 3243 | haveit= |
| 3244 | for x in $rpathdirs; do |
| 3245 | if test "X$x" = "X$dir"; then |
| 3246 | haveit=yes |
| 3247 | break |
| 3248 | fi |
| 3249 | done |
| 3250 | if test -z "$haveit"; then |
| 3251 | rpathdirs="$rpathdirs $dir" |
| 3252 | fi |
| 3253 | haveit= |
| 3254 | for x in $ltrpathdirs; do |
| 3255 | if test "X$x" = "X$dir"; then |
| 3256 | haveit=yes |
| 3257 | break |
| 3258 | fi |
| 3259 | done |
| 3260 | if test -z "$haveit"; then |
| 3261 | ltrpathdirs="$ltrpathdirs $dir" |
| 3262 | fi |
| 3263 | fi |
| 3264 | ;; |
| 3265 | -l*) |
| 3266 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 3267 | ;; |
| 3268 | *.la) |
| 3269 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 3270 | ;; |
| 3271 | *) |
| 3272 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 3273 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 3274 | ;; |
| 3275 | esac |
| 3276 | done |
| 3277 | fi |
| 3278 | else |
| 3279 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 3280 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 3281 | fi |
| 3282 | fi |
| 3283 | fi |
| 3284 | done |
| 3285 | done |
| 3286 | if test "X$rpathdirs" != "X"; then |
| 3287 | if test -n "$hardcode_libdir_separator"; then |
| 3288 | alldirs= |
| 3289 | for found_dir in $rpathdirs; do |
| 3290 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 3291 | done |
| 3292 | acl_save_libdir="$libdir" |
| 3293 | libdir="$alldirs" |
| 3294 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 3295 | libdir="$acl_save_libdir" |
| 3296 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 3297 | else |
| 3298 | for found_dir in $rpathdirs; do |
| 3299 | acl_save_libdir="$libdir" |
| 3300 | libdir="$found_dir" |
| 3301 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 3302 | libdir="$acl_save_libdir" |
| 3303 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 3304 | done |
| 3305 | fi |
| 3306 | fi |
| 3307 | if test "X$ltrpathdirs" != "X"; then |
| 3308 | for found_dir in $ltrpathdirs; do |
| 3309 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 3310 | done |
| 3311 | fi |
| 3312 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3313 | |
| 3314 | |
| 3315 | |
| 3316 | |
| 3317 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 3318 | set dummy msgfmt; ac_word=$2 |
| 3319 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3320 | echo "configure:3321: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3321 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 3322 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3323 | else |
| 3324 | case "$MSGFMT" in |
| 3325 | /*) |
| 3326 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 3327 | ;; |
| 3328 | *) |
| 3329 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3330 | for ac_dir in $PATH; do |
| 3331 | test -z "$ac_dir" && ac_dir=. |
| 3332 | if test -f $ac_dir/$ac_word; then |
| 3333 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 3334 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3335 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 3336 | break |
| 3337 | fi |
| 3338 | fi |
| 3339 | done |
| 3340 | IFS="$ac_save_ifs" |
| 3341 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 3342 | ;; |
| 3343 | esac |
| 3344 | fi |
| 3345 | MSGFMT="$ac_cv_path_MSGFMT" |
| 3346 | if test "$MSGFMT" != ":"; then |
| 3347 | echo "$ac_t""$MSGFMT" 1>&6 |
| 3348 | else |
| 3349 | echo "$ac_t""no" 1>&6 |
| 3350 | fi |
| 3351 | |
| 3352 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 3353 | set dummy gmsgfmt; ac_word=$2 |
| 3354 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3355 | echo "configure:3356: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3356 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 3357 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3358 | else |
| 3359 | case "$GMSGFMT" in |
| 3360 | /*) |
| 3361 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 3362 | ;; |
| 3363 | ?:/*) |
| 3364 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 3365 | ;; |
| 3366 | *) |
| 3367 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3368 | ac_dummy="$PATH" |
| 3369 | for ac_dir in $ac_dummy; do |
| 3370 | test -z "$ac_dir" && ac_dir=. |
| 3371 | if test -f $ac_dir/$ac_word; then |
| 3372 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 3373 | break |
| 3374 | fi |
| 3375 | done |
| 3376 | IFS="$ac_save_ifs" |
| 3377 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 3378 | ;; |
| 3379 | esac |
| 3380 | fi |
| 3381 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 3382 | if test -n "$GMSGFMT"; then |
| 3383 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 3384 | else |
| 3385 | echo "$ac_t""no" 1>&6 |
| 3386 | fi |
| 3387 | |
| 3388 | |
| 3389 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 3390 | set dummy xgettext; ac_word=$2 |
| 3391 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3392 | echo "configure:3393: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3393 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 3394 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3395 | else |
| 3396 | case "$XGETTEXT" in |
| 3397 | /*) |
| 3398 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 3399 | ;; |
| 3400 | *) |
| 3401 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3402 | for ac_dir in $PATH; do |
| 3403 | test -z "$ac_dir" && ac_dir=. |
| 3404 | if test -f $ac_dir/$ac_word; then |
| 3405 | if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 3406 | (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 |
| 3407 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 3408 | break |
| 3409 | fi |
| 3410 | fi |
| 3411 | done |
| 3412 | IFS="$ac_save_ifs" |
| 3413 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 3414 | ;; |
| 3415 | esac |
| 3416 | fi |
| 3417 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 3418 | if test "$XGETTEXT" != ":"; then |
| 3419 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 3420 | else |
| 3421 | echo "$ac_t""no" 1>&6 |
| 3422 | fi |
| 3423 | |
| 3424 | rm -f messages.po |
| 3425 | |
| 3426 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 3427 | set dummy msgmerge; ac_word=$2 |
| 3428 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3429 | echo "configure:3430: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3430 | if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then |
| 3431 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3432 | else |
| 3433 | case "$MSGMERGE" in |
| 3434 | /*) |
| 3435 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 3436 | ;; |
| 3437 | *) |
| 3438 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3439 | for ac_dir in $PATH; do |
| 3440 | test -z "$ac_dir" && ac_dir=. |
| 3441 | if test -f $ac_dir/$ac_word; then |
| 3442 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 3443 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word" |
| 3444 | break |
| 3445 | fi |
| 3446 | fi |
| 3447 | done |
| 3448 | IFS="$ac_save_ifs" |
| 3449 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 3450 | ;; |
| 3451 | esac |
| 3452 | fi |
| 3453 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 3454 | if test "$MSGMERGE" != ":"; then |
| 3455 | echo "$ac_t""$MSGMERGE" 1>&6 |
| 3456 | else |
| 3457 | echo "$ac_t""no" 1>&6 |
| 3458 | fi |
| 3459 | |
| 3460 | |
| 3461 | if test "$GMSGFMT" != ":"; then |
| 3462 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 3463 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3464 | : ; |
| 3465 | else |
| 3466 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 3467 | echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6 |
| 3468 | GMSGFMT=":" |
| 3469 | fi |
| 3470 | fi |
| 3471 | |
| 3472 | if test "$XGETTEXT" != ":"; then |
| 3473 | if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 3474 | (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3475 | : ; |
| 3476 | else |
| 3477 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 |
| 3478 | XGETTEXT=":" |
| 3479 | fi |
| 3480 | rm -f messages.po |
| 3481 | fi |
| 3482 | |
| 3483 | |
| 3484 | |
| 3485 | |
| 3486 | |
| 3487 | 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] | 3488 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3489 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3490 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3491 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3492 | echo "configure:3493: checking for $ac_hdr" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3493 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3494 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3495 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3496 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3497 | #line 3498 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3498 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3499 | #include <$ac_hdr> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3500 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3501 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3502 | { (eval echo configure:3503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3503 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3504 | if test -z "$ac_err"; then |
| 3505 | rm -rf conftest* |
| 3506 | eval "ac_cv_header_$ac_safe=yes" |
| 3507 | else |
| 3508 | echo "$ac_err" >&5 |
| 3509 | echo "configure: failed program was:" >&5 |
| 3510 | cat conftest.$ac_ext >&5 |
| 3511 | rm -rf conftest* |
| 3512 | eval "ac_cv_header_$ac_safe=no" |
| 3513 | fi |
| 3514 | rm -f conftest* |
| 3515 | fi |
| 3516 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3517 | echo "$ac_t""yes" 1>&6 |
| 3518 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3519 | cat >> confdefs.h <<EOF |
| 3520 | #define $ac_tr_hdr 1 |
| 3521 | EOF |
| 3522 | |
| 3523 | else |
| 3524 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3525 | fi |
| 3526 | done |
| 3527 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3528 | 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] | 3529 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ |
| 3530 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3531 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3532 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3533 | echo "configure:3534: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3534 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3535 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3536 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3537 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3538 | #line 3539 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3539 | #include "confdefs.h" |
| 3540 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3541 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3542 | #include <assert.h> |
| 3543 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3544 | /* 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] | 3545 | builtin and then its argument prototype would still apply. */ |
| 3546 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3547 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3548 | int main() { |
| 3549 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3550 | /* The GNU C library defines this for functions which it implements |
| 3551 | to always fail with ENOSYS. Some functions are actually named |
| 3552 | something starting with __ and the normal name is an alias. */ |
| 3553 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3554 | choke me |
| 3555 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3556 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3557 | #endif |
| 3558 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3559 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3560 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3561 | if { (eval echo configure:3562: \"$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] | 3562 | rm -rf conftest* |
| 3563 | eval "ac_cv_func_$ac_func=yes" |
| 3564 | else |
| 3565 | echo "configure: failed program was:" >&5 |
| 3566 | cat conftest.$ac_ext >&5 |
| 3567 | rm -rf conftest* |
| 3568 | eval "ac_cv_func_$ac_func=no" |
| 3569 | fi |
| 3570 | rm -f conftest* |
| 3571 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3572 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3573 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3574 | echo "$ac_t""yes" 1>&6 |
| 3575 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3576 | cat >> confdefs.h <<EOF |
| 3577 | #define $ac_tr_func 1 |
| 3578 | EOF |
| 3579 | |
| 3580 | else |
| 3581 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3582 | fi |
| 3583 | done |
| 3584 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3585 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3586 | |
| 3587 | |
| 3588 | |
| 3589 | |
| 3590 | |
| 3591 | am_save_CPPFLAGS="$CPPFLAGS" |
| 3592 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3593 | for element in $INCICONV; do |
| 3594 | haveit= |
| 3595 | for x in $CPPFLAGS; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3596 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3597 | acl_save_prefix="$prefix" |
| 3598 | prefix="$acl_final_prefix" |
| 3599 | acl_save_exec_prefix="$exec_prefix" |
| 3600 | exec_prefix="$acl_final_exec_prefix" |
| 3601 | eval x=\"$x\" |
| 3602 | exec_prefix="$acl_save_exec_prefix" |
| 3603 | prefix="$acl_save_prefix" |
| 3604 | |
| 3605 | if test "X$x" = "X$element"; then |
| 3606 | haveit=yes |
| 3607 | break |
| 3608 | fi |
| 3609 | done |
| 3610 | if test -z "$haveit"; then |
| 3611 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 3612 | fi |
| 3613 | done |
| 3614 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3615 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3616 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3617 | echo "configure:3618: checking for iconv" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3618 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
| 3619 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3620 | else |
| 3621 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3622 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 3623 | am_cv_lib_iconv=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3624 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3625 | #line 3626 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3626 | #include "confdefs.h" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3627 | #include <stdlib.h> |
| 3628 | #include <iconv.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3629 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3630 | iconv_t cd = iconv_open("",""); |
| 3631 | iconv(cd,NULL,NULL,NULL,NULL); |
| 3632 | iconv_close(cd); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3633 | ; return 0; } |
| 3634 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3635 | if { (eval echo configure:3636: \"$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] | 3636 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3637 | am_cv_func_iconv=yes |
| 3638 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3639 | echo "configure: failed program was:" >&5 |
| 3640 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3641 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3642 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3643 | if test "$am_cv_func_iconv" != yes; then |
| 3644 | am_save_LIBS="$LIBS" |
| 3645 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3646 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3647 | #line 3648 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3648 | #include "confdefs.h" |
| 3649 | #include <stdlib.h> |
| 3650 | #include <iconv.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3651 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3652 | iconv_t cd = iconv_open("",""); |
| 3653 | iconv(cd,NULL,NULL,NULL,NULL); |
| 3654 | iconv_close(cd); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3655 | ; return 0; } |
| 3656 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3657 | if { (eval echo configure:3658: \"$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] | 3658 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3659 | am_cv_lib_iconv=yes |
| 3660 | am_cv_func_iconv=yes |
| 3661 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3662 | echo "configure: failed program was:" >&5 |
| 3663 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3664 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3665 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3666 | LIBS="$am_save_LIBS" |
| 3667 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3668 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3669 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3670 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3671 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
| 3672 | if test "$am_cv_func_iconv" = yes; then |
| 3673 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3674 | #define HAVE_ICONV 1 |
| 3675 | EOF |
| 3676 | |
| 3677 | fi |
| 3678 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3679 | echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3680 | echo "configure:3681: checking how to link with libiconv" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3681 | echo "$ac_t""$LIBICONV" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3682 | else |
| 3683 | CPPFLAGS="$am_save_CPPFLAGS" |
| 3684 | LIBICONV= |
| 3685 | LTLIBICONV= |
| 3686 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3687 | |
| 3688 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3689 | |
| 3690 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3691 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3692 | echo "configure:3693: checking for iconv declaration" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3693 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then |
| 3694 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3695 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3696 | |
| 3697 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3698 | #line 3699 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3699 | #include "confdefs.h" |
| 3700 | |
| 3701 | #include <stdlib.h> |
| 3702 | #include <iconv.h> |
| 3703 | extern |
| 3704 | #ifdef __cplusplus |
| 3705 | "C" |
| 3706 | #endif |
| 3707 | #if defined(__STDC__) || defined(__cplusplus) |
| 3708 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 3709 | #else |
| 3710 | size_t iconv(); |
| 3711 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3712 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3713 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3714 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3715 | ; return 0; } |
| 3716 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3717 | if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3718 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3719 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3720 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3721 | echo "configure: failed program was:" >&5 |
| 3722 | cat conftest.$ac_ext >&5 |
| 3723 | rm -rf conftest* |
| 3724 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3725 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3726 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3727 | 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] | 3728 | fi |
| 3729 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3730 | 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] | 3731 | echo "$ac_t""${ac_t:- |
| 3732 | }$am_cv_proto_iconv" 1>&6 |
| 3733 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3734 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3735 | EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3736 | |
| 3737 | fi |
| 3738 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3739 | |
| 3740 | echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3741 | echo "configure:3742: checking for nl_langinfo and CODESET" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3742 | if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then |
| 3743 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3744 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3745 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3746 | #line 3747 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3747 | #include "confdefs.h" |
| 3748 | #include <langinfo.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3749 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3750 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3751 | ; return 0; } |
| 3752 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3753 | if { (eval echo configure:3754: \"$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] | 3754 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3755 | am_cv_langinfo_codeset=yes |
| 3756 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3757 | echo "configure: failed program was:" >&5 |
| 3758 | cat conftest.$ac_ext >&5 |
| 3759 | rm -rf conftest* |
| 3760 | am_cv_langinfo_codeset=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3761 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3762 | rm -f conftest* |
| 3763 | |
| 3764 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3765 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3766 | echo "$ac_t""$am_cv_langinfo_codeset" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3767 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3768 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3769 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3770 | EOF |
| 3771 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3772 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3773 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3774 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3775 | |
| 3776 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3777 | echo "configure:3778: checking for LC_MESSAGES" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3778 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
| 3779 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3780 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3781 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3782 | #line 3783 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3783 | #include "confdefs.h" |
| 3784 | #include <locale.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3785 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3786 | return LC_MESSAGES |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3787 | ; return 0; } |
| 3788 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3789 | if { (eval echo configure:3790: \"$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] | 3790 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3791 | am_cv_val_LC_MESSAGES=yes |
| 3792 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3793 | echo "configure: failed program was:" >&5 |
| 3794 | cat conftest.$ac_ext >&5 |
| 3795 | rm -rf conftest* |
| 3796 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3797 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3798 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3799 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3800 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3801 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
| 3802 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 3803 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3804 | #define HAVE_LC_MESSAGES 1 |
| 3805 | EOF |
| 3806 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3807 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3808 | |
| 3809 | fi |
| 3810 | |
| 3811 | for ac_prog in bison |
| 3812 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3813 | # 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] | 3814 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3815 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3816 | echo "configure:3817: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3817 | if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then |
| 3818 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3819 | else |
| 3820 | if test -n "$INTLBISON"; then |
| 3821 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 3822 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3823 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3824 | ac_dummy="$PATH" |
| 3825 | for ac_dir in $ac_dummy; do |
| 3826 | test -z "$ac_dir" && ac_dir=. |
| 3827 | if test -f $ac_dir/$ac_word; then |
| 3828 | ac_cv_prog_INTLBISON="$ac_prog" |
| 3829 | break |
| 3830 | fi |
| 3831 | done |
| 3832 | IFS="$ac_save_ifs" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3833 | fi |
| 3834 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3835 | INTLBISON="$ac_cv_prog_INTLBISON" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3836 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3837 | echo "$ac_t""$INTLBISON" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3838 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3839 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3840 | fi |
| 3841 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3842 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3843 | done |
| 3844 | |
| 3845 | if test -z "$INTLBISON"; then |
| 3846 | ac_verc_fail=yes |
| 3847 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3848 | echo $ac_n "checking version of bison""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3849 | echo "configure:3850: checking version of bison" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3850 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 3851 | case $ac_prog_version in |
| 3852 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 3853 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 3854 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 3855 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 3856 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3857 | echo "$ac_t""$ac_prog_version" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3858 | fi |
| 3859 | if test $ac_verc_fail = yes; then |
| 3860 | INTLBISON=: |
| 3861 | fi |
| 3862 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3863 | |
| 3864 | |
| 3865 | |
| 3866 | |
| 3867 | |
| 3868 | |
| 3869 | |
| 3870 | |
| 3871 | |
| 3872 | |
| 3873 | |
| 3874 | |
| 3875 | |
| 3876 | |
| 3877 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3878 | echo "configure:3879: checking whether NLS is requested" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3879 | # Check whether --enable-nls or --disable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3880 | if test "${enable_nls+set}" = set; then |
| 3881 | enableval="$enable_nls" |
| 3882 | USE_NLS=$enableval |
| 3883 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3884 | USE_NLS=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3885 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3886 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3887 | echo "$ac_t""$USE_NLS" 1>&6 |
| 3888 | |
| 3889 | |
| 3890 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3891 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3892 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3893 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3894 | LIBINTL= |
| 3895 | LTLIBINTL= |
| 3896 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3897 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3898 | if test "$USE_NLS" = "yes"; then |
| 3899 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3900 | |
| 3901 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3902 | echo "configure:3903: checking whether included gettext is requested" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3903 | # Check whether --with-included-gettext or --without-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3904 | if test "${with_included_gettext+set}" = set; then |
| 3905 | withval="$with_included_gettext" |
| 3906 | nls_cv_force_use_gnu_gettext=$withval |
| 3907 | else |
| 3908 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3909 | fi |
| 3910 | |
| 3911 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3912 | |
| 3913 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 3914 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3915 | |
| 3916 | |
| 3917 | |
| 3918 | |
| 3919 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3920 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3921 | echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3922 | echo "configure:3923: checking for GNU gettext in libc" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3923 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then |
| 3924 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3925 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3926 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3927 | #line 3928 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3928 | #include "confdefs.h" |
| 3929 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3930 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3931 | extern int *_nl_domain_bindings; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3932 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3933 | bindtextdomain ("", ""); |
| 3934 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3935 | ; return 0; } |
| 3936 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 3937 | if { (eval echo configure:3938: \"$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] | 3938 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3939 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3940 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3941 | echo "configure: failed program was:" >&5 |
| 3942 | cat conftest.$ac_ext >&5 |
| 3943 | rm -rf conftest* |
| 3944 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3945 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3946 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3947 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3948 | |
| 3949 | echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3950 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3951 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3952 | |
| 3953 | |
| 3954 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3955 | use_additional=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3956 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3957 | acl_save_prefix="$prefix" |
| 3958 | prefix="$acl_final_prefix" |
| 3959 | acl_save_exec_prefix="$exec_prefix" |
| 3960 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3961 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3962 | eval additional_includedir=\"$includedir\" |
| 3963 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3964 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3965 | exec_prefix="$acl_save_exec_prefix" |
| 3966 | prefix="$acl_save_prefix" |
| 3967 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3968 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3969 | if test "${with_libintl_prefix+set}" = set; then |
| 3970 | withval="$with_libintl_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3971 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3972 | if test "X$withval" = "Xno"; then |
| 3973 | use_additional=no |
| 3974 | else |
| 3975 | if test "X$withval" = "X"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3976 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3977 | acl_save_prefix="$prefix" |
| 3978 | prefix="$acl_final_prefix" |
| 3979 | acl_save_exec_prefix="$exec_prefix" |
| 3980 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3981 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3982 | eval additional_includedir=\"$includedir\" |
| 3983 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3984 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3985 | exec_prefix="$acl_save_exec_prefix" |
| 3986 | prefix="$acl_save_prefix" |
| 3987 | |
| 3988 | else |
| 3989 | additional_includedir="$withval/include" |
| 3990 | additional_libdir="$withval/lib" |
| 3991 | fi |
| 3992 | fi |
| 3993 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3994 | fi |
| 3995 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3996 | LIBINTL= |
| 3997 | LTLIBINTL= |
| 3998 | INCINTL= |
| 3999 | rpathdirs= |
| 4000 | ltrpathdirs= |
| 4001 | names_already_handled= |
| 4002 | names_next_round='intl ' |
| 4003 | while test -n "$names_next_round"; do |
| 4004 | names_this_round="$names_next_round" |
| 4005 | names_next_round= |
| 4006 | for name in $names_this_round; do |
| 4007 | already_handled= |
| 4008 | for n in $names_already_handled; do |
| 4009 | if test "$n" = "$name"; then |
| 4010 | already_handled=yes |
| 4011 | break |
| 4012 | fi |
| 4013 | done |
| 4014 | if test -z "$already_handled"; then |
| 4015 | names_already_handled="$names_already_handled $name" |
| 4016 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 4017 | eval value=\"\$HAVE_LIB$uppername\" |
| 4018 | if test -n "$value"; then |
| 4019 | if test "$value" = yes; then |
| 4020 | eval value=\"\$LIB$uppername\" |
| 4021 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 4022 | eval value=\"\$LTLIB$uppername\" |
| 4023 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 4024 | else |
| 4025 | : |
| 4026 | fi |
| 4027 | else |
| 4028 | found_dir= |
| 4029 | found_la= |
| 4030 | found_so= |
| 4031 | found_a= |
| 4032 | if test $use_additional = yes; then |
| 4033 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 4034 | found_dir="$additional_libdir" |
| 4035 | found_so="$additional_libdir/lib$name.$shlibext" |
| 4036 | if test -f "$additional_libdir/lib$name.la"; then |
| 4037 | found_la="$additional_libdir/lib$name.la" |
| 4038 | fi |
| 4039 | else |
| 4040 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 4041 | found_dir="$additional_libdir" |
| 4042 | found_a="$additional_libdir/lib$name.$libext" |
| 4043 | if test -f "$additional_libdir/lib$name.la"; then |
| 4044 | found_la="$additional_libdir/lib$name.la" |
| 4045 | fi |
| 4046 | fi |
| 4047 | fi |
| 4048 | fi |
| 4049 | if test "X$found_dir" = "X"; then |
| 4050 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4051 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4052 | acl_save_prefix="$prefix" |
| 4053 | prefix="$acl_final_prefix" |
| 4054 | acl_save_exec_prefix="$exec_prefix" |
| 4055 | exec_prefix="$acl_final_exec_prefix" |
| 4056 | eval x=\"$x\" |
| 4057 | exec_prefix="$acl_save_exec_prefix" |
| 4058 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4059 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4060 | case "$x" in |
| 4061 | -L*) |
| 4062 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 4063 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 4064 | found_dir="$dir" |
| 4065 | found_so="$dir/lib$name.$shlibext" |
| 4066 | if test -f "$dir/lib$name.la"; then |
| 4067 | found_la="$dir/lib$name.la" |
| 4068 | fi |
| 4069 | else |
| 4070 | if test -f "$dir/lib$name.$libext"; then |
| 4071 | found_dir="$dir" |
| 4072 | found_a="$dir/lib$name.$libext" |
| 4073 | if test -f "$dir/lib$name.la"; then |
| 4074 | found_la="$dir/lib$name.la" |
| 4075 | fi |
| 4076 | fi |
| 4077 | fi |
| 4078 | ;; |
| 4079 | esac |
| 4080 | if test "X$found_dir" != "X"; then |
| 4081 | break |
| 4082 | fi |
| 4083 | done |
| 4084 | fi |
| 4085 | if test "X$found_dir" != "X"; then |
| 4086 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 4087 | if test "X$found_so" != "X"; then |
| 4088 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 4089 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4090 | else |
| 4091 | haveit= |
| 4092 | for x in $ltrpathdirs; do |
| 4093 | if test "X$x" = "X$found_dir"; then |
| 4094 | haveit=yes |
| 4095 | break |
| 4096 | fi |
| 4097 | done |
| 4098 | if test -z "$haveit"; then |
| 4099 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 4100 | fi |
| 4101 | if test "$hardcode_direct" = yes; then |
| 4102 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4103 | else |
| 4104 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 4105 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4106 | haveit= |
| 4107 | for x in $rpathdirs; do |
| 4108 | if test "X$x" = "X$found_dir"; then |
| 4109 | haveit=yes |
| 4110 | break |
| 4111 | fi |
| 4112 | done |
| 4113 | if test -z "$haveit"; then |
| 4114 | rpathdirs="$rpathdirs $found_dir" |
| 4115 | fi |
| 4116 | else |
| 4117 | haveit= |
| 4118 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4119 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4120 | acl_save_prefix="$prefix" |
| 4121 | prefix="$acl_final_prefix" |
| 4122 | acl_save_exec_prefix="$exec_prefix" |
| 4123 | exec_prefix="$acl_final_exec_prefix" |
| 4124 | eval x=\"$x\" |
| 4125 | exec_prefix="$acl_save_exec_prefix" |
| 4126 | prefix="$acl_save_prefix" |
| 4127 | |
| 4128 | if test "X$x" = "X-L$found_dir"; then |
| 4129 | haveit=yes |
| 4130 | break |
| 4131 | fi |
| 4132 | done |
| 4133 | if test -z "$haveit"; then |
| 4134 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 4135 | fi |
| 4136 | if test "$hardcode_minus_L" != no; then |
| 4137 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4138 | else |
| 4139 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 4140 | fi |
| 4141 | fi |
| 4142 | fi |
| 4143 | fi |
| 4144 | else |
| 4145 | if test "X$found_a" != "X"; then |
| 4146 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 4147 | else |
| 4148 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 4149 | fi |
| 4150 | fi |
| 4151 | additional_includedir= |
| 4152 | case "$found_dir" in |
| 4153 | */lib | */lib/) |
| 4154 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 4155 | additional_includedir="$basedir/include" |
| 4156 | ;; |
| 4157 | esac |
| 4158 | if test "X$additional_includedir" != "X"; then |
| 4159 | if test "X$additional_includedir" != "X/usr/include"; then |
| 4160 | haveit= |
| 4161 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 4162 | if test -n "$GCC"; then |
| 4163 | case $host_os in |
| 4164 | linux*) haveit=yes;; |
| 4165 | esac |
| 4166 | fi |
| 4167 | fi |
| 4168 | if test -z "$haveit"; then |
| 4169 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4170 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4171 | acl_save_prefix="$prefix" |
| 4172 | prefix="$acl_final_prefix" |
| 4173 | acl_save_exec_prefix="$exec_prefix" |
| 4174 | exec_prefix="$acl_final_exec_prefix" |
| 4175 | eval x=\"$x\" |
| 4176 | exec_prefix="$acl_save_exec_prefix" |
| 4177 | prefix="$acl_save_prefix" |
| 4178 | |
| 4179 | if test "X$x" = "X-I$additional_includedir"; then |
| 4180 | haveit=yes |
| 4181 | break |
| 4182 | fi |
| 4183 | done |
| 4184 | if test -z "$haveit"; then |
| 4185 | if test -d "$additional_includedir"; then |
| 4186 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 4187 | fi |
| 4188 | fi |
| 4189 | fi |
| 4190 | fi |
| 4191 | fi |
| 4192 | if test -n "$found_la"; then |
| 4193 | save_libdir="$libdir" |
| 4194 | case "$found_la" in |
| 4195 | */* | *\\*) . "$found_la" ;; |
| 4196 | *) . "./$found_la" ;; |
| 4197 | esac |
| 4198 | libdir="$save_libdir" |
| 4199 | for dep in $dependency_libs; do |
| 4200 | case "$dep" in |
| 4201 | -L*) |
| 4202 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 4203 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 4204 | haveit= |
| 4205 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 4206 | if test -n "$GCC"; then |
| 4207 | case $host_os in |
| 4208 | linux*) haveit=yes;; |
| 4209 | esac |
| 4210 | fi |
| 4211 | fi |
| 4212 | if test -z "$haveit"; then |
| 4213 | haveit= |
| 4214 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4215 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4216 | acl_save_prefix="$prefix" |
| 4217 | prefix="$acl_final_prefix" |
| 4218 | acl_save_exec_prefix="$exec_prefix" |
| 4219 | exec_prefix="$acl_final_exec_prefix" |
| 4220 | eval x=\"$x\" |
| 4221 | exec_prefix="$acl_save_exec_prefix" |
| 4222 | prefix="$acl_save_prefix" |
| 4223 | |
| 4224 | if test "X$x" = "X-L$additional_libdir"; then |
| 4225 | haveit=yes |
| 4226 | break |
| 4227 | fi |
| 4228 | done |
| 4229 | if test -z "$haveit"; then |
| 4230 | if test -d "$additional_libdir"; then |
| 4231 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 4232 | fi |
| 4233 | fi |
| 4234 | haveit= |
| 4235 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4236 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4237 | acl_save_prefix="$prefix" |
| 4238 | prefix="$acl_final_prefix" |
| 4239 | acl_save_exec_prefix="$exec_prefix" |
| 4240 | exec_prefix="$acl_final_exec_prefix" |
| 4241 | eval x=\"$x\" |
| 4242 | exec_prefix="$acl_save_exec_prefix" |
| 4243 | prefix="$acl_save_prefix" |
| 4244 | |
| 4245 | if test "X$x" = "X-L$additional_libdir"; then |
| 4246 | haveit=yes |
| 4247 | break |
| 4248 | fi |
| 4249 | done |
| 4250 | if test -z "$haveit"; then |
| 4251 | if test -d "$additional_libdir"; then |
| 4252 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 4253 | fi |
| 4254 | fi |
| 4255 | fi |
| 4256 | fi |
| 4257 | ;; |
| 4258 | -R*) |
| 4259 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 4260 | if test "$enable_rpath" != no; then |
| 4261 | haveit= |
| 4262 | for x in $rpathdirs; do |
| 4263 | if test "X$x" = "X$dir"; then |
| 4264 | haveit=yes |
| 4265 | break |
| 4266 | fi |
| 4267 | done |
| 4268 | if test -z "$haveit"; then |
| 4269 | rpathdirs="$rpathdirs $dir" |
| 4270 | fi |
| 4271 | haveit= |
| 4272 | for x in $ltrpathdirs; do |
| 4273 | if test "X$x" = "X$dir"; then |
| 4274 | haveit=yes |
| 4275 | break |
| 4276 | fi |
| 4277 | done |
| 4278 | if test -z "$haveit"; then |
| 4279 | ltrpathdirs="$ltrpathdirs $dir" |
| 4280 | fi |
| 4281 | fi |
| 4282 | ;; |
| 4283 | -l*) |
| 4284 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 4285 | ;; |
| 4286 | *.la) |
| 4287 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 4288 | ;; |
| 4289 | *) |
| 4290 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 4291 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 4292 | ;; |
| 4293 | esac |
| 4294 | done |
| 4295 | fi |
| 4296 | else |
| 4297 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 4298 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 4299 | fi |
| 4300 | fi |
| 4301 | fi |
| 4302 | done |
| 4303 | done |
| 4304 | if test "X$rpathdirs" != "X"; then |
| 4305 | if test -n "$hardcode_libdir_separator"; then |
| 4306 | alldirs= |
| 4307 | for found_dir in $rpathdirs; do |
| 4308 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 4309 | done |
| 4310 | acl_save_libdir="$libdir" |
| 4311 | libdir="$alldirs" |
| 4312 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 4313 | libdir="$acl_save_libdir" |
| 4314 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 4315 | else |
| 4316 | for found_dir in $rpathdirs; do |
| 4317 | acl_save_libdir="$libdir" |
| 4318 | libdir="$found_dir" |
| 4319 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 4320 | libdir="$acl_save_libdir" |
| 4321 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 4322 | done |
| 4323 | fi |
| 4324 | fi |
| 4325 | if test "X$ltrpathdirs" != "X"; then |
| 4326 | for found_dir in $ltrpathdirs; do |
| 4327 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 4328 | done |
| 4329 | fi |
| 4330 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4331 | echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4332 | echo "configure:4333: checking for GNU gettext in libintl" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4333 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then |
| 4334 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4335 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4336 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 4337 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 4338 | gt_save_LIBS="$LIBS" |
| 4339 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4340 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4341 | #line 4342 "configure" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 4342 | #include "confdefs.h" |
| 4343 | #include <libintl.h> |
| 4344 | extern int _nl_msg_cat_cntr; |
| 4345 | extern |
| 4346 | #ifdef __cplusplus |
| 4347 | "C" |
| 4348 | #endif |
| 4349 | const char *_nl_expand_alias (); |
| 4350 | int main() { |
| 4351 | bindtextdomain ("", ""); |
| 4352 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
| 4353 | ; return 0; } |
| 4354 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4355 | if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 4356 | rm -rf conftest* |
| 4357 | gt_cv_func_gnugettext1_libintl=yes |
| 4358 | else |
| 4359 | echo "configure: failed program was:" >&5 |
| 4360 | cat conftest.$ac_ext >&5 |
| 4361 | rm -rf conftest* |
| 4362 | gt_cv_func_gnugettext1_libintl=no |
| 4363 | fi |
| 4364 | rm -f conftest* |
| 4365 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 4366 | LIBS="$LIBS $LIBICONV" |
| 4367 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4368 | #line 4369 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4369 | #include "confdefs.h" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4370 | #include <libintl.h> |
| 4371 | extern int _nl_msg_cat_cntr; |
| 4372 | extern |
| 4373 | #ifdef __cplusplus |
| 4374 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4375 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4376 | const char *_nl_expand_alias (); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4377 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4378 | bindtextdomain ("", ""); |
| 4379 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4380 | ; return 0; } |
| 4381 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4382 | if { (eval echo configure:4383: \"$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] | 4383 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4384 | LIBINTL="$LIBINTL $LIBICONV" |
| 4385 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 4386 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4387 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4388 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4389 | echo "configure: failed program was:" >&5 |
| 4390 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4391 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4392 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4393 | fi |
| 4394 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 4395 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4396 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4397 | |
| 4398 | echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4399 | fi |
| 4400 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4401 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 4402 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
| 4403 | && test "$PACKAGE" != gettext; }; then |
| 4404 | gt_use_preinstalled_gnugettext=yes |
| 4405 | else |
| 4406 | LIBINTL= |
| 4407 | LTLIBINTL= |
| 4408 | INCINTL= |
| 4409 | fi |
| 4410 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4411 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4412 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 4413 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4414 | fi |
| 4415 | fi |
| 4416 | |
| 4417 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4418 | INTLOBJS="\$(GETTOBJS)" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4419 | BUILD_INCLUDED_LIBINTL=yes |
| 4420 | USE_INCLUDED_LIBINTL=yes |
| 4421 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 4422 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 4423 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4424 | fi |
| 4425 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4426 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 4427 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4428 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4429 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4430 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4431 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4432 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 4433 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4434 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4435 | #define ENABLE_NLS 1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4436 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4437 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4438 | else |
| 4439 | USE_NLS=no |
| 4440 | fi |
| 4441 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4442 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4443 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4444 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4445 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 4446 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4447 | echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4448 | echo "configure:4449: checking how to link with libintl" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4449 | echo "$ac_t""$LIBINTL" 1>&6 |
| 4450 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4451 | for element in $INCINTL; do |
| 4452 | haveit= |
| 4453 | for x in $CPPFLAGS; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4454 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4455 | acl_save_prefix="$prefix" |
| 4456 | prefix="$acl_final_prefix" |
| 4457 | acl_save_exec_prefix="$exec_prefix" |
| 4458 | exec_prefix="$acl_final_exec_prefix" |
| 4459 | eval x=\"$x\" |
| 4460 | exec_prefix="$acl_save_exec_prefix" |
| 4461 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4462 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4463 | if test "X$x" = "X$element"; then |
| 4464 | haveit=yes |
| 4465 | break |
| 4466 | fi |
| 4467 | done |
| 4468 | if test -z "$haveit"; then |
| 4469 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 4470 | fi |
| 4471 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4472 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4473 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4474 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4475 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4476 | #define HAVE_GETTEXT 1 |
| 4477 | EOF |
| 4478 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4479 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4480 | #define HAVE_DCGETTEXT 1 |
| 4481 | EOF |
| 4482 | |
| 4483 | fi |
| 4484 | |
| 4485 | POSUB=po |
| 4486 | fi |
| 4487 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4488 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4489 | if test "$PACKAGE" = gettext; then |
| 4490 | BUILD_INCLUDED_LIBINTL=yes |
| 4491 | fi |
| 4492 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4493 | |
| 4494 | |
| 4495 | |
| 4496 | |
| 4497 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4498 | nls_cv_header_intl= |
| 4499 | nls_cv_header_libgt= |
| 4500 | |
| 4501 | DATADIRNAME=share |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4502 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4503 | |
| 4504 | INSTOBJEXT=.mo |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4505 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4506 | |
| 4507 | GENCAT=gencat |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4508 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4509 | |
| 4510 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4511 | |
| 4512 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4513 | |
| 4514 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4515 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4516 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4517 | |
| 4518 | |
| 4519 | |
| 4520 | |
| 4521 | |
| 4522 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4523 | echo "configure:4524: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4524 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 4525 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 4526 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4527 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4528 | cat > conftestmake <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4529 | all: |
| 4530 | @echo 'ac_maketemp="${MAKE}"' |
| 4531 | EOF |
| 4532 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4533 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4534 | if test -n "$ac_maketemp"; then |
| 4535 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 4536 | else |
| 4537 | eval ac_cv_prog_make_${ac_make}_set=no |
| 4538 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4539 | rm -f conftestmake |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4540 | fi |
| 4541 | 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] | 4542 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4543 | SET_MAKE= |
| 4544 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4545 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4546 | SET_MAKE="MAKE=${MAKE-make}" |
| 4547 | fi |
| 4548 | |
| 4549 | # Extract the first word of "ln", so it can be a program name with args. |
| 4550 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4551 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4552 | echo "configure:4553: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4553 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
| 4554 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4555 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4556 | case "$LN" in |
| 4557 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4558 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 4559 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4560 | ?:/*) |
| 4561 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. |
| 4562 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4563 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4564 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4565 | ac_dummy="$PATH" |
| 4566 | for ac_dir in $ac_dummy; do |
| 4567 | test -z "$ac_dir" && ac_dir=. |
| 4568 | if test -f $ac_dir/$ac_word; then |
| 4569 | ac_cv_path_LN="$ac_dir/$ac_word" |
| 4570 | break |
| 4571 | fi |
| 4572 | done |
| 4573 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4574 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 4575 | ;; |
| 4576 | esac |
| 4577 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4578 | LN="$ac_cv_path_LN" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4579 | if test -n "$LN"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4580 | echo "$ac_t""$LN" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4581 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4582 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4583 | fi |
| 4584 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4585 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4586 | echo "configure:4587: checking whether ln -s works" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4587 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 4588 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4589 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4590 | rm -f conftestdata |
| 4591 | if ln -s X conftestdata 2>/dev/null |
| 4592 | then |
| 4593 | rm -f conftestdata |
| 4594 | ac_cv_prog_LN_S="ln -s" |
| 4595 | else |
| 4596 | ac_cv_prog_LN_S=ln |
| 4597 | fi |
| 4598 | fi |
| 4599 | LN_S="$ac_cv_prog_LN_S" |
| 4600 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 4601 | echo "$ac_t""yes" 1>&6 |
| 4602 | else |
| 4603 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4604 | fi |
| 4605 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4606 | # Extract the first word of "mv", so it can be a program name with args. |
| 4607 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4608 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4609 | echo "configure:4610: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4610 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
| 4611 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4612 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4613 | case "$MV" in |
| 4614 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4615 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 4616 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4617 | ?:/*) |
| 4618 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. |
| 4619 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4620 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4622 | ac_dummy="$PATH" |
| 4623 | for ac_dir in $ac_dummy; do |
| 4624 | test -z "$ac_dir" && ac_dir=. |
| 4625 | if test -f $ac_dir/$ac_word; then |
| 4626 | ac_cv_path_MV="$ac_dir/$ac_word" |
| 4627 | break |
| 4628 | fi |
| 4629 | done |
| 4630 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4631 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 4632 | ;; |
| 4633 | esac |
| 4634 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4635 | MV="$ac_cv_path_MV" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4636 | if test -n "$MV"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4637 | echo "$ac_t""$MV" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4638 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4639 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4640 | fi |
| 4641 | |
| 4642 | # Extract the first word of "cp", so it can be a program name with args. |
| 4643 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4644 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4645 | echo "configure:4646: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4646 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
| 4647 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4648 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4649 | case "$CP" in |
| 4650 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4651 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 4652 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4653 | ?:/*) |
| 4654 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. |
| 4655 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4656 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4657 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4658 | ac_dummy="$PATH" |
| 4659 | for ac_dir in $ac_dummy; do |
| 4660 | test -z "$ac_dir" && ac_dir=. |
| 4661 | if test -f $ac_dir/$ac_word; then |
| 4662 | ac_cv_path_CP="$ac_dir/$ac_word" |
| 4663 | break |
| 4664 | fi |
| 4665 | done |
| 4666 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4667 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 4668 | ;; |
| 4669 | esac |
| 4670 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4671 | CP="$ac_cv_path_CP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4672 | if test -n "$CP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4673 | echo "$ac_t""$CP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4674 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4675 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4676 | fi |
| 4677 | |
| 4678 | # Extract the first word of "rm", so it can be a program name with args. |
| 4679 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4680 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4681 | echo "configure:4682: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4682 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
| 4683 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4684 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4685 | case "$RM" in |
| 4686 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4687 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 4688 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4689 | ?:/*) |
| 4690 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. |
| 4691 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4692 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4693 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4694 | ac_dummy="$PATH" |
| 4695 | for ac_dir in $ac_dummy; do |
| 4696 | test -z "$ac_dir" && ac_dir=. |
| 4697 | if test -f $ac_dir/$ac_word; then |
| 4698 | ac_cv_path_RM="$ac_dir/$ac_word" |
| 4699 | break |
| 4700 | fi |
| 4701 | done |
| 4702 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4703 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 4704 | ;; |
| 4705 | esac |
| 4706 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4707 | RM="$ac_cv_path_RM" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4708 | if test -n "$RM"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4709 | echo "$ac_t""$RM" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4710 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4711 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4712 | fi |
| 4713 | |
| 4714 | # Extract the first word of "chmod", so it can be a program name with args. |
| 4715 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4716 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4717 | echo "configure:4718: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4718 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
| 4719 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4720 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4721 | case "$CHMOD" in |
| 4722 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4723 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 4724 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4725 | ?:/*) |
| 4726 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. |
| 4727 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4728 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4729 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4730 | ac_dummy="$PATH" |
| 4731 | for ac_dir in $ac_dummy; do |
| 4732 | test -z "$ac_dir" && ac_dir=. |
| 4733 | if test -f $ac_dir/$ac_word; then |
| 4734 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
| 4735 | break |
| 4736 | fi |
| 4737 | done |
| 4738 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4739 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 4740 | ;; |
| 4741 | esac |
| 4742 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4743 | CHMOD="$ac_cv_path_CHMOD" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4744 | if test -n "$CHMOD"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4745 | echo "$ac_t""$CHMOD" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4746 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4747 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4748 | fi |
| 4749 | |
| 4750 | # Extract the first word of "awk", so it can be a program name with args. |
| 4751 | set dummy awk; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4752 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4753 | echo "configure:4754: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4754 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then |
| 4755 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4756 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4757 | case "$AWK" in |
| 4758 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4759 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. |
| 4760 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4761 | ?:/*) |
| 4762 | ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path. |
| 4763 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4764 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4765 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4766 | ac_dummy="$PATH" |
| 4767 | for ac_dir in $ac_dummy; do |
| 4768 | test -z "$ac_dir" && ac_dir=. |
| 4769 | if test -f $ac_dir/$ac_word; then |
| 4770 | ac_cv_path_AWK="$ac_dir/$ac_word" |
| 4771 | break |
| 4772 | fi |
| 4773 | done |
| 4774 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4775 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" |
| 4776 | ;; |
| 4777 | esac |
| 4778 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4779 | AWK="$ac_cv_path_AWK" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4780 | if test -n "$AWK"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4781 | echo "$ac_t""$AWK" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4782 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4783 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4784 | fi |
| 4785 | |
| 4786 | # Extract the first word of "sed", so it can be a program name with args. |
| 4787 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4788 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4789 | echo "configure:4790: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4790 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
| 4791 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4792 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4793 | case "$SED" in |
| 4794 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4795 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 4796 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4797 | ?:/*) |
| 4798 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. |
| 4799 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4800 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4801 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4802 | ac_dummy="$PATH" |
| 4803 | for ac_dir in $ac_dummy; do |
| 4804 | test -z "$ac_dir" && ac_dir=. |
| 4805 | if test -f $ac_dir/$ac_word; then |
| 4806 | ac_cv_path_SED="$ac_dir/$ac_word" |
| 4807 | break |
| 4808 | fi |
| 4809 | done |
| 4810 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4811 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 4812 | ;; |
| 4813 | esac |
| 4814 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4815 | SED="$ac_cv_path_SED" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4816 | if test -n "$SED"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4817 | echo "$ac_t""$SED" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4818 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4819 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4820 | fi |
| 4821 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4822 | # Extract the first word of "perl", so it can be a program name with args. |
| 4823 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4824 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4825 | echo "configure:4826: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4826 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
| 4827 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4828 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4829 | case "$PERL" in |
| 4830 | /*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4831 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 4832 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4833 | ?:/*) |
| 4834 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
| 4835 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4836 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4837 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4838 | ac_dummy="$PATH" |
| 4839 | for ac_dir in $ac_dummy; do |
| 4840 | test -z "$ac_dir" && ac_dir=. |
| 4841 | if test -f $ac_dir/$ac_word; then |
| 4842 | ac_cv_path_PERL="$ac_dir/$ac_word" |
| 4843 | break |
| 4844 | fi |
| 4845 | done |
| 4846 | IFS="$ac_save_ifs" |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4847 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 4848 | ;; |
| 4849 | esac |
| 4850 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4851 | PERL="$ac_cv_path_PERL" |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4852 | if test -n "$PERL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4853 | echo "$ac_t""$PERL" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4854 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4855 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4856 | fi |
| 4857 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4858 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4859 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4860 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4861 | echo "configure:4862: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4862 | if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then |
| 4863 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4864 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4865 | case "$LDCONFIG" in |
| 4866 | /*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4867 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4868 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4869 | ?:/*) |
| 4870 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path. |
| 4871 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4872 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4873 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4874 | ac_dummy="$PATH" |
| 4875 | for ac_dir in $ac_dummy; do |
| 4876 | test -z "$ac_dir" && ac_dir=. |
| 4877 | if test -f $ac_dir/$ac_word; then |
| 4878 | ac_cv_path_LDCONFIG="$ac_dir/$ac_word" |
| 4879 | break |
| 4880 | fi |
| 4881 | done |
| 4882 | IFS="$ac_save_ifs" |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4883 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 4884 | ;; |
| 4885 | esac |
| 4886 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4887 | LDCONFIG="$ac_cv_path_LDCONFIG" |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4888 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4889 | echo "$ac_t""$LDCONFIG" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4890 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4891 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4892 | fi |
| 4893 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4894 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4895 | echo "configure:4896: checking build system type" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4896 | |
| 4897 | build_alias=$build |
| 4898 | case "$build_alias" in |
| 4899 | NONE) |
| 4900 | case $nonopt in |
| 4901 | NONE) build_alias=$host_alias ;; |
| 4902 | *) build_alias=$nonopt ;; |
| 4903 | esac ;; |
| 4904 | esac |
| 4905 | |
| 4906 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 4907 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 4908 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 4909 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 4910 | echo "$ac_t""$build" 1>&6 |
| 4911 | |
| 4912 | if test $host != $build; then |
| 4913 | ac_tool_prefix=${host_alias}- |
| 4914 | else |
| 4915 | ac_tool_prefix= |
| 4916 | fi |
| 4917 | |
| 4918 | # 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] | 4919 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4920 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4921 | echo "configure:4922: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4922 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 4923 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4924 | else |
| 4925 | if test -n "$AR"; then |
| 4926 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4927 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4928 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4929 | ac_dummy="$PATH" |
| 4930 | for ac_dir in $ac_dummy; do |
| 4931 | test -z "$ac_dir" && ac_dir=. |
| 4932 | if test -f $ac_dir/$ac_word; then |
| 4933 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 4934 | break |
| 4935 | fi |
| 4936 | done |
| 4937 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4938 | fi |
| 4939 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4940 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4941 | if test -n "$AR"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4942 | echo "$ac_t""$AR" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4943 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4944 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4945 | fi |
| 4946 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4947 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4948 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4949 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4950 | # Extract the first word of "ar", so it can be a program name with args. |
| 4951 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4952 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4953 | echo "configure:4954: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4954 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 4955 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4956 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4957 | if test -n "$AR"; then |
| 4958 | ac_cv_prog_AR="$AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4959 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4960 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4961 | ac_dummy="$PATH" |
| 4962 | for ac_dir in $ac_dummy; do |
| 4963 | test -z "$ac_dir" && ac_dir=. |
| 4964 | if test -f $ac_dir/$ac_word; then |
| 4965 | ac_cv_prog_AR="ar" |
| 4966 | break |
| 4967 | fi |
| 4968 | done |
| 4969 | IFS="$ac_save_ifs" |
| 4970 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4971 | fi |
| 4972 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4973 | AR="$ac_cv_prog_AR" |
| 4974 | if test -n "$AR"; then |
| 4975 | echo "$ac_t""$AR" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4976 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4977 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4978 | fi |
| 4979 | |
| 4980 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4981 | AR="ar" |
| 4982 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4983 | fi |
| 4984 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4985 | # 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] | 4986 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4987 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 4988 | echo "configure:4989: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4989 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 4990 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4991 | else |
| 4992 | if test -n "$RANLIB"; then |
| 4993 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4994 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4995 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4996 | ac_dummy="$PATH" |
| 4997 | for ac_dir in $ac_dummy; do |
| 4998 | test -z "$ac_dir" && ac_dir=. |
| 4999 | if test -f $ac_dir/$ac_word; then |
| 5000 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5001 | break |
| 5002 | fi |
| 5003 | done |
| 5004 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5005 | fi |
| 5006 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5007 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5008 | if test -n "$RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5009 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5010 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5011 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5012 | fi |
| 5013 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5014 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5015 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5016 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5017 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5018 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5019 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5020 | echo "configure:5021: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5021 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 5022 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5023 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5024 | if test -n "$RANLIB"; then |
| 5025 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5026 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5027 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5028 | ac_dummy="$PATH" |
| 5029 | for ac_dir in $ac_dummy; do |
| 5030 | test -z "$ac_dir" && ac_dir=. |
| 5031 | if test -f $ac_dir/$ac_word; then |
| 5032 | ac_cv_prog_RANLIB="ranlib" |
| 5033 | break |
| 5034 | fi |
| 5035 | done |
| 5036 | IFS="$ac_save_ifs" |
| 5037 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5038 | fi |
| 5039 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5040 | RANLIB="$ac_cv_prog_RANLIB" |
| 5041 | if test -n "$RANLIB"; then |
| 5042 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5043 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5044 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5045 | fi |
| 5046 | |
| 5047 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5048 | RANLIB=":" |
| 5049 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5050 | fi |
| 5051 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5052 | # 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] | 5053 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5054 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5055 | echo "configure:5056: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5056 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 5057 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5058 | else |
| 5059 | if test -n "$STRIP"; then |
| 5060 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5061 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5062 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5063 | ac_dummy="$PATH" |
| 5064 | for ac_dir in $ac_dummy; do |
| 5065 | test -z "$ac_dir" && ac_dir=. |
| 5066 | if test -f $ac_dir/$ac_word; then |
| 5067 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5068 | break |
| 5069 | fi |
| 5070 | done |
| 5071 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5072 | fi |
| 5073 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5074 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5075 | if test -n "$STRIP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5076 | echo "$ac_t""$STRIP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5077 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5078 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5079 | fi |
| 5080 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5081 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5082 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5083 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5084 | # Extract the first word of "strip", so it can be a program name with args. |
| 5085 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5086 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5087 | echo "configure:5088: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5088 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 5089 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5090 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5091 | if test -n "$STRIP"; then |
| 5092 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5093 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5094 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5095 | ac_dummy="$PATH" |
| 5096 | for ac_dir in $ac_dummy; do |
| 5097 | test -z "$ac_dir" && ac_dir=. |
| 5098 | if test -f $ac_dir/$ac_word; then |
| 5099 | ac_cv_prog_STRIP="strip" |
| 5100 | break |
| 5101 | fi |
| 5102 | done |
| 5103 | IFS="$ac_save_ifs" |
| 5104 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5105 | fi |
| 5106 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5107 | STRIP="$ac_cv_prog_STRIP" |
| 5108 | if test -n "$STRIP"; then |
| 5109 | echo "$ac_t""$STRIP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5110 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5111 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5112 | fi |
| 5113 | |
| 5114 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5115 | STRIP=":" |
| 5116 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5117 | fi |
| 5118 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5119 | # Find a good install program. We prefer a C program (faster), |
| 5120 | # so one script is as good as another. But avoid the broken or |
| 5121 | # incompatible versions: |
| 5122 | # SysV /etc/install, /usr/sbin/install |
| 5123 | # SunOS /usr/etc/install |
| 5124 | # IRIX /sbin/install |
| 5125 | # AIX /bin/install |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5126 | # 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] | 5127 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5128 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5129 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5130 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5131 | echo "configure:5132: checking for a BSD compatible install" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5132 | if test -z "$INSTALL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5133 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 5134 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5135 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5136 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5137 | for ac_dir in $PATH; do |
| 5138 | # Account for people who put trailing slashes in PATH elements. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5139 | case "$ac_dir/" in |
| 5140 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5141 | *) |
| 5142 | # 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] | 5143 | # Don't use installbsd from OSF since it installs stuff as root |
| 5144 | # by default. |
| 5145 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5146 | if test -f $ac_dir/$ac_prog; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5147 | if test $ac_prog = install && |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5148 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5149 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5150 | : |
| 5151 | else |
| 5152 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 5153 | break 2 |
| 5154 | fi |
| 5155 | fi |
| 5156 | done |
| 5157 | ;; |
| 5158 | esac |
| 5159 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5160 | IFS="$ac_save_IFS" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5161 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5162 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5163 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5164 | INSTALL="$ac_cv_path_install" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5165 | else |
| 5166 | # As a last resort, use the slow shell script. We don't cache a |
| 5167 | # path for INSTALL within a source directory, because that will |
| 5168 | # break other packages using the cache if that directory is |
| 5169 | # removed, or if the path is relative. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5170 | INSTALL="$ac_install_sh" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5171 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5172 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5173 | echo "$ac_t""$INSTALL" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5174 | |
| 5175 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5176 | # It thinks the first close brace ends the variable substitution. |
| 5177 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5178 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5179 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5180 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5181 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5182 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5183 | # See if we need a separate native compiler. |
| 5184 | if test $cross_compiling = no; then |
| 5185 | BUILD_CC="$CC" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5186 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5187 | else |
| 5188 | for ac_prog in gcc cc |
| 5189 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5190 | # 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] | 5191 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5192 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5193 | echo "configure:5194: checking for $ac_word" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5194 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
| 5195 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5196 | else |
| 5197 | if test -n "$BUILD_CC"; then |
| 5198 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 5199 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5200 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5201 | ac_dummy="$PATH" |
| 5202 | for ac_dir in $ac_dummy; do |
| 5203 | test -z "$ac_dir" && ac_dir=. |
| 5204 | if test -f $ac_dir/$ac_word; then |
| 5205 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 5206 | break |
| 5207 | fi |
| 5208 | done |
| 5209 | IFS="$ac_save_ifs" |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5210 | fi |
| 5211 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5212 | BUILD_CC="$ac_cv_prog_BUILD_CC" |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5213 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5214 | echo "$ac_t""$BUILD_CC" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5215 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5216 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5217 | fi |
| 5218 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5219 | test -n "$BUILD_CC" && break |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5220 | done |
| 5221 | |
| 5222 | fi |
Theodore Ts'o | 9845cf5 | 2004-09-17 19:07:03 -0400 | [diff] [blame] | 5223 | for ac_hdr in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h net/if_dl.h netinet/in.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5224 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5225 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5226 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5227 | echo "configure:5228: checking for $ac_hdr" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5228 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5229 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5230 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5231 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5232 | #line 5233 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5233 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5234 | #include <$ac_hdr> |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5235 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5236 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5237 | { (eval echo configure:5238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5238 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5239 | if test -z "$ac_err"; then |
| 5240 | rm -rf conftest* |
| 5241 | eval "ac_cv_header_$ac_safe=yes" |
| 5242 | else |
| 5243 | echo "$ac_err" >&5 |
| 5244 | echo "configure: failed program was:" >&5 |
| 5245 | cat conftest.$ac_ext >&5 |
| 5246 | rm -rf conftest* |
| 5247 | eval "ac_cv_header_$ac_safe=no" |
| 5248 | fi |
| 5249 | rm -f conftest* |
| 5250 | fi |
| 5251 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5252 | echo "$ac_t""yes" 1>&6 |
| 5253 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5254 | cat >> confdefs.h <<EOF |
| 5255 | #define $ac_tr_hdr 1 |
| 5256 | EOF |
| 5257 | |
| 5258 | else |
| 5259 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5260 | fi |
| 5261 | done |
| 5262 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5263 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5264 | echo "configure:5265: checking for vprintf" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5265 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
| 5266 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5267 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5268 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5269 | #line 5270 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5270 | #include "confdefs.h" |
| 5271 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5272 | which can conflict with char vprintf(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5273 | #include <assert.h> |
| 5274 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5275 | /* 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] | 5276 | builtin and then its argument prototype would still apply. */ |
| 5277 | char vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5278 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5279 | int main() { |
| 5280 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5281 | /* The GNU C library defines this for functions which it implements |
| 5282 | to always fail with ENOSYS. Some functions are actually named |
| 5283 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5284 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5285 | choke me |
| 5286 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5287 | vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5288 | #endif |
| 5289 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5290 | ; return 0; } |
| 5291 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5292 | if { (eval echo configure:5293: \"$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] | 5293 | rm -rf conftest* |
| 5294 | eval "ac_cv_func_vprintf=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5295 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5296 | echo "configure: failed program was:" >&5 |
| 5297 | cat conftest.$ac_ext >&5 |
| 5298 | rm -rf conftest* |
| 5299 | eval "ac_cv_func_vprintf=no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5300 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5301 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5302 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5303 | |
| 5304 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
| 5305 | echo "$ac_t""yes" 1>&6 |
| 5306 | cat >> confdefs.h <<\EOF |
| 5307 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5308 | EOF |
| 5309 | |
| 5310 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5311 | echo "$ac_t""no" 1>&6 |
| 5312 | fi |
| 5313 | |
| 5314 | if test "$ac_cv_func_vprintf" != yes; then |
| 5315 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5316 | echo "configure:5317: checking for _doprnt" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5317 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
| 5318 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5319 | else |
| 5320 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [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 _doprnt(); 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 _doprnt(); |
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. */ |
| 5336 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
| 5337 | choke me |
| 5338 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5339 | _doprnt(); |
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 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [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__doprnt=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__doprnt=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 | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5355 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5356 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
| 5357 | echo "$ac_t""yes" 1>&6 |
| 5358 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5359 | #define HAVE_DOPRNT 1 |
| 5360 | EOF |
| 5361 | |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 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 | fi |
| 5367 | |
| 5368 | echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5369 | echo "configure:5370: checking whether d_reclen declared in dirent" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5370 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then |
| 5371 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5372 | else |
| 5373 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5374 | #line 5375 "configure" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5375 | #include "confdefs.h" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5376 | #include <dirent.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5377 | int main() { |
| 5378 | struct dirent de; de.d_reclen = 0; |
| 5379 | ; return 0; } |
| 5380 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5381 | if { (eval echo configure:5382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5382 | rm -rf conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5383 | e2fsprogs_cv_have_d_reclen_dirent=yes |
| 5384 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5385 | echo "configure: failed program was:" >&5 |
| 5386 | cat conftest.$ac_ext >&5 |
| 5387 | rm -rf conftest* |
| 5388 | e2fsprogs_cv_have_d_reclen_dirent=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5389 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5390 | rm -f conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5391 | fi |
| 5392 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5393 | echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5394 | if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5395 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5396 | #define HAVE_RECLEN_DIRENT 1 |
| 5397 | EOF |
| 5398 | |
| 5399 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5400 | echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5401 | echo "configure:5402: checking whether ssize_t declared" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5402 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then |
| 5403 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5404 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5405 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5406 | #line 5407 "configure" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5407 | #include "confdefs.h" |
| 5408 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5409 | int main() { |
| 5410 | ssize_t a = 0; |
| 5411 | ; return 0; } |
| 5412 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5413 | if { (eval echo configure:5414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5414 | rm -rf conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5415 | e2fsprogs_cv_have_ssize_t=yes |
| 5416 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5417 | echo "configure: failed program was:" >&5 |
| 5418 | cat conftest.$ac_ext >&5 |
| 5419 | rm -rf conftest* |
| 5420 | e2fsprogs_cv_have_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5421 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5422 | rm -f conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5423 | fi |
| 5424 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5425 | echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5426 | if test "$e2fsprogs_cv_have_ssize_t" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5427 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5428 | #define HAVE_TYPE_SSIZE_T 1 |
| 5429 | EOF |
| 5430 | |
| 5431 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5432 | echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5433 | echo "configure:5434: checking whether llseek declared in unistd.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5434 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then |
| 5435 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5436 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5437 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5438 | #line 5439 "configure" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5439 | #include "confdefs.h" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5440 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5441 | int main() { |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5442 | extern int llseek(int); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5443 | ; return 0; } |
| 5444 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5445 | if { (eval echo configure:5446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5446 | rm -rf conftest* |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5447 | e2fsprogs_cv_have_llseek_prototype=no |
| 5448 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5449 | echo "configure: failed program was:" >&5 |
| 5450 | cat conftest.$ac_ext >&5 |
| 5451 | rm -rf conftest* |
| 5452 | e2fsprogs_cv_have_llseek_prototype=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5453 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5454 | rm -f conftest* |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5455 | fi |
| 5456 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5457 | echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5458 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5459 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5460 | #define HAVE_LLSEEK_PROTOTYPE 1 |
| 5461 | EOF |
| 5462 | |
| 5463 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5464 | echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5465 | echo "configure:5466: checking whether lseek64 declared in unistd.h" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5466 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then |
| 5467 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5468 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5469 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5470 | #line 5471 "configure" |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5471 | #include "confdefs.h" |
| 5472 | #define _LARGEFILE_SOURCE |
| 5473 | #define _LARGEFILE64_SOURCE |
| 5474 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5475 | int main() { |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5476 | extern int lseek64(int); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5477 | ; return 0; } |
| 5478 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5479 | if { (eval echo configure:5480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5480 | rm -rf conftest* |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5481 | e2fsprogs_cv_have_lseek64_prototype=no |
| 5482 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5483 | echo "configure: failed program was:" >&5 |
| 5484 | cat conftest.$ac_ext >&5 |
| 5485 | rm -rf conftest* |
| 5486 | e2fsprogs_cv_have_lseek64_prototype=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5487 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5488 | rm -f conftest* |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5489 | fi |
| 5490 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5491 | echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5492 | if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5493 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5494 | #define HAVE_LSEEK64_PROTOTYPE 1 |
| 5495 | EOF |
| 5496 | |
| 5497 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5498 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5499 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5500 | ac_cv_sizeof_short=2 |
| 5501 | ac_cv_sizeof_int=4 |
| 5502 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5503 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5504 | 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] | 5505 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5506 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5507 | echo "configure:5508: checking size of short" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5508 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
| 5509 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5510 | else |
| 5511 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5512 | { 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] | 5513 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5514 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5515 | #line 5516 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5516 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5517 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5518 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5519 | main() |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5520 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5521 | FILE *f=fopen("conftestval", "w"); |
| 5522 | if (!f) exit(1); |
| 5523 | fprintf(f, "%d\n", sizeof(short)); |
| 5524 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5525 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5526 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5527 | if { (eval echo configure:5528: \"$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] | 5528 | then |
| 5529 | ac_cv_sizeof_short=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5530 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5531 | echo "configure: failed program was:" >&5 |
| 5532 | cat conftest.$ac_ext >&5 |
| 5533 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5534 | ac_cv_sizeof_short=0 |
| 5535 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5536 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5537 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5538 | |
| 5539 | fi |
| 5540 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 5541 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5542 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 5543 | EOF |
| 5544 | |
| 5545 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5546 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5547 | echo "configure:5548: checking size of int" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5548 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 5549 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5550 | else |
| 5551 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5552 | { 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] | 5553 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5554 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5555 | #line 5556 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5556 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5557 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5558 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5559 | main() |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5560 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5561 | FILE *f=fopen("conftestval", "w"); |
| 5562 | if (!f) exit(1); |
| 5563 | fprintf(f, "%d\n", sizeof(int)); |
| 5564 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5565 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5566 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5567 | if { (eval echo configure:5568: \"$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] | 5568 | then |
| 5569 | ac_cv_sizeof_int=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5570 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5571 | echo "configure: failed program was:" >&5 |
| 5572 | cat conftest.$ac_ext >&5 |
| 5573 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5574 | ac_cv_sizeof_int=0 |
| 5575 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5576 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5577 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5578 | |
| 5579 | fi |
| 5580 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 5581 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5582 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 5583 | EOF |
| 5584 | |
| 5585 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5586 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5587 | echo "configure:5588: checking size of long" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5588 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 5589 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5590 | else |
| 5591 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5592 | { 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] | 5593 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5594 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5595 | #line 5596 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5596 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5597 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5598 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5599 | main() |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5600 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5601 | FILE *f=fopen("conftestval", "w"); |
| 5602 | if (!f) exit(1); |
| 5603 | fprintf(f, "%d\n", sizeof(long)); |
| 5604 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5605 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5606 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5607 | if { (eval echo configure:5608: \"$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] | 5608 | then |
| 5609 | ac_cv_sizeof_long=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5610 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5611 | echo "configure: failed program was:" >&5 |
| 5612 | cat conftest.$ac_ext >&5 |
| 5613 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5614 | ac_cv_sizeof_long=0 |
| 5615 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5616 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5617 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5618 | |
| 5619 | fi |
| 5620 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 5621 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5622 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 5623 | EOF |
| 5624 | |
| 5625 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5626 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5627 | echo "configure:5628: checking size of long long" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5628 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 5629 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5630 | else |
| 5631 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5632 | { 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] | 5633 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5634 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5635 | #line 5636 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5636 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5637 | #include <stdio.h> |
Theodore Ts'o | fde3e1b | 2004-02-23 23:10:41 -0500 | [diff] [blame] | 5638 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5639 | main() |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5640 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5641 | FILE *f=fopen("conftestval", "w"); |
| 5642 | if (!f) exit(1); |
| 5643 | fprintf(f, "%d\n", sizeof(long long)); |
| 5644 | exit(0); |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5645 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5646 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5647 | if { (eval echo configure:5648: \"$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] | 5648 | then |
| 5649 | ac_cv_sizeof_long_long=`cat conftestval` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5650 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5651 | echo "configure: failed program was:" >&5 |
| 5652 | cat conftest.$ac_ext >&5 |
| 5653 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5654 | ac_cv_sizeof_long_long=0 |
| 5655 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5656 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5657 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5658 | |
| 5659 | fi |
| 5660 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 5661 | cat >> confdefs.h <<EOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5662 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 5663 | EOF |
| 5664 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5665 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5666 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 5667 | SIZEOF_INT=$ac_cv_sizeof_int |
| 5668 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5669 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 5670 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5671 | |
| 5672 | |
| 5673 | |
| 5674 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5675 | echo "configure:5676: checking whether byte ordering is bigendian" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5676 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
| 5677 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5678 | else |
| 5679 | ac_cv_c_bigendian=unknown |
| 5680 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5681 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5682 | #line 5683 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5683 | #include "confdefs.h" |
| 5684 | #include <sys/types.h> |
| 5685 | #include <sys/param.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5686 | int main() { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5687 | |
| 5688 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5689 | bogus endian macros |
| 5690 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5691 | ; return 0; } |
| 5692 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5693 | if { (eval echo configure:5694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5694 | rm -rf conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5695 | # 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] | 5696 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5697 | #line 5698 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5698 | #include "confdefs.h" |
| 5699 | #include <sys/types.h> |
| 5700 | #include <sys/param.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5701 | int main() { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5702 | |
| 5703 | #if BYTE_ORDER != BIG_ENDIAN |
| 5704 | not big endian |
| 5705 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5706 | ; return 0; } |
| 5707 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5708 | if { (eval echo configure:5709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5709 | rm -rf conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5710 | ac_cv_c_bigendian=yes |
| 5711 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5712 | echo "configure: failed program was:" >&5 |
| 5713 | cat conftest.$ac_ext >&5 |
| 5714 | rm -rf conftest* |
| 5715 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5716 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5717 | rm -f conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5718 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5719 | echo "configure: failed program was:" >&5 |
| 5720 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5721 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5722 | rm -f conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5723 | if test $ac_cv_c_bigendian = unknown; then |
| 5724 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5725 | { 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] | 5726 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5727 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5728 | #line 5729 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5729 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5730 | main () { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5731 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5732 | union |
| 5733 | { |
| 5734 | long l; |
| 5735 | char c[sizeof (long)]; |
| 5736 | } u; |
| 5737 | u.l = 1; |
| 5738 | exit (u.c[sizeof (long) - 1] == 1); |
| 5739 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5740 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5741 | if { (eval echo configure:5742: \"$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] | 5742 | then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5743 | ac_cv_c_bigendian=no |
| 5744 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5745 | echo "configure: failed program was:" >&5 |
| 5746 | cat conftest.$ac_ext >&5 |
| 5747 | rm -fr conftest* |
| 5748 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5749 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5750 | rm -fr conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5751 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5752 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5753 | fi |
| 5754 | fi |
| 5755 | |
| 5756 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5757 | if test $ac_cv_c_bigendian = yes; then |
| 5758 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5759 | #define WORDS_BIGENDIAN 1 |
| 5760 | EOF |
| 5761 | |
| 5762 | fi |
| 5763 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5764 | for ac_hdr in inttypes.h |
| 5765 | do |
| 5766 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5767 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5768 | echo "configure:5769: checking for $ac_hdr" >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5769 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5770 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5771 | else |
| 5772 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5773 | #line 5774 "configure" |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5774 | #include "confdefs.h" |
| 5775 | #include <$ac_hdr> |
| 5776 | EOF |
| 5777 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5778 | { (eval echo configure:5779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5779 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5780 | if test -z "$ac_err"; then |
| 5781 | rm -rf conftest* |
| 5782 | eval "ac_cv_header_$ac_safe=yes" |
| 5783 | else |
| 5784 | echo "$ac_err" >&5 |
| 5785 | echo "configure: failed program was:" >&5 |
| 5786 | cat conftest.$ac_ext >&5 |
| 5787 | rm -rf conftest* |
| 5788 | eval "ac_cv_header_$ac_safe=no" |
| 5789 | fi |
| 5790 | rm -f conftest* |
| 5791 | fi |
| 5792 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5793 | echo "$ac_t""yes" 1>&6 |
| 5794 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5795 | cat >> confdefs.h <<EOF |
| 5796 | #define $ac_tr_hdr 1 |
| 5797 | EOF |
| 5798 | |
| 5799 | else |
| 5800 | echo "$ac_t""no" 1>&6 |
| 5801 | fi |
| 5802 | done |
| 5803 | |
| 5804 | echo $ac_n "checking for intptr_t""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5805 | echo "configure:5806: checking for intptr_t" >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5806 | if eval "test \"`echo '$''{'ac_cv_type_intptr_t'+set}'`\" = set"; then |
| 5807 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5808 | else |
| 5809 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5810 | #line 5811 "configure" |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 5811 | #include "confdefs.h" |
| 5812 | #include <sys/types.h> |
| 5813 | #if STDC_HEADERS |
| 5814 | #include <stdlib.h> |
| 5815 | #include <stddef.h> |
| 5816 | #endif |
| 5817 | EOF |
| 5818 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5819 | egrep "(^|[^a-zA-Z_0-9])intptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5820 | rm -rf conftest* |
| 5821 | ac_cv_type_intptr_t=yes |
| 5822 | else |
| 5823 | rm -rf conftest* |
| 5824 | ac_cv_type_intptr_t=no |
| 5825 | fi |
| 5826 | rm -f conftest* |
| 5827 | |
| 5828 | fi |
| 5829 | echo "$ac_t""$ac_cv_type_intptr_t" 1>&6 |
| 5830 | if test $ac_cv_type_intptr_t = no; then |
| 5831 | cat >> confdefs.h <<\EOF |
| 5832 | #define intptr_t long |
| 5833 | EOF |
| 5834 | |
| 5835 | fi |
| 5836 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5837 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5838 | echo "configure:5839: checking whether struct stat has a st_flags field" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5839 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then |
| 5840 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5841 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5842 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5843 | #line 5844 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5844 | #include "confdefs.h" |
| 5845 | #include <sys/stat.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5846 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5847 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5848 | ; return 0; } |
| 5849 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5850 | if { (eval echo configure:5851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5851 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5852 | e2fsprogs_cv_struct_st_flags=yes |
| 5853 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5854 | echo "configure: failed program was:" >&5 |
| 5855 | cat conftest.$ac_ext >&5 |
| 5856 | rm -rf conftest* |
| 5857 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5858 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5859 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5860 | fi |
| 5861 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5862 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5863 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5864 | echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5865 | echo "configure:5866: checking whether st_flags field is useful" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5866 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then |
| 5867 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5868 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5869 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5870 | #line 5871 "configure" |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5871 | #include "confdefs.h" |
| 5872 | #include <sys/stat.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5873 | int main() { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5874 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5875 | ; return 0; } |
| 5876 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5877 | if { (eval echo configure:5878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5878 | rm -rf conftest* |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5879 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 5880 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5881 | echo "configure: failed program was:" >&5 |
| 5882 | cat conftest.$ac_ext >&5 |
| 5883 | rm -rf conftest* |
| 5884 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5885 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5886 | rm -f conftest* |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5887 | fi |
| 5888 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5889 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5890 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5891 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5892 | #define HAVE_STAT_FLAGS 1 |
| 5893 | EOF |
| 5894 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5895 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5896 | fi |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5897 | echo $ac_n "checking whether struct sockaddr contains sa_len""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5898 | echo "configure:5899: checking whether struct sockaddr contains sa_len" >&5 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5899 | if eval "test \"`echo '$''{'e2fsprogs_cv_sockaddr_sa_len'+set}'`\" = set"; then |
| 5900 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5901 | else |
| 5902 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5903 | #line 5904 "configure" |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5904 | #include "confdefs.h" |
| 5905 | #include <sys/types.h> |
| 5906 | #include <sys/socket.h> |
| 5907 | |
| 5908 | int main() { |
| 5909 | struct sockaddr sa; |
| 5910 | sa.sa_len; |
| 5911 | ; return 0; } |
| 5912 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5913 | if { (eval echo configure:5914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 5914 | rm -rf conftest* |
| 5915 | e2fsprogs_cv_sockaddr_sa_len=yes |
| 5916 | else |
| 5917 | echo "configure: failed program was:" >&5 |
| 5918 | cat conftest.$ac_ext >&5 |
| 5919 | rm -rf conftest* |
| 5920 | e2fsprogs_cv_sockaddr_sa_len=no |
| 5921 | fi |
| 5922 | rm -f conftest* |
| 5923 | fi |
| 5924 | |
| 5925 | echo "$ac_t""$e2fsprogs_cv_sockaddr_sa_len" 1>&6 |
| 5926 | if test $e2fsprogs_cv_sockaddr_sa_len = yes; then |
| 5927 | cat >> confdefs.h <<EOF |
| 5928 | #define HAVE_SA_LEN 1 |
| 5929 | EOF |
| 5930 | |
| 5931 | fi |
Theodore Ts'o | 1c29b09 | 2003-07-12 16:01:45 -0400 | [diff] [blame] | 5932 | 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] | 5933 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5934 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5935 | echo "configure:5936: checking for $ac_func" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5936 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5937 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5938 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5939 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5940 | #line 5941 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5941 | #include "confdefs.h" |
| 5942 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5943 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5944 | #include <assert.h> |
| 5945 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5946 | /* 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] | 5947 | builtin and then its argument prototype would still apply. */ |
| 5948 | char $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5949 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5950 | int main() { |
| 5951 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5952 | /* The GNU C library defines this for functions which it implements |
| 5953 | to always fail with ENOSYS. Some functions are actually named |
| 5954 | something starting with __ and the normal name is an alias. */ |
| 5955 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5956 | choke me |
| 5957 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5958 | $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5959 | #endif |
| 5960 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5961 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5962 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5963 | if { (eval echo configure:5964: \"$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] | 5964 | rm -rf conftest* |
| 5965 | eval "ac_cv_func_$ac_func=yes" |
| 5966 | else |
| 5967 | echo "configure: failed program was:" >&5 |
| 5968 | cat conftest.$ac_ext >&5 |
| 5969 | rm -rf conftest* |
| 5970 | eval "ac_cv_func_$ac_func=no" |
| 5971 | fi |
| 5972 | rm -f conftest* |
| 5973 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5974 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5975 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5976 | echo "$ac_t""yes" 1>&6 |
| 5977 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5978 | cat >> confdefs.h <<EOF |
| 5979 | #define $ac_tr_func 1 |
| 5980 | EOF |
| 5981 | |
| 5982 | else |
| 5983 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5984 | fi |
| 5985 | done |
| 5986 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5987 | SOCKET_LIB='' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5988 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5989 | echo "configure:5990: checking for socket in -lsocket" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5990 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 5991 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5992 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5993 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5994 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5995 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5996 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 5997 | #line 5998 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5998 | #include "confdefs.h" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5999 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6000 | /* 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] | 6001 | builtin and then its argument prototype would still apply. */ |
| 6002 | char socket(); |
| 6003 | |
| 6004 | int main() { |
| 6005 | socket() |
| 6006 | ; return 0; } |
| 6007 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 6008 | if { (eval echo configure:6009: \"$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] | 6009 | rm -rf conftest* |
| 6010 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6011 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6012 | echo "configure: failed program was:" >&5 |
| 6013 | cat conftest.$ac_ext >&5 |
| 6014 | rm -rf conftest* |
| 6015 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6016 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6017 | rm -f conftest* |
| 6018 | LIBS="$ac_save_LIBS" |
| 6019 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6020 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6021 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6022 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6023 | SOCKET_LIB=-lsocket |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6024 | else |
| 6025 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6026 | fi |
| 6027 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6028 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6029 | DLOPEN_LIB='' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6030 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 6031 | echo "configure:6032: checking for dlopen in -ldl" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6032 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 6033 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 6034 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6035 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6036 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6037 | LIBS="-ldl $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6038 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 6039 | #line 6040 "configure" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6040 | #include "confdefs.h" |
| 6041 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6042 | /* 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] | 6043 | builtin and then its argument prototype would still apply. */ |
| 6044 | char dlopen(); |
| 6045 | |
| 6046 | int main() { |
| 6047 | dlopen() |
| 6048 | ; return 0; } |
| 6049 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 6050 | if { (eval echo configure:6051: \"$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] | 6051 | rm -rf conftest* |
| 6052 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6053 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6054 | echo "configure: failed program was:" >&5 |
| 6055 | cat conftest.$ac_ext >&5 |
| 6056 | rm -rf conftest* |
| 6057 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6058 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6059 | rm -f conftest* |
| 6060 | LIBS="$ac_save_LIBS" |
| 6061 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6062 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6063 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6064 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6065 | DLOPEN_LIB=-ldl |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6066 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6067 | #define HAVE_DLOPEN 1 |
| 6068 | EOF |
| 6069 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6070 | else |
| 6071 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6072 | fi |
| 6073 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6074 | |
| 6075 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 6076 | echo "configure:6077: checking for optreset" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6077 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then |
| 6078 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6079 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6080 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 6081 | #line 6082 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6082 | #include "confdefs.h" |
| 6083 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6084 | EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6085 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6086 | egrep "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6087 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6088 | ac_cv_have_optreset=yes |
| 6089 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6090 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6091 | ac_cv_have_optreset=no |
| 6092 | fi |
| 6093 | rm -f conftest* |
| 6094 | |
| 6095 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6096 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6097 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6098 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6099 | #define HAVE_OPTRESET 1 |
| 6100 | EOF |
| 6101 | |
| 6102 | fi |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 6103 | case "$host_os" in |
| 6104 | linux*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6105 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6106 | #define HAVE_EXT2_IOCTLS 1 |
| 6107 | EOF |
| 6108 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 6109 | ;; |
| 6110 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6111 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6112 | CYGWIN_CMT="#" |
| 6113 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6114 | case "$host_os" in |
| 6115 | linux*) |
| 6116 | LINUX_CMT= |
| 6117 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6118 | cygwin) |
| 6119 | CYGWIN_CMT= |
| 6120 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6121 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6122 | esac |
| 6123 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6124 | |
| 6125 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6126 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6127 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6128 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 6129 | root_prefix=""; |
| 6130 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6131 | fi |
| 6132 | ;; |
| 6133 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6134 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6135 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6136 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6137 | prefix="/usr"; |
| 6138 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 6139 | if test "$mandir" = '${prefix}/man' ; then |
| 6140 | echo "...and mandir defaults to /usr/share/man" |
| 6141 | mandir=/usr/share/man |
| 6142 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6143 | fi |
| 6144 | ;; |
| 6145 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6146 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 6147 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6148 | root_prefix="$ac_default_prefix" |
| 6149 | else |
| 6150 | root_prefix="$prefix" |
| 6151 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 6152 | root_bindir=$bindir |
| 6153 | root_sbindir=$sbindir |
| 6154 | root_libdir=$libdir |
| 6155 | root_sysconfdir=$sysconfdir |
| 6156 | else |
| 6157 | root_bindir='${root_prefix}/bin' |
| 6158 | root_sbindir='${root_prefix}/sbin' |
| 6159 | root_libdir='${root_prefix}/lib' |
| 6160 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6161 | fi |
| 6162 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6163 | |
| 6164 | |
| 6165 | |
| 6166 | |
| 6167 | echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 6168 | echo "configure:6169: checking whether linker accepts -static" >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6169 | if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then |
| 6170 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6171 | else |
| 6172 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6173 | cat > conftest.$ac_ext <<EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 6174 | #line 6175 "configure" |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6175 | #include "confdefs.h" |
| 6176 | #include <stdio.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6177 | int main() { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6178 | fflush(stdout); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6179 | ; return 0; } |
| 6180 | EOF |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 6181 | if { (eval echo configure:6182: \"$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] | 6182 | rm -rf conftest* |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6183 | ac_cv_e2fsprogs_use_static=yes |
| 6184 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6185 | echo "configure: failed program was:" >&5 |
| 6186 | cat conftest.$ac_ext >&5 |
| 6187 | rm -rf conftest* |
| 6188 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6189 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6190 | rm -f conftest* |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6191 | LDFLAGS=$SAVE_LDFLAGS |
| 6192 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6193 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6194 | case "$host_os" in |
| 6195 | solaris2.*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6196 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6197 | ;; |
| 6198 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6199 | echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6200 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6201 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6202 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6203 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6204 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6205 | case "$host_os" in |
| 6206 | darwin*) |
| 6207 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6208 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6209 | #define _INTL_REDIRECT_MACROS 1 |
| 6210 | EOF |
| 6211 | |
| 6212 | ;; |
| 6213 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6214 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 6215 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 6216 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6217 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6218 | if test "$cross_compiling" = yes ; then |
| 6219 | DO_TEST_SUITE= |
| 6220 | else |
| 6221 | DO_TEST_SUITE=check |
| 6222 | fi |
| 6223 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 6224 | INTL_FLAGS= |
| 6225 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 6226 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 6227 | fi |
| 6228 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6229 | test -d lib || mkdir lib |
| 6230 | test -d include || mkdir include |
| 6231 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6232 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 6233 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 6234 | util/Makefile util/subst.conf util/gen-tarball \ |
| 6235 | 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] | 6236 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 6237 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame^] | 6238 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 6239 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 6240 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 6241 | if test -d `dirname ${srcdir}/$i` ; then |
| 6242 | outlist="$outlist $i" |
| 6243 | fi |
| 6244 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6245 | trap '' 1 2 15 |
| 6246 | cat > confcache <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6247 | # This file is a shell script that caches the results of configure |
| 6248 | # 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] | 6249 | # scripts and configure runs. It is not useful on other systems. |
| 6250 | # 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] | 6251 | # |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6252 | # By default, configure uses ./config.cache as the cache file, |
| 6253 | # creating it if it does not exist already. You can give configure |
| 6254 | # the --cache-file=FILE option to use a different cache file; that is |
| 6255 | # what configure does when it calls configure scripts in |
| 6256 | # subdirectories, so they share the cache. |
| 6257 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6258 | # config.status only pays attention to the cache file if you give it the |
| 6259 | # --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6260 | # |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6261 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6262 | # The following way of writing the cache mishandles newlines in values, |
| 6263 | # but we know of no workaround that is simple, portable, and efficient. |
| 6264 | # So, don't put newlines in cache variables' values. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6265 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6266 | # 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] | 6267 | (set) 2>&1 | |
| 6268 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 6269 | *ac_space=\ *) |
| 6270 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 6271 | # turns \\\\ into \\, and sed turns \\ into \). |
| 6272 | sed -n \ |
| 6273 | -e "s/'/'\\\\''/g" \ |
| 6274 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 6275 | ;; |
| 6276 | *) |
| 6277 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6278 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 6279 | ;; |
| 6280 | esac >> confcache |
| 6281 | if cmp -s $cache_file confcache; then |
| 6282 | : |
| 6283 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6284 | if test -w $cache_file; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6285 | echo "updating cache $cache_file" |
| 6286 | cat confcache > $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6287 | else |
| 6288 | echo "not updating unwritable cache $cache_file" |
| 6289 | fi |
| 6290 | fi |
| 6291 | rm -f confcache |
| 6292 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6293 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 6294 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6295 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6296 | # Let make expand exec_prefix. |
| 6297 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6298 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6299 | # Any assignment to VPATH causes Sun make to only execute |
| 6300 | # the first set of double-colon rules, so remove it if not needed. |
| 6301 | # 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] | 6302 | if test "x$srcdir" = x.; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6303 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6304 | fi |
| 6305 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6306 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 6307 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6308 | # Transform confdefs.h into DEFS. |
| 6309 | # Protect against shell expansion while executing Makefile rules. |
| 6310 | # Protect against Makefile macro expansion. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6311 | cat > conftest.defs <<\EOF |
| 6312 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
| 6313 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 6314 | s%\[%\\&%g |
| 6315 | s%\]%\\&%g |
| 6316 | s%\$%$$%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6317 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6318 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 6319 | rm -f conftest.defs |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6320 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6321 | |
| 6322 | # Without the "./", some shells look in PATH for config.status. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6323 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6324 | |
| 6325 | echo creating $CONFIG_STATUS |
| 6326 | rm -f $CONFIG_STATUS |
| 6327 | cat > $CONFIG_STATUS <<EOF |
| 6328 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6329 | # Generated automatically by configure. |
| 6330 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6331 | # This directory was configured as follows, |
| 6332 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6333 | # |
| 6334 | # $0 $ac_configure_args |
| 6335 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6336 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6337 | # configure, is in ./config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6338 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6339 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 6340 | for ac_option |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6341 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6342 | case "\$ac_option" in |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6343 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6344 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6345 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 6346 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 6347 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 6348 | exit 0 ;; |
| 6349 | -help | --help | --hel | --he | --h) |
| 6350 | echo "\$ac_cs_usage"; exit 0 ;; |
| 6351 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6352 | esac |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6353 | done |
| 6354 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6355 | ac_given_srcdir=$srcdir |
| 6356 | ac_given_INSTALL="$INSTALL" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6357 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6358 | trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 6359 | EOF |
| 6360 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6361 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6362 | # Protect against being on the right side of a sed subst in config.status. |
| 6363 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6364 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 6365 | $ac_vpsub |
| 6366 | $extrasub |
| 6367 | s%@SHELL@%$SHELL%g |
| 6368 | s%@CFLAGS@%$CFLAGS%g |
| 6369 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 6370 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 6371 | s%@FFLAGS@%$FFLAGS%g |
| 6372 | s%@DEFS@%$DEFS%g |
| 6373 | s%@LDFLAGS@%$LDFLAGS%g |
| 6374 | s%@LIBS@%$LIBS%g |
| 6375 | s%@exec_prefix@%$exec_prefix%g |
| 6376 | s%@prefix@%$prefix%g |
| 6377 | s%@program_transform_name@%$program_transform_name%g |
| 6378 | s%@bindir@%$bindir%g |
| 6379 | s%@sbindir@%$sbindir%g |
| 6380 | s%@libexecdir@%$libexecdir%g |
| 6381 | s%@datadir@%$datadir%g |
| 6382 | s%@sysconfdir@%$sysconfdir%g |
| 6383 | s%@sharedstatedir@%$sharedstatedir%g |
| 6384 | s%@localstatedir@%$localstatedir%g |
| 6385 | s%@libdir@%$libdir%g |
| 6386 | s%@includedir@%$includedir%g |
| 6387 | s%@oldincludedir@%$oldincludedir%g |
| 6388 | s%@infodir@%$infodir%g |
| 6389 | s%@mandir@%$mandir%g |
| 6390 | /@MCONFIG@/r $MCONFIG |
| 6391 | s%@MCONFIG@%%g |
| 6392 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g |
| 6393 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g |
| 6394 | s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g |
| 6395 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g |
| 6396 | s%@host@%$host%g |
| 6397 | s%@host_alias@%$host_alias%g |
| 6398 | s%@host_cpu@%$host_cpu%g |
| 6399 | s%@host_vendor@%$host_vendor%g |
| 6400 | s%@host_os@%$host_os%g |
| 6401 | s%@CC@%$CC%g |
| 6402 | s%@LD@%$LD%g |
| 6403 | s%@CPP@%$CPP%g |
| 6404 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g |
| 6405 | s%@HTREE_CMT@%$HTREE_CMT%g |
| 6406 | s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6407 | s%@ELF_CMT@%$ELF_CMT%g |
| 6408 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF |
| 6409 | s%@MAKEFILE_ELF@%%g |
| 6410 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g |
| 6411 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB |
| 6412 | s%@MAKEFILE_BSDLIB@%%g |
| 6413 | s%@PROFILE_CMT@%$PROFILE_CMT%g |
| 6414 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE |
| 6415 | s%@MAKEFILE_PROFILE@%%g |
| 6416 | s%@CHECKER_CMT@%$CHECKER_CMT%g |
| 6417 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER |
| 6418 | s%@MAKEFILE_CHECKER@%%g |
| 6419 | s%@LIB_EXT@%$LIB_EXT%g |
| 6420 | s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g |
| 6421 | s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g |
| 6422 | s%@SWAPFS_CMT@%$SWAPFS_CMT%g |
| 6423 | s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g |
| 6424 | s%@IMAGER_CMT@%$IMAGER_CMT%g |
| 6425 | s%@RESIZER_CMT@%$RESIZER_CMT%g |
| 6426 | s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g |
| 6427 | s%@FSCK_PROG@%$FSCK_PROG%g |
| 6428 | s%@FSCK_MAN@%$FSCK_MAN%g |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 6429 | s%@E2INITRD_PROG@%$E2INITRD_PROG%g |
| 6430 | s%@E2INITRD_MAN@%$E2INITRD_MAN%g |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6431 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY |
| 6432 | s%@MAKEFILE_LIBRARY@%%g |
| 6433 | s%@PACKAGE@%$PACKAGE%g |
| 6434 | s%@VERSION@%$VERSION%g |
| 6435 | s%@SET_MAKE@%$SET_MAKE%g |
| 6436 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 6437 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| 6438 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 6439 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
| 6440 | s%@MSGFMT@%$MSGFMT%g |
| 6441 | s%@GMSGFMT@%$GMSGFMT%g |
| 6442 | s%@XGETTEXT@%$XGETTEXT%g |
| 6443 | s%@MSGMERGE@%$MSGMERGE%g |
| 6444 | s%@RANLIB@%$RANLIB%g |
| 6445 | s%@ALLOCA@%$ALLOCA%g |
| 6446 | s%@GLIBC21@%$GLIBC21%g |
| 6447 | s%@LIBICONV@%$LIBICONV%g |
| 6448 | s%@LTLIBICONV@%$LTLIBICONV%g |
| 6449 | s%@INTLBISON@%$INTLBISON%g |
| 6450 | s%@USE_NLS@%$USE_NLS%g |
| 6451 | s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g |
| 6452 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
| 6453 | s%@CATOBJEXT@%$CATOBJEXT%g |
| 6454 | s%@INTLOBJS@%$INTLOBJS%g |
| 6455 | s%@DATADIRNAME@%$DATADIRNAME%g |
| 6456 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
| 6457 | s%@GENCAT@%$GENCAT%g |
| 6458 | s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g |
| 6459 | s%@INTLLIBS@%$INTLLIBS%g |
| 6460 | s%@LIBINTL@%$LIBINTL%g |
| 6461 | s%@LTLIBINTL@%$LTLIBINTL%g |
| 6462 | s%@POSUB@%$POSUB%g |
| 6463 | s%@BINARY_TYPE@%$BINARY_TYPE%g |
| 6464 | s%@LN@%$LN%g |
| 6465 | s%@LN_S@%$LN_S%g |
| 6466 | s%@MV@%$MV%g |
| 6467 | s%@CP@%$CP%g |
| 6468 | s%@RM@%$RM%g |
| 6469 | s%@CHMOD@%$CHMOD%g |
| 6470 | s%@AWK@%$AWK%g |
| 6471 | s%@SED@%$SED%g |
| 6472 | s%@PERL@%$PERL%g |
| 6473 | s%@LDCONFIG@%$LDCONFIG%g |
| 6474 | s%@build@%$build%g |
| 6475 | s%@build_alias@%$build_alias%g |
| 6476 | s%@build_cpu@%$build_cpu%g |
| 6477 | s%@build_vendor@%$build_vendor%g |
| 6478 | s%@build_os@%$build_os%g |
| 6479 | s%@AR@%$AR%g |
| 6480 | s%@STRIP@%$STRIP%g |
| 6481 | s%@BUILD_CC@%$BUILD_CC%g |
| 6482 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g |
| 6483 | s%@SIZEOF_INT@%$SIZEOF_INT%g |
| 6484 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g |
| 6485 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g |
| 6486 | s%@SOCKET_LIB@%$SOCKET_LIB%g |
| 6487 | s%@DLOPEN_LIB@%$DLOPEN_LIB%g |
| 6488 | s%@LINUX_CMT@%$LINUX_CMT%g |
| 6489 | s%@CYGWIN_CMT@%$CYGWIN_CMT%g |
| 6490 | s%@UNIX_CMT@%$UNIX_CMT%g |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6491 | s%@root_prefix@%$root_prefix%g |
| 6492 | s%@root_bindir@%$root_bindir%g |
| 6493 | s%@root_sbindir@%$root_sbindir%g |
| 6494 | s%@root_libdir@%$root_libdir%g |
| 6495 | s%@root_sysconfdir@%$root_sysconfdir%g |
| 6496 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g |
| 6497 | s%@SS_DIR@%$SS_DIR%g |
| 6498 | s%@ET_DIR@%$ET_DIR%g |
| 6499 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g |
| 6500 | s%@INTL_FLAGS@%$INTL_FLAGS%g |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6501 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6502 | CEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6503 | EOF |
| 6504 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6505 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6506 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6507 | # Split the substitutions into bite-sized pieces for seds with |
| 6508 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6509 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6510 | ac_file=1 # Number of current file. |
| 6511 | ac_beg=1 # First line for current file. |
| 6512 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6513 | ac_more_lines=: |
| 6514 | ac_sed_cmds="" |
| 6515 | while $ac_more_lines; do |
| 6516 | if test $ac_beg -gt 1; then |
| 6517 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6518 | else |
| 6519 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6520 | fi |
| 6521 | if test ! -s conftest.s$ac_file; then |
| 6522 | ac_more_lines=false |
| 6523 | rm -f conftest.s$ac_file |
| 6524 | else |
| 6525 | if test -z "$ac_sed_cmds"; then |
| 6526 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6527 | else |
| 6528 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6529 | fi |
| 6530 | ac_file=`expr $ac_file + 1` |
| 6531 | ac_beg=$ac_end |
| 6532 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6533 | fi |
| 6534 | done |
| 6535 | if test -z "$ac_sed_cmds"; then |
| 6536 | ac_sed_cmds=cat |
| 6537 | fi |
| 6538 | EOF |
| 6539 | |
| 6540 | cat >> $CONFIG_STATUS <<EOF |
| 6541 | |
| 6542 | CONFIG_FILES=\${CONFIG_FILES-"$outlist"} |
| 6543 | EOF |
| 6544 | cat >> $CONFIG_STATUS <<\EOF |
| 6545 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 6546 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6547 | case "$ac_file" in |
| 6548 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 6549 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6550 | *) ac_file_in="${ac_file}.in" ;; |
| 6551 | esac |
| 6552 | |
| 6553 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 6554 | |
| 6555 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6556 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6557 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6558 | # The file is in a subdirectory. |
| 6559 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6560 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 6561 | # A "../" for each directory in $ac_dir_suffix. |
| 6562 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6563 | else |
| 6564 | ac_dir_suffix= ac_dots= |
| 6565 | fi |
| 6566 | |
| 6567 | case "$ac_given_srcdir" in |
| 6568 | .) srcdir=. |
| 6569 | if test -z "$ac_dots"; then top_srcdir=. |
| 6570 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6571 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6572 | *) # Relative path. |
| 6573 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6574 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6575 | esac |
| 6576 | |
| 6577 | case "$ac_given_INSTALL" in |
| 6578 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 6579 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 6580 | esac |
| 6581 | |
| 6582 | echo creating "$ac_file" |
| 6583 | rm -f "$ac_file" |
| 6584 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6585 | case "$ac_file" in |
| 6586 | *Makefile*) ac_comsub="1i\\ |
| 6587 | # $configure_input" ;; |
| 6588 | *) ac_comsub= ;; |
| 6589 | esac |
| 6590 | |
| 6591 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6592 | sed -e "$ac_comsub |
| 6593 | s%@configure_input@%$configure_input%g |
| 6594 | s%@srcdir@%$srcdir%g |
| 6595 | s%@top_srcdir@%$top_srcdir%g |
| 6596 | s%@INSTALL@%$INSTALL%g |
| 6597 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 6598 | fi; done |
| 6599 | rm -f conftest.s* |
| 6600 | |
| 6601 | EOF |
| 6602 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6603 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 6604 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
| 6605 | # from automake. |
| 6606 | eval 'ALL_LINGUAS''="$ALL_LINGUAS"' |
| 6607 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 6608 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6609 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6610 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6611 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6612 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6613 | |
| 6614 | for ac_file in $CONFIG_FILES; do |
| 6615 | # Support "outfile[:infile[:infile...]]" |
| 6616 | case "$ac_file" in |
| 6617 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6618 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6619 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 6620 | case "$ac_file" in */Makefile.in) |
| 6621 | # Adjust a relative srcdir. |
| 6622 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 6623 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 6624 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 6625 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 6626 | # In autoconf-2.50 it is called $srcdir. |
| 6627 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 6628 | case "$ac_given_srcdir" in |
| 6629 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 6630 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 6631 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6632 | esac |
| 6633 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 6634 | rm -f "$ac_dir/POTFILES" |
| 6635 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 6636 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 6637 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
| 6638 | # on $ac_dir but don't depend on user-specified configuration |
| 6639 | # parameters. |
| 6640 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 6641 | # The LINGUAS file contains the set of available languages. |
| 6642 | if test -n "$ALL_LINGUAS"; then |
| 6643 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 6644 | fi |
| 6645 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 6646 | # Hide the ALL_LINGUAS assigment from automake. |
| 6647 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 6648 | fi |
| 6649 | case "$ac_given_srcdir" in |
| 6650 | .) srcdirpre= ;; |
| 6651 | *) srcdirpre='$(srcdir)/' ;; |
| 6652 | esac |
| 6653 | POFILES= |
| 6654 | GMOFILES= |
| 6655 | UPDATEPOFILES= |
| 6656 | DUMMYPOFILES= |
| 6657 | for lang in $ALL_LINGUAS; do |
| 6658 | POFILES="$POFILES $srcdirpre$lang.po" |
| 6659 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 6660 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 6661 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 6662 | done |
| 6663 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 6664 | # environment variable. |
| 6665 | INST_LINGUAS= |
| 6666 | if test -n "$ALL_LINGUAS"; then |
| 6667 | for presentlang in $ALL_LINGUAS; do |
| 6668 | useit=no |
| 6669 | if test "%UNSET%" != "$LINGUAS"; then |
| 6670 | desiredlanguages="$LINGUAS" |
| 6671 | else |
| 6672 | desiredlanguages="$ALL_LINGUAS" |
| 6673 | fi |
| 6674 | for desiredlang in $desiredlanguages; do |
| 6675 | # Use the presentlang catalog if desiredlang is |
| 6676 | # a. equal to presentlang, or |
| 6677 | # b. a variant of presentlang (because in this case, |
| 6678 | # presentlang can be used as a fallback for messages |
| 6679 | # which are not translated in the desiredlang catalog). |
| 6680 | case "$desiredlang" in |
| 6681 | "$presentlang"*) useit=yes;; |
| 6682 | esac |
| 6683 | done |
| 6684 | if test $useit = yes; then |
| 6685 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 6686 | fi |
| 6687 | done |
| 6688 | fi |
| 6689 | CATALOGS= |
| 6690 | if test -n "$INST_LINGUAS"; then |
| 6691 | for lang in $INST_LINGUAS; do |
| 6692 | CATALOGS="$CATALOGS $lang.gmo" |
| 6693 | done |
| 6694 | fi |
| 6695 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 6696 | 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" |
| 6697 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 6698 | if test -f "$f"; then |
| 6699 | case "$f" in |
| 6700 | *.orig | *.bak | *~) ;; |
| 6701 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 6702 | esac |
| 6703 | fi |
| 6704 | done |
| 6705 | fi |
| 6706 | ;; |
| 6707 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6708 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6709 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6710 | exit 0 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6711 | EOF |
| 6712 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6713 | rm -fr confdefs* $ac_clean_files |
| 6714 | 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] | 6715 | |