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