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