Parent Directory
|
Revision Log
Load pcre-5.0 into code/trunk.
| 1 | nigel | 41 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. | ||
| 3 | nigel | 75 | # Generated by GNU Autoconf 2.59. |
| 4 | nigel | 41 | # |
| 5 | nigel | 75 | # Copyright (C) 2003 Free Software Foundation, Inc. |
| 6 | nigel | 41 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. | ||
| 8 | nigel | 63 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## | ||
| 10 | ## --------------------- ## | ||
| 11 | nigel | 41 | |
| 12 | nigel | 63 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
| 14 | emulate sh | ||
| 15 | NULLCMD=: | ||
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
| 17 | # is contrary to our usage. Disable this feature. | ||
| 18 | alias -g '${1+"$@"}'='"$@"' | ||
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
| 20 | set -o posix | ||
| 21 | fi | ||
| 22 | nigel | 75 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | nigel | 63 | |
| 24 | # Support unset when possible. | ||
| 25 | nigel | 75 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | nigel | 63 | as_unset=unset |
| 27 | else | ||
| 28 | as_unset=false | ||
| 29 | fi | ||
| 30 | |||
| 31 | |||
| 32 | # Work around bugs in pre-3.0 UWIN ksh. | ||
| 33 | $as_unset ENV MAIL MAILPATH | ||
| 34 | PS1='$ ' | ||
| 35 | PS2='> ' | ||
| 36 | PS4='+ ' | ||
| 37 | |||
| 38 | # NLS nuisances. | ||
| 39 | for as_var in \ | ||
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
| 42 | LC_TELEPHONE LC_TIME | ||
| 43 | do | ||
| 44 | nigel | 75 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | nigel | 63 | eval $as_var=C; export $as_var |
| 46 | else | ||
| 47 | $as_unset $as_var | ||
| 48 | fi | ||
| 49 | done | ||
| 50 | |||
| 51 | # Required to use basename. | ||
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
| 53 | as_expr=expr | ||
| 54 | else | ||
| 55 | as_expr=false | ||
| 56 | fi | ||
| 57 | |||
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
| 59 | as_basename=basename | ||
| 60 | else | ||
| 61 | as_basename=false | ||
| 62 | fi | ||
| 63 | |||
| 64 | |||
| 65 | # Name of the executable. | ||
| 66 | as_me=`$as_basename "$0" || | ||
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
| 68 | X"$0" : 'X\(//\)$' \| \ | ||
| 69 | X"$0" : 'X\(/\)$' \| \ | ||
| 70 | . : '\(.\)' 2>/dev/null || | ||
| 71 | echo X/"$0" | | ||
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
| 75 | s/.*/./; q'` | ||
| 76 | |||
| 77 | |||
| 78 | # PATH needs CR, and LINENO needs CR and PATH. | ||
| 79 | # Avoid depending upon Character Ranges. | ||
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
| 83 | as_cr_digits='0123456789' | ||
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
| 85 | |||
| 86 | # The user is always right. | ||
| 87 | if test "${PATH_SEPARATOR+set}" != set; then | ||
| 88 | echo "#! /bin/sh" >conf$$.sh | ||
| 89 | echo "exit 0" >>conf$$.sh | ||
| 90 | chmod +x conf$$.sh | ||
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
| 92 | PATH_SEPARATOR=';' | ||
| 93 | else | ||
| 94 | PATH_SEPARATOR=: | ||
| 95 | fi | ||
| 96 | rm -f conf$$.sh | ||
| 97 | fi | ||
| 98 | |||
| 99 | |||
| 100 | as_lineno_1=$LINENO | ||
| 101 | as_lineno_2=$LINENO | ||
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
| 105 | # Find who we are. Look in the path if we contain no path at all | ||
| 106 | # relative or not. | ||
| 107 | case $0 in | ||
| 108 | *[\\/]* ) as_myself=$0 ;; | ||
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 110 | for as_dir in $PATH | ||
| 111 | do | ||
| 112 | IFS=$as_save_IFS | ||
| 113 | test -z "$as_dir" && as_dir=. | ||
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
| 115 | done | ||
| 116 | |||
| 117 | ;; | ||
| 118 | esac | ||
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
| 120 | # in which case we are not to be found in the path. | ||
| 121 | if test "x$as_myself" = x; then | ||
| 122 | as_myself=$0 | ||
| 123 | fi | ||
| 124 | if test ! -f "$as_myself"; then | ||
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | ||
| 126 | { (exit 1); exit 1; }; } | ||
| 127 | fi | ||
| 128 | case $CONFIG_SHELL in | ||
| 129 | '') | ||
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
| 132 | do | ||
| 133 | IFS=$as_save_IFS | ||
| 134 | test -z "$as_dir" && as_dir=. | ||
| 135 | for as_base in sh bash ksh sh5; do | ||
| 136 | case $as_dir in | ||
| 137 | /*) | ||
| 138 | if ("$as_dir/$as_base" -c ' | ||
| 139 | as_lineno_1=$LINENO | ||
| 140 | as_lineno_2=$LINENO | ||
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
| 146 | CONFIG_SHELL=$as_dir/$as_base | ||
| 147 | export CONFIG_SHELL | ||
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
| 149 | fi;; | ||
| 150 | esac | ||
| 151 | done | ||
| 152 | done | ||
| 153 | ;; | ||
| 154 | esac | ||
| 155 | |||
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
| 158 | # line-number line before each line; the second 'sed' does the real | ||
| 159 | # work. The second script uses 'N' to pair each line-number line | ||
| 160 | # with the numbered line, and appends trailing '-' during | ||
| 161 | # substitution so that $LINENO is not a special case at line end. | ||
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
| 164 | sed '=' <$as_myself | | ||
| 165 | sed ' | ||
| 166 | N | ||
| 167 | s,$,-, | ||
| 168 | : loop | ||
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
| 170 | t loop | ||
| 171 | s,-$,, | ||
| 172 | s,^['$as_cr_digits']*\n,, | ||
| 173 | ' >$as_me.lineno && | ||
| 174 | chmod +x $as_me.lineno || | ||
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
| 176 | { (exit 1); exit 1; }; } | ||
| 177 | |||
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
| 179 | # (the dirname of $[0] is not the place where we might find the | ||
| 180 | # original and so on. Autoconf is especially sensible to this). | ||
| 181 | . ./$as_me.lineno | ||
| 182 | # Exit status is that of the last command. | ||
| 183 | exit | ||
| 184 | } | ||
| 185 | |||
| 186 | |||
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
| 188 | *c*,-n*) ECHO_N= ECHO_C=' | ||
| 189 | ' ECHO_T=' ' ;; | ||
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
| 192 | esac | ||
| 193 | |||
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
| 195 | as_expr=expr | ||
| 196 | else | ||
| 197 | as_expr=false | ||
| 198 | fi | ||
| 199 | |||
| 200 | rm -f conf$$ conf$$.exe conf$$.file | ||
| 201 | echo >conf$$.file | ||
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
| 205 | if test -f conf$$.exe; then | ||
| 206 | # Don't use ln at all; we don't have any links | ||
| 207 | as_ln_s='cp -p' | ||
| 208 | else | ||
| 209 | as_ln_s='ln -s' | ||
| 210 | fi | ||
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
| 212 | as_ln_s=ln | ||
| 213 | else | ||
| 214 | as_ln_s='cp -p' | ||
| 215 | fi | ||
| 216 | rm -f conf$$ conf$$.exe conf$$.file | ||
| 217 | |||
| 218 | if mkdir -p . 2>/dev/null; then | ||
| 219 | as_mkdir_p=: | ||
| 220 | else | ||
| 221 | nigel | 75 | test -d ./-p && rmdir ./-p |
| 222 | nigel | 63 | as_mkdir_p=false |
| 223 | fi | ||
| 224 | |||
| 225 | as_executable_p="test -f" | ||
| 226 | |||
| 227 | # Sed expression to map a string onto a valid CPP name. | ||
| 228 | nigel | 75 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | nigel | 63 | |
| 230 | # Sed expression to map a string onto a valid variable name. | ||
| 231 | nigel | 75 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | nigel | 63 | |
| 233 | |||
| 234 | # IFS | ||
| 235 | # We need space, tab and new line, in precisely that order. | ||
| 236 | as_nl=' | ||
| 237 | ' | ||
| 238 | IFS=" $as_nl" | ||
| 239 | |||
| 240 | # CDPATH. | ||
| 241 | $as_unset CDPATH | ||
| 242 | |||
| 243 | |||
| 244 | nigel | 53 | |
| 245 | # Check that we are running under the correct shell. | ||
| 246 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
| 247 | |||
| 248 | case X$ECHO in | ||
| 249 | X*--fallback-echo) | ||
| 250 | # Remove one level of quotation (which was required for Make). | ||
| 251 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
| 252 | ;; | ||
| 253 | esac | ||
| 254 | |||
| 255 | echo=${ECHO-echo} | ||
| 256 | if test "X$1" = X--no-reexec; then | ||
| 257 | # Discard the --no-reexec flag, and continue. | ||
| 258 | shift | ||
| 259 | elif test "X$1" = X--fallback-echo; then | ||
| 260 | # Avoid inline document here, it may be left over | ||
| 261 | : | ||
| 262 | nigel | 75 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 263 | nigel | 53 | # Yippee, $echo works! |
| 264 | : | ||
| 265 | else | ||
| 266 | # Restart under the correct shell. | ||
| 267 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
| 268 | fi | ||
| 269 | |||
| 270 | if test "X$1" = X--fallback-echo; then | ||
| 271 | # used as fallback echo | ||
| 272 | shift | ||
| 273 | cat <<EOF | ||
| 274 | nigel | 75 | $* |
| 275 | nigel | 53 | EOF |
| 276 | exit 0 | ||
| 277 | fi | ||
| 278 | |||
| 279 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
| 280 | # if CDPATH is set. | ||
| 281 | nigel | 75 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 282 | nigel | 53 | |
| 283 | if test -z "$ECHO"; then | ||
| 284 | if test "X${echo_test_string+set}" != Xset; then | ||
| 285 | # find a string as large as possible, as long as the shell can cope with it | ||
| 286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
| 287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
| 288 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | ||
| 289 | echo_test_string="`eval $cmd`" && | ||
| 290 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | ||
| 291 | then | ||
| 292 | break | ||
| 293 | fi | ||
| 294 | done | ||
| 295 | fi | ||
| 296 | |||
| 297 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
| 298 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
| 299 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
| 300 | : | ||
| 301 | else | ||
| 302 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
| 303 | # backslashes. This makes it impossible to quote backslashes using | ||
| 304 | # echo "$something" | sed 's/\\/\\\\/g' | ||
| 305 | # | ||
| 306 | # So, first we look for a working echo in the user's PATH. | ||
| 307 | |||
| 308 | nigel | 75 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 309 | nigel | 53 | for dir in $PATH /usr/ucb; do |
| 310 | nigel | 75 | IFS="$lt_save_ifs" |
| 311 | nigel | 53 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 312 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
| 313 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
| 314 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
| 315 | echo="$dir/echo" | ||
| 316 | break | ||
| 317 | fi | ||
| 318 | done | ||
| 319 | nigel | 75 | IFS="$lt_save_ifs" |
| 320 | nigel | 53 | |
| 321 | if test "X$echo" = Xecho; then | ||
| 322 | # We didn't find a better echo, so look for alternatives. | ||
| 323 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
| 324 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
| 325 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
| 326 | # This shell has a builtin print -r that does the trick. | ||
| 327 | echo='print -r' | ||
| 328 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
| 329 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
| 330 | # If we have ksh, try running configure again with it. | ||
| 331 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
| 332 | export ORIGINAL_CONFIG_SHELL | ||
| 333 | CONFIG_SHELL=/bin/ksh | ||
| 334 | export CONFIG_SHELL | ||
| 335 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
| 336 | else | ||
| 337 | # Try using printf. | ||
| 338 | echo='printf %s\n' | ||
| 339 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
| 340 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
| 341 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
| 342 | # Cool, printf works | ||
| 343 | : | ||
| 344 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
| 345 | test "X$echo_testing_string" = 'X\t' && | ||
| 346 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
| 347 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
| 348 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
| 349 | export CONFIG_SHELL | ||
| 350 | SHELL="$CONFIG_SHELL" | ||
| 351 | export SHELL | ||
| 352 | echo="$CONFIG_SHELL $0 --fallback-echo" | ||
| 353 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
| 354 | test "X$echo_testing_string" = 'X\t' && | ||
| 355 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
| 356 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
| 357 | echo="$CONFIG_SHELL $0 --fallback-echo" | ||
| 358 | else | ||
| 359 | # maybe with a smaller string... | ||
| 360 | prev=: | ||
| 361 | |||
| 362 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
| 363 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | ||
| 364 | then | ||
| 365 | break | ||
| 366 | fi | ||
| 367 | prev="$cmd" | ||
| 368 | done | ||
| 369 | |||
| 370 | if test "$prev" != 'sed 50q "$0"'; then | ||
| 371 | echo_test_string=`eval $prev` | ||
| 372 | export echo_test_string | ||
| 373 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
| 374 | else | ||
| 375 | # Oops. We lost completely, so just stick with echo. | ||
| 376 | echo=echo | ||
| 377 | fi | ||
| 378 | fi | ||
| 379 | fi | ||
| 380 | fi | ||
| 381 | fi | ||
| 382 | fi | ||
| 383 | |||
| 384 | # Copy echo and quote the copy suitably for passing to libtool from | ||
| 385 | # the Makefile, instead of quoting the original, which is used later. | ||
| 386 | ECHO=$echo | ||
| 387 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
| 388 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
| 389 | fi | ||
| 390 | |||
| 391 | |||
| 392 | |||
| 393 | nigel | 75 | |
| 394 | tagnames=${tagnames+${tagnames},}CXX | ||
| 395 | |||
| 396 | tagnames=${tagnames+${tagnames},}F77 | ||
| 397 | |||
| 398 | nigel | 53 | # Name of the host. |
| 399 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
| 400 | # so uname gets run too. | ||
| 401 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
| 402 | |||
| 403 | exec 6>&1 | ||
| 404 | |||
| 405 | # | ||
| 406 | # Initializations. | ||
| 407 | # | ||
| 408 | nigel | 41 | ac_default_prefix=/usr/local |
| 409 | nigel | 63 | ac_config_libobj_dir=. |
| 410 | nigel | 53 | cross_compiling=no |
| 411 | subdirs= | ||
| 412 | nigel | 63 | MFLAGS= |
| 413 | MAKEFLAGS= | ||
| 414 | nigel | 53 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 415 | nigel | 41 | |
| 416 | nigel | 53 | # Maximum number of lines to put in a shell here document. |
| 417 | # This variable seems obsolete. It should probably be removed, and | ||
| 418 | # only ac_max_sed_lines should be used. | ||
| 419 | : ${ac_max_here_lines=38} | ||
| 420 | |||
| 421 | nigel | 63 | # Identity of this package. |
| 422 | PACKAGE_NAME= | ||
| 423 | PACKAGE_TARNAME= | ||
| 424 | PACKAGE_VERSION= | ||
| 425 | PACKAGE_STRING= | ||
| 426 | PACKAGE_BUGREPORT= | ||
| 427 | nigel | 53 | |
| 428 | ac_unique_file="dftables.c" | ||
| 429 | # Factoring default headers for most tests. | ||
| 430 | ac_includes_default="\ | ||
| 431 | #include <stdio.h> | ||
| 432 | nigel | 63 | #if HAVE_SYS_TYPES_H |
| 433 | # include <sys/types.h> | ||
| 434 | #endif | ||
| 435 | #if HAVE_SYS_STAT_H | ||
| 436 | # include <sys/stat.h> | ||
| 437 | #endif | ||
| 438 | nigel | 53 | #if STDC_HEADERS |
| 439 | # include <stdlib.h> | ||
| 440 | # include <stddef.h> | ||
| 441 | #else | ||
| 442 | # if HAVE_STDLIB_H | ||
| 443 | # include <stdlib.h> | ||
| 444 | # endif | ||
| 445 | #endif | ||
| 446 | #if HAVE_STRING_H | ||
| 447 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
| 448 | # include <memory.h> | ||
| 449 | # endif | ||
| 450 | # include <string.h> | ||
| 451 | #endif | ||
| 452 | nigel | 63 | #if HAVE_STRINGS_H |
| 453 | # include <strings.h> | ||
| 454 | #endif | ||
| 455 | nigel | 53 | #if HAVE_INTTYPES_H |
| 456 | # include <inttypes.h> | ||
| 457 | nigel | 63 | #else |
| 458 | # if HAVE_STDINT_H | ||
| 459 | # include <stdint.h> | ||
| 460 | # endif | ||
| 461 | nigel | 53 | #endif |
| 462 | #if HAVE_UNISTD_H | ||
| 463 | # include <unistd.h> | ||
| 464 | #endif" | ||
| 465 | |||
| 466 | nigel | 75 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CFLAGS_FOR_BUILD EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT NEWLINE NO_RECURSE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS' |
| 467 | nigel | 63 | ac_subst_files='' |
| 468 | |||
| 469 | nigel | 41 | # Initialize some variables set by options. |
| 470 | nigel | 53 | ac_init_help= |
| 471 | ac_init_version=false | ||
| 472 | nigel | 41 | # The variables have the same names as the options, with |
| 473 | # dashes changed to underlines. | ||
| 474 | nigel | 53 | cache_file=/dev/null |
| 475 | nigel | 41 | exec_prefix=NONE |
| 476 | no_create= | ||
| 477 | no_recursion= | ||
| 478 | prefix=NONE | ||
| 479 | program_prefix=NONE | ||
| 480 | program_suffix=NONE | ||
| 481 | program_transform_name=s,x,x, | ||
| 482 | silent= | ||
| 483 | site= | ||
| 484 | srcdir= | ||
| 485 | verbose= | ||
| 486 | x_includes=NONE | ||
| 487 | x_libraries=NONE | ||
| 488 | nigel | 53 | |
| 489 | # Installation directory options. | ||
| 490 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
| 491 | # and all the variables that are supposed to be based on exec_prefix | ||
| 492 | # by default will actually change. | ||
| 493 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
| 494 | nigel | 41 | bindir='${exec_prefix}/bin' |
| 495 | sbindir='${exec_prefix}/sbin' | ||
| 496 | libexecdir='${exec_prefix}/libexec' | ||
| 497 | datadir='${prefix}/share' | ||
| 498 | sysconfdir='${prefix}/etc' | ||
| 499 | sharedstatedir='${prefix}/com' | ||
| 500 | localstatedir='${prefix}/var' | ||
| 501 | libdir='${exec_prefix}/lib' | ||
| 502 | includedir='${prefix}/include' | ||
| 503 | oldincludedir='/usr/include' | ||
| 504 | infodir='${prefix}/info' | ||
| 505 | mandir='${prefix}/man' | ||
| 506 | |||
| 507 | ac_prev= | ||
| 508 | for ac_option | ||
| 509 | do | ||
| 510 | # If the previous option needs an argument, assign it. | ||
| 511 | if test -n "$ac_prev"; then | ||
| 512 | eval "$ac_prev=\$ac_option" | ||
| 513 | ac_prev= | ||
| 514 | continue | ||
| 515 | fi | ||
| 516 | |||
| 517 | nigel | 53 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 518 | nigel | 41 | |
| 519 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
| 520 | |||
| 521 | nigel | 53 | case $ac_option in |
| 522 | nigel | 41 | |
| 523 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
| 524 | ac_prev=bindir ;; | ||
| 525 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
| 526 | nigel | 53 | bindir=$ac_optarg ;; |
| 527 | nigel | 41 | |
| 528 | -build | --build | --buil | --bui | --bu) | ||
| 529 | nigel | 53 | ac_prev=build_alias ;; |
| 530 | nigel | 41 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 531 | nigel | 53 | build_alias=$ac_optarg ;; |
| 532 | nigel | 41 | |
| 533 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
| 534 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
| 535 | ac_prev=cache_file ;; | ||
| 536 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
| 537 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
| 538 | nigel | 53 | cache_file=$ac_optarg ;; |
| 539 | nigel | 41 | |
| 540 | nigel | 53 | --config-cache | -C) |
| 541 | cache_file=config.cache ;; | ||
| 542 | |||
| 543 | nigel | 41 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 544 | ac_prev=datadir ;; | ||
| 545 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
| 546 | | --da=*) | ||
| 547 | nigel | 53 | datadir=$ac_optarg ;; |
| 548 | nigel | 41 | |
| 549 | -disable-* | --disable-*) | ||
| 550 | nigel | 53 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 551 | nigel | 41 | # Reject names that are not valid shell variable names. |
| 552 | nigel | 63 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 553 | nigel | 53 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 554 | { (exit 1); exit 1; }; } | ||
| 555 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
| 556 | eval "enable_$ac_feature=no" ;; | ||
| 557 | nigel | 41 | |
| 558 | -enable-* | --enable-*) | ||
| 559 | nigel | 53 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 560 | nigel | 41 | # Reject names that are not valid shell variable names. |
| 561 | nigel | 63 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 562 | nigel | 53 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 563 | { (exit 1); exit 1; }; } | ||
| 564 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
| 565 | case $ac_option in | ||
| 566 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
| 567 | nigel | 41 | *) ac_optarg=yes ;; |
| 568 | esac | ||
| 569 | nigel | 53 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 570 | nigel | 41 | |
| 571 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
| 572 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
| 573 | | --exec | --exe | --ex) | ||
| 574 | ac_prev=exec_prefix ;; | ||
| 575 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
| 576 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
| 577 | | --exec=* | --exe=* | --ex=*) | ||
| 578 | nigel | 53 | exec_prefix=$ac_optarg ;; |
| 579 | nigel | 41 | |
| 580 | -gas | --gas | --ga | --g) | ||
| 581 | # Obsolete; use --with-gas. | ||
| 582 | with_gas=yes ;; | ||
| 583 | |||
| 584 | nigel | 53 | -help | --help | --hel | --he | -h) |
| 585 | ac_init_help=long ;; | ||
| 586 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
| 587 | ac_init_help=recursive ;; | ||
| 588 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
| 589 | ac_init_help=short ;; | ||
| 590 | nigel | 41 | |
| 591 | -host | --host | --hos | --ho) | ||
| 592 | nigel | 53 | ac_prev=host_alias ;; |
| 593 | nigel | 41 | -host=* | --host=* | --hos=* | --ho=*) |
| 594 | nigel | 53 | host_alias=$ac_optarg ;; |
| 595 | nigel | 41 | |
| 596 | -includedir | --includedir | --includedi | --included | --include \ | ||
| 597 | | --includ | --inclu | --incl | --inc) | ||
| 598 | ac_prev=includedir ;; | ||
| 599 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
| 600 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
| 601 | nigel | 53 | includedir=$ac_optarg ;; |
| 602 | nigel | 41 | |
| 603 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
| 604 | ac_prev=infodir ;; | ||
| 605 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
| 606 | nigel | 53 | infodir=$ac_optarg ;; |
| 607 | nigel | 41 | |
| 608 | -libdir | --libdir | --libdi | --libd) | ||
| 609 | ac_prev=libdir ;; | ||
| 610 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
| 611 | nigel | 53 | libdir=$ac_optarg ;; |
| 612 | nigel | 41 | |
| 613 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
| 614 | | --libexe | --libex | --libe) | ||
| 615 | ac_prev=libexecdir ;; | ||
| 616 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
| 617 | | --libexe=* | --libex=* | --libe=*) | ||
| 618 | nigel | 53 | libexecdir=$ac_optarg ;; |
| 619 | nigel | 41 | |
| 620 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
| 621 | | --localstate | --localstat | --localsta | --localst \ | ||
| 622 | | --locals | --local | --loca | --loc | --lo) | ||
| 623 | ac_prev=localstatedir ;; | ||
| 624 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
| 625 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
| 626 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
| 627 | nigel | 53 | localstatedir=$ac_optarg ;; |
| 628 | nigel | 41 | |
| 629 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
| 630 | ac_prev=mandir ;; | ||
| 631 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
| 632 | nigel | 53 | mandir=$ac_optarg ;; |
| 633 | nigel | 41 | |
| 634 | -nfp | --nfp | --nf) | ||
| 635 | # Obsolete; use --without-fp. | ||
| 636 | with_fp=no ;; | ||
| 637 | |||
| 638 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
| 639 | nigel | 63 | | --no-cr | --no-c | -n) |
| 640 | nigel | 41 | no_create=yes ;; |
| 641 | |||
| 642 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
| 643 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
| 644 | no_recursion=yes ;; | ||
| 645 | |||
| 646 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
| 647 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
| 648 | | --oldin | --oldi | --old | --ol | --o) | ||
| 649 | ac_prev=oldincludedir ;; | ||
| 650 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
| 651 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
| 652 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
| 653 | nigel | 53 | oldincludedir=$ac_optarg ;; |
| 654 | nigel | 41 | |
| 655 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
| 656 | ac_prev=prefix ;; | ||
| 657 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
| 658 | nigel | 53 | prefix=$ac_optarg ;; |
| 659 | nigel | 41 | |
| 660 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
| 661 | | --program-pre | --program-pr | --program-p) | ||
| 662 | ac_prev=program_prefix ;; | ||
| 663 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
| 664 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
| 665 | nigel | 53 | program_prefix=$ac_optarg ;; |
| 666 | nigel | 41 | |
| 667 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
| 668 | | --program-suf | --program-su | --program-s) | ||
| 669 | ac_prev=program_suffix ;; | ||
| 670 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
| 671 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
| 672 | nigel | 53 | program_suffix=$ac_optarg ;; |
| 673 | nigel | 41 | |
| 674 | -program-transform-name | --program-transform-name \ | ||
| 675 | | --program-transform-nam | --program-transform-na \ | ||
| 676 | | --program-transform-n | --program-transform- \ | ||
| 677 | | --program-transform | --program-transfor \ | ||
| 678 | | --program-transfo | --program-transf \ | ||
| 679 | | --program-trans | --program-tran \ | ||
| 680 | | --progr-tra | --program-tr | --program-t) | ||
| 681 | ac_prev=program_transform_name ;; | ||
| 682 | -program-transform-name=* | --program-transform-name=* \ | ||
| 683 | | --program-transform-nam=* | --program-transform-na=* \ | ||
| 684 | | --program-transform-n=* | --program-transform-=* \ | ||
| 685 | | --program-transform=* | --program-transfor=* \ | ||
| 686 | | --program-transfo=* | --program-transf=* \ | ||
| 687 | | --program-trans=* | --program-tran=* \ | ||
| 688 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
| 689 | nigel | 53 | program_transform_name=$ac_optarg ;; |
| 690 | nigel | 41 | |
| 691 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
| 692 | | -silent | --silent | --silen | --sile | --sil) | ||
| 693 | silent=yes ;; | ||
| 694 | |||
| 695 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
| 696 | ac_prev=sbindir ;; | ||
| 697 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
| 698 | | --sbi=* | --sb=*) | ||
| 699 | nigel | 53 | sbindir=$ac_optarg ;; |
| 700 | nigel | 41 | |
| 701 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
| 702 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
| 703 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
| 704 | | --sha | --sh) | ||
| 705 | ac_prev=sharedstatedir ;; | ||
| 706 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
| 707 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
| 708 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
| 709 | | --sha=* | --sh=*) | ||
| 710 | nigel | 53 | sharedstatedir=$ac_optarg ;; |
| 711 | nigel | 41 | |
| 712 | -site | --site | --sit) | ||
| 713 | ac_prev=site ;; | ||
| 714 | -site=* | --site=* | --sit=*) | ||
| 715 | nigel | 53 | site=$ac_optarg ;; |
| 716 | nigel | 41 | |
| 717 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
| 718 | ac_prev=srcdir ;; | ||
| 719 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
| 720 | nigel | 53 | srcdir=$ac_optarg ;; |
| 721 | nigel | 41 | |
| 722 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
| 723 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
| 724 | ac_prev=sysconfdir ;; | ||
| 725 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
| 726 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
| 727 | nigel | 53 | sysconfdir=$ac_optarg ;; |
| 728 | nigel | 41 | |
| 729 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
| 730 | nigel | 53 | ac_prev=target_alias ;; |
| 731 | nigel | 41 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 732 | nigel | 53 | target_alias=$ac_optarg ;; |
| 733 | nigel | 41 | |
| 734 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
| 735 | verbose=yes ;; | ||
| 736 | |||
| 737 | nigel | 53 | -version | --version | --versio | --versi | --vers | -V) |
| 738 | ac_init_version=: ;; | ||
| 739 | nigel | 41 | |
| 740 | -with-* | --with-*) | ||
| 741 | nigel | 53 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 742 | nigel | 41 | # Reject names that are not valid shell variable names. |
| 743 | nigel | 63 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 744 | nigel | 53 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 745 | { (exit 1); exit 1; }; } | ||
| 746 | nigel | 41 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 747 | nigel | 53 | case $ac_option in |
| 748 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
| 749 | nigel | 41 | *) ac_optarg=yes ;; |
| 750 | esac | ||
| 751 | nigel | 53 | eval "with_$ac_package='$ac_optarg'" ;; |
| 752 | nigel | 41 | |
| 753 | -without-* | --without-*) | ||
| 754 | nigel | 53 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 755 | nigel | 41 | # Reject names that are not valid shell variable names. |
| 756 | nigel | 63 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 757 | nigel | 53 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 758 | { (exit 1); exit 1; }; } | ||
| 759 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
| 760 | eval "with_$ac_package=no" ;; | ||
| 761 | nigel | 41 | |
| 762 | --x) | ||
| 763 | # Obsolete; use --with-x. | ||
| 764 | with_x=yes ;; | ||
| 765 | |||
| 766 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
| 767 | | --x-incl | --x-inc | --x-in | --x-i) | ||
| 768 | ac_prev=x_includes ;; | ||
| 769 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
| 770 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
| 771 | nigel | 53 | x_includes=$ac_optarg ;; |
| 772 | nigel | 41 | |
| 773 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
| 774 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
| 775 | ac_prev=x_libraries ;; | ||
| 776 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
| 777 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
| 778 | nigel | 53 | x_libraries=$ac_optarg ;; |
| 779 | nigel | 41 | |
| 780 | nigel | 53 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 781 | Try \`$0 --help' for more information." >&2 | ||
| 782 | { (exit 1); exit 1; }; } | ||
| 783 | nigel | 41 | ;; |
| 784 | |||
| 785 | nigel | 53 | *=*) |
| 786 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
| 787 | # Reject names that are not valid shell variable names. | ||
| 788 | nigel | 63 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 789 | nigel | 53 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 790 | { (exit 1); exit 1; }; } | ||
| 791 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
| 792 | eval "$ac_envvar='$ac_optarg'" | ||
| 793 | export $ac_envvar ;; | ||
| 794 | |||
| 795 | nigel | 41 | *) |
| 796 | nigel | 53 | # FIXME: should be removed in autoconf 3.0. |
| 797 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
| 798 | nigel | 63 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 799 | nigel | 53 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 800 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
| 801 | nigel | 41 | ;; |
| 802 | |||
| 803 | esac | ||
| 804 | done | ||
| 805 | |||
| 806 | if test -n "$ac_prev"; then | ||
| 807 | nigel | 53 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 808 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
| 809 | { (exit 1); exit 1; }; } | ||
| 810 | nigel | 41 | fi |
| 811 | |||
| 812 | nigel | 53 | # Be sure to have absolute paths. |
| 813 | nigel | 63 | for ac_var in exec_prefix prefix |
| 814 | do | ||
| 815 | eval ac_val=$`echo $ac_var` | ||
| 816 | case $ac_val in | ||
| 817 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
| 818 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
| 819 | { (exit 1); exit 1; }; };; | ||
| 820 | esac | ||
| 821 | done | ||
| 822 | |||
| 823 | # Be sure to have absolute paths. | ||
| 824 | nigel | 53 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 825 | nigel | 75 | localstatedir libdir includedir oldincludedir infodir mandir |
| 826 | nigel | 41 | do |
| 827 | nigel | 53 | eval ac_val=$`echo $ac_var` |
| 828 | case $ac_val in | ||
| 829 | [\\/$]* | ?:[\\/]* ) ;; | ||
| 830 | nigel | 63 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 831 | nigel | 53 | { (exit 1); exit 1; }; };; |
| 832 | nigel | 41 | esac |
| 833 | done | ||
| 834 | |||
| 835 | nigel | 53 | # There might be people who depend on the old broken behavior: `$host' |
| 836 | # used to hold the argument of --host etc. | ||
| 837 | nigel | 63 | # FIXME: To remove some day. |
| 838 | nigel | 53 | build=$build_alias |
| 839 | host=$host_alias | ||
| 840 | target=$target_alias | ||
| 841 | nigel | 41 | |
| 842 | nigel | 63 | # FIXME: To remove some day. |
| 843 | nigel | 53 | if test "x$host_alias" != x; then |
| 844 | if test "x$build_alias" = x; then | ||
| 845 | cross_compiling=maybe | ||
| 846 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
| 847 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
| 848 | elif test "x$build_alias" != "x$host_alias"; then | ||
| 849 | cross_compiling=yes | ||
| 850 | fi | ||
| 851 | fi | ||
| 852 | nigel | 41 | |
| 853 | nigel | 53 | ac_tool_prefix= |
| 854 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
| 855 | nigel | 41 | |
| 856 | nigel | 53 | test "$silent" = yes && exec 6>/dev/null |
| 857 | |||
| 858 | nigel | 63 | |
| 859 | nigel | 41 | # Find the source files, if location was not specified. |
| 860 | if test -z "$srcdir"; then | ||
| 861 | ac_srcdir_defaulted=yes | ||
| 862 | # Try the directory containing this script, then its parent. | ||
| 863 | nigel | 63 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 864 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 865 | nigel | 75 | X"$0" : 'X\(//\)[^/]' \| \ |
| 866 | X"$0" : 'X\(//\)$' \| \ | ||
| 867 | X"$0" : 'X\(/\)' \| \ | ||
| 868 | . : '\(.\)' 2>/dev/null || | ||
| 869 | nigel | 63 | echo X"$0" | |
| 870 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
| 871 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
| 872 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
| 873 | /^X\(\/\).*/{ s//\1/; q; } | ||
| 874 | s/.*/./; q'` | ||
| 875 | nigel | 41 | srcdir=$ac_confdir |
| 876 | if test ! -r $srcdir/$ac_unique_file; then | ||
| 877 | srcdir=.. | ||
| 878 | fi | ||
| 879 | else | ||
| 880 | ac_srcdir_defaulted=no | ||
| 881 | fi | ||
| 882 | if test ! -r $srcdir/$ac_unique_file; then | ||
| 883 | if test "$ac_srcdir_defaulted" = yes; then | ||
| 884 | nigel | 63 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 885 | nigel | 53 | { (exit 1); exit 1; }; } |
| 886 | nigel | 41 | else |
| 887 | nigel | 63 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 888 | nigel | 53 | { (exit 1); exit 1; }; } |
| 889 | nigel | 41 | fi |
| 890 | fi | ||
| 891 | nigel | 63 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 892 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | ||
| 893 | { (exit 1); exit 1; }; } | ||
| 894 | nigel | 53 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 895 | ac_env_build_alias_set=${build_alias+set} | ||
| 896 | ac_env_build_alias_value=$build_alias | ||
| 897 | ac_cv_env_build_alias_set=${build_alias+set} | ||
| 898 | ac_cv_env_build_alias_value=$build_alias | ||
| 899 | ac_env_host_alias_set=${host_alias+set} | ||
| 900 | ac_env_host_alias_value=$host_alias | ||
| 901 | ac_cv_env_host_alias_set=${host_alias+set} | ||
| 902 | ac_cv_env_host_alias_value=$host_alias | ||
| 903 | ac_env_target_alias_set=${target_alias+set} | ||
| 904 | ac_env_target_alias_value=$target_alias | ||
| 905 | ac_cv_env_target_alias_set=${target_alias+set} | ||
| 906 | ac_cv_env_target_alias_value=$target_alias | ||
| 907 | ac_env_CC_set=${CC+set} | ||
| 908 | ac_env_CC_value=$CC | ||
| 909 | ac_cv_env_CC_set=${CC+set} | ||
| 910 | ac_cv_env_CC_value=$CC | ||
| 911 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
| 912 | ac_env_CFLAGS_value=$CFLAGS | ||
| 913 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
| 914 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
| 915 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
| 916 | ac_env_LDFLAGS_value=$LDFLAGS | ||
| 917 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
| 918 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
| 919 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
| 920 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
| 921 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
| 922 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
| 923 | ac_env_CPP_set=${CPP+set} | ||
| 924 | ac_env_CPP_value=$CPP | ||
| 925 | ac_cv_env_CPP_set=${CPP+set} | ||
| 926 | ac_cv_env_CPP_value=$CPP | ||
| 927 | nigel | 75 | ac_env_CXX_set=${CXX+set} |
| 928 | ac_env_CXX_value=$CXX | ||
| 929 | ac_cv_env_CXX_set=${CXX+set} | ||
| 930 | ac_cv_env_CXX_value=$CXX | ||
| 931 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | ||
| 932 | ac_env_CXXFLAGS_value=$CXXFLAGS | ||
| 933 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | ||
| 934 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | ||
| 935 | ac_env_CXXCPP_set=${CXXCPP+set} | ||
| 936 | ac_env_CXXCPP_value=$CXXCPP | ||
| 937 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | ||
| 938 | ac_cv_env_CXXCPP_value=$CXXCPP | ||
| 939 | ac_env_F77_set=${F77+set} | ||
| 940 | ac_env_F77_value=$F77 | ||
| 941 | ac_cv_env_F77_set=${F77+set} | ||
| 942 | ac_cv_env_F77_value=$F77 | ||
| 943 | ac_env_FFLAGS_set=${FFLAGS+set} | ||
| 944 | ac_env_FFLAGS_value=$FFLAGS | ||
| 945 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | ||
| 946 | ac_cv_env_FFLAGS_value=$FFLAGS | ||
| 947 | nigel | 41 | |
| 948 | nigel | 53 | # |
| 949 | # Report the --help message. | ||
| 950 | # | ||
| 951 | if test "$ac_init_help" = "long"; then | ||
| 952 | # Omit some internal or obsolete options to make the list less imposing. | ||
| 953 | # The list generated by autoconf has been trimmed to remove many | ||
| 954 | # options that are totally irrelevant to PCRE (e.g. relating to X), | ||
| 955 | # or are not supported by its Makefile. | ||
| 956 | nigel | 71 | # The list generated by autoconf has been trimmed to remove many |
| 957 | # options that are totally irrelevant to PCRE (e.g. relating to X), | ||
| 958 | # or are not supported by its Makefile. | ||
| 959 | nigel | 73 | # The list generated by autoconf has been trimmed to remove many |
| 960 | # options that are totally irrelevant to PCRE (e.g. relating to X), | ||
| 961 | # or are not supported by its Makefile. | ||
| 962 | nigel | 75 | # The list generated by autoconf has been trimmed to remove many |
| 963 | # options that are totally irrelevant to PCRE (e.g. relating to X), | ||
| 964 | # or are not supported by its Makefile. | ||
| 965 | # The list generated by autoconf has been trimmed to remove many | ||
| 966 | # options that are totally irrelevant to PCRE (e.g. relating to X), | ||
| 967 | # or are not supported by its Makefile. | ||
| 968 | # The list generated by autoconf has been trimmed to remove many | ||
| 969 | # options that are totally irrelevant to PCRE (e.g. relating to X), | ||
| 970 | # or are not supported by its Makefile. | ||
| 971 | nigel | 53 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 972 | nigel | 63 | cat <<_ACEOF |
| 973 | nigel | 53 | \`configure' configures this package to adapt to many kinds of systems. |
| 974 | |||
| 975 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
| 976 | |||
| 977 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
| 978 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
| 979 | |||
| 980 | Defaults for the options are specified in brackets. | ||
| 981 | |||
| 982 | Configuration: | ||
| 983 | -h, --help display this help and exit | ||
| 984 | --help=short display options specific to this package | ||
| 985 | --help=recursive display the short help of all the included packages | ||
| 986 | -V, --version display version information and exit | ||
| 987 | -q, --quiet, --silent do not print \`checking...' messages | ||
| 988 | --cache-file=FILE cache test results in FILE [disabled] | ||
| 989 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
| 990 | -n, --no-create do not create output files | ||
| 991 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
| 992 | |||
| 993 | nigel | 63 | _ACEOF |
| 994 | nigel | 53 | |
| 995 | nigel | 63 | cat <<_ACEOF |
| 996 | nigel | 53 | Installation directories: |
| 997 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
| 998 | nigel | 75 | [$ac_default_prefix] |
| 999 | nigel | 53 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1000 | nigel | 75 | [PREFIX] |
| 1001 | nigel | 53 | |
| 1002 | By default, \`make install' will install all the files in | ||
| 1003 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
| 1004 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
| 1005 | for instance \`--prefix=\$HOME'. | ||
| 1006 | |||
| 1007 | For better control, use the options below. | ||
| 1008 | |||
| 1009 | Fine tuning of the installation directories: | ||
| 1010 | --bindir=DIR user executables [EPREFIX/bin] | ||
| 1011 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
| 1012 | --includedir=DIR C header files [PREFIX/include] | ||
| 1013 | --mandir=DIR man documentation [PREFIX/man] | ||
| 1014 | nigel | 63 | _ACEOF |
| 1015 | nigel | 53 | |
| 1016 | nigel | 63 | cat <<\_ACEOF |
| 1017 | nigel | 53 | |
| 1018 | nigel | 63 | _ACEOF |
| 1019 | nigel | 53 | fi |
| 1020 | |||
| 1021 | if test -n "$ac_init_help"; then | ||
| 1022 | |||
| 1023 | nigel | 63 | cat <<\_ACEOF |
| 1024 | nigel | 53 | |
| 1025 | Optional Features: | ||
| 1026 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
| 1027 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
| 1028 | nigel | 75 | --enable-shared[ ] |
| 1029 | build shared libraries [default=yes] | ||
| 1030 | --enable-static[ ] | ||
| 1031 | build static libraries [default=yes] | ||
| 1032 | --enable-fast-install[ ] | ||
| 1033 | optimize for fast installation [default=yes] | ||
| 1034 | nigel | 53 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1035 | nigel | 63 | --enable-utf8 enable UTF8 support |
| 1036 | nigel | 75 | --enable-unicode-properties enable Unicode properties support |
| 1037 | nigel | 63 | --enable-newline-is-cr use CR as the newline character |
| 1038 | --enable-newline-is-lf use LF as the newline character | ||
| 1039 | nigel | 73 | --enable-ebcdic assume EBCDIC coding rather than ASCII |
| 1040 | --disable-stack-for-recursion disable use of stack recursion when matching | ||
| 1041 | nigel | 53 | |
| 1042 | Optional Packages: | ||
| 1043 | nigel | 75 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1044 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
| 1045 | both] | ||
| 1046 | --with-tags[=TAGS] | ||
| 1047 | include additional configurations [automatic] | ||
| 1048 | nigel | 63 | --with-posix-malloc-threshold=5 threshold for POSIX malloc usage |
| 1049 | --with-link-size=2 internal link size (2, 3, or 4 allowed) | ||
| 1050 | --with-match-limit=10000000 default limit on internal looping) | ||
| 1051 | nigel | 53 | |
| 1052 | Some influential environment variables: | ||
| 1053 | CC C compiler command | ||
| 1054 | CFLAGS C compiler flags | ||
| 1055 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
| 1056 | nonstandard directory <lib dir> | ||
| 1057 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
| 1058 | headers in a nonstandard directory <include dir> | ||
| 1059 | CPP C preprocessor | ||
| 1060 | nigel | 75 | CXX C++ compiler command |
| 1061 | CXXFLAGS C++ compiler flags | ||
| 1062 | CXXCPP C++ preprocessor | ||
| 1063 | F77 Fortran 77 compiler command | ||
| 1064 | FFLAGS Fortran 77 compiler flags | ||
| 1065 | nigel | 53 | |
| 1066 | Use these variables to override the choices made by `configure' or to help | ||
| 1067 | it to find libraries and programs with nonstandard names/locations. | ||
| 1068 | |||
| 1069 | nigel | 63 | _ACEOF |
| 1070 | nigel | 53 | fi |
| 1071 | |||
| 1072 | if test "$ac_init_help" = "recursive"; then | ||
| 1073 | # If there are subdirs, report their specific --help. | ||
| 1074 | ac_popdir=`pwd` | ||
| 1075 | nigel | 63 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1076 | test -d $ac_dir || continue | ||
| 1077 | ac_builddir=. | ||
| 1078 | nigel | 53 | |
| 1079 | nigel | 63 | if test "$ac_dir" != .; then |
| 1080 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
| 1081 | # A "../" for each directory in $ac_dir_suffix. | ||
| 1082 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
| 1083 | else | ||
| 1084 | ac_dir_suffix= ac_top_builddir= | ||
| 1085 | fi | ||
| 1086 | nigel | 53 | |
| 1087 | nigel | 63 | case $srcdir in |
| 1088 | .) # No --srcdir option. We are building in place. | ||
| 1089 | ac_srcdir=. | ||
| 1090 | if test -z "$ac_top_builddir"; then | ||
| 1091 | ac_top_srcdir=. | ||
| 1092 | else | ||
| 1093 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
| 1094 | fi ;; | ||
| 1095 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
| 1096 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
| 1097 | ac_top_srcdir=$srcdir ;; | ||
| 1098 | *) # Relative path. | ||
| 1099 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
| 1100 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
| 1101 | esac | ||
| 1102 | |||
| 1103 | nigel | 75 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1104 | # the directories may not exist. | ||
| 1105 | case `pwd` in | ||
| 1106 | .) ac_abs_builddir="$ac_dir";; | ||
| 1107 | *) | ||
| 1108 | case "$ac_dir" in | ||
| 1109 | .) ac_abs_builddir=`pwd`;; | ||
| 1110 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
| 1111 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
| 1112 | esac;; | ||
| 1113 | esac | ||
| 1114 | case $ac_abs_builddir in | ||
| 1115 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
| 1116 | *) | ||
| 1117 | case ${ac_top_builddir}. in | ||
| 1118 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
| 1119 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
| 1120 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
| 1121 | esac;; | ||
| 1122 | esac | ||
| 1123 | case $ac_abs_builddir in | ||
| 1124 | .) ac_abs_srcdir=$ac_srcdir;; | ||
| 1125 | *) | ||
| 1126 | case $ac_srcdir in | ||
| 1127 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
| 1128 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
| 1129 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
| 1130 | esac;; | ||
| 1131 | esac | ||
| 1132 | case $ac_abs_builddir in | ||
| 1133 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
| 1134 | *) | ||
| 1135 | case $ac_top_srcdir in | ||
| 1136 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
| 1137 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
| 1138 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
| 1139 | esac;; | ||
| 1140 | esac | ||
| 1141 | |||
| 1142 | nigel | 63 | cd $ac_dir |
| 1143 | nigel | 53 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1144 | nigel | 63 | if test -f $ac_srcdir/configure.gnu; then |
| 1145 | nigel | 53 | echo |
| 1146 | nigel | 63 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1147 | elif test -f $ac_srcdir/configure; then | ||
| 1148 | nigel | 53 | echo |
| 1149 | nigel | 63 | $SHELL $ac_srcdir/configure --help=recursive |
| 1150 | elif test -f $ac_srcdir/configure.ac || | ||
| 1151 | nigel | 75 | test -f $ac_srcdir/configure.in; then |
| 1152 | nigel | 53 | echo |
| 1153 | $ac_configure --help | ||
| 1154 | else | ||
| 1155 | nigel | 63 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1156 | nigel | 53 | fi |
| 1157 | cd $ac_popdir | ||
| 1158 | done | ||
| 1159 | fi | ||
| 1160 | |||
| 1161 | test -n "$ac_init_help" && exit 0 | ||
| 1162 | if $ac_init_version; then | ||
| 1163 | nigel | 63 | cat <<\_ACEOF |
| 1164 | nigel | 53 | |
| 1165 | nigel | 75 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1166 | nigel | 53 | This configure script is free software; the Free Software Foundation |
| 1167 | gives unlimited permission to copy, distribute and modify it. | ||
| 1168 | nigel | 63 | _ACEOF |
| 1169 | nigel | 53 | exit 0 |
| 1170 | fi | ||
| 1171 | exec 5>config.log | ||
| 1172 | nigel | 63 | cat >&5 <<_ACEOF |
| 1173 | nigel | 53 | This file contains any messages produced by compilers while |
| 1174 | running configure, to aid debugging if configure makes a mistake. | ||
| 1175 | |||
| 1176 | It was created by $as_me, which was | ||
| 1177 | nigel | 75 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1178 | nigel | 53 | |
| 1179 | $ $0 $@ | ||
| 1180 | |||
| 1181 | nigel | 63 | _ACEOF |
| 1182 | nigel | 53 | { |
| 1183 | cat <<_ASUNAME | ||
| 1184 | nigel | 63 | ## --------- ## |
| 1185 | ## Platform. ## | ||
| 1186 | ## --------- ## | ||
| 1187 | nigel | 53 | |
| 1188 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
| 1189 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
| 1190 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
| 1191 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
| 1192 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
| 1193 | |||
| 1194 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
| 1195 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
| 1196 | |||
| 1197 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
| 1198 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
| 1199 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
| 1200 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
| 1201 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
| 1202 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
| 1203 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
| 1204 | |||
| 1205 | nigel | 63 | _ASUNAME |
| 1206 | nigel | 53 | |
| 1207 | nigel | 63 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1208 | for as_dir in $PATH | ||
| 1209 | do | ||
| 1210 | IFS=$as_save_IFS | ||
| 1211 | test -z "$as_dir" && as_dir=. | ||
| 1212 | echo "PATH: $as_dir" | ||
| 1213 | done | ||
| 1214 | |||
| 1215 | nigel | 53 | } >&5 |
| 1216 | |||
| 1217 | nigel | 63 | cat >&5 <<_ACEOF |
| 1218 | nigel | 53 | |
| 1219 | |||
| 1220 | nigel | 63 | ## ----------- ## |
| 1221 | ## Core tests. ## | ||
| 1222 | ## ----------- ## | ||
| 1223 | |||
| 1224 | _ACEOF | ||
| 1225 | |||
| 1226 | |||
| 1227 | nigel | 53 | # Keep a trace of the command line. |
| 1228 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
| 1229 | nigel | 63 | # Strip out --silent because we don't want to record it for future runs. |
| 1230 | nigel | 53 | # Also quote any args containing shell meta-characters. |
| 1231 | nigel | 63 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1232 | nigel | 53 | ac_configure_args= |
| 1233 | nigel | 63 | ac_configure_args0= |
| 1234 | ac_configure_args1= | ||
| 1235 | nigel | 53 | ac_sep= |
| 1236 | nigel | 63 | ac_must_keep_next=false |
| 1237 | for ac_pass in 1 2 | ||
| 1238 | nigel | 53 | do |
| 1239 | nigel | 63 | for ac_arg |
| 1240 | do | ||
| 1241 | case $ac_arg in | ||
| 1242 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
| 1243 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
| 1244 | | -silent | --silent | --silen | --sile | --sil) | ||
| 1245 | continue ;; | ||
| 1246 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
| 1247 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
| 1248 | esac | ||
| 1249 | case $ac_pass in | ||
| 1250 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
| 1251 | 2) | ||
| 1252 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
| 1253 | if test $ac_must_keep_next = true; then | ||
| 1254 | nigel | 75 | ac_must_keep_next=false # Got value, back to normal. |
| 1255 | nigel | 63 | else |
| 1256 | nigel | 75 | case $ac_arg in |
| 1257 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
| 1258 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
| 1259 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
| 1260 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
| 1261 | case "$ac_configure_args0 " in | ||
| 1262 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
| 1263 | esac | ||
| 1264 | ;; | ||
| 1265 | -* ) ac_must_keep_next=true ;; | ||
| 1266 | esac | ||
| 1267 | nigel | 63 | fi |
| 1268 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
| 1269 | # Get rid of the leading space. | ||
| 1270 | ac_sep=" " | ||
| 1271 | ;; | ||
| 1272 | esac | ||
| 1273 | done | ||
| 1274 | nigel | 53 | done |
| 1275 | nigel | 63 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1276 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
| 1277 | nigel | 53 | |
| 1278 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
| 1279 | # config.log. We remove comments because anyway the quotes in there | ||
| 1280 | # would cause problems or look ugly. | ||
| 1281 | nigel | 63 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1282 | # such as our DU 5.0 friend, will then `close' the trap. | ||
| 1283 | nigel | 53 | trap 'exit_status=$? |
| 1284 | # Save into config.log some information that might help in debugging. | ||
| 1285 | nigel | 63 | { |
| 1286 | echo | ||
| 1287 | |||
| 1288 | cat <<\_ASBOX | ||
| 1289 | ## ---------------- ## | ||
| 1290 | ## Cache variables. ## | ||
| 1291 | ## ---------------- ## | ||
| 1292 | _ASBOX | ||
| 1293 | echo | ||
| 1294 | # The following way of writing the cache mishandles newlines in values, | ||
| 1295 | nigel | 53 | { |
| 1296 | (set) 2>&1 | | ||
| 1297 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
| 1298 | *ac_space=\ *) | ||
| 1299 | sed -n \ | ||
| 1300 | nigel | 75 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1301 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
| 1302 | nigel | 53 | ;; |
| 1303 | *) | ||
| 1304 | sed -n \ | ||
| 1305 | nigel | 75 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1306 | nigel | 53 | ;; |
| 1307 | esac; | ||
| 1308 | nigel | 63 | } |
| 1309 | echo | ||
| 1310 | |||
| 1311 | cat <<\_ASBOX | ||
| 1312 | ## ----------------- ## | ||
| 1313 | ## Output variables. ## | ||
| 1314 | ## ----------------- ## | ||
| 1315 | _ASBOX | ||
| 1316 | echo | ||
| 1317 | for ac_var in $ac_subst_vars | ||
| 1318 | do | ||
| 1319 | eval ac_val=$`echo $ac_var` | ||
| 1320 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
| 1321 | done | sort | ||
| 1322 | echo | ||
| 1323 | |||
| 1324 | if test -n "$ac_subst_files"; then | ||
| 1325 | cat <<\_ASBOX | ||
| 1326 | ## ------------- ## | ||
| 1327 | ## Output files. ## | ||
| 1328 | ## ------------- ## | ||
| 1329 | _ASBOX | ||
| 1330 | echo | ||
| 1331 | for ac_var in $ac_subst_files | ||
| 1332 | do | ||
| 1333 | eval ac_val=$`echo $ac_var` | ||
| 1334 | nigel | 75 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1335 | nigel | 63 | done | sort |
| 1336 | echo | ||
| 1337 | fi | ||
| 1338 | |||
| 1339 | if test -s confdefs.h; then | ||
| 1340 | cat <<\_ASBOX | ||
| 1341 | ## ----------- ## | ||
| 1342 | ## confdefs.h. ## | ||
| 1343 | ## ----------- ## | ||
| 1344 | _ASBOX | ||
| 1345 | echo | ||
| 1346 | sed "/^$/d" confdefs.h | sort | ||
| 1347 | echo | ||
| 1348 | fi | ||
| 1349 | test "$ac_signal" != 0 && | ||
| 1350 | echo "$as_me: caught signal $ac_signal" | ||
| 1351 | echo "$as_me: exit $exit_status" | ||
| 1352 | } >&5 | ||
| 1353 | nigel | 75 | rm -f core *.core && |
| 1354 | nigel | 63 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1355 | nigel | 53 | exit $exit_status |
| 1356 | ' 0 | ||
| 1357 | for ac_signal in 1 2 13 15; do | ||
| 1358 | nigel | 63 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1359 | nigel | 53 | done |
| 1360 | ac_signal=0 | ||
| 1361 | |||
| 1362 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
| 1363 | rm -rf conftest* confdefs.h | ||
| 1364 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
| 1365 | echo >confdefs.h | ||
| 1366 | |||
| 1367 | nigel | 63 | # Predefined preprocessor variables. |
| 1368 | |||
| 1369 | cat >>confdefs.h <<_ACEOF | ||
| 1370 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
| 1371 | _ACEOF | ||
| 1372 | |||
| 1373 | |||
| 1374 | cat >>confdefs.h <<_ACEOF | ||
| 1375 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
| 1376 | _ACEOF | ||
| 1377 | |||
| 1378 | |||
| 1379 | cat >>confdefs.h <<_ACEOF | ||
| 1380 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
| 1381 | _ACEOF | ||
| 1382 | |||
| 1383 | |||
| 1384 | cat >>confdefs.h <<_ACEOF | ||
| 1385 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
| 1386 | _ACEOF | ||
| 1387 | |||
| 1388 | |||
| 1389 | cat >>confdefs.h <<_ACEOF | ||
| 1390 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
| 1391 | _ACEOF | ||
| 1392 | |||
| 1393 | |||
| 1394 | nigel | 53 | # Let the site file select an alternate cache file if it wants to. |
| 1395 | nigel | 41 | # Prefer explicitly selected file to automatically selected ones. |
| 1396 | if test -z "$CONFIG_SITE"; then | ||
| 1397 | if test "x$prefix" != xNONE; then | ||
| 1398 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
| 1399 | else | ||
| 1400 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
| 1401 | fi | ||
| 1402 | fi | ||
| 1403 | for ac_site_file in $CONFIG_SITE; do | ||
| 1404 | if test -r "$ac_site_file"; then | ||
| 1405 | nigel | 63 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1406 | nigel | 53 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1407 | nigel | 63 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1408 | nigel | 41 | . "$ac_site_file" |
| 1409 | fi | ||
| 1410 | done | ||
| 1411 | |||
| 1412 | if test -r "$cache_file"; then | ||
| 1413 | nigel | 53 | # Some versions of bash will fail to source /dev/null (special |
| 1414 | # files actually), so we avoid doing that. | ||
| 1415 | if test -f "$cache_file"; then | ||
| 1416 | nigel | 63 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1417 | nigel | 53 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1418 | case $cache_file in | ||
| 1419 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
| 1420 | *) . ./$cache_file;; | ||
| 1421 | esac | ||
| 1422 | fi | ||
| 1423 | nigel | 41 | else |
| 1424 | nigel | 63 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1425 | nigel | 53 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1426 | >$cache_file | ||
| 1427 | nigel | 41 | fi |
| 1428 | |||
| 1429 | nigel | 53 | # Check that the precious variables saved in the cache have kept the same |
| 1430 | # value. | ||
| 1431 | nigel | 63 | ac_cache_corrupted=false |
| 1432 | nigel | 53 | for ac_var in `(set) 2>&1 | |
| 1433 | nigel | 75 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1434 | nigel | 53 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1435 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
| 1436 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
| 1437 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
| 1438 | case $ac_old_set,$ac_new_set in | ||
| 1439 | set,) | ||
| 1440 | nigel | 63 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1441 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
| 1442 | ac_cache_corrupted=: ;; | ||
| 1443 | nigel | 53 | ,set) |
| 1444 | nigel | 63 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1445 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
| 1446 | ac_cache_corrupted=: ;; | ||
| 1447 | nigel | 53 | ,);; |
| 1448 | *) | ||
| 1449 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
| 1450 | nigel | 75 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1451 | nigel | 63 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1452 | nigel | 75 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1453 | nigel | 63 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1454 | nigel | 75 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1455 | nigel | 63 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1456 | nigel | 75 | ac_cache_corrupted=: |
| 1457 | nigel | 53 | fi;; |
| 1458 | esac | ||
| 1459 | nigel | 63 | # Pass precious variables to config.status. |
| 1460 | if test "$ac_new_set" = set; then | ||
| 1461 | case $ac_new_val in | ||
| 1462 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
| 1463 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
| 1464 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
| 1465 | esac | ||
| 1466 | case " $ac_configure_args " in | ||
| 1467 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
| 1468 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
| 1469 | esac | ||
| 1470 | fi | ||
| 1471 | nigel | 53 | done |
| 1472 | nigel | 63 | if $ac_cache_corrupted; then |
| 1473 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
| 1474 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
| 1475 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
| 1476 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
| 1477 | { (exit 1); exit 1; }; } | ||
| 1478 | nigel | 53 | fi |
| 1479 | |||
| 1480 | nigel | 41 | ac_ext=c |
| 1481 | ac_cpp='$CPP $CPPFLAGS' | ||
| 1482 | nigel | 53 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 1484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 1485 | nigel | 41 | |
| 1486 | |||
| 1487 | |||
| 1488 | nigel | 63 | |
| 1489 | |||
| 1490 | |||
| 1491 | |||
| 1492 | |||
| 1493 | |||
| 1494 | |||
| 1495 | |||
| 1496 | |||
| 1497 | |||
| 1498 | |||
| 1499 | |||
| 1500 | |||
| 1501 | |||
| 1502 | |||
| 1503 | |||
| 1504 | |||
| 1505 | nigel | 67 | |
| 1506 | |||
| 1507 | |||
| 1508 | nigel | 63 | ac_config_headers="$ac_config_headers config.h:config.in" |
| 1509 | |||
| 1510 | |||
| 1511 | |||
| 1512 | nigel | 75 | PCRE_MAJOR=5 |
| 1513 | PCRE_MINOR=0 | ||
| 1514 | PCRE_DATE=13-Sep-2004 | ||
| 1515 | nigel | 43 | PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR} |
| 1516 | |||
| 1517 | nigel | 63 | |
| 1518 | POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10 | ||
| 1519 | |||
| 1520 | |||
| 1521 | nigel | 47 | PCRE_LIB_VERSION=0:1:0 |
| 1522 | nigel | 43 | PCRE_POSIXLIB_VERSION=0:0:0 |
| 1523 | |||
| 1524 | nigel | 63 | |
| 1525 | nigel | 53 | ac_ext=c |
| 1526 | ac_cpp='$CPP $CPPFLAGS' | ||
| 1527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 1528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 1529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 1530 | if test -n "$ac_tool_prefix"; then | ||
| 1531 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
| 1532 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
| 1533 | nigel | 63 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1534 | nigel | 53 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1535 | if test "${ac_cv_prog_CC+set}" = set; then | ||
| 1536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1537 | else | ||
| 1538 | if test -n "$CC"; then | ||
| 1539 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 1540 | else | ||
| 1541 | nigel | 63 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1542 | for as_dir in $PATH | ||
| 1543 | do | ||
| 1544 | IFS=$as_save_IFS | ||
| 1545 | test -z "$as_dir" && as_dir=. | ||
| 1546 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1547 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1548 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
| 1549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1550 | break 2 | ||
| 1551 | fi | ||
| 1552 | nigel | 53 | done |
| 1553 | nigel | 63 | done |
| 1554 | nigel | 43 | |
| 1555 | nigel | 53 | fi |
| 1556 | fi | ||
| 1557 | CC=$ac_cv_prog_CC | ||
| 1558 | if test -n "$CC"; then | ||
| 1559 | nigel | 63 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1560 | nigel | 53 | echo "${ECHO_T}$CC" >&6 |
| 1561 | else | ||
| 1562 | nigel | 63 | echo "$as_me:$LINENO: result: no" >&5 |
| 1563 | nigel | 53 | echo "${ECHO_T}no" >&6 |
| 1564 | fi | ||
| 1565 | |||
| 1566 | fi | ||
| 1567 | if test -z "$ac_cv_prog_CC"; then | ||
| 1568 | ac_ct_CC=$CC | ||
| 1569 | # Extract the first word of "gcc", so it can be a program name with args. | ||
| 1570 | nigel | 41 | set dummy gcc; ac_word=$2 |
| 1571 | nigel | 63 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1572 | nigel | 53 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1573 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
| 1574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1575 | nigel | 41 | else |
| 1576 | nigel | 53 | if test -n "$ac_ct_CC"; then |
| 1577 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 1578 | else | ||
| 1579 | nigel | 63 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1580 | for as_dir in $PATH | ||
| 1581 | do | ||
| 1582 | IFS=$as_save_IFS | ||
| 1583 | test -z "$as_dir" && as_dir=. | ||
| 1584 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1585 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1586 | ac_cv_prog_ac_ct_CC="gcc" | ||
| 1587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1588 | break 2 | ||
| 1589 | fi | ||
| 1590 | nigel | 53 | done |
| 1591 | nigel | 63 | done |
| 1592 | nigel | 53 | |
| 1593 | fi | ||
| 1594 | fi | ||
| 1595 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 1596 | if test -n "$ac_ct_CC"; then | ||
| 1597 | nigel | 63 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1598 | nigel | 53 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1599 | else | ||
| 1600 | nigel | 63 | echo "$as_me:$LINENO: result: no" >&5 |
| 1601 | nigel | 53 | echo "${ECHO_T}no" >&6 |
| 1602 | fi | ||
| 1603 | |||
| 1604 | CC=$ac_ct_CC | ||
| 1605 | else | ||
| 1606 | CC="$ac_cv_prog_CC" | ||
| 1607 | fi | ||
| 1608 | |||
| 1609 | if test -z "$CC"; then | ||
| 1610 | if test -n "$ac_tool_prefix"; then | ||
| 1611 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
| 1612 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
| 1613 | nigel | 63 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1614 | nigel | 53 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1615 | if test "${ac_cv_prog_CC+set}" = set; then | ||
| 1616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1617 | else | ||
| 1618 | nigel | 41 | if test -n "$CC"; then |
| 1619 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 1620 | else | ||
| 1621 | nigel | 63 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1622 | for as_dir in $PATH | ||
| 1623 | do | ||
| 1624 | IFS=$as_save_IFS | ||
| 1625 | test -z "$as_dir" && as_dir=. | ||
| 1626 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1627 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1628 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
| 1629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1630 | break 2 | ||
| 1631 | fi | ||
| 1632 | nigel | 53 | done |
| 1633 | nigel | 63 | done |
| 1634 | nigel | 53 | |
| 1635 | nigel | 41 | fi |
| 1636 | fi | ||
| 1637 | nigel | 53 | CC=$ac_cv_prog_CC |
| 1638 | nigel | 41 | if test -n "$CC"; then |
| 1639 | nigel | 63 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1640 | nigel | 53 | echo "${ECHO_T}$CC" >&6 |
| 1641 | nigel | 41 | else |
| 1642 | nigel | 63 | echo "$as_me:$LINENO: result: no" >&5 |
| 1643 | nigel | 53 | echo "${ECHO_T}no" >&6 |
| 1644 | nigel | 41 | fi |
| 1645 | |||
| 1646 | nigel | 53 | fi |
| 1647 | if test -z "$ac_cv_prog_CC"; then | ||
| 1648 | ac_ct_CC=$CC | ||
| 1649 | # Extract the first word of "cc", so it can be a program name with args. | ||
| 1650 | set dummy cc; ac_word=$2 | ||
| 1651 | nigel | 63 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1652 | nigel | 53 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1653 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
| 1654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1655 | else | ||
| 1656 | if test -n "$ac_ct_CC"; then | ||
| 1657 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 1658 | else | ||
| 1659 | nigel | 63 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1660 | for as_dir in $PATH | ||
| 1661 | do | ||
| 1662 | IFS=$as_save_IFS | ||
| 1663 | test -z "$as_dir" && as_dir=. | ||
| 1664 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1665 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1666 | ac_cv_prog_ac_ct_CC="cc" | ||
| 1667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1668 | break 2 | ||
| 1669 | fi | ||
| 1670 | nigel | 53 | done |
| 1671 | nigel | 63 | done |
| 1672 | nigel | 53 | |
| 1673 | fi | ||
| 1674 | fi | ||
| 1675 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 1676 | if test -n "$ac_ct_CC"; then | ||
| 1677 | nigel | 63 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1678 | nigel | 53 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1679 | else | ||
| 1680 | nigel | 63 | echo "$as_me:$LINENO: result: no" >&5 |
| 1681 | nigel | 53 | echo "${ECHO_T}no" >&6 |
| 1682 | fi | ||
| 1683 | |||
| 1684 | CC=$ac_ct_CC | ||
| 1685 | else | ||
| 1686 | CC="$ac_cv_prog_CC" | ||
| 1687 | fi | ||
| 1688 | |||
| 1689 | fi | ||
| 1690 | nigel | 41 | if test -z "$CC"; then |
| 1691 | # Extract the first word of "cc", so it can be a program name with args. | ||
| 1692 | set dummy cc; ac_word=$2 | ||
| 1693 | nigel | 63 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1694 | nigel | 53 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1695 | if test "${ac_cv_prog_CC+set}" = set; then | ||
| 1696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1697 | nigel | 41 | else |
| 1698 | if test -n "$CC"; then | ||
| 1699 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 1700 | else | ||
| 1701 | ac_prog_rejected=no | ||
| 1702 | nigel | 63 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1703 | for as_dir in $PATH | ||
| 1704 | do | ||
| 1705 | IFS=$as_save_IFS | ||
| 1706 | test -z "$as_dir" && as_dir=. | ||
| 1707 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1708 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1709 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
| 1710 | ac_prog_rejected=yes | ||
| 1711 | continue | ||
| 1712 | fi | ||
| 1713 | ac_cv_prog_CC="cc" | ||
| 1714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1715 | break 2 | ||
| 1716 | fi | ||
| 1717 | nigel | 53 | done |
| 1718 | nigel | 63 | done |
| 1719 | nigel | 53 | |
| 1720 | nigel | 41 | if test $ac_prog_rejected = yes; then |
| 1721 | # We found a bogon in the path, so make sure we never use it. | ||
| 1722 | set dummy $ac_cv_prog_CC | ||
| 1723 | shift | ||
| 1724 | nigel | 53 | if test $# != 0; then |
| 1725 | nigel | 41 | # We chose a different compiler from the bogus one. |
| 1726 | # However, it has the same basename, so the bogon will be chosen | ||
| 1727 | # first if we set CC to just the basename; use the full file name. | ||
| 1728 | shift | ||
| 1729 | nigel | 63 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1730 | nigel | 41 | fi |
| 1731 | fi | ||
| 1732 | fi | ||
| 1733 | fi | ||
| 1734 | nigel | 53 | CC=$ac_cv_prog_CC |
| 1735 | nigel | 41 | if test -n "$CC"; then |
| 1736 | nigel | 63 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1737 | nigel | 53 | echo "${ECHO_T}$CC" >&6 |
| 1738 | nigel | 41 | else |
| 1739 | nigel | 63 | echo "$as_me:$LINENO: result: no" >&5 |
| 1740 | nigel | 53 | echo "${ECHO_T}no" >&6 |
| 1741 | nigel | 41 | fi |
| 1742 | |||
| 1743 | nigel | 53 | fi |
| 1744 | if test -z "$CC"; then | ||
| 1745 | if test -n "$ac_tool_prefix"; then | ||
| 1746 | for ac_prog in cl | ||
| 1747 | do | ||
| 1748 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
| 1749 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
| 1750 | nigel | 63 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1751 | nigel | 53 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1752 | if test "${ac_cv_prog_CC+set}" = set; then | ||
| 1753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1754 | nigel | 41 | else |
| 1755 | if test -n "$CC"; then | ||
| 1756 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 1757 | else | ||
| 1758 | nigel | 63 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1759 | for as_dir in $PATH | ||
| 1760 | do | ||
| 1761 | IFS=$as_save_IFS | ||
| 1762 | test -z "$as_dir" && as_dir=. | ||
| 1763 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1765 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
| 1766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1767 | break 2 | ||
| 1768 | fi | ||
| 1769 | nigel | 53 | done |
| 1770 | nigel | 63 | done |
| 1771 | nigel | 53 | |
| 1772 | nigel | 41 | fi |
| 1773 | fi | ||
| 1774 | nigel | 53 | CC=$ac_cv_prog_CC |
| 1775 | nigel | 41 | if test -n "$CC"; then |
| 1776 | nigel | 63 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1777 | nigel | 53 | echo "${ECHO_T}$CC" >&6 |
| 1778 | nigel | 41 | else |
| 1779 | nigel | 63 | echo "$as_me:$LINENO: result: no" >&5 |
| 1780 | nigel | 53 | echo "${ECHO_T}no" >&6 |
| 1781 | nigel | 41 | fi |
| 1782 | nigel | 53 | |
| 1783 | test -n "$CC" && break | ||
| 1784 | done | ||
| 1785 | nigel | 41 | fi |
| 1786 | nigel | 53 | if test -z "$CC"; then |
| 1787 | ac_ct_CC=$CC | ||
| 1788 | for ac_prog in cl | ||
| 1789 | do | ||
| 1790 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
| 1791 | set dummy $ac_prog; ac_word=$2 | ||
| 1792 | nigel | 63 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1793 | nigel | 53 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1794 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
| 1795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1796 | else | ||
| 1797 | if test -n "$ac_ct_CC"; then | ||
| 1798 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 1799 | else | ||
| 1800 | nigel | 63 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1801 | for as_dir in $PATH | ||
| 1802 | do | ||
| 1803 | IFS=$as_save_IFS | ||
| 1804 | test -z "$as_dir" && as_dir=. | ||
| 1805 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1807 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
| 1808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1809 | break 2 | ||
| 1810 | fi | ||
| 1811 | nigel | 53 | done |
| 1812 | nigel | 63 | done |
| 1813 | nigel | 41 | |
| 1814 | nigel | 53 | fi |
| 1815 | fi | ||
| 1816 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 1817 | if test -n "$ac_ct_CC"; then | ||
| 1818 | nigel | 63 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1819 | nigel | 53 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1820 | else | ||
| 1821 | nigel | 63 | echo "$as_me:$LINENO: result: no" >&5 |
| 1822 | nigel | 53 | echo "${ECHO_T}no" >&6 |
| 1823 | fi | ||
| 1824 | nigel | 41 | |
| 1825 | nigel | 53 | test -n "$ac_ct_CC" && break |
| 1826 | done | ||
| 1827 | nigel | 41 | |
| 1828 | nigel | 53 | CC=$ac_ct_CC |
| 1829 | fi | ||
| 1830 | nigel | 41 | |
| 1831 | nigel | 53 | fi |
| 1832 | |||
| 1833 | nigel | 63 | |
| 1834 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
| 1835 | See \`config.log' for more details." >&5 | ||
| 1836 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
| 1837 | See \`config.log' for more details." >&2;} | ||
| 1838 | nigel | 53 | { (exit 1); exit 1; }; } |
| 1839 | |||
| 1840 | nigel | 63 | # Provide some information about the compiler. |
| 1841 | echo "$as_me:$LINENO:" \ | ||
| 1842 | "checking for C compiler version" >&5 | ||
| 1843 | ac_compiler=`set X $ac_compile; echo $2` | ||
| 1844 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
| 1845 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
| 1846 | ac_status=$? | ||
| 1847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1848 | (exit $ac_status); } | ||
| 1849 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
| 1850 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
| 1851 | ac_status=$? | ||
| 1852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1853 | (exit $ac_status); } | ||
| 1854 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
| 1855 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
| 1856 | ac_status=$? | ||
| 1857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1858 | (exit $ac_status); } | ||
| 1859 | |||
| 1860 | nigel | 53 | cat >conftest.$ac_ext <<_ACEOF |
| 1861 | nigel | 63 | /* confdefs.h. */ |
| 1862 | _ACEOF | ||
| 1863 | cat confdefs.h >>conftest.$ac_ext | ||
| 1864 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 1865 | /* end confdefs.h. */ | ||
| 1866 | nigel | 41 | |
| 1867 | nigel | 53 | int |
| 1868 | main () | ||
| 1869 | { | ||
| 1870 | |||
| 1871 | ; | ||
| 1872 | return 0; | ||
| 1873 | } | ||
| 1874 | _ACEOF | ||
| 1875 | ac_clean_files_save=$ac_clean_files | ||
| 1876 | nigel | 63 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1877 | nigel | 53 | # Try to create an executable without -o first, disregard a.out. |
| 1878 | nigel | 63 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1879 | nigel | 53 | # of exeext. |
| 1880 | nigel | 75 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1881 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | ||
| 1882 | nigel | 53 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1883 | nigel | 63 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1884 | nigel | 53 | (eval $ac_link_default) 2>&5 |
| 1885 | ac_status=$? | ||
| 1886 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1887 | nigel | 53 | (exit $ac_status); }; then |
| 1888 | nigel | 63 | # Find the output, starting from the most likely. This scheme is |
| 1889 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
| 1890 | # resort. | ||
| 1891 | |||
| 1892 | # Be careful to initialize this variable, since it used to be cached. | ||
| 1893 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | ||
| 1894 | ac_cv_exeext= | ||
| 1895 | # b.out is created by i960 compilers. | ||
| 1896 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | ||
| 1897 | do | ||
| 1898 | test -f "$ac_file" || continue | ||
| 1899 | nigel | 53 | case $ac_file in |
| 1900 | nigel | 63 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1901 | nigel | 75 | ;; |
| 1902 | nigel | 63 | conftest.$ac_ext ) |
| 1903 | nigel | 75 | # This is the source file. |
| 1904 | ;; | ||
| 1905 | nigel | 63 | [ab].out ) |
| 1906 | nigel | 75 | # We found the default executable, but exeext='' is most |
| 1907 | # certainly right. | ||
| 1908 | break;; | ||
| 1909 | nigel | 63 | *.* ) |
| 1910 | nigel | 75 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1911 | # FIXME: I believe we export ac_cv_exeext for Libtool, | ||
| 1912 | # but it would be cool to find out if it's true. Does anybody | ||
| 1913 | # maintain Libtool? --akim. | ||
| 1914 | export ac_cv_exeext | ||
| 1915 | break;; | ||
| 1916 | nigel | 63 | * ) |
| 1917 | nigel | 75 | break;; |
| 1918 | nigel | 53 | esac |
| 1919 | done | ||
| 1920 | else | ||
| 1921 | echo "$as_me: failed program was:" >&5 | ||
| 1922 | nigel | 63 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1923 | |||
| 1924 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
| 1925 | See \`config.log' for more details." >&5 | ||
| 1926 | echo "$as_me: error: C compiler cannot create executables | ||
| 1927 | See \`config.log' for more details." >&2;} | ||
| 1928 | nigel | 53 | { (exit 77); exit 77; }; } |
| 1929 | fi | ||
| 1930 | |||
| 1931 | ac_exeext=$ac_cv_exeext | ||
| 1932 | nigel | 63 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1933 | nigel | 53 | echo "${ECHO_T}$ac_file" >&6 |
| 1934 | |||
| 1935 | # Check the compiler produces executables we can run. If not, either | ||
| 1936 | # the compiler is broken, or we cross compile. | ||
| 1937 | nigel | 63 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1938 | nigel | 53 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1939 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
| 1940 | # If not cross compiling, check that we can run a simple program. | ||
| 1941 | if test "$cross_compiling" != yes; then | ||
| 1942 | if { ac_try='./$ac_file' | ||
| 1943 | nigel | 63 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1944 | nigel | 53 | (eval $ac_try) 2>&5 |
| 1945 | ac_status=$? | ||
| 1946 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1947 | nigel | 53 | (exit $ac_status); }; }; then |
| 1948 | cross_compiling=no | ||
| 1949 | nigel | 41 | else |
| 1950 | nigel | 53 | if test "$cross_compiling" = maybe; then |
| 1951 | cross_compiling=yes | ||
| 1952 | else | ||
| 1953 | nigel | 63 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1954 | If you meant to cross compile, use \`--host'. | ||
| 1955 | See \`config.log' for more details." >&5 | ||
| 1956 | nigel | 53 | echo "$as_me: error: cannot run C compiled programs. |
| 1957 | nigel | 63 | If you meant to cross compile, use \`--host'. |
| 1958 | See \`config.log' for more details." >&2;} | ||
| 1959 | nigel | 53 | { (exit 1); exit 1; }; } |
| 1960 | fi | ||
| 1961 | nigel | 41 | fi |
| 1962 | fi | ||
| 1963 | nigel | 63 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1964 | nigel | 53 | echo "${ECHO_T}yes" >&6 |
| 1965 | nigel | 41 | |
| 1966 | nigel | 63 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1967 | nigel | 53 | ac_clean_files=$ac_clean_files_save |
| 1968 | # Check the compiler produces executables we can run. If not, either | ||
| 1969 | # the compiler is broken, or we cross compile. | ||
| 1970 | nigel | 63 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1971 | nigel | 53 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1972 | nigel | 63 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1973 | nigel | 53 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1974 | |||
| 1975 | nigel | 63 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1976 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | ||
| 1977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| 1978 | nigel | 53 | (eval $ac_link) 2>&5 |
| 1979 | ac_status=$? | ||
| 1980 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1981 | nigel | 53 | (exit $ac_status); }; then |
| 1982 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
| 1983 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
| 1984 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
| 1985 | # `rm'. | ||
| 1986 | nigel | 63 | for ac_file in conftest.exe conftest conftest.*; do |
| 1987 | test -f "$ac_file" || continue | ||
| 1988 | nigel | 53 | case $ac_file in |
| 1989 | nigel | 63 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1990 | nigel | 53 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1991 | nigel | 75 | export ac_cv_exeext |
| 1992 | break;; | ||
| 1993 | nigel | 53 | * ) break;; |
| 1994 | esac | ||
| 1995 | done | ||
| 1996 | else | ||
| 1997 | nigel | 63 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1998 | See \`config.log' for more details." >&5 | ||
| 1999 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
| 2000 | See \`config.log' for more details." >&2;} | ||
| 2001 | nigel | 53 | { (exit 1); exit 1; }; } |
| 2002 | nigel | 41 | fi |
| 2003 | |||
| 2004 | nigel | 53 | rm -f conftest$ac_cv_exeext |
| 2005 | nigel | 63 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2006 | nigel | 53 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2007 | |||
| 2008 | rm -f conftest.$ac_ext | ||
| 2009 | EXEEXT=$ac_cv_exeext | ||
| 2010 | ac_exeext=$EXEEXT | ||
| 2011 | nigel | 63 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2012 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | ||
| 2013 | nigel | 53 | if test "${ac_cv_objext+set}" = set; then |
| 2014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2015 | nigel | 41 | else |
| 2016 | nigel | 53 | cat >conftest.$ac_ext <<_ACEOF |
| 2017 | nigel | 63 | /* confdefs.h. */ |
| 2018 | _ACEOF | ||
| 2019 | cat confdefs.h >>conftest.$ac_ext | ||
| 2020 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2021 | /* end confdefs.h. */ | ||
| 2022 | nigel | 53 | |
| 2023 | int | ||
| 2024 | main () | ||
| 2025 | { | ||
| 2026 | |||
| 2027 | ; | ||
| 2028 | return 0; | ||
| 2029 | } | ||
| 2030 | _ACEOF | ||
| 2031 | rm -f conftest.o conftest.obj | ||
| 2032 | nigel | 63 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2033 | nigel | 53 | (eval $ac_compile) 2>&5 |
| 2034 | ac_status=$? | ||
| 2035 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2036 | nigel | 53 | (exit $ac_status); }; then |
| 2037 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
| 2038 | case $ac_file in | ||
| 2039 | nigel | 63 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2040 | nigel | 53 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2041 | break;; | ||
| 2042 | esac | ||
| 2043 | done | ||
| 2044 | nigel | 41 | else |
| 2045 | nigel | 53 | echo "$as_me: failed program was:" >&5 |
| 2046 | nigel | 63 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2047 | |||
| 2048 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
| 2049 | See \`config.log' for more details." >&5 | ||
| 2050 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
| 2051 | See \`config.log' for more details." >&2;} | ||
| 2052 | nigel | 53 | { (exit 1); exit 1; }; } |
| 2053 | nigel | 41 | fi |
| 2054 | nigel | 53 | |
| 2055 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
| 2056 | nigel | 41 | fi |
| 2057 | nigel | 63 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2058 | nigel | 53 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2059 | OBJEXT=$ac_cv_objext | ||
| 2060 | ac_objext=$OBJEXT | ||
| 2061 | nigel | 63 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2062 | nigel | 53 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2063 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
| 2064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2065 | else | ||
| 2066 | cat >conftest.$ac_ext <<_ACEOF | ||
| 2067 | nigel | 63 | /* confdefs.h. */ |
| 2068 | _ACEOF | ||
| 2069 | cat confdefs.h >>conftest.$ac_ext | ||
| 2070 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2071 | /* end confdefs.h. */ | ||
| 2072 | nigel | 41 | |
| 2073 | nigel | 53 | int |
| 2074 | main () | ||
| 2075 | { | ||
| 2076 | #ifndef __GNUC__ | ||
| 2077 | choke me | ||
| 2078 | #endif | ||
| 2079 | nigel | 41 | |
| 2080 | nigel | 53 | ; |
| 2081 | return 0; | ||
| 2082 | } | ||
| 2083 | _ACEOF | ||
| 2084 | rm -f conftest.$ac_objext | ||
| 2085 | nigel | 63 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2086 | nigel | 75 | (eval $ac_compile) 2>conftest.er1 |
| 2087 | nigel | 53 | ac_status=$? |
| 2088 | nigel | 75 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2089 | rm -f conftest.er1 | ||
| 2090 | cat conftest.err >&5 | ||
| 2091 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2092 | nigel | 53 | (exit $ac_status); } && |
| 2093 | nigel | 75 | { ac_try='test -z "$ac_c_werror_flag" |
| 2094 | || test ! -s conftest.err' | ||
| 2095 | nigel | 63 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2096 | nigel | 53 | (eval $ac_try) 2>&5 |
| 2097 | ac_status=$? | ||
| 2098 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2099 | nigel | 75 | (exit $ac_status); }; } && |
| 2100 | { ac_try='test -s conftest.$ac_objext' | ||
| 2101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2102 | (eval $ac_try) 2>&5 | ||
| 2103 | ac_status=$? | ||
| 2104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2105 | nigel | 53 | (exit $ac_status); }; }; then |
| 2106 | ac_compiler_gnu=yes | ||
| 2107 | nigel | 41 | else |
| 2108 | nigel | 53 | echo "$as_me: failed program was:" >&5 |
| 2109 | nigel | 63 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2110 | |||
| 2111 | nigel | 53 | ac_compiler_gnu=no |
| 2112 | nigel | 41 | fi |
| 2113 | nigel | 75 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2114 | nigel | 53 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2115 | nigel | 41 | |
| 2116 | nigel | 53 | fi |
| 2117 | nigel | 63 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2118 | nigel | 53 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2119 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
| 2120 | ac_test_CFLAGS=${CFLAGS+set} | ||
| 2121 | ac_save_CFLAGS=$CFLAGS | ||
| 2122 | CFLAGS="-g" | ||
| 2123 | nigel | 63 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2124 | nigel | 53 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2125 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
| 2126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2127 | nigel | 41 | else |
| 2128 | nigel | 53 | cat >conftest.$ac_ext <<_ACEOF |
| 2129 | nigel | 63 | /* confdefs.h. */ |
| 2130 | _ACEOF | ||
| 2131 | cat confdefs.h >>conftest.$ac_ext | ||
| 2132 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2133 | /* end confdefs.h. */ | ||
| 2134 | nigel | 53 | |
| 2135 | int | ||
| 2136 | main () | ||
| 2137 | { | ||
| 2138 | |||
| 2139 | ; | ||
| 2140 | return 0; | ||
| 2141 | } | ||
| 2142 | _ACEOF | ||
| 2143 | rm -f conftest.$ac_objext | ||
| 2144 | nigel | 63 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2145 | nigel | 75 | (eval $ac_compile) 2>conftest.er1 |
| 2146 | nigel | 53 | ac_status=$? |
| 2147 | nigel | 75 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2148 | rm -f conftest.er1 | ||
| 2149 | cat conftest.err >&5 | ||
| 2150 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2151 | nigel | 53 | (exit $ac_status); } && |
| 2152 | nigel | 75 | { ac_try='test -z "$ac_c_werror_flag" |
| 2153 | || test ! -s conftest.err' | ||
| 2154 | nigel | 63 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2155 | nigel | 53 | (eval $ac_try) 2>&5 |
| 2156 | ac_status=$? | ||
| 2157 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2158 | nigel | 75 | (exit $ac_status); }; } && |
| 2159 | { ac_try='test -s conftest.$ac_objext' | ||
| 2160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2161 | (eval $ac_try) 2>&5 | ||
| 2162 | ac_status=$? | ||
| 2163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2164 | nigel | 53 | (exit $ac_status); }; }; then |
| 2165 | nigel | 41 | ac_cv_prog_cc_g=yes |
| 2166 | else | ||
| 2167 | nigel | 53 | echo "$as_me: failed program was:" >&5 |
| 2168 | nigel | 63 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2169 | |||
| 2170 | nigel | 53 | ac_cv_prog_cc_g=no |
| 2171 | nigel | 41 | fi |
| 2172 | nigel | 75 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2173 | nigel | 41 | fi |
| 2174 | nigel | 63 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2175 | nigel | 53 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2176 | nigel | 41 | if test "$ac_test_CFLAGS" = set; then |
| 2177 | nigel | 53 | CFLAGS=$ac_save_CFLAGS |
| 2178 | nigel | 41 | elif test $ac_cv_prog_cc_g = yes; then |
| 2179 | if test "$GCC" = yes; then | ||
| 2180 | CFLAGS="-g -O2" | ||
| 2181 | else | ||
| 2182 | CFLAGS="-g" | ||
| 2183 | fi | ||
| 2184 | else | ||
| 2185 | if test "$GCC" = yes; then | ||
| 2186 | CFLAGS="-O2" | ||
| 2187 | else | ||
| 2188 | CFLAGS= | ||
| 2189 | fi | ||
| 2190 | fi | ||
| 2191 | nigel | 63 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2192 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
| 2193 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
| 2194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2195 | else | ||
| 2196 | ac_cv_prog_cc_stdc=no | ||
| 2197 | ac_save_CC=$CC | ||
| 2198 | cat >conftest.$ac_ext <<_ACEOF | ||
| 2199 | /* confdefs.h. */ | ||
| 2200 | _ACEOF | ||
| 2201 | cat confdefs.h >>conftest.$ac_ext | ||
| 2202 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2203 | /* end confdefs.h. */ | ||
| 2204 | #include <stdarg.h> | ||
| 2205 | #include <stdio.h> | ||
| 2206 | #include <sys/types.h> | ||
| 2207 | #include <sys/stat.h> | ||
| 2208 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
| 2209 | struct buf { int x; }; | ||
| 2210 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
| 2211 | static char *e (p, i) | ||
| 2212 | char **p; | ||
| 2213 | int i; | ||
| 2214 | { | ||
| 2215 | return p[i]; | ||
| 2216 | } | ||
| 2217 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
| 2218 | { | ||
| 2219 | char *s; | ||
| 2220 | va_list v; | ||
| 2221 | va_start (v,p); | ||
| 2222 | s = g (p, va_arg (v,int)); | ||
| 2223 | va_end (v); | ||
| 2224 | return s; | ||
| 2225 | } | ||
| 2226 | nigel | 75 | |
| 2227 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
| 2228 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
| 2229 | These don't provoke an error unfortunately, instead are silently treated | ||
| 2230 | as 'x'. The following induces an error, until -std1 is added to get | ||
| 2231 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
| 2232 | array size at least. It's necessary to write '\x00'==0 to get something | ||
| 2233 | that's true only with -std1. */ | ||
| 2234 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
| 2235 | |||
| 2236 | nigel | 63 | int test (int i, double x); |
| 2237 | struct s1 {int (*f) (int a);}; | ||
| 2238 | struct s2 {int (*f) (double a);}; | ||
| 2239 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
| 2240 | int argc; | ||
| 2241 | char **argv; | ||
| 2242 | int | ||
| 2243 | main () | ||
| 2244 | { | ||
| 2245 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
| 2246 | ; | ||
| 2247 | return 0; | ||
| 2248 | } | ||
| 2249 | _ACEOF | ||
| 2250 | # Don't try gcc -ansi; that turns off useful extensions and | ||
| 2251 | # breaks some systems' header files. | ||
| 2252 | # AIX -qlanglvl=ansi | ||
| 2253 | # Ultrix and OSF/1 -std1 | ||
| 2254 | # HP-UX 10.20 and later -Ae | ||
| 2255 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
| 2256 | # SVR4 -Xc -D__EXTENSIONS__ | ||
| 2257 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
| 2258 | do | ||
| 2259 | CC="$ac_save_CC $ac_arg" | ||
| 2260 | rm -f conftest.$ac_objext | ||
| 2261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 2262 | nigel | 75 | (eval $ac_compile) 2>conftest.er1 |
| 2263 | nigel | 63 | ac_status=$? |
| 2264 | nigel | 75 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2265 | rm -f conftest.er1 | ||
| 2266 | cat conftest.err >&5 | ||
| 2267 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2268 | (exit $ac_status); } && | ||
| 2269 | nigel | 75 | { ac_try='test -z "$ac_c_werror_flag" |
| 2270 | || test ! -s conftest.err' | ||
| 2271 | nigel | 63 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2272 | (eval $ac_try) 2>&5 | ||
| 2273 | ac_status=$? | ||
| 2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2275 | nigel | 75 | (exit $ac_status); }; } && |
| 2276 | { ac_try='test -s conftest.$ac_objext' | ||
| 2277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2278 | (eval $ac_try) 2>&5 | ||
| 2279 | ac_status=$? | ||
| 2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2281 | nigel | 63 | (exit $ac_status); }; }; then |
| 2282 | ac_cv_prog_cc_stdc=$ac_arg | ||
| 2283 | break | ||
| 2284 | else | ||
| 2285 | echo "$as_me: failed program was:" >&5 | ||
| 2286 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 2287 | |||
| 2288 | fi | ||
| 2289 | nigel | 75 | rm -f conftest.err conftest.$ac_objext |
| 2290 | nigel | 63 | done |
| 2291 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
| 2292 | CC=$ac_save_CC | ||
| 2293 | |||
| 2294 | fi | ||
| 2295 | |||
| 2296 | case "x$ac_cv_prog_cc_stdc" in | ||
| 2297 | x|xno) | ||
| 2298 | echo "$as_me:$LINENO: result: none needed" >&5 | ||
| 2299 | echo "${ECHO_T}none needed" >&6 ;; | ||
| 2300 | *) | ||
| 2301 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
| 2302 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
| 2303 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
| 2304 | esac | ||
| 2305 | |||
| 2306 | nigel | 53 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2307 | # in C++ we need to declare it. In case someone uses the same compiler | ||
| 2308 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
| 2309 | # the declaration of exit, since it's the most demanding environment. | ||
| 2310 | cat >conftest.$ac_ext <<_ACEOF | ||
| 2311 | #ifndef __cplusplus | ||
| 2312 | choke me | ||
| 2313 | #endif | ||
| 2314 | _ACEOF | ||
| 2315 | rm -f conftest.$ac_objext | ||
| 2316 | nigel | 63 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2317 | nigel | 75 | (eval $ac_compile) 2>conftest.er1 |
| 2318 | nigel | 53 | ac_status=$? |
| 2319 | nigel | 75 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2320 | rm -f conftest.er1 | ||
| 2321 | cat conftest.err >&5 | ||
| 2322 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2323 | nigel | 53 | (exit $ac_status); } && |
| 2324 | nigel | 75 | { ac_try='test -z "$ac_c_werror_flag" |
| 2325 | || test ! -s conftest.err' | ||
| 2326 | nigel | 63 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2327 | nigel | 53 | (eval $ac_try) 2>&5 |
| 2328 | ac_status=$? | ||
| 2329 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2330 | nigel | 75 | (exit $ac_status); }; } && |
| 2331 | { ac_try='test -s conftest.$ac_objext' | ||
| 2332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2333 | (eval $ac_try) 2>&5 | ||
| 2334 | ac_status=$? | ||
| 2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2336 | nigel | 53 | (exit $ac_status); }; }; then |
| 2337 | for ac_declaration in \ | ||
| 2338 | nigel | 75 | '' \ |
| 2339 | nigel | 53 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2340 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
| 2341 | 'extern "C" void exit (int) throw ();' \ | ||
| 2342 | 'extern "C" void exit (int);' \ | ||
| 2343 | 'void exit (int);' | ||
| 2344 | do | ||
| 2345 | cat >conftest.$ac_ext <<_ACEOF | ||
| 2346 | nigel | 63 | /* confdefs.h. */ |
| 2347 | _ACEOF | ||
| 2348 | cat confdefs.h >>conftest.$ac_ext | ||
| 2349 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2350 | /* end confdefs.h. */ | ||
| 2351 | nigel | 75 | $ac_declaration |
| 2352 | nigel | 53 | #include <stdlib.h> |
| 2353 | int | ||
| 2354 | main () | ||
| 2355 | { | ||
| 2356 | exit (42); | ||
| 2357 | ; | ||
| 2358 | return 0; | ||
| 2359 | } | ||
| 2360 | _ACEOF | ||
| 2361 | rm -f conftest.$ac_objext | ||
| 2362 | nigel | 63 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2363 | nigel | 75 | (eval $ac_compile) 2>conftest.er1 |
| 2364 | nigel | 53 | ac_status=$? |
| 2365 | nigel | 75 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2366 | rm -f conftest.er1 | ||
| 2367 | cat conftest.err >&5 | ||
| 2368 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2369 | nigel | 53 | (exit $ac_status); } && |
| 2370 | nigel | 75 | { ac_try='test -z "$ac_c_werror_flag" |
| 2371 | || test ! -s conftest.err' | ||
| 2372 | nigel | 63 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2373 | nigel | 53 | (eval $ac_try) 2>&5 |
| 2374 | ac_status=$? | ||
| 2375 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2376 | nigel | 75 | (exit $ac_status); }; } && |
| 2377 | { ac_try='test -s conftest.$ac_objext' | ||
| 2378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2379 | (eval $ac_try) 2>&5 | ||
| 2380 | ac_status=$? | ||
| 2381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2382 | nigel | 53 | (exit $ac_status); }; }; then |
| 2383 | : | ||
| 2384 | else | ||
| 2385 | echo "$as_me: failed program was:" >&5 | ||
| 2386 | nigel | 63 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2387 | |||
| 2388 | nigel | 53 | continue |
| 2389 | fi | ||
| 2390 | nigel | 75 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2391 | nigel | 53 | cat >conftest.$ac_ext <<_ACEOF |
| 2392 | nigel | 63 | /* confdefs.h. */ |
| 2393 | _ACEOF | ||
| 2394 | cat confdefs.h >>conftest.$ac_ext | ||
| 2395 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2396 | /* end confdefs.h. */ | ||
| 2397 | nigel | 53 | $ac_declaration |
| 2398 | int | ||
| 2399 | main () | ||
| 2400 | { | ||
| 2401 | exit (42); | ||
| 2402 | ; | ||
| 2403 | return 0; | ||
| 2404 | } | ||
| 2405 | _ACEOF | ||
| 2406 | rm -f conftest.$ac_objext | ||
| 2407 | nigel | 63 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2408 | nigel | 75 | (eval $ac_compile) 2>conftest.er1 |
| 2409 | nigel | 53 | ac_status=$? |
| 2410 | nigel | 75 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2411 | rm -f conftest.er1 | ||
| 2412 | cat conftest.err >&5 | ||
| 2413 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2414 | nigel | 53 | (exit $ac_status); } && |
| 2415 | nigel | 75 | { ac_try='test -z "$ac_c_werror_flag" |
| 2416 | || test ! -s conftest.err' | ||
| 2417 | nigel | 63 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2418 | nigel | 53 | (eval $ac_try) 2>&5 |
| 2419 | ac_status=$? | ||
| 2420 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2421 | nigel | 75 | (exit $ac_status); }; } && |
| 2422 | { ac_try='test -s conftest.$ac_objext' | ||
| 2423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2424 | (eval $ac_try) 2>&5 | ||
| 2425 | ac_status=$? | ||
| 2426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2427 | nigel | 53 | (exit $ac_status); }; }; then |
| 2428 | break | ||
| 2429 | else | ||
| 2430 | echo "$as_me: failed program was:" >&5 | ||
| 2431 | nigel | 63 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2432 | |||
| 2433 | nigel | 53 | fi |
| 2434 | nigel | 75 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2435 | nigel | 53 | done |
| 2436 | nigel | 63 | rm -f conftest* |
| 2437 | if test -n "$ac_declaration"; then | ||
| 2438 | echo '#ifdef __cplusplus' >>confdefs.h | ||
| 2439 | echo $ac_declaration >>confdefs.h | ||
| 2440 | echo '#endif' >>confdefs.h | ||
| 2441 | fi | ||
| 2442 | nigel | 41 | |
| 2443 | else | ||
| 2444 | nigel | 53 | echo "$as_me: failed program was:" >&5 |
| 2445 | nigel | 63 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2446 | |||
| 2447 | nigel | 53 | fi |
| 2448 | nigel | 75 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2449 | nigel | 53 | ac_ext=c |
| 2450 | ac_cpp='$CPP $CPPFLAGS' | ||
| 2451 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 2452 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 2453 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 2454 | |||
| 2455 | nigel | 75 | |
| 2456 | |||
| 2457 | nigel | 53 | ac_aux_dir= |
| 2458 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
| 2459 | if test -f $ac_dir/install-sh; then | ||
| 2460 | ac_aux_dir=$ac_dir | ||
| 2461 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
| 2462 | break | ||
| 2463 | elif test -f $ac_dir/install.sh; then | ||
| 2464 | ac_aux_dir=$ac_dir | ||
| 2465 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
| 2466 | break | ||
| 2467 | elif test -f $ac_dir/shtool; then | ||
| 2468 | ac_aux_dir=$ac_dir | ||
| 2469 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
| 2470 | break | ||
| 2471 | fi | ||
| 2472 | done | ||
| 2473 | if test -z "$ac_aux_dir"; then | ||
| 2474 | nigel | 63 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 2475 | nigel | 53 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 2476 | { (exit 1); exit 1; }; } | ||
| 2477 | fi | ||
| 2478 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
| 2479 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
| 2480 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
| 2481 | |||
| 2482 | # Find a good install program. We prefer a C program (faster), | ||
| 2483 | # so one script is as good as another. But avoid the broken or | ||
| 2484 | # incompatible versions: | ||
| 2485 | # SysV /etc/install, /usr/sbin/install | ||
| 2486 | # SunOS /usr/etc/install | ||
| 2487 | # IRIX /sbin/install | ||
| 2488 | # AIX /bin/install | ||
| 2489 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
| 2490 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
| 2491 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
| 2492 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
| 2493 | nigel | 75 | # OS/2's system install, which has a completely different semantic |
| 2494 | nigel | 53 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2495 | nigel | 63 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2496 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | ||
| 2497 | nigel | 53 | if test -z "$INSTALL"; then |
| 2498 | if test "${ac_cv_path_install+set}" = set; then | ||
| 2499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2500 | else | ||
| 2501 | nigel | 63 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2502 | for as_dir in $PATH | ||
| 2503 | do | ||
| 2504 | IFS=$as_save_IFS | ||
| 2505 | test -z "$as_dir" && as_dir=. | ||
| 2506 | # Account for people who put trailing slashes in PATH elements. | ||
| 2507 | case $as_dir/ in | ||
| 2508 | ./ | .// | /cC/* | \ | ||
| 2509 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
| 2510 | nigel | 75 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 2511 | nigel | 63 | /usr/ucb/* ) ;; |
| 2512 | *) | ||
| 2513 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
| 2514 | # Don't use installbsd from OSF since it installs stuff as root | ||
| 2515 | # by default. | ||
| 2516 | for ac_prog in ginstall scoinst install; do | ||
| 2517 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 2518 | nigel | 75 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2519 | if test $ac_prog = install && | ||
| 2520 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
| 2521 | # AIX install. It has an incompatible calling convention. | ||
| 2522 | : | ||
| 2523 | elif test $ac_prog = install && | ||
| 2524 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
| 2525 | # program-specific install script used by HP pwplus--don't use. | ||
| 2526 | : | ||
| 2527 | else | ||
| 2528 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
| 2529 | break 3 | ||
| 2530 | fi | ||
| 2531 | fi | ||
| 2532 | nigel | 53 | done |
| 2533 | nigel | 63 | done |
| 2534 | ;; | ||
| 2535 | esac | ||
| 2536 | done | ||
| 2537 | nigel | 53 | |
| 2538 | nigel | 63 | |
| 2539 | nigel | 53 | fi |
| 2540 | if test "${ac_cv_path_install+set}" = set; then | ||
| 2541 | INSTALL=$ac_cv_path_install | ||
| 2542 | else | ||
| 2543 | # As a last resort, use the slow shell script. We don't cache a | ||
| 2544 | # path for INSTALL within a source directory, because that will | ||
| 2545 | # break other packages using the cache if that directory is | ||
| 2546 | # removed, or if the path is relative. | ||
| 2547 | INSTALL=$ac_install_sh | ||
| 2548 | fi | ||
| 2549 | fi | ||
| 2550 | nigel | 63 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2551 | nigel | 53 | echo "${ECHO_T}$INSTALL" >&6 |
| 2552 | |||
| 2553 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
| 2554 | # It thinks the first close brace ends the variable substitution. | ||
| 2555 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
| 2556 | |||
| 2557 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
| 2558 | |||
| 2559 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
| 2560 | |||
| 2561 | |||
| 2562 | nigel | 75 | |
| 2563 | nigel | 53 | # Check whether --enable-shared or --disable-shared was given. |
| 2564 | if test "${enable_shared+set}" = set; then | ||
| 2565 | enableval="$enable_shared" | ||
| 2566 | p=${PACKAGE-default} | ||
| 2567 | nigel | 75 | case $enableval in |
| 2568 | yes) enable_shared=yes ;; | ||
| 2569 | no) enable_shared=no ;; | ||
| 2570 | *) | ||
| 2571 | enable_shared=no | ||
| 2572 | # Look at the argument we got. We use all the common list separators. | ||
| 2573 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
| 2574 | for pkg in $enableval; do | ||
| 2575 | IFS="$lt_save_ifs" | ||
| 2576 | if test "X$pkg" = "X$p"; then | ||
| 2577 | enable_shared=yes | ||
| 2578 | fi | ||
| 2579 | done | ||
| 2580 | IFS="$lt_save_ifs" | ||
| 2581 | ;; | ||
| 2582 | esac | ||
| 2583 | nigel | 53 | else |
| 2584 | enable_shared=yes | ||
| 2585 | fi; | ||
| 2586 | nigel | 75 | |
| 2587 | nigel | 53 | # Check whether --enable-static or --disable-static was given. |
| 2588 | if test "${enable_static+set}" = set; then | ||
| 2589 | enableval="$enable_static" | ||
| 2590 | p=${PACKAGE-default} | ||
| 2591 | nigel | 75 | case $enableval in |
| 2592 | yes) enable_static=yes ;; | ||
| 2593 | no) enable_static=no ;; | ||
| 2594 | *) | ||
| 2595 | enable_static=no | ||
| 2596 | # Look at the argument we got. We use all the common list separators. | ||
| 2597 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
| 2598 | for pkg in $enableval; do | ||
| 2599 | IFS="$lt_save_ifs" | ||
| 2600 | if test "X$pkg" = "X$p"; then | ||
| 2601 | enable_static=yes | ||
| 2602 | fi | ||
| 2603 | done | ||
| 2604 | IFS="$lt_save_ifs" | ||
| 2605 | ;; | ||
| 2606 | esac | ||
| 2607 | nigel | 53 | else |
| 2608 | enable_static=yes | ||
| 2609 | fi; | ||
| 2610 | nigel | 75 | |
| 2611 | nigel | 53 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 2612 | if test "${enable_fast_install+set}" = set; then | ||
| 2613 | enableval="$enable_fast_install" | ||
| 2614 | p=${PACKAGE-default} | ||
| 2615 | nigel | 75 | case $enableval in |
| 2616 | yes) enable_fast_install=yes ;; | ||
| 2617 | no) enable_fast_install=no ;; | ||
| 2618 | *) | ||
| 2619 | enable_fast_install=no | ||
| 2620 | # Look at the argument we got. We use all the common list separators. | ||
| 2621 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
| 2622 | for pkg in $enableval; do | ||
| 2623 | IFS="$lt_save_ifs" | ||
| 2624 | if test "X$pkg" = "X$p"; then | ||
| 2625 | enable_fast_install=yes | ||
| 2626 | fi | ||
| 2627 | done | ||
| 2628 | IFS="$lt_save_ifs" | ||
| 2629 | ;; | ||
| 2630 | esac | ||
| 2631 | nigel | 53 | else |
| 2632 | enable_fast_install=yes | ||
| 2633 | fi; | ||
| 2634 | nigel | 75 | |
| 2635 | nigel | 53 | # Make sure we can run config.sub. |
| 2636 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
| 2637 | nigel | 63 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 2638 | nigel | 53 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 2639 | { (exit 1); exit 1; }; } | ||
| 2640 | |||
| 2641 | nigel | 63 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 2642 | nigel | 53 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 2643 | if test "${ac_cv_build+set}" = set; then | ||
| 2644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2645 | else | ||
| 2646 | ac_cv_build_alias=$build_alias | ||
| 2647 | test -z "$ac_cv_build_alias" && | ||
| 2648 | ac_cv_build_alias=`$ac_config_guess` | ||
| 2649 | test -z "$ac_cv_build_alias" && | ||
| 2650 | nigel | 63 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2651 | nigel | 53 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2652 | { (exit 1); exit 1; }; } | ||
| 2653 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
| 2654 | nigel | 63 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 2655 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
| 2656 | nigel | 53 | { (exit 1); exit 1; }; } |
| 2657 | |||
| 2658 | fi | ||
| 2659 | nigel | 63 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2660 | nigel | 53 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 2661 | build=$ac_cv_build | ||
| 2662 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
| 2663 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
| 2664 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
| 2665 | |||
| 2666 | nigel | 63 | |
| 2667 | echo "$as_me:$LINENO: checking host system type" >&5 | ||
| 2668 | nigel | 53 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 2669 | if test "${ac_cv_host+set}" = set; then | ||
| 2670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2671 | else | ||
| 2672 | ac_cv_host_alias=$host_alias | ||
| 2673 | test -z "$ac_cv_host_alias" && | ||
| 2674 | ac_cv_host_alias=$ac_cv_build_alias | ||
| 2675 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
| 2676 | nigel | 63 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 2677 | nigel | 53 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 2678 | { (exit 1); exit 1; }; } | ||
| 2679 | |||
| 2680 | fi | ||
| 2681 | nigel | 63 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2682 | nigel | 53 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 2683 | host=$ac_cv_host | ||
| 2684 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
| 2685 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
| 2686 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
| 2687 | |||
| 2688 | nigel | 63 | |
| 2689 | nigel | 75 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 2690 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | ||
| 2691 | if test "${lt_cv_path_SED+set}" = set; then | ||
| 2692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2693 | else | ||
| 2694 | # Loop through the user's path and test for sed and gsed. | ||
| 2695 | # Then use that list of sed's as ones to test for truncation. | ||
| 2696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 2697 | for as_dir in $PATH | ||
| 2698 | do | ||
| 2699 | IFS=$as_save_IFS | ||
| 2700 | test -z "$as_dir" && as_dir=. | ||
| 2701 | for lt_ac_prog in sed gsed; do | ||
| 2702 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 2703 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | ||
| 2704 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | ||
| 2705 | fi | ||
| 2706 | done | ||
| 2707 | done | ||
| 2708 | done | ||
| 2709 | lt_ac_max=0 | ||
| 2710 | lt_ac_count=0 | ||
| 2711 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | ||
| 2712 | # along with /bin/sed that truncates output. | ||
| 2713 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | ||
| 2714 | test ! -f $lt_ac_sed && break | ||
| 2715 | cat /dev/null > conftest.in | ||
| 2716 | lt_ac_count=0 | ||
| 2717 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | ||
| 2718 | # Check for GNU sed and select it if it is found. | ||
| 2719 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | ||
| 2720 | lt_cv_path_SED=$lt_ac_sed | ||
| 2721 | break | ||
| 2722 | fi | ||
| 2723 | while true; do | ||
| 2724 | cat conftest.in conftest.in >conftest.tmp | ||
| 2725 | mv conftest.tmp conftest.in | ||
| 2726 | cp conftest.in conftest.nl | ||
| 2727 | echo >>conftest.nl | ||
| 2728 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | ||
| 2729 | cmp -s conftest.out conftest.nl || break | ||
| 2730 | # 10000 chars as input seems more than enough | ||
| 2731 | test $lt_ac_count -gt 10 && break | ||
| 2732 | lt_ac_count=`expr $lt_ac_count + 1` | ||
| 2733 | if test $lt_ac_count -gt $lt_ac_max; then | ||
| 2734 | lt_ac_max=$lt_ac_count | ||
| 2735 | lt_cv_path_SED=$lt_ac_sed | ||
| 2736 | fi | ||
| 2737 | done | ||
| 2738 | done | ||
| 2739 | nigel | 63 | |
| 2740 | nigel | 75 | fi |
| 2741 | |||
| 2742 | SED=$lt_cv_path_SED | ||
| 2743 | echo "$as_me:$LINENO: result: $SED" >&5 | ||
| 2744 | echo "${ECHO_T}$SED" >&6 | ||
| 2745 | |||
| 2746 | echo "$as_me:$LINENO: checking for egrep" >&5 | ||
| 2747 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | ||
| 2748 | if test "${ac_cv_prog_egrep+set}" = set; then | ||
| 2749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2750 | else | ||
| 2751 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
| 2752 | then ac_cv_prog_egrep='grep -E' | ||
| 2753 | else ac_cv_prog_egrep='egrep' | ||
| 2754 | fi | ||
| 2755 | fi | ||
| 2756 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | ||
| 2757 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | ||
| 2758 | EGREP=$ac_cv_prog_egrep | ||
| 2759 | |||
| 2760 | |||
| 2761 | |||
| 2762 | nigel | 53 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 2763 | if test "${with_gnu_ld+set}" = set; then | ||
| 2764 | withval="$with_gnu_ld" | ||
| 2765 | test "$withval" = no || with_gnu_ld=yes | ||
| 2766 | else | ||
| 2767 | with_gnu_ld=no | ||
| 2768 | fi; | ||
| 2769 | ac_prog=ld | ||
| 2770 | if test "$GCC" = yes; then | ||
| 2771 | # Check if gcc -print-prog-name=ld gives a path. | ||
| 2772 | nigel | 75 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 2773 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | ||
| 2774 | nigel | 53 | case $host in |
| 2775 | *-*-mingw*) | ||
| 2776 | # gcc leaves a trailing carriage return which upsets mingw | ||
| 2777 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
| 2778 | *) | ||
| 2779 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
| 2780 | esac | ||
| 2781 | case $ac_prog in | ||
| 2782 | # Accept absolute paths. | ||
| 2783 | nigel | 75 | [\\/]* | ?:[\\/]*) |
| 2784 | nigel | 53 | re_direlt='/[^/][^/]*/\.\./' |
| 2785 | nigel | 75 | # Canonicalize the pathname of ld |
| 2786 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
| 2787 | nigel | 53 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 2788 | nigel | 75 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 2789 | nigel | 53 | done |
| 2790 | test -z "$LD" && LD="$ac_prog" | ||
| 2791 | ;; | ||
| 2792 | "") | ||
| 2793 | # If it fails, then pretend we aren't using GCC. | ||
| 2794 | ac_prog=ld | ||
| 2795 | ;; | ||
| 2796 | *) | ||
| 2797 | # If it is relative, then search for the first ld in PATH. | ||
| 2798 | with_gnu_ld=unknown | ||
| 2799 | ;; | ||
| 2800 | esac | ||
| 2801 | elif test "$with_gnu_ld" = yes; then | ||
| 2802 | nigel | 63 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 2803 | nigel | 53 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 2804 | else | ||
| 2805 | nigel | 63 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 2806 | nigel | 53 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 2807 | fi | ||
| 2808 | if test "${lt_cv_path_LD+set}" = set; then | ||
| 2809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2810 | else | ||
| 2811 | if test -z "$LD"; then | ||
| 2812 | nigel | 75 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 2813 | nigel | 53 | for ac_dir in $PATH; do |
| 2814 | nigel | 75 | IFS="$lt_save_ifs" |
| 2815 | nigel | 53 | test -z "$ac_dir" && ac_dir=. |
| 2816 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
| 2817 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
| 2818 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
| 2819 | # but apparently some GNU ld's only accept -v. | ||
| 2820 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
| 2821 | nigel | 75 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 2822 | *GNU* | *'with BFD'*) | ||
| 2823 | nigel | 53 | test "$with_gnu_ld" != no && break |
| 2824 | nigel | 75 | ;; |
| 2825 | *) | ||
| 2826 | nigel | 53 | test "$with_gnu_ld" != yes && break |
| 2827 | nigel | 75 | ;; |
| 2828 | esac | ||
| 2829 | nigel | 53 | fi |
| 2830 | done | ||
| 2831 | nigel | 75 | IFS="$lt_save_ifs" |
| 2832 | nigel | 53 | else |
| 2833 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
| 2834 | fi | ||
| 2835 | fi | ||
| 2836 | |||
| 2837 | LD="$lt_cv_path_LD" | ||
| 2838 | if test -n "$LD"; then | ||
| 2839 | nigel | 63 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 2840 | nigel | 53 | echo "${ECHO_T}$LD" >&6 |
| 2841 | else | ||
| 2842 | nigel | 63 | echo "$as_me:$LINENO: result: no" >&5 |
| 2843 | nigel | 53 | echo "${ECHO_T}no" >&6 |
| 2844 | fi | ||
| 2845 | nigel | 63 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 2846 | nigel | 53 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 2847 | { (exit 1); exit 1; }; } | ||
| 2848 | nigel | 63 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 2849 | nigel | 53 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 2850 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | ||
| 2851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2852 | else | ||
| 2853 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
| 2854 | nigel | 75 | case `$LD -v 2>&1 </dev/null` in |
| 2855 | *GNU* | *'with BFD'*) | ||
| 2856 | nigel | 53 | lt_cv_prog_gnu_ld=yes |
| 2857 | nigel | 75 | ;; |
| 2858 | *) | ||
| 2859 | nigel | 53 | lt_cv_prog_gnu_ld=no |
| 2860 | nigel | 75 | ;; |
| 2861 | esac | ||
| 2862 | nigel | 53 | fi |
| 2863 | nigel | 63 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 2864 | nigel | 53 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 2865 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
| 2866 | |||
| 2867 | nigel | 63 | |
| 2868 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | ||
| 2869 | nigel | 53 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 2870 | if test "${lt_cv_ld_reload_flag+set}" = set; then | ||
| 2871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2872 | else | ||
| 2873 | lt_cv_ld_reload_flag='-r' | ||
| 2874 | fi | ||
| 2875 | nigel | 63 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 2876 | nigel | 53 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 2877 | reload_flag=$lt_cv_ld_reload_flag | ||
| 2878 | nigel | 75 | case $reload_flag in |
| 2879 | "" | " "*) ;; | ||
| 2880 | *) reload_flag=" $reload_flag" ;; | ||
| 2881 | esac | ||
| 2882 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
| 2883 | case $host_os in | ||
| 2884 | darwin*) | ||
| 2885 | if test "$GCC" = yes; then | ||
| 2886 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | ||
| 2887 | else | ||
| 2888 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
| 2889 | fi | ||
| 2890 | ;; | ||
| 2891 | esac | ||
| 2892 | nigel | 53 | |
| 2893 | nigel | 63 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 2894 | nigel | 53 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 2895 | if test "${lt_cv_path_NM+set}" = set; then | ||
| 2896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2897 | else | ||
| 2898 | if test -n "$NM"; then | ||
| 2899 | # Let the user override the test. | ||
| 2900 | lt_cv_path_NM="$NM" | ||
| 2901 | else | ||
| 2902 | nigel | 75 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 2903 | nigel | 53 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 2904 | nigel | 75 | IFS="$lt_save_ifs" |
| 2905 | nigel | 53 | test -z "$ac_dir" && ac_dir=. |
| 2906 | nigel | 75 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 2907 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
| 2908 | nigel | 53 | # Check to see if the nm accepts a BSD-compat flag. |
| 2909 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
| 2910 | # nm: unknown option "B" ignored | ||
| 2911 | # Tru64's nm complains that /dev/null is an invalid object file | ||
| 2912 | nigel | 75 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 2913 | */dev/null* | *'Invalid file or object type'*) | ||
| 2914 | nigel | 53 | lt_cv_path_NM="$tmp_nm -B" |
| 2915 | break | ||
| 2916 | nigel | 75 | ;; |
| 2917 | *) | ||
| 2918 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
| 2919 | */dev/null*) | ||
| 2920 | lt_cv_path_NM="$tmp_nm -p" | ||
| 2921 | break | ||
| 2922 | ;; | ||
| 2923 | *) | ||
| 2924 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
| 2925 | continue # so that we can try to find one that supports BSD flags | ||
| 2926 | ;; | ||
| 2927 | esac | ||
| 2928 | esac | ||
| 2929 | nigel | 53 | fi |
| 2930 | done | ||
| 2931 | nigel | 75 | IFS="$lt_save_ifs" |
| 2932 | nigel | 53 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 2933 | fi | ||
| 2934 | fi | ||
| 2935 | nigel | 75 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 2936 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | ||
| 2937 | nigel | 53 | NM="$lt_cv_path_NM" |
| 2938 | |||
| 2939 | nigel | 63 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 2940 | nigel | 53 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 2941 | LN_S=$as_ln_s | ||
| 2942 | if test "$LN_S" = "ln -s"; then | ||
| 2943 | nigel | 63 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2944 | nigel | 53 | echo "${ECHO_T}yes" >&6 |
| 2945 | else | ||
| 2946 | nigel | 63 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 2947 | nigel | 53 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 2948 | fi | ||
| 2949 | |||
| 2950 | nigel | 75 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 2951 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | ||
| 2952 | nigel | 53 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 2953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2954 | else | ||
| 2955 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
| 2956 | lt_cv_file_magic_test_file= | ||
| 2957 | lt_cv_deplibs_check_method='unknown' | ||
| 2958 | # Need to set the preceding variable on all platforms that support | ||
| 2959 | # interlibrary dependencies. | ||
| 2960 | # 'none' -- dependencies not supported. | ||
| 2961 | # `unknown' -- same as none, but documents that we really don't know. | ||
| 2962 | # 'pass_all' -- all dependencies passed with no checks. | ||
| 2963 | # 'test_compile' -- check by making test program. | ||
| 2964 | nigel | 75 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 2965 | # which responds to the $file_magic_cmd with a given extended regex. | ||
| 2966 | nigel | 53 | # If you have `file' or equivalent on your system and you're not sure |
| 2967 | # whether `pass_all' will *always* work, you probably want this one. | ||
| 2968 | |||
| 2969 | case $host_os in | ||
| 2970 | aix4* | aix5*) | ||
| 2971 | lt_cv_deplibs_check_method=pass_all | ||
| 2972 | ;; | ||
| 2973 | |||
| 2974 | beos*) | ||
| 2975 | lt_cv_deplibs_check_method=pass_all | ||
| 2976 | ;; | ||
| 2977 | |||
| 2978 | nigel | 75 | bsdi[45]*) |
| 2979 | nigel | 53 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 2980 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
| 2981 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
| 2982 | ;; | ||
| 2983 | |||
| 2984 | nigel | 75 | cygwin*) |
| 2985 | # func_win32_libid is a shell function defined in ltmain.sh | ||
| 2986 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
| 2987 | lt_cv_file_magic_cmd='func_win32_libid' | ||
| 2988 | ;; | ||
| 2989 | |||
| 2990 | mingw* | pw32*) | ||
| 2991 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
| 2992 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | ||
| 2993 | nigel | 53 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 2994 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
| 2995 | ;; | ||
| 2996 | |||
| 2997 | darwin* | rhapsody*) | ||
| 2998 | nigel | 75 | lt_cv_deplibs_check_method=pass_all |
| 2999 | nigel | 53 | ;; |
| 3000 | |||
| 3001 | nigel | 75 | freebsd* | kfreebsd*-gnu) |
| 3002 | nigel | 53 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3003 | case $host_cpu in | ||
| 3004 | i*86 ) | ||
| 3005 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
| 3006 | # Let's accept both of them until this is cleared up. | ||
| 3007 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | ||
| 3008 | lt_cv_file_magic_cmd=/usr/bin/file | ||
| 3009 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
| 3010 | ;; | ||
| 3011 | esac | ||
| 3012 | else | ||
| 3013 | lt_cv_deplibs_check_method=pass_all | ||
| 3014 | fi | ||
| 3015 | ;; | ||
| 3016 | |||
| 3017 | gnu*) | ||
| 3018 | lt_cv_deplibs_check_method=pass_all | ||
| 3019 | ;; | ||
| 3020 | |||
| 3021 | nigel | 75 | hpux10.20* | hpux11*) |
| 3022 | nigel | 53 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3023 | nigel | 75 | case "$host_cpu" in |
| 3024 | ia64*) | ||
| 3025 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
| 3026 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
| 3027 | nigel | 53 | ;; |
| 3028 | nigel | 75 | hppa*64*) |
| 3029 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | ||
| 3030 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
| 3031 | ;; | ||
| 3032 | nigel | 53 | *) |
| 3033 | nigel | 75 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3034 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
| 3035 | nigel | 53 | ;; |
| 3036 | esac | ||
| 3037 | nigel | 75 | ;; |
| 3038 | |||
| 3039 | irix5* | irix6* | nonstopux*) | ||
| 3040 | case $LD in | ||
| 3041 | *-32|*"-32 ") libmagic=32-bit;; | ||
| 3042 | *-n32|*"-n32 ") libmagic=N32;; | ||
| 3043 | *-64|*"-64 ") libmagic=64-bit;; | ||
| 3044 | *) libmagic=never-match;; | ||
| 3045 | esac | ||
| 3046 | nigel | 53 | lt_cv_deplibs_check_method=pass_all |
| 3047 | ;; | ||
| 3048 | |||
| 3049 | # This must be Linux ELF. | ||
| 3050 | nigel | 75 | linux*) |
| 3051 | nigel | 53 | case $host_cpu in |
| 3052 | nigel | 75 | alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*) |
| 3053 | nigel | 53 | lt_cv_deplibs_check_method=pass_all ;; |
| 3054 | *) | ||
| 3055 | # glibc up to 2.1.1 does not perform some relocations on ARM | ||
| 3056 | nigel | 75 | # this will be overridden with pass_all, but let us keep it just in case |
| 3057 | nigel | 53 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 3058 | esac | ||
| 3059 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | ||
| 3060 | nigel | 75 | lt_cv_deplibs_check_method=pass_all |
| 3061 | nigel | 53 | ;; |
| 3062 | |||
| 3063 | netbsd*) | ||
| 3064 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
| 3065 | nigel | 75 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 3066 | nigel | 53 | else |
| 3067 | nigel | 75 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 3068 | nigel | 53 | fi |
| 3069 | ;; | ||
| 3070 | |||
| 3071 | newos6*) | ||
| 3072 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
| 3073 | lt_cv_file_magic_cmd=/usr/bin/file | ||
| 3074 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
| 3075 | ;; | ||
| 3076 | |||
| 3077 | nigel | 75 | nto-qnx*) |
| 3078 | lt_cv_deplibs_check_method=unknown | ||
| 3079 | ;; | ||
| 3080 | |||
| 3081 | openbsd*) | ||
| 3082 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
| 3083 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | ||
| 3084 | else | ||
| 3085 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
| 3086 | fi | ||
| 3087 | ;; | ||
| 3088 | |||
| 3089 | nigel | 53 | osf3* | osf4* | osf5*) |
| 3090 | lt_cv_deplibs_check_method=pass_all | ||
| 3091 | ;; | ||
| 3092 | |||
| 3093 | sco3.2v5*) | ||
| 3094 | lt_cv_deplibs_check_method=pass_all | ||
| 3095 | ;; | ||
| 3096 | |||
| 3097 | solaris*) | ||
| 3098 | lt_cv_deplibs_check_method=pass_all | ||
| 3099 | ;; | ||
| 3100 | |||
| 3101 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
| 3102 | case $host_vendor in | ||
| 3103 | motorola) | ||
| 3104 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | ||
| 3105 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
| 3106 | ;; | ||
| 3107 | ncr) | ||
| 3108 | lt_cv_deplibs_check_method=pass_all | ||
| 3109 | ;; | ||
| 3110 | sequent) | ||
| 3111 | lt_cv_file_magic_cmd='/bin/file' | ||
| 3112 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
| 3113 | ;; | ||
| 3114 | sni) | ||
| 3115 | lt_cv_file_magic_cmd='/bin/file' | ||
| 3116 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
| 3117 | lt_cv_file_magic_test_file=/lib/libc.so | ||
| 3118 | ;; | ||
| 3119 | nigel | 75 | siemens) |
| 3120 | lt_cv_deplibs_check_method=pass_all | ||
| 3121 | ;; | ||
| 3122 | nigel | 53 | esac |
| 3123 | ;; | ||
| 3124 | nigel | 75 | |
| 3125 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | ||
| 3126 | lt_cv_deplibs_check_method=pass_all | ||
| 3127 | ;; | ||
| 3128 | nigel | 53 | esac |
| 3129 | |||
| 3130 | fi | ||
| 3131 | nigel | 63 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3132 | nigel | 53 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3133 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
| 3134 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
| 3135 | nigel | 75 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 3136 | nigel | 53 | |
| 3137 | nigel | 63 | |
| 3138 | |||
| 3139 | |||
| 3140 | nigel | 75 | # If no C compiler was specified, use CC. |
| 3141 | LTCC=${LTCC-"$CC"} | ||
| 3142 | nigel | 63 | |
| 3143 | nigel | 75 | # Allow CC to be a program name with arguments. |
| 3144 | compiler=$CC | ||
| 3145 | nigel | 63 | |
| 3146 | |||
| 3147 | nigel | 75 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 3148 | if test "${enable_libtool_lock+set}" = set; then | ||
| 3149 | enableval="$enable_libtool_lock" | ||
| 3150 | nigel | 63 | |
| 3151 | nigel | 75 | fi; |
| 3152 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
| 3153 | nigel | 53 | |
| 3154 | nigel | 75 | # Some flags need to be propagated to the compiler or linker for good |
| 3155 | # libtool support. | ||
| 3156 | case $host in | ||
| 3157 | ia64-*-hpux*) | ||
| 3158 | # Find out which ABI we are using. | ||
| 3159 | echo 'int i;' > conftest.$ac_ext | ||
| 3160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 3161 | (eval $ac_compile) 2>&5 | ||
| 3162 | ac_status=$? | ||
| 3163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 3164 | (exit $ac_status); }; then | ||
| 3165 | case `/usr/bin/file conftest.$ac_objext` in | ||
| 3166 | *ELF-32*) | ||
| 3167 | HPUX_IA64_MODE="32" | ||
| 3168 | ;; | ||
| 3169 | *ELF-64*) | ||
| 3170 | HPUX_IA64_MODE="64" | ||
| 3171 | ;; | ||
| 3172 | esac | ||
| 3173 | fi | ||
| 3174 | rm -rf conftest* | ||
| 3175 | nigel | 53 | ;; |
| 3176 | nigel | 75 | *-*-irix6*) |
| 3177 | # Find out which ABI we are using. | ||
| 3178 | echo '#line 3173 "configure"' > conftest.$ac_ext | ||
| 3179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 3180 | (eval $ac_compile) 2>&5 | ||
| 3181 | ac_status=$? | ||
| 3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 3183 | (exit $ac_status); }; then | ||
| 3184 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
| 3185 | case `/usr/bin/file conftest.$ac_objext` in | ||
| 3186 | *32-bit*) | ||
| 3187 | LD="${LD-ld} -melf32bsmip" | ||
| 3188 | ;; | ||
| 3189 | *N32*) | ||
| 3190 | LD="${LD-ld} -melf32bmipn32" | ||
| 3191 | ;; | ||
| 3192 | *64-bit*) | ||
| 3193 | LD="${LD-ld} -melf64bmip" | ||
| 3194 | ;; | ||
| 3195 | esac | ||
| 3196 | else | ||
| 3197 | case `/usr/bin/file conftest.$ac_objext` in | ||
| 3198 | *32-bit*) | ||
| 3199 | LD="${LD-ld} -32" | ||
| 3200 | ;; | ||
| 3201 | *N32*) | ||
| 3202 | LD="${LD-ld} -n32" | ||
| 3203 | ;; | ||
| 3204 | *64-bit*) | ||
| 3205 | LD="${LD-ld} -64" | ||
| 3206 | ;; | ||
| 3207 | esac | ||
| 3208 | fi | ||
| 3209 | fi | ||
| 3210 | rm -rf conftest* | ||
| 3211 | nigel | 53 | ;; |
| 3212 | |||
| 3213 | nigel | 75 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 3214 | # Find out which ABI we are using. | ||
| 3215 | echo 'int i;' > conftest.$ac_ext | ||
| 3216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 3217 | (eval $ac_compile) 2>&5 | ||
| 3218 | ac_status=$? | ||
| 3219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 3220 | (exit $ac_status); }; then | ||
| 3221 | case "`/usr/bin/file conftest.o`" in | ||
| 3222 | *32-bit*) | ||
| 3223 | case $host in | ||
| 3224 | x86_64-*linux*) | ||
| 3225 | LD="${LD-ld} -m elf_i386" | ||
| 3226 | ;; | ||
| 3227 | ppc64-*linux*|powerpc64-*linux*) | ||
| 3228 | LD="${LD-ld} -m elf32ppclinux" | ||
| 3229 | ;; | ||
| 3230 | s390x-*linux*) | ||
| 3231 | LD="${LD-ld} -m elf_s390" | ||
| 3232 | ;; | ||
| 3233 | sparc64-*linux*) | ||
| 3234 | LD="${LD-ld} -m elf32_sparc" | ||
| 3235 | ;; | ||
| 3236 | esac | ||
| 3237 | ;; | ||
| 3238 | *64-bit*) | ||
| 3239 | case $host in | ||
| 3240 | x86_64-*linux*) | ||
| 3241 | LD="${LD-ld} -m elf_x86_64" | ||
| 3242 | ;; | ||
| 3243 | ppc*-*linux*|powerpc*-*linux*) | ||
| 3244 | LD="${LD-ld} -m elf64ppc" | ||
| 3245 | ;; | ||
| 3246 | s390*-*linux*) | ||
| 3247 | LD="${LD-ld} -m elf64_s390" | ||
| 3248 | ;; | ||
| 3249 | sparc*-*linux*) | ||
| 3250 | LD="${LD-ld} -m elf64_sparc" | ||
| 3251 | ;; | ||
| 3252 | esac | ||
| 3253 | ;; | ||
| 3254 | esac | ||
| 3255 | fi | ||
| 3256 | rm -rf conftest* | ||
| 3257 | nigel | 53 | ;; |
| 3258 | |||
| 3259 | nigel | 75 | *-*-sco3.2v5*) |
| 3260 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
| 3261 | SAVE_CFLAGS="$CFLAGS" | ||
| 3262 | CFLAGS="$CFLAGS -belf" | ||
| 3263 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | ||
| 3264 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | ||
| 3265 | if test "${lt_cv_cc_needs_belf+set}" = set; then | ||
| 3266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 3267 | else | ||
| 3268 | ac_ext=c | ||
| 3269 | ac_cpp='$CPP $CPPFLAGS' | ||
| 3270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 3273 | nigel | 53 | |
| 3274 | nigel | 75 | cat >conftest.$ac_ext <<_ACEOF |
| 3275 | /* confdefs.h. */ | ||
| 3276 | _ACEOF | ||
| 3277 | cat confdefs.h >>conftest.$ac_ext | ||
| 3278 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 3279 | /* end confdefs.h. */ | ||
| 3280 | nigel | 53 | |
| 3281 | nigel | 75 | int |
| 3282 | main () | ||
| 3283 | { | ||
| 3284 | nigel | 53 | |
| 3285 | nigel | 75 | ; |
| 3286 | return 0; | ||
| 3287 | nigel | 41 | } |
| 3288 | nigel | 75 | _ACEOF |
| 3289 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 3290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| 3291 | (eval $ac_link) 2>conftest.er1 | ||
| 3292 | nigel | 53 | ac_status=$? |
| 3293 | nigel | 75 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3294 | rm -f conftest.er1 | ||
| 3295 | cat conftest.err >&5 | ||
| 3296 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3297 | nigel | 75 | (exit $ac_status); } && |
| 3298 | { ac_try='test -z "$ac_c_werror_flag" | ||
| 3299 | || test ! -s conftest.err' | ||
| 3300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 3301 | (eval $ac_try) 2>&5 | ||
| 3302 | nigel | 53 | ac_status=$? |
| 3303 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3304 | nigel | 75 | (exit $ac_status); }; } && |
| 3305 | { ac_try='test -s conftest$ac_exeext' | ||
| 3306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 3307 | (eval $ac_try) 2>&5 | ||
| 3308 | ac_status=$? | ||
| 3309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 3310 | (exit $ac_status); }; }; then | ||
| 3311 | lt_cv_cc_needs_belf=yes | ||
| 3312 | else | ||
| 3313 | echo "$as_me: failed program was:" >&5 | ||
| 3314 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 3315 | nigel | 53 | |
| 3316 | nigel | 75 | lt_cv_cc_needs_belf=no |
| 3317 | fi | ||
| 3318 | rm -f conftest.err conftest.$ac_objext \ | ||
| 3319 | conftest$ac_exeext conftest.$ac_ext | ||
| 3320 | ac_ext=c | ||
| 3321 | ac_cpp='$CPP $CPPFLAGS' | ||
| 3322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 3325 | nigel | 53 | |
| 3326 | nigel | 75 | fi |
| 3327 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | ||
| 3328 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | ||
| 3329 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
| 3330 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
| 3331 | CFLAGS="$SAVE_CFLAGS" | ||
| 3332 | fi | ||
| 3333 | ;; | ||
| 3334 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) | ||
| 3335 | if test -n "$ac_tool_prefix"; then | ||
| 3336 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
| 3337 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
| 3338 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 3339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 3340 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | ||
| 3341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 3342 | else | ||
| 3343 | if test -n "$DLLTOOL"; then | ||
| 3344 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
| 3345 | else | ||
| 3346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3347 | for as_dir in $PATH | ||
| 3348 | do | ||
| 3349 | IFS=$as_save_IFS | ||
| 3350 | test -z "$as_dir" && as_dir=. | ||
| 3351 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 3352 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 3353 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
| 3354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 3355 | break 2 | ||
| 3356 | fi | ||
| 3357 | done | ||
| 3358 | done | ||
| 3359 | nigel | 53 | |
| 3360 | nigel | 75 | fi |
| 3361 | fi | ||
| 3362 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
| 3363 | if test -n "$DLLTOOL"; then | ||
| 3364 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | ||
| 3365 | echo "${ECHO_T}$DLLTOOL" >&6 | ||
| 3366 | else | ||
| 3367 | echo "$as_me:$LINENO: result: no" >&5 | ||
| 3368 | echo "${ECHO_T}no" >&6 | ||
| 3369 | fi | ||
| 3370 | nigel | 53 | |
| 3371 | nigel | 75 | fi |
| 3372 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
| 3373 | ac_ct_DLLTOOL=$DLLTOOL | ||
| 3374 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
| 3375 | set dummy dlltool; ac_word=$2 | ||
| 3376 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 3377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 3378 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | ||
| 3379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 3380 | else | ||
| 3381 | if test -n "$ac_ct_DLLTOOL"; then | ||
| 3382 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
| 3383 | else | ||
| 3384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3385 | for as_dir in $PATH | ||
| 3386 | do | ||
| 3387 | IFS=$as_save_IFS | ||
| 3388 | test -z "$as_dir" && as_dir=. | ||
| 3389 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 3390 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 3391 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
| 3392 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 3393 | break 2 | ||
| 3394 | fi | ||
| 3395 | done | ||
| 3396 | done | ||
| 3397 | nigel | 41 | |
| 3398 | nigel | 75 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" |
| 3399 | fi | ||
| 3400 | fi | ||
| 3401 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
| 3402 | if test -n "$ac_ct_DLLTOOL"; then | ||
| 3403 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | ||
| 3404 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | ||
| 3405 | else | ||
| 3406 | echo "$as_me:$LINENO: result: no" >&5 | ||
| 3407 | echo "${ECHO_T}no" >&6 | ||
| 3408 | fi | ||
| 3409 | |||
| 3410 | DLLTOOL=$ac_ct_DLLTOOL | ||
| 3411 | else | ||
| 3412 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
| 3413 | fi | ||
| 3414 | |||
| 3415 | if test -n "$ac_tool_prefix"; then | ||
| 3416 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
| 3417 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
| 3418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 3419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 3420 | if test "${ac_cv_prog_AS+set}" = set; then | ||
| 3421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 3422 | else | ||
| 3423 | if test -n "$AS"; then | ||
| 3424 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
| 3425 | else | ||
| 3426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3427 | for as_dir in $PATH | ||
| 3428 | do | ||
| 3429 | IFS=$as_save_IFS | ||
| 3430 | test -z "$as_dir" && as_dir=. | ||
| 3431 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 3432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 3433 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
| 3434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 3435 | break 2 | ||
| 3436 | nigel | 53 | fi |
| 3437 | nigel | 75 | done |
| 3438 | done | ||
| 3439 | nigel | 53 | |
| 3440 | nigel | 75 | fi |
| 3441 | fi | ||
| 3442 | AS=$ac_cv_prog_AS | ||
| 3443 | if test -n "$AS"; then | ||
| 3444 | echo "$as_me:$LINENO: result: $AS" >&5 | ||
| 3445 | echo "${ECHO_T}$AS" >&6 | ||
| 3446 | else | ||
| 3447 | echo "$as_me:$LINENO: result: no" >&5 | ||
| 3448 | echo "${ECHO_T}no" >&6 | ||
| 3449 | fi | ||
| 3450 | |||
| 3451 | fi | ||
| 3452 | if test -z "$ac_cv_prog_AS"; then | ||
| 3453 | ac_ct_AS=$AS | ||
| 3454 | # Extract the first word of "as", so it can be a program name with args. | ||
| 3455 | set dummy as; ac_word=$2 | ||
| 3456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 3457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 3458 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | ||
| 3459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 3460 | else | ||
| 3461 | if test -n "$ac_ct_AS"; then | ||
| 3462 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
| 3463 | else | ||
| 3464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3465 | for as_dir in $PATH | ||
| 3466 | do | ||
| 3467 | IFS=$as_save_IFS | ||
| 3468 | test -z "$as_dir" && as_dir=. | ||
| 3469 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 3470 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 3471 | ac_cv_prog_ac_ct_AS="as" | ||
| 3472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 3473 | break 2 | ||
| 3474 | nigel | 53 | fi |
| 3475 | done | ||
| 3476 | nigel | 75 | done |
| 3477 | nigel | 53 | |
| 3478 | nigel | 75 | test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" |
| 3479 | nigel | 53 | fi |
| 3480 | nigel | 75 | fi |
| 3481 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
| 3482 | if test -n "$ac_ct_AS"; then | ||
| 3483 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | ||
| 3484 | echo "${ECHO_T}$ac_ct_AS" >&6 | ||
| 3485 | else | ||
| 3486 | echo "$as_me:$LINENO: result: no" >&5 | ||
| 3487 | echo "${ECHO_T}no" >&6 | ||
| 3488 | fi | ||
| 3489 | nigel | 53 | |
| 3490 | nigel | 75 | AS=$ac_ct_AS |
| 3491 | nigel | 41 | else |
| 3492 | nigel | 75 | AS="$ac_cv_prog_AS" |
| 3493 | nigel | 53 | fi |
| 3494 | nigel | 75 | |
| 3495 | if test -n "$ac_tool_prefix"; then | ||
| 3496 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
| 3497 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
| 3498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 3499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 3500 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | ||
| 3501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 3502 | nigel | 53 | else |
| 3503 | nigel | 75 | if test -n "$OBJDUMP"; then |
| 3504 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
| 3505 | else | ||
| 3506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3507 | for as_dir in $PATH | ||
| 3508 | do | ||
| 3509 | IFS=$as_save_IFS | ||
| 3510 | test -z "$as_dir" && as_dir=. | ||
| 3511 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 3512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 3513 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
| 3514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 3515 | break 2 | ||
| 3516 | fi | ||
| 3517 | done | ||
| 3518 | done | ||
| 3519 | |||
| 3520 | nigel | 53 | fi |
| 3521 | nigel | 75 | fi |
| 3522 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
| 3523 | if test -n "$OBJDUMP"; then | ||
| 3524 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | ||
| 3525 | echo "${ECHO_T}$OBJDUMP" >&6 | ||
| 3526 | else | ||
| 3527 | echo "$as_me:$LINENO: result: no" >&5 | ||
| 3528 | echo "${ECHO_T}no" >&6 | ||
| 3529 | fi | ||
| 3530 | nigel | 53 | |
| 3531 | nigel | 75 | fi |
| 3532 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
| 3533 | ac_ct_OBJDUMP=$OBJDUMP | ||
| 3534 | # Extract the first word of "objdump", so it can be a program name with args. | ||
| 3535 | set dummy objdump; ac_word=$2 | ||
| 3536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 3537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 3538 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | ||
| 3539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 3540 | else | ||
| 3541 | if test -n "$ac_ct_OBJDUMP"; then | ||
| 3542 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
| 3543 | else | ||
| 3544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3545 | for as_dir in $PATH | ||
| 3546 | do | ||
| 3547 | IFS=$as_save_IFS | ||
| 3548 | test -z "$as_dir" && as_dir=. | ||
| 3549 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 3550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 3551 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
| 3552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 3553 | break 2 | ||
| 3554 | fi | ||
| 3555 | done | ||
| 3556 | done | ||
| 3557 | |||
| 3558 | test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" | ||
| 3559 | fi | ||
| 3560 | fi | ||
| 3561 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
| 3562 | if test -n "$ac_ct_OBJDUMP"; then | ||
| 3563 | echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | ||
| 3564 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 | ||
| 3565 | else | ||
| 3566 | echo "$as_me:$LINENO: result: no" >&5 | ||
| 3567 | echo "${ECHO_T}no" >&6 | ||
| 3568 | fi | ||
| 3569 | |||
| 3570 | OBJDUMP=$ac_ct_OBJDUMP | ||
| 3571 | else | ||
| 3572 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
| 3573 | fi | ||
| 3574 | |||
| 3575 | ;; | ||
| 3576 | |||
| 3577 | esac | ||
| 3578 | |||
| 3579 | need_locks="$enable_libtool_lock" | ||
| 3580 | |||
| 3581 | |||
| 3582 | nigel | 63 | ac_ext=c |
| 3583 | ac_cpp='$CPP $CPPFLAGS' | ||
| 3584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 3587 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
| 3588 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
| 3589 | # On Suns, sometimes $CPP names a directory. | ||
| 3590 | if test -n "$CPP" && test -d "$CPP"; then | ||
| 3591 | CPP= | ||
| 3592 | fi | ||
| 3593 | if test -z "$CPP"; then | ||
| 3594 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
| 3595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 3596 | else | ||
| 3597 | # Double quotes because CPP needs to be expanded | ||
| 3598 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
| 3599 | do | ||
| 3600 | ac_preproc_ok=false | ||
| 3601 | for ac_c_preproc_warn_flag in '' yes | ||
| 3602 | nigel | 53 | do |
| 3603 | nigel | 63 | # Use a header file that comes with gcc, so configuring glibc |
| 3604 | # with a fresh cross-compiler works. | ||
| 3605 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
| 3606 | # <limits.h> exists even on freestanding compilers. | ||
| 3607 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
| 3608 | # not just through cpp. "Syntax error" is here to catch this case. | ||
| 3609 | cat >conftest.$ac_ext <<_ACEOF | ||
| 3610 | /* confdefs.h. */ | ||
| 3611 | _ACEOF | ||
| 3612 | cat confdefs.h >>conftest.$ac_ext | ||
| 3613 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 3614 | /* end confdefs.h. */ | ||
| 3615 | #ifdef __STDC__ | ||
| 3616 | # include <limits.h> | ||
| 3617 | #else | ||
| 3618 | # include <assert.h> | ||
| 3619 | #endif | ||
| 3620 | nigel | 75 | Syntax error |
| 3621 | nigel | 63 | _ACEOF |
| 3622 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
| 3623 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
| 3624 | ac_status=$? | ||
| 3625 | grep -v '^ *+' conftest.er1 >conftest.err | ||
| 3626 | rm -f conftest.er1 | ||
| 3627 | cat conftest.err >&5 | ||
| 3628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 3629 | (exit $ac_status); } >/dev/null; then | ||
| 3630 | if test -s conftest.err; then | ||
| 3631 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 3632 | nigel | 75 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3633 | nigel | 63 | else |
| 3634 | ac_cpp_err= | ||
| 3635 | fi | ||
| 3636 | else | ||
| 3637 | ac_cpp_err=yes | ||
| 3638 | fi | ||
| 3639 | if test -z "$ac_cpp_err"; then | ||
| 3640 | : | ||
| 3641 | else | ||
| 3642 | echo "$as_me: failed program was:" >&5 | ||
| 3643 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 3644 | |||
| 3645 | # Broken: fails on valid input. | ||
| 3646 | continue | ||
| 3647 | fi | ||
| 3648 | rm -f conftest.err conftest.$ac_ext | ||
| 3649 | |||
| 3650 | # OK, works on sane cases. Now check whether non-existent headers | ||
| 3651 | # can be detected and how. | ||
| 3652 | cat >conftest.$ac_ext <<_ACEOF | ||
| 3653 | /* confdefs.h. */ | ||
| 3654 | _ACEOF | ||
| 3655 | cat confdefs.h >>conftest.$ac_ext | ||
| 3656 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 3657 | /* end confdefs.h. */ | ||
| 3658 | #include <ac_nonexistent.h> | ||
| 3659 | _ACEOF | ||
| 3660 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
| 3661 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
| 3662 | ac_status=$? | ||
| 3663 | grep -v '^ *+' conftest.er1 >conftest.err | ||
| 3664 | rm -f conftest.er1 | ||
| 3665 | cat conftest.err >&5 | ||
| 3666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 3667 | (exit $ac_status); } >/dev/null; then | ||
| 3668 | if test -s conftest.err; then | ||
| 3669 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 3670 | nigel | 75 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3671 | nigel | 63 | else |
| 3672 | ac_cpp_err= | ||
| 3673 | fi | ||
| 3674 | else | ||
| 3675 | ac_cpp_err=yes | ||
| 3676 | fi | ||
| 3677 | if test -z "$ac_cpp_err"; then | ||
| 3678 | # Broken: success on invalid input. | ||
| 3679 | continue | ||
| 3680 | else | ||
| 3681 | echo "$as_me: failed program was:" >&5 | ||
| 3682 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 3683 | |||
| 3684 | # Passes both tests. | ||
| 3685 | ac_preproc_ok=: | ||
| 3686 | break | ||
| 3687 | fi | ||
| 3688 | rm -f conftest.err conftest.$ac_ext | ||
| 3689 | |||
| 3690 | done | ||
| 3691 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
| 3692 | rm -f conftest.err conftest.$ac_ext | ||
| 3693 | if $ac_preproc_ok; then | ||
| 3694 | break | ||
| 3695 | fi | ||
| 3696 | |||
| 3697 | done | ||
| 3698 | ac_cv_prog_CPP=$CPP | ||
| 3699 | |||
| 3700 | fi | ||
| 3701 | CPP=$ac_cv_prog_CPP | ||
| 3702 | else | ||
| 3703 | ac_cv_prog_CPP=$CPP | ||
| 3704 | fi | ||
| 3705 | echo "$as_me:$LINENO: result: $CPP" >&5 | ||
| 3706 | echo "${ECHO_T}$CPP" >&6 | ||
| 3707 | ac_preproc_ok=false | ||
| 3708 | for ac_c_preproc_warn_flag in '' yes | ||
| 3709 | do | ||
| 3710 | # Use a header file that comes with gcc, so configuring glibc | ||
| 3711 | # with a fresh cross-compiler works. | ||
| 3712 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
| 3713 | # <limits.h> exists even on freestanding compilers. | ||
| 3714 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
| 3715 | # not just through cpp. "Syntax error" is here to catch this case. | ||
| 3716 | cat >conftest.$ac_ext <<_ACEOF | ||
| 3717 | /* confdefs.h. */ | ||
| 3718 | _ACEOF | ||
| 3719 | cat confdefs.h >>conftest.$ac_ext | ||
| 3720 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 3721 | /* end confdefs.h. */ | ||
| 3722 | #ifdef __STDC__ | ||
| 3723 | # include <limits.h> | ||
| 3724 | #else | ||
| 3725 | # include <assert.h> | ||
| 3726 | #endif | ||
| 3727 | nigel | 75 | Syntax error |
| 3728 | nigel | 63 | _ACEOF |
| 3729 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
| 3730 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
| 3731 | ac_status=$? | ||
| 3732 | grep -v '^ *+' conftest.er1 >conftest.err | ||
| 3733 | rm -f conftest.er1 | ||
| 3734 | cat conftest.err >&5 | ||
| 3735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 3736 | (exit $ac_status); } >/dev/null; then | ||
| 3737 | if test -s conftest.err; then | ||
| 3738 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 3739 | nigel | 75 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3740 | nigel | 63 | else |
| 3741 | ac_cpp_err= | ||
| 3742 | fi | ||
| 3743 | else | ||
| 3744 | ac_cpp_err=yes | ||
| 3745 | fi | ||
| 3746 | if test -z "$ac_cpp_err"; then | ||
| 3747 | : | ||
| 3748 | else | ||
| 3749 | echo "$as_me: failed program was:" >&5 | ||
| 3750 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 3751 | |||
| 3752 | # Broken: fails on valid input. | ||
| 3753 | continue | ||
| 3754 | fi | ||
| 3755 | rm -f conftest.err conftest.$ac_ext | ||
| 3756 | |||
| 3757 | # OK, works on sane cases. Now check whether non-existent headers | ||
| 3758 | # can be detected and how. | ||
| 3759 | cat >conftest.$ac_ext <<_ACEOF | ||
| 3760 | /* confdefs.h. */ | ||
| 3761 | _ACEOF | ||
| 3762 | cat confdefs.h >>conftest.$ac_ext | ||
| 3763 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 3764 | /* end confdefs.h. */ | ||
| 3765 | #include <ac_nonexistent.h> | ||
| 3766 | _ACEOF | ||
| 3767 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
| 3768 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
| 3769 | ac_status=$? | ||
| 3770 | grep -v '^ *+' conftest.er1 >conftest.err | ||
| 3771 | rm -f conftest.er1 | ||
| 3772 | cat conftest.err >&5 | ||
| 3773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 3774 | (exit $ac_status); } >/dev/null; then | ||
| 3775 | if test -s conftest.err; then | ||
| 3776 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
| 3777 | nigel | 75 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3778 | nigel | 63 | else |
| 3779 | ac_cpp_err= | ||
| 3780 | fi | ||
| 3781 | else | ||
| 3782 | ac_cpp_err=yes | ||
| 3783 | fi | ||
| 3784 | if test -z "$ac_cpp_err"; then | ||
| 3785 | # Broken: success on invalid input. | ||
| 3786 | continue | ||
| 3787 | else | ||
| 3788 | echo "$as_me: failed program was:" >&5 | ||
| 3789 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 3790 | |||
| 3791 | # Passes both tests. | ||
| 3792 | ac_preproc_ok=: | ||
| 3793 | break | ||
| 3794 | fi | ||
| 3795 | rm -f conftest.err conftest.$ac_ext | ||
| 3796 | |||
| 3797 | done | ||
| 3798 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
| 3799 | rm -f conftest.err conftest.$ac_ext | ||
| 3800 | if $ac_preproc_ok; then | ||
| 3801 | : | ||
| 3802 | else | ||
| 3803 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
| 3804 | See \`config.log' for more details." >&5 | ||
| 3805 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
| 3806 | See \`config.log' for more details." >&2;} | ||
| 3807 | { (exit 1); exit 1; }; } | ||
| 3808 | fi | ||
| 3809 | |||
| 3810 | ac_ext=c | ||
| 3811 | ac_cpp='$CPP $CPPFLAGS' | ||
| 3812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 3815 | |||
| 3816 | |||
| 3817 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
| 3818 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
| 3819 | if test "${ac_cv_header_stdc+set}" = set; then | ||
| 3820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 3821 | else | ||
| 3822 | cat >conftest.$ac_ext <<_ACEOF | ||
| 3823 | /* confdefs.h. */ | ||
| 3824 | _ACEOF | ||
| 3825 | cat confdefs.h >>conftest.$ac_ext | ||
| 3826 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 3827 | /* end confdefs.h. */ | ||
| 3828 | #include <stdlib.h> | ||
| 3829 | #include <stdarg.h> | ||
| 3830 | #include <string.h> | ||
| 3831 | #include <float.h> | ||
| 3832 | |||
| 3833 | int | ||
| 3834 | main () | ||
| 3835 | { | ||
| 3836 | |||
| 3837 | ; | ||
| 3838 | return 0; | ||
| 3839 | } | ||
| 3840 | _ACEOF | ||
| 3841 | rm -f conftest.$ac_objext | ||
| 3842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 3843 | nigel | 75 | (eval $ac_compile) 2>conftest.er1 |
| 3844 | nigel | 63 | ac_status=$? |
| 3845 | nigel | 75 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3846 | rm -f conftest.er1 | ||
| 3847 | cat conftest.err >&5 | ||
| 3848 | nigel | 63 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3849 | (exit $ac_status); } && | ||
| 3850 | nigel | 75 | { ac_try='test -z "$ac_c_werror_flag" |
| 3851 | || test ! -s conftest.err' | ||
| 3852 | nigel | 63 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3853 | (eval $ac_try) 2>&5 | ||
| 3854 | ac_status=$? | ||
| 3855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 3856 | nigel | 75 | (exit $ac_status); }; } && |
| 3857 | { ac_try='test -s conftest.$ac_objext' | ||
| 3858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 3859 | (eval $ac_try) 2>&5 | ||
| 3860 | ac_status=$? | ||
| 3861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 3862 | nigel | 63 | (exit $ac_status); }; }; then |
| 3863 | ac_cv_header_stdc=yes | ||
| 3864 | else | ||
| 3865 | echo "$as_me: failed program was:" >&5 | ||
| 3866 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 3867 | |||
| 3868 | ac_cv_header_stdc=no | ||
| 3869 | fi | ||
| 3870 | nigel | 75 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3871 | nigel | 63 | |
| 3872 | if test $ac_cv_header_stdc = yes; then | ||
| 3873 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
| 3874 | cat >conftest.$ac_ext <<_ACEOF | ||
| 3875 | /* confdefs.h. */ | ||
| 3876 | _ACEOF | ||
| 3877 | cat confdefs.h >>conftest.$ac_ext | ||
| 3878 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 3879 | /* end confdefs.h. */ | ||
| 3880 | #include <string.h> | ||
| 3881 | |||
| 3882 | _ACEOF | ||
| 3883 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3884 | $EGREP "memchr" >/dev/null 2>&1; then | ||
| 3885 | : | ||
| 3886 | else | ||
| 3887 | ac_cv_header_stdc=no | ||
| 3888 | fi | ||
| 3889 | rm -f conftest* | ||
| 3890 | |||
| 3891 | fi | ||
| 3892 | |||
| 3893 | if test $ac_cv_header_stdc = yes; then | ||
| 3894 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
| 3895 | cat >conftest.$ac_ext <<_ACEOF | ||
| 3896 | /* confdefs.h. */ | ||
| 3897 | _ACEOF | ||
| 3898 | cat confdefs.h >>conftest.$ac_ext | ||
| 3899 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 3900 | /* end confdefs.h. */ | ||
| 3901 | #include <stdlib.h> | ||
| 3902 | |||
| 3903 | _ACEOF | ||
| 3904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3905 | $EGREP "free" >/dev/null 2>&1; then | ||
| 3906 | : | ||
| 3907 | else | ||
| 3908 | ac_cv_header_stdc=no | ||
| 3909 | fi | ||
| 3910 | rm -f conftest* | ||
| 3911 | |||
| 3912 | fi | ||
| 3913 | |||
| 3914 | if test $ac_cv_header_stdc = yes; then | ||
| 3915 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
| 3916 | if test "$cross_compiling" = yes; then | ||
| 3917 | : | ||
| 3918 | else | ||
| 3919 | cat >conftest.$ac_ext <<_ACEOF | ||
| 3920 | /* confdefs.h. */ | ||
| 3921 | _ACEOF | ||
| 3922 | cat confdefs.h >>conftest.$ac_ext | ||
| 3923 | cat >>conftest.$ac_ext <<_ACEOF | ||
| 3924 | /* end confdefs.h. */ | ||
| 3925 | #include <ctype.h> | ||
| 3926 | #if ((' ' & 0x0FF) == 0x020) | ||
| 3927 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
| 3928 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
| 3929 | #else | ||
| 3930 | # define ISLOWER(c) \ | ||
| 3931 | nigel | 75 | (('a' <= (c) && (c) <= 'i') \ |
| 3932 | || ('j' <= (c) && (c) <= 'r') \ | ||
| 3933 | || ('s' <= (c) && (c) <= 'z')) | ||
| 3934 | nigel | 63 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3935 | #endif | ||
| 3936 | |||
| 3937 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
| 3938 | int | ||
| 3939 | main () | ||
| 3940 | { | ||
| 3941 | int i; | ||
| 3942 | for (i = 0; i < 256; i++) | ||
| 3943 | if (XOR (islower (i), ISLOWER (i)) | ||
| 3944 | nigel | 75 | || toupper (i) != TOUPPER (i)) |
| 3945 | nigel | 63 | exit(2); |
| 3946 | exit (0); | ||
| 3947 | } | ||
| 3948 | _ACEOF | ||
| 3949 | rm -f conftest$ac_exeext | ||
| 3950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| 3951 | (eval $ac_link) 2>&5 | ||
| 3952 | ac_status=$? | ||
| 3953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 3954 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
| 3955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 3956 |