Parent Directory
|
Revision Log
Scratch check-in again
| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.59 for iso-codes-utils 0.2. |
| 4 | # |
| 5 | # Report bugs to <feanor@tol-eressea.org>. |
| 6 | # |
| 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
| 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
| 10 | ## --------------------- ## |
| 11 | ## M4sh Initialization. ## |
| 12 | ## --------------------- ## |
| 13 | |
| 14 | # Be Bourne compatible |
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
| 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22 | set -o posix |
| 23 | fi |
| 24 | DUALCASE=1; export DUALCASE # for MKS sh |
| 25 | |
| 26 | # Support unset when possible. |
| 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
| 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
| 45 | do |
| 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
| 65 | |
| 66 | |
| 67 | # Name of the executable. |
| 68 | as_me=`$as_basename "$0" || |
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
| 79 | |
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
| 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
| 98 | rm -f conf$$.sh |
| 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
| 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
| 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
| 223 | test -d ./-p && rmdir ./-p |
| 224 | as_mkdir_p=false |
| 225 | fi |
| 226 | |
| 227 | as_executable_p="test -f" |
| 228 | |
| 229 | # Sed expression to map a string onto a valid CPP name. |
| 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 231 | |
| 232 | # Sed expression to map a string onto a valid variable name. |
| 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 234 | |
| 235 | |
| 236 | # IFS |
| 237 | # We need space, tab and new line, in precisely that order. |
| 238 | as_nl=' |
| 239 | ' |
| 240 | IFS=" $as_nl" |
| 241 | |
| 242 | # CDPATH. |
| 243 | $as_unset CDPATH |
| 244 | |
| 245 | |
| 246 | |
| 247 | # Check that we are running under the correct shell. |
| 248 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 249 | |
| 250 | case X$ECHO in |
| 251 | X*--fallback-echo) |
| 252 | # Remove one level of quotation (which was required for Make). |
| 253 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 254 | ;; |
| 255 | esac |
| 256 | |
| 257 | echo=${ECHO-echo} |
| 258 | if test "X$1" = X--no-reexec; then |
| 259 | # Discard the --no-reexec flag, and continue. |
| 260 | shift |
| 261 | elif test "X$1" = X--fallback-echo; then |
| 262 | # Avoid inline document here, it may be left over |
| 263 | : |
| 264 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 265 | # Yippee, $echo works! |
| 266 | : |
| 267 | else |
| 268 | # Restart under the correct shell. |
| 269 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 270 | fi |
| 271 | |
| 272 | if test "X$1" = X--fallback-echo; then |
| 273 | # used as fallback echo |
| 274 | shift |
| 275 | cat <<EOF |
| 276 | $* |
| 277 | EOF |
| 278 | exit 0 |
| 279 | fi |
| 280 | |
| 281 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 282 | # if CDPATH is set. |
| 283 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 284 | |
| 285 | if test -z "$ECHO"; then |
| 286 | if test "X${echo_test_string+set}" != Xset; then |
| 287 | # find a string as large as possible, as long as the shell can cope with it |
| 288 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 289 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 290 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 291 | echo_test_string="`eval $cmd`" && |
| 292 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 293 | then |
| 294 | break |
| 295 | fi |
| 296 | done |
| 297 | fi |
| 298 | |
| 299 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 300 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 301 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 302 | : |
| 303 | else |
| 304 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 305 | # backslashes. This makes it impossible to quote backslashes using |
| 306 | # echo "$something" | sed 's/\\/\\\\/g' |
| 307 | # |
| 308 | # So, first we look for a working echo in the user's PATH. |
| 309 | |
| 310 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 311 | for dir in $PATH /usr/ucb; do |
| 312 | IFS="$lt_save_ifs" |
| 313 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 314 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 315 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 316 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 317 | echo="$dir/echo" |
| 318 | break |
| 319 | fi |
| 320 | done |
| 321 | IFS="$lt_save_ifs" |
| 322 | |
| 323 | if test "X$echo" = Xecho; then |
| 324 | # We didn't find a better echo, so look for alternatives. |
| 325 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 326 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 327 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 328 | # This shell has a builtin print -r that does the trick. |
| 329 | echo='print -r' |
| 330 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 331 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 332 | # If we have ksh, try running configure again with it. |
| 333 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 334 | export ORIGINAL_CONFIG_SHELL |
| 335 | CONFIG_SHELL=/bin/ksh |
| 336 | export CONFIG_SHELL |
| 337 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 338 | else |
| 339 | # Try using printf. |
| 340 | echo='printf %s\n' |
| 341 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 342 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 343 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 344 | # Cool, printf works |
| 345 | : |
| 346 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 347 | test "X$echo_testing_string" = 'X\t' && |
| 348 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 349 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 350 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 351 | export CONFIG_SHELL |
| 352 | SHELL="$CONFIG_SHELL" |
| 353 | export SHELL |
| 354 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 355 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 356 | test "X$echo_testing_string" = 'X\t' && |
| 357 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 358 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 359 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 360 | else |
| 361 | # maybe with a smaller string... |
| 362 | prev=: |
| 363 | |
| 364 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 365 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 366 | then |
| 367 | break |
| 368 | fi |
| 369 | prev="$cmd" |
| 370 | done |
| 371 | |
| 372 | if test "$prev" != 'sed 50q "$0"'; then |
| 373 | echo_test_string=`eval $prev` |
| 374 | export echo_test_string |
| 375 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 376 | else |
| 377 | # Oops. We lost completely, so just stick with echo. |
| 378 | echo=echo |
| 379 | fi |
| 380 | fi |
| 381 | fi |
| 382 | fi |
| 383 | fi |
| 384 | fi |
| 385 | |
| 386 | # Copy echo and quote the copy suitably for passing to libtool from |
| 387 | # the Makefile, instead of quoting the original, which is used later. |
| 388 | ECHO=$echo |
| 389 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 390 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 391 | fi |
| 392 | |
| 393 | |
| 394 | |
| 395 | |
| 396 | tagnames=${tagnames+${tagnames},}CXX |
| 397 | |
| 398 | tagnames=${tagnames+${tagnames},}F77 |
| 399 | |
| 400 | # Name of the host. |
| 401 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 402 | # so uname gets run too. |
| 403 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 404 | |
| 405 | exec 6>&1 |
| 406 | |
| 407 | # |
| 408 | # Initializations. |
| 409 | # |
| 410 | ac_default_prefix=/usr/local |
| 411 | ac_config_libobj_dir=. |
| 412 | cross_compiling=no |
| 413 | subdirs= |
| 414 | MFLAGS= |
| 415 | MAKEFLAGS= |
| 416 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 417 | |
| 418 | # Maximum number of lines to put in a shell here document. |
| 419 | # This variable seems obsolete. It should probably be removed, and |
| 420 | # only ac_max_sed_lines should be used. |
| 421 | : ${ac_max_here_lines=38} |
| 422 | |
| 423 | # Identity of this package. |
| 424 | PACKAGE_NAME='iso-codes-utils' |
| 425 | PACKAGE_TARNAME='iso-codes-utils' |
| 426 | PACKAGE_VERSION='0.2' |
| 427 | PACKAGE_STRING='iso-codes-utils 0.2' |
| 428 | PACKAGE_BUGREPORT='feanor@tol-eressea.org' |
| 429 | |
| 430 | # Factoring default headers for most tests. |
| 431 | ac_includes_default="\ |
| 432 | #include <stdio.h> |
| 433 | #if HAVE_SYS_TYPES_H |
| 434 | # include <sys/types.h> |
| 435 | #endif |
| 436 | #if HAVE_SYS_STAT_H |
| 437 | # include <sys/stat.h> |
| 438 | #endif |
| 439 | #if STDC_HEADERS |
| 440 | # include <stdlib.h> |
| 441 | # include <stddef.h> |
| 442 | #else |
| 443 | # if HAVE_STDLIB_H |
| 444 | # include <stdlib.h> |
| 445 | # endif |
| 446 | #endif |
| 447 | #if HAVE_STRING_H |
| 448 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 449 | # include <memory.h> |
| 450 | # endif |
| 451 | # include <string.h> |
| 452 | #endif |
| 453 | #if HAVE_STRINGS_H |
| 454 | # include <strings.h> |
| 455 | #endif |
| 456 | #if HAVE_INTTYPES_H |
| 457 | # include <inttypes.h> |
| 458 | #else |
| 459 | # if HAVE_STDINT_H |
| 460 | # include <stdint.h> |
| 461 | # endif |
| 462 | #endif |
| 463 | #if HAVE_UNISTD_H |
| 464 | # include <unistd.h> |
| 465 | #endif" |
| 466 | |
| 467 | 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS' |
| 468 | ac_subst_files='' |
| 469 | |
| 470 | # Initialize some variables set by options. |
| 471 | ac_init_help= |
| 472 | ac_init_version=false |
| 473 | # The variables have the same names as the options, with |
| 474 | # dashes changed to underlines. |
| 475 | cache_file=/dev/null |
| 476 | exec_prefix=NONE |
| 477 | no_create= |
| 478 | no_recursion= |
| 479 | prefix=NONE |
| 480 | program_prefix=NONE |
| 481 | program_suffix=NONE |
| 482 | program_transform_name=s,x,x, |
| 483 | silent= |
| 484 | site= |
| 485 | srcdir= |
| 486 | verbose= |
| 487 | x_includes=NONE |
| 488 | x_libraries=NONE |
| 489 | |
| 490 | # Installation directory options. |
| 491 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 492 | # and all the variables that are supposed to be based on exec_prefix |
| 493 | # by default will actually change. |
| 494 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 495 | bindir='${exec_prefix}/bin' |
| 496 | sbindir='${exec_prefix}/sbin' |
| 497 | libexecdir='${exec_prefix}/libexec' |
| 498 | datadir='${prefix}/share' |
| 499 | sysconfdir='${prefix}/etc' |
| 500 | sharedstatedir='${prefix}/com' |
| 501 | localstatedir='${prefix}/var' |
| 502 | libdir='${exec_prefix}/lib' |
| 503 | includedir='${prefix}/include' |
| 504 | oldincludedir='/usr/include' |
| 505 | infodir='${prefix}/info' |
| 506 | mandir='${prefix}/man' |
| 507 | |
| 508 | ac_prev= |
| 509 | for ac_option |
| 510 | do |
| 511 | # If the previous option needs an argument, assign it. |
| 512 | if test -n "$ac_prev"; then |
| 513 | eval "$ac_prev=\$ac_option" |
| 514 | ac_prev= |
| 515 | continue |
| 516 | fi |
| 517 | |
| 518 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 519 | |
| 520 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 521 | |
| 522 | case $ac_option in |
| 523 | |
| 524 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 525 | ac_prev=bindir ;; |
| 526 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 527 | bindir=$ac_optarg ;; |
| 528 | |
| 529 | -build | --build | --buil | --bui | --bu) |
| 530 | ac_prev=build_alias ;; |
| 531 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 532 | build_alias=$ac_optarg ;; |
| 533 | |
| 534 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 535 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 536 | ac_prev=cache_file ;; |
| 537 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 538 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 539 | cache_file=$ac_optarg ;; |
| 540 | |
| 541 | --config-cache | -C) |
| 542 | cache_file=config.cache ;; |
| 543 | |
| 544 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 545 | ac_prev=datadir ;; |
| 546 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 547 | | --da=*) |
| 548 | datadir=$ac_optarg ;; |
| 549 | |
| 550 | -disable-* | --disable-*) |
| 551 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 552 | # Reject names that are not valid shell variable names. |
| 553 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 554 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 555 | { (exit 1); exit 1; }; } |
| 556 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 557 | eval "enable_$ac_feature=no" ;; |
| 558 | |
| 559 | -enable-* | --enable-*) |
| 560 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 561 | # Reject names that are not valid shell variable names. |
| 562 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 563 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 564 | { (exit 1); exit 1; }; } |
| 565 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 566 | case $ac_option in |
| 567 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 568 | *) ac_optarg=yes ;; |
| 569 | esac |
| 570 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 571 | |
| 572 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 573 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 574 | | --exec | --exe | --ex) |
| 575 | ac_prev=exec_prefix ;; |
| 576 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 577 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 578 | | --exec=* | --exe=* | --ex=*) |
| 579 | exec_prefix=$ac_optarg ;; |
| 580 | |
| 581 | -gas | --gas | --ga | --g) |
| 582 | # Obsolete; use --with-gas. |
| 583 | with_gas=yes ;; |
| 584 | |
| 585 | -help | --help | --hel | --he | -h) |
| 586 | ac_init_help=long ;; |
| 587 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 588 | ac_init_help=recursive ;; |
| 589 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 590 | ac_init_help=short ;; |
| 591 | |
| 592 | -host | --host | --hos | --ho) |
| 593 | ac_prev=host_alias ;; |
| 594 | -host=* | --host=* | --hos=* | --ho=*) |
| 595 | host_alias=$ac_optarg ;; |
| 596 | |
| 597 | -includedir | --includedir | --includedi | --included | --include \ |
| 598 | | --includ | --inclu | --incl | --inc) |
| 599 | ac_prev=includedir ;; |
| 600 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 601 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 602 | includedir=$ac_optarg ;; |
| 603 | |
| 604 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 605 | ac_prev=infodir ;; |
| 606 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 607 | infodir=$ac_optarg ;; |
| 608 | |
| 609 | -libdir | --libdir | --libdi | --libd) |
| 610 | ac_prev=libdir ;; |
| 611 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 612 | libdir=$ac_optarg ;; |
| 613 | |
| 614 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 615 | | --libexe | --libex | --libe) |
| 616 | ac_prev=libexecdir ;; |
| 617 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 618 | | --libexe=* | --libex=* | --libe=*) |
| 619 | libexecdir=$ac_optarg ;; |
| 620 | |
| 621 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 622 | | --localstate | --localstat | --localsta | --localst \ |
| 623 | | --locals | --local | --loca | --loc | --lo) |
| 624 | ac_prev=localstatedir ;; |
| 625 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 626 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 627 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 628 | localstatedir=$ac_optarg ;; |
| 629 | |
| 630 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 631 | ac_prev=mandir ;; |
| 632 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 633 | mandir=$ac_optarg ;; |
| 634 | |
| 635 | -nfp | --nfp | --nf) |
| 636 | # Obsolete; use --without-fp. |
| 637 | with_fp=no ;; |
| 638 | |
| 639 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 640 | | --no-cr | --no-c | -n) |
| 641 | no_create=yes ;; |
| 642 | |
| 643 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 644 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 645 | no_recursion=yes ;; |
| 646 | |
| 647 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 648 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 649 | | --oldin | --oldi | --old | --ol | --o) |
| 650 | ac_prev=oldincludedir ;; |
| 651 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 652 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 653 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 654 | oldincludedir=$ac_optarg ;; |
| 655 | |
| 656 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 657 | ac_prev=prefix ;; |
| 658 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 659 | prefix=$ac_optarg ;; |
| 660 | |
| 661 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 662 | | --program-pre | --program-pr | --program-p) |
| 663 | ac_prev=program_prefix ;; |
| 664 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 665 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 666 | program_prefix=$ac_optarg ;; |
| 667 | |
| 668 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 669 | | --program-suf | --program-su | --program-s) |
| 670 | ac_prev=program_suffix ;; |
| 671 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 672 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 673 | program_suffix=$ac_optarg ;; |
| 674 | |
| 675 | -program-transform-name | --program-transform-name \ |
| 676 | | --program-transform-nam | --program-transform-na \ |
| 677 | | --program-transform-n | --program-transform- \ |
| 678 | | --program-transform | --program-transfor \ |
| 679 | | --program-transfo | --program-transf \ |
| 680 | | --program-trans | --program-tran \ |
| 681 | | --progr-tra | --program-tr | --program-t) |
| 682 | ac_prev=program_transform_name ;; |
| 683 | -program-transform-name=* | --program-transform-name=* \ |
| 684 | | --program-transform-nam=* | --program-transform-na=* \ |
| 685 | | --program-transform-n=* | --program-transform-=* \ |
| 686 | | --program-transform=* | --program-transfor=* \ |
| 687 | | --program-transfo=* | --program-transf=* \ |
| 688 | | --program-trans=* | --program-tran=* \ |
| 689 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 690 | program_transform_name=$ac_optarg ;; |
| 691 | |
| 692 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 693 | | -silent | --silent | --silen | --sile | --sil) |
| 694 | silent=yes ;; |
| 695 | |
| 696 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 697 | ac_prev=sbindir ;; |
| 698 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 699 | | --sbi=* | --sb=*) |
| 700 | sbindir=$ac_optarg ;; |
| 701 | |
| 702 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 703 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 704 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 705 | | --sha | --sh) |
| 706 | ac_prev=sharedstatedir ;; |
| 707 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 708 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 709 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 710 | | --sha=* | --sh=*) |
| 711 | sharedstatedir=$ac_optarg ;; |
| 712 | |
| 713 | -site | --site | --sit) |
| 714 | ac_prev=site ;; |
| 715 | -site=* | --site=* | --sit=*) |
| 716 | site=$ac_optarg ;; |
| 717 | |
| 718 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 719 | ac_prev=srcdir ;; |
| 720 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 721 | srcdir=$ac_optarg ;; |
| 722 | |
| 723 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 724 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 725 | ac_prev=sysconfdir ;; |
| 726 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 727 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 728 | sysconfdir=$ac_optarg ;; |
| 729 | |
| 730 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 731 | ac_prev=target_alias ;; |
| 732 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 733 | target_alias=$ac_optarg ;; |
| 734 | |
| 735 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 736 | verbose=yes ;; |
| 737 | |
| 738 | -version | --version | --versio | --versi | --vers | -V) |
| 739 | ac_init_version=: ;; |
| 740 | |
| 741 | -with-* | --with-*) |
| 742 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 743 | # Reject names that are not valid shell variable names. |
| 744 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 745 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 746 | { (exit 1); exit 1; }; } |
| 747 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 748 | case $ac_option in |
| 749 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 750 | *) ac_optarg=yes ;; |
| 751 | esac |
| 752 | eval "with_$ac_package='$ac_optarg'" ;; |
| 753 | |
| 754 | -without-* | --without-*) |
| 755 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 756 | # Reject names that are not valid shell variable names. |
| 757 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 758 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 759 | { (exit 1); exit 1; }; } |
| 760 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 761 | eval "with_$ac_package=no" ;; |
| 762 | |
| 763 | --x) |
| 764 | # Obsolete; use --with-x. |
| 765 | with_x=yes ;; |
| 766 | |
| 767 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 768 | | --x-incl | --x-inc | --x-in | --x-i) |
| 769 | ac_prev=x_includes ;; |
| 770 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 771 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 772 | x_includes=$ac_optarg ;; |
| 773 | |
| 774 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 775 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 776 | ac_prev=x_libraries ;; |
| 777 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 778 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 779 | x_libraries=$ac_optarg ;; |
| 780 | |
| 781 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 782 | Try \`$0 --help' for more information." >&2 |
| 783 | { (exit 1); exit 1; }; } |
| 784 | ;; |
| 785 | |
| 786 | *=*) |
| 787 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 788 | # Reject names that are not valid shell variable names. |
| 789 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 790 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 791 | { (exit 1); exit 1; }; } |
| 792 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 793 | eval "$ac_envvar='$ac_optarg'" |
| 794 | export $ac_envvar ;; |
| 795 | |
| 796 | *) |
| 797 | # FIXME: should be removed in autoconf 3.0. |
| 798 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 799 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 800 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 801 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 802 | ;; |
| 803 | |
| 804 | esac |
| 805 | done |
| 806 | |
| 807 | if test -n "$ac_prev"; then |
| 808 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 809 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 810 | { (exit 1); exit 1; }; } |
| 811 | fi |
| 812 | |
| 813 | # Be sure to have absolute paths. |
| 814 | for ac_var in exec_prefix prefix |
| 815 | do |
| 816 | eval ac_val=$`echo $ac_var` |
| 817 | case $ac_val in |
| 818 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 819 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 820 | { (exit 1); exit 1; }; };; |
| 821 | esac |
| 822 | done |
| 823 | |
| 824 | # Be sure to have absolute paths. |
| 825 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 826 | localstatedir libdir includedir oldincludedir infodir mandir |
| 827 | do |
| 828 | eval ac_val=$`echo $ac_var` |
| 829 | case $ac_val in |
| 830 | [\\/$]* | ?:[\\/]* ) ;; |
| 831 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 832 | { (exit 1); exit 1; }; };; |
| 833 | esac |
| 834 | done |
| 835 | |
| 836 | # There might be people who depend on the old broken behavior: `$host' |
| 837 | # used to hold the argument of --host etc. |
| 838 | # FIXME: To remove some day. |
| 839 | build=$build_alias |
| 840 | host=$host_alias |
| 841 | target=$target_alias |
| 842 | |
| 843 | # FIXME: To remove some day. |
| 844 | if test "x$host_alias" != x; then |
| 845 | if test "x$build_alias" = x; then |
| 846 | cross_compiling=maybe |
| 847 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 848 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 849 | elif test "x$build_alias" != "x$host_alias"; then |
| 850 | cross_compiling=yes |
| 851 | fi |
| 852 | fi |
| 853 | |
| 854 | ac_tool_prefix= |
| 855 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 856 | |
| 857 | test "$silent" = yes && exec 6>/dev/null |
| 858 | |
| 859 | |
| 860 | # Find the source files, if location was not specified. |
| 861 | if test -z "$srcdir"; then |
| 862 | ac_srcdir_defaulted=yes |
| 863 | # Try the directory containing this script, then its parent. |
| 864 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 865 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 866 | X"$0" : 'X\(//\)[^/]' \| \ |
| 867 | X"$0" : 'X\(//\)$' \| \ |
| 868 | X"$0" : 'X\(/\)' \| \ |
| 869 | . : '\(.\)' 2>/dev/null || |
| 870 | echo X"$0" | |
| 871 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 872 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 873 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 874 | /^X\(\/\).*/{ s//\1/; q; } |
| 875 | s/.*/./; q'` |
| 876 | srcdir=$ac_confdir |
| 877 | if test ! -r $srcdir/$ac_unique_file; then |
| 878 | srcdir=.. |
| 879 | fi |
| 880 | else |
| 881 | ac_srcdir_defaulted=no |
| 882 | fi |
| 883 | if test ! -r $srcdir/$ac_unique_file; then |
| 884 | if test "$ac_srcdir_defaulted" = yes; then |
| 885 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 886 | { (exit 1); exit 1; }; } |
| 887 | else |
| 888 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 889 | { (exit 1); exit 1; }; } |
| 890 | fi |
| 891 | fi |
| 892 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 893 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 894 | { (exit 1); exit 1; }; } |
| 895 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 896 | ac_env_build_alias_set=${build_alias+set} |
| 897 | ac_env_build_alias_value=$build_alias |
| 898 | ac_cv_env_build_alias_set=${build_alias+set} |
| 899 | ac_cv_env_build_alias_value=$build_alias |
| 900 | ac_env_host_alias_set=${host_alias+set} |
| 901 | ac_env_host_alias_value=$host_alias |
| 902 | ac_cv_env_host_alias_set=${host_alias+set} |
| 903 | ac_cv_env_host_alias_value=$host_alias |
| 904 | ac_env_target_alias_set=${target_alias+set} |
| 905 | ac_env_target_alias_value=$target_alias |
| 906 | ac_cv_env_target_alias_set=${target_alias+set} |
| 907 | ac_cv_env_target_alias_value=$target_alias |
| 908 | ac_env_CC_set=${CC+set} |
| 909 | ac_env_CC_value=$CC |
| 910 | ac_cv_env_CC_set=${CC+set} |
| 911 | ac_cv_env_CC_value=$CC |
| 912 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 913 | ac_env_CFLAGS_value=$CFLAGS |
| 914 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 915 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 916 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 917 | ac_env_LDFLAGS_value=$LDFLAGS |
| 918 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 919 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 920 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 921 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 922 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 923 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 924 | ac_env_CPP_set=${CPP+set} |
| 925 | ac_env_CPP_value=$CPP |
| 926 | ac_cv_env_CPP_set=${CPP+set} |
| 927 | ac_cv_env_CPP_value=$CPP |
| 928 | ac_env_CXX_set=${CXX+set} |
| 929 | ac_env_CXX_value=$CXX |
| 930 | ac_cv_env_CXX_set=${CXX+set} |
| 931 | ac_cv_env_CXX_value=$CXX |
| 932 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 933 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 934 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 935 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 936 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 937 | ac_env_CXXCPP_value=$CXXCPP |
| 938 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 939 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 940 | ac_env_F77_set=${F77+set} |
| 941 | ac_env_F77_value=$F77 |
| 942 | ac_cv_env_F77_set=${F77+set} |
| 943 | ac_cv_env_F77_value=$F77 |
| 944 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 945 | ac_env_FFLAGS_value=$FFLAGS |
| 946 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 947 | ac_cv_env_FFLAGS_value=$FFLAGS |
| 948 | |
| 949 | # |
| 950 | # Report the --help message. |
| 951 | # |
| 952 | if test "$ac_init_help" = "long"; then |
| 953 | # Omit some internal or obsolete options to make the list less imposing. |
| 954 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 955 | cat <<_ACEOF |
| 956 | \`configure' configures iso-codes-utils 0.2 to adapt to many kinds of systems. |
| 957 | |
| 958 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 959 | |
| 960 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 961 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 962 | |
| 963 | Defaults for the options are specified in brackets. |
| 964 | |
| 965 | Configuration: |
| 966 | -h, --help display this help and exit |
| 967 | --help=short display options specific to this package |
| 968 | --help=recursive display the short help of all the included packages |
| 969 | -V, --version display version information and exit |
| 970 | -q, --quiet, --silent do not print \`checking...' messages |
| 971 | --cache-file=FILE cache test results in FILE [disabled] |
| 972 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 973 | -n, --no-create do not create output files |
| 974 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 975 | |
| 976 | _ACEOF |
| 977 | |
| 978 | cat <<_ACEOF |
| 979 | Installation directories: |
| 980 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 981 | [$ac_default_prefix] |
| 982 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 983 | [PREFIX] |
| 984 | |
| 985 | By default, \`make install' will install all the files in |
| 986 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 987 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 988 | for instance \`--prefix=\$HOME'. |
| 989 | |
| 990 | For better control, use the options below. |
| 991 | |
| 992 | Fine tuning of the installation directories: |
| 993 | --bindir=DIR user executables [EPREFIX/bin] |
| 994 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 995 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 996 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 997 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 998 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 999 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1000 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1001 | --includedir=DIR C header files [PREFIX/include] |
| 1002 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1003 | --infodir=DIR info documentation [PREFIX/info] |
| 1004 | --mandir=DIR man documentation [PREFIX/man] |
| 1005 | _ACEOF |
| 1006 | |
| 1007 | cat <<\_ACEOF |
| 1008 | |
| 1009 | Program names: |
| 1010 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1011 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1012 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1013 | |
| 1014 | System types: |
| 1015 | --build=BUILD configure for building on BUILD [guessed] |
| 1016 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1017 | _ACEOF |
| 1018 | fi |
| 1019 | |
| 1020 | if test -n "$ac_init_help"; then |
| 1021 | case $ac_init_help in |
| 1022 | short | recursive ) echo "Configuration of iso-codes-utils 0.2:";; |
| 1023 | esac |
| 1024 | cat <<\_ACEOF |
| 1025 | |
| 1026 | Optional Features: |
| 1027 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1028 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1029 | --disable-dependency-tracking Speeds up one-time builds |
| 1030 | --enable-dependency-tracking Do not reject slow dependency extractors |
| 1031 | --enable-shared[=PKGS] |
| 1032 | build shared libraries [default=yes] |
| 1033 | --enable-static[=PKGS] |
| 1034 | build static libraries [default=yes] |
| 1035 | --enable-fast-install[=PKGS] |
| 1036 | optimize for fast installation [default=yes] |
| 1037 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1038 | |
| 1039 | Optional Packages: |
| 1040 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1041 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1042 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1043 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1044 | both] |
| 1045 | --with-tags[=TAGS] |
| 1046 | include additional configurations [automatic] |
| 1047 | |
| 1048 | Some influential environment variables: |
| 1049 | CC C compiler command |
| 1050 | CFLAGS C compiler flags |
| 1051 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1052 | nonstandard directory <lib dir> |
| 1053 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1054 | headers in a nonstandard directory <include dir> |
| 1055 | CPP C preprocessor |
| 1056 | CXX C++ compiler command |
| 1057 | CXXFLAGS C++ compiler flags |
| 1058 | CXXCPP C++ preprocessor |
| 1059 | F77 Fortran 77 compiler command |
| 1060 | FFLAGS Fortran 77 compiler flags |
| 1061 | |
| 1062 | Use these variables to override the choices made by `configure' or to help |
| 1063 | it to find libraries and programs with nonstandard names/locations. |
| 1064 | |
| 1065 | Report bugs to <feanor@tol-eressea.org>. |
| 1066 | _ACEOF |
| 1067 | fi |
| 1068 | |
| 1069 | if test "$ac_init_help" = "recursive"; then |
| 1070 | # If there are subdirs, report their specific --help. |
| 1071 | ac_popdir=`pwd` |
| 1072 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1073 | test -d $ac_dir || continue |
| 1074 | ac_builddir=. |
| 1075 | |
| 1076 | if test "$ac_dir" != .; then |
| 1077 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1078 | # A "../" for each directory in $ac_dir_suffix. |
| 1079 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1080 | else |
| 1081 | ac_dir_suffix= ac_top_builddir= |
| 1082 | fi |
| 1083 | |
| 1084 | case $srcdir in |
| 1085 | .) # No --srcdir option. We are building in place. |
| 1086 | ac_srcdir=. |
| 1087 | if test -z "$ac_top_builddir"; then |
| 1088 | ac_top_srcdir=. |
| 1089 | else |
| 1090 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1091 | fi ;; |
| 1092 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1093 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1094 | ac_top_srcdir=$srcdir ;; |
| 1095 | *) # Relative path. |
| 1096 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1097 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1098 | esac |
| 1099 | |
| 1100 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1101 | # the directories may not exist. |
| 1102 | case `pwd` in |
| 1103 | .) ac_abs_builddir="$ac_dir";; |
| 1104 | *) |
| 1105 | case "$ac_dir" in |
| 1106 | .) ac_abs_builddir=`pwd`;; |
| 1107 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1108 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1109 | esac;; |
| 1110 | esac |
| 1111 | case $ac_abs_builddir in |
| 1112 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1113 | *) |
| 1114 | case ${ac_top_builddir}. in |
| 1115 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1116 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1117 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1118 | esac;; |
| 1119 | esac |
| 1120 | case $ac_abs_builddir in |
| 1121 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1122 | *) |
| 1123 | case $ac_srcdir in |
| 1124 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1125 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1126 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1127 | esac;; |
| 1128 | esac |
| 1129 | case $ac_abs_builddir in |
| 1130 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1131 | *) |
| 1132 | case $ac_top_srcdir in |
| 1133 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1134 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1135 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1136 | esac;; |
| 1137 | esac |
| 1138 | |
| 1139 | cd $ac_dir |
| 1140 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1141 | if test -f $ac_srcdir/configure.gnu; then |
| 1142 | echo |
| 1143 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1144 | elif test -f $ac_srcdir/configure; then |
| 1145 | echo |
| 1146 | $SHELL $ac_srcdir/configure --help=recursive |
| 1147 | elif test -f $ac_srcdir/configure.ac || |
| 1148 | test -f $ac_srcdir/configure.in; then |
| 1149 | echo |
| 1150 | $ac_configure --help |
| 1151 | else |
| 1152 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1153 | fi |
| 1154 | cd "$ac_popdir" |
| 1155 | done |
| 1156 | fi |
| 1157 | |
| 1158 | test -n "$ac_init_help" && exit 0 |
| 1159 | if $ac_init_version; then |
| 1160 | cat <<\_ACEOF |
| 1161 | iso-codes-utils configure 0.2 |
| 1162 | generated by GNU Autoconf 2.59 |
| 1163 | |
| 1164 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1165 | This configure script is free software; the Free Software Foundation |
| 1166 | gives unlimited permission to copy, distribute and modify it. |
| 1167 | _ACEOF |
| 1168 | exit 0 |
| 1169 | fi |
| 1170 | exec 5>config.log |
| 1171 | cat >&5 <<_ACEOF |
| 1172 | This file contains any messages produced by compilers while |
| 1173 | running configure, to aid debugging if configure makes a mistake. |
| 1174 | |
| 1175 | It was created by iso-codes-utils $as_me 0.2, which was |
| 1176 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1177 | |
| 1178 | $ $0 $@ |
| 1179 | |
| 1180 | _ACEOF |
| 1181 | { |
| 1182 | cat <<_ASUNAME |
| 1183 | ## --------- ## |
| 1184 | ## Platform. ## |
| 1185 | ## --------- ## |
| 1186 | |
| 1187 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1188 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1189 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1190 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1191 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1192 | |
| 1193 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1194 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1195 | |
| 1196 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1197 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1198 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1199 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1200 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1201 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1202 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1203 | |
| 1204 | _ASUNAME |
| 1205 | |
| 1206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1207 | for as_dir in $PATH |
| 1208 | do |
| 1209 | IFS=$as_save_IFS |
| 1210 | test -z "$as_dir" && as_dir=. |
| 1211 | echo "PATH: $as_dir" |
| 1212 | done |
| 1213 | |
| 1214 | } >&5 |
| 1215 | |
| 1216 | cat >&5 <<_ACEOF |
| 1217 | |
| 1218 | |
| 1219 | ## ----------- ## |
| 1220 | ## Core tests. ## |
| 1221 | ## ----------- ## |
| 1222 | |
| 1223 | _ACEOF |
| 1224 | |
| 1225 | |
| 1226 | # Keep a trace of the command line. |
| 1227 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1228 | # Strip out --silent because we don't want to record it for future runs. |
| 1229 | # Also quote any args containing shell meta-characters. |
| 1230 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1231 | ac_configure_args= |
| 1232 | ac_configure_args0= |
| 1233 | ac_configure_args1= |
| 1234 | ac_sep= |
| 1235 | ac_must_keep_next=false |
| 1236 | for ac_pass in 1 2 |
| 1237 | do |
| 1238 | for ac_arg |
| 1239 | do |
| 1240 | case $ac_arg in |
| 1241 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1242 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1243 | | -silent | --silent | --silen | --sile | --sil) |
| 1244 | continue ;; |
| 1245 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1246 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1247 | esac |
| 1248 | case $ac_pass in |
| 1249 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1250 | 2) |
| 1251 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1252 | if test $ac_must_keep_next = true; then |
| 1253 | ac_must_keep_next=false # Got value, back to normal. |
| 1254 | else |
| 1255 | case $ac_arg in |
| 1256 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1257 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1258 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1259 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1260 | case "$ac_configure_args0 " in |
| 1261 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1262 | esac |
| 1263 | ;; |
| 1264 | -* ) ac_must_keep_next=true ;; |
| 1265 | esac |
| 1266 | fi |
| 1267 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1268 | # Get rid of the leading space. |
| 1269 | ac_sep=" " |
| 1270 | ;; |
| 1271 | esac |
| 1272 | done |
| 1273 | done |
| 1274 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1275 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1276 | |
| 1277 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1278 | # config.log. We remove comments because anyway the quotes in there |
| 1279 | # would cause problems or look ugly. |
| 1280 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1281 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1282 | trap 'exit_status=$? |
| 1283 | # Save into config.log some information that might help in debugging. |
| 1284 | { |
| 1285 | echo |
| 1286 | |
| 1287 | cat <<\_ASBOX |
| 1288 | ## ---------------- ## |
| 1289 | ## Cache variables. ## |
| 1290 | ## ---------------- ## |
| 1291 | _ASBOX |
| 1292 | echo |
| 1293 | # The following way of writing the cache mishandles newlines in values, |
| 1294 | { |
| 1295 | (set) 2>&1 | |
| 1296 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1297 | *ac_space=\ *) |
| 1298 | sed -n \ |
| 1299 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1300 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1301 | ;; |
| 1302 | *) |
| 1303 | sed -n \ |
| 1304 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1305 | ;; |
| 1306 | esac; |
| 1307 | } |
| 1308 | echo |
| 1309 | |
| 1310 | cat <<\_ASBOX |
| 1311 | ## ----------------- ## |
| 1312 | ## Output variables. ## |
| 1313 | ## ----------------- ## |
| 1314 | _ASBOX |
| 1315 | echo |
| 1316 | for ac_var in $ac_subst_vars |
| 1317 | do |
| 1318 | eval ac_val=$`echo $ac_var` |
| 1319 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1320 | done | sort |
| 1321 | echo |
| 1322 | |
| 1323 | if test -n "$ac_subst_files"; then |
| 1324 | cat <<\_ASBOX |
| 1325 | ## ------------- ## |
| 1326 | ## Output files. ## |
| 1327 | ## ------------- ## |
| 1328 | _ASBOX |
| 1329 | echo |
| 1330 | for ac_var in $ac_subst_files |
| 1331 | do |
| 1332 | eval ac_val=$`echo $ac_var` |
| 1333 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1334 | done | sort |
| 1335 | echo |
| 1336 | fi |
| 1337 | |
| 1338 | if test -s confdefs.h; then |
| 1339 | cat <<\_ASBOX |
| 1340 | ## ----------- ## |
| 1341 | ## confdefs.h. ## |
| 1342 | ## ----------- ## |
| 1343 | _ASBOX |
| 1344 | echo |
| 1345 | sed "/^$/d" confdefs.h | sort |
| 1346 | echo |
| 1347 | fi |
| 1348 | test "$ac_signal" != 0 && |
| 1349 | echo "$as_me: caught signal $ac_signal" |
| 1350 | echo "$as_me: exit $exit_status" |
| 1351 | } >&5 |
| 1352 | rm -f core *.core && |
| 1353 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1354 | exit $exit_status |
| 1355 | ' 0 |
| 1356 | for ac_signal in 1 2 13 15; do |
| 1357 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1358 | done |
| 1359 | ac_signal=0 |
| 1360 | |
| 1361 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1362 | rm -rf conftest* confdefs.h |
| 1363 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1364 | echo >confdefs.h |
| 1365 | |
| 1366 | # Predefined preprocessor variables. |
| 1367 | |
| 1368 | cat >>confdefs.h <<_ACEOF |
| 1369 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1370 | _ACEOF |
| 1371 | |
| 1372 | |
| 1373 | cat >>confdefs.h <<_ACEOF |
| 1374 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1375 | _ACEOF |
| 1376 | |
| 1377 | |
| 1378 | cat >>confdefs.h <<_ACEOF |
| 1379 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1380 | _ACEOF |
| 1381 | |
| 1382 | |
| 1383 | cat >>confdefs.h <<_ACEOF |
| 1384 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1385 | _ACEOF |
| 1386 | |
| 1387 | |
| 1388 | cat >>confdefs.h <<_ACEOF |
| 1389 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1390 | _ACEOF |
| 1391 | |
| 1392 | |
| 1393 | # Let the site file select an alternate cache file if it wants to. |
| 1394 | # Prefer explicitly selected file to automatically selected ones. |
| 1395 | if test -z "$CONFIG_SITE"; then |
| 1396 | if test "x$prefix" != xNONE; then |
| 1397 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1398 | else |
| 1399 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1400 | fi |
| 1401 | fi |
| 1402 | for ac_site_file in $CONFIG_SITE; do |
| 1403 | if test -r "$ac_site_file"; then |
| 1404 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1405 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1406 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1407 | . "$ac_site_file" |
| 1408 | fi |
| 1409 | done |
| 1410 | |
| 1411 | if test -r "$cache_file"; then |
| 1412 | # Some versions of bash will fail to source /dev/null (special |
| 1413 | # files actually), so we avoid doing that. |
| 1414 | if test -f "$cache_file"; then |
| 1415 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1416 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1417 | case $cache_file in |
| 1418 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1419 | *) . ./$cache_file;; |
| 1420 | esac |
| 1421 | fi |
| 1422 | else |
| 1423 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1424 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1425 | >$cache_file |
| 1426 | fi |
| 1427 | |
| 1428 | # Check that the precious variables saved in the cache have kept the same |
| 1429 | # value. |
| 1430 | ac_cache_corrupted=false |
| 1431 | for ac_var in `(set) 2>&1 | |
| 1432 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1433 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1434 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1435 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1436 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1437 | case $ac_old_set,$ac_new_set in |
| 1438 | set,) |
| 1439 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1440 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1441 | ac_cache_corrupted=: ;; |
| 1442 | ,set) |
| 1443 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1444 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1445 | ac_cache_corrupted=: ;; |
| 1446 | ,);; |
| 1447 | *) |
| 1448 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1449 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1450 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1451 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1452 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1453 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1454 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1455 | ac_cache_corrupted=: |
| 1456 | fi;; |
| 1457 | esac |
| 1458 | # Pass precious variables to config.status. |
| 1459 | if test "$ac_new_set" = set; then |
| 1460 | case $ac_new_val in |
| 1461 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1462 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1463 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1464 | esac |
| 1465 | case " $ac_configure_args " in |
| 1466 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1467 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1468 | esac |
| 1469 | fi |
| 1470 | done |
| 1471 | if $ac_cache_corrupted; then |
| 1472 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1473 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1474 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1475 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1476 | { (exit 1); exit 1; }; } |
| 1477 | fi |
| 1478 | |
| 1479 | ac_ext=c |
| 1480 | ac_cpp='$CPP $CPPFLAGS' |
| 1481 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1482 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1483 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1484 | |
| 1485 | |
| 1486 | |
| 1487 | |
| 1488 | |
| 1489 | |
| 1490 | |
| 1491 | |
| 1492 | |
| 1493 | |
| 1494 | |
| 1495 | |
| 1496 | |
| 1497 | |
| 1498 | |
| 1499 | |
| 1500 | |
| 1501 | |
| 1502 | |
| 1503 | |
| 1504 | |
| 1505 | |
| 1506 | |
| 1507 | |
| 1508 | |
| 1509 | |
| 1510 | |
| 1511 | am__api_version="1.7" |
| 1512 | ac_aux_dir= |
| 1513 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1514 | if test -f $ac_dir/install-sh; then |
| 1515 | ac_aux_dir=$ac_dir |
| 1516 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1517 | break |
| 1518 | elif test -f $ac_dir/install.sh; then |
| 1519 | ac_aux_dir=$ac_dir |
| 1520 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1521 | break |
| 1522 | elif test -f $ac_dir/shtool; then |
| 1523 | ac_aux_dir=$ac_dir |
| 1524 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1525 | break |
| 1526 | fi |
| 1527 | done |
| 1528 | if test -z "$ac_aux_dir"; then |
| 1529 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1530 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1531 | { (exit 1); exit 1; }; } |
| 1532 | fi |
| 1533 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1534 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1535 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1536 | |
| 1537 | # Find a good install program. We prefer a C program (faster), |
| 1538 | # so one script is as good as another. But avoid the broken or |
| 1539 | # incompatible versions: |
| 1540 | # SysV /etc/install, /usr/sbin/install |
| 1541 | # SunOS /usr/etc/install |
| 1542 | # IRIX /sbin/install |
| 1543 | # AIX /bin/install |
| 1544 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1545 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1546 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1547 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1548 | # OS/2's system install, which has a completely different semantic |
| 1549 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1550 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1551 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1552 | if test -z "$INSTALL"; then |
| 1553 | if test "${ac_cv_path_install+set}" = set; then |
| 1554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1555 | else |
| 1556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1557 | for as_dir in $PATH |
| 1558 | do |
| 1559 | IFS=$as_save_IFS |
| 1560 | test -z "$as_dir" && as_dir=. |
| 1561 | # Account for people who put trailing slashes in PATH elements. |
| 1562 | case $as_dir/ in |
| 1563 | ./ | .// | /cC/* | \ |
| 1564 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1565 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 1566 | /usr/ucb/* ) ;; |
| 1567 | *) |
| 1568 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1569 | # Don't use installbsd from OSF since it installs stuff as root |
| 1570 | # by default. |
| 1571 | for ac_prog in ginstall scoinst install; do |
| 1572 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1573 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1574 | if test $ac_prog = install && |
| 1575 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1576 | # AIX install. It has an incompatible calling convention. |
| 1577 | : |
| 1578 | elif test $ac_prog = install && |
| 1579 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1580 | # program-specific install script used by HP pwplus--don't use. |
| 1581 | : |
| 1582 | else |
| 1583 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1584 | break 3 |
| 1585 | fi |
| 1586 | fi |
| 1587 | done |
| 1588 | done |
| 1589 | ;; |
| 1590 | esac |
| 1591 | done |
| 1592 | |
| 1593 | |
| 1594 | fi |
| 1595 | if test "${ac_cv_path_install+set}" = set; then |
| 1596 | INSTALL=$ac_cv_path_install |
| 1597 | else |
| 1598 | # As a last resort, use the slow shell script. We don't cache a |
| 1599 | # path for INSTALL within a source directory, because that will |
| 1600 | # break other packages using the cache if that directory is |
| 1601 | # removed, or if the path is relative. |
| 1602 | INSTALL=$ac_install_sh |
| 1603 | fi |
| 1604 | fi |
| 1605 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1606 | echo "${ECHO_T}$INSTALL" >&6 |
| 1607 | |
| 1608 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1609 | # It thinks the first close brace ends the variable substitution. |
| 1610 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1611 | |
| 1612 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1613 | |
| 1614 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1615 | |
| 1616 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1617 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1618 | # Just in case |
| 1619 | sleep 1 |
| 1620 | echo timestamp > conftest.file |
| 1621 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1622 | # arguments. Must try -L first in case configure is actually a |
| 1623 | # symlink; some systems play weird games with the mod time of symlinks |
| 1624 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1625 | # directory). |
| 1626 | if ( |
| 1627 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1628 | if test "$*" = "X"; then |
| 1629 | # -L didn't work. |
| 1630 | set X `ls -t $srcdir/configure conftest.file` |
| 1631 | fi |
| 1632 | rm -f conftest.file |
| 1633 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1634 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1635 | |
| 1636 | # If neither matched, then we have a broken ls. This can happen |
| 1637 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1638 | # broken ls alias from the environment. This has actually |
| 1639 | # happened. Such a system could not be considered "sane". |
| 1640 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1641 | alias in your environment" >&5 |
| 1642 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1643 | alias in your environment" >&2;} |
| 1644 | { (exit 1); exit 1; }; } |
| 1645 | fi |
| 1646 | |
| 1647 | test "$2" = conftest.file |
| 1648 | ) |
| 1649 | then |
| 1650 | # Ok. |
| 1651 | : |
| 1652 | else |
| 1653 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1654 | Check your system clock" >&5 |
| 1655 | echo "$as_me: error: newly created file is older than distributed files! |
| 1656 | Check your system clock" >&2;} |
| 1657 | { (exit 1); exit 1; }; } |
| 1658 | fi |
| 1659 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1660 | echo "${ECHO_T}yes" >&6 |
| 1661 | test "$program_prefix" != NONE && |
| 1662 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1663 | # Use a double $ so make ignores it. |
| 1664 | test "$program_suffix" != NONE && |
| 1665 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1666 | # Double any \ or $. echo might interpret backslashes. |
| 1667 | # By default was `s,x,x', remove it if useless. |
| 1668 | cat <<\_ACEOF >conftest.sed |
| 1669 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1670 | _ACEOF |
| 1671 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1672 | rm conftest.sed |
| 1673 | |
| 1674 | |
| 1675 | # expand $ac_aux_dir to an absolute path |
| 1676 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 1677 | |
| 1678 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1679 | # Use eval to expand $SHELL |
| 1680 | if eval "$MISSING --run true"; then |
| 1681 | am_missing_run="$MISSING --run " |
| 1682 | else |
| 1683 | am_missing_run= |
| 1684 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 1685 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 1686 | fi |
| 1687 | |
| 1688 | for ac_prog in gawk mawk nawk awk |
| 1689 | do |
| 1690 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1691 | set dummy $ac_prog; ac_word=$2 |
| 1692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1694 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1696 | else |
| 1697 | if test -n "$AWK"; then |
| 1698 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1699 | else |
| 1700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1701 | for as_dir in $PATH |
| 1702 | do |
| 1703 | IFS=$as_save_IFS |
| 1704 | test -z "$as_dir" && as_dir=. |
| 1705 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1707 | ac_cv_prog_AWK="$ac_prog" |
| 1708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1709 | break 2 |
| 1710 | fi |
| 1711 | done |
| 1712 | done |
| 1713 | |
| 1714 | fi |
| 1715 | fi |
| 1716 | AWK=$ac_cv_prog_AWK |
| 1717 | if test -n "$AWK"; then |
| 1718 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1719 | echo "${ECHO_T}$AWK" >&6 |
| 1720 | else |
| 1721 | echo "$as_me:$LINENO: result: no" >&5 |
| 1722 | echo "${ECHO_T}no" >&6 |
| 1723 | fi |
| 1724 | |
| 1725 | test -n "$AWK" && break |
| 1726 | done |
| 1727 | |
| 1728 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1729 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1730 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 1731 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1733 | else |
| 1734 | cat >conftest.make <<\_ACEOF |
| 1735 | all: |
| 1736 | @echo 'ac_maketemp="$(MAKE)"' |
| 1737 | _ACEOF |
| 1738 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1739 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1740 | if test -n "$ac_maketemp"; then |
| 1741 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1742 | else |
| 1743 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1744 | fi |
| 1745 | rm -f conftest.make |
| 1746 | fi |
| 1747 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1748 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1749 | echo "${ECHO_T}yes" >&6 |
| 1750 | SET_MAKE= |
| 1751 | else |
| 1752 | echo "$as_me:$LINENO: result: no" >&5 |
| 1753 | echo "${ECHO_T}no" >&6 |
| 1754 | SET_MAKE="MAKE=${MAKE-make}" |
| 1755 | fi |
| 1756 | |
| 1757 | rm -rf .tst 2>/dev/null |
| 1758 | mkdir .tst 2>/dev/null |
| 1759 | if test -d .tst; then |
| 1760 | am__leading_dot=. |
| 1761 | else |
| 1762 | am__leading_dot=_ |
| 1763 | fi |
| 1764 | rmdir .tst 2>/dev/null |
| 1765 | |
| 1766 | # test to see if srcdir already configured |
| 1767 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 1768 | test -f $srcdir/config.status; then |
| 1769 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1770 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1771 | { (exit 1); exit 1; }; } |
| 1772 | fi |
| 1773 | |
| 1774 | # test whether we have cygpath |
| 1775 | if test -z "$CYGPATH_W"; then |
| 1776 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 1777 | CYGPATH_W='cygpath -w' |
| 1778 | else |
| 1779 | CYGPATH_W=echo |
| 1780 | fi |
| 1781 | fi |
| 1782 | |
| 1783 | |
| 1784 | # Define the identity of the package. |
| 1785 | PACKAGE='iso-codes-utils' |
| 1786 | VERSION='0.2' |
| 1787 | |
| 1788 | |
| 1789 | cat >>confdefs.h <<_ACEOF |
| 1790 | #define PACKAGE "$PACKAGE" |
| 1791 | _ACEOF |
| 1792 | |
| 1793 | |
| 1794 | cat >>confdefs.h <<_ACEOF |
| 1795 | #define VERSION "$VERSION" |
| 1796 | _ACEOF |
| 1797 | |
| 1798 | # Some tools Automake needs. |
| 1799 | |
| 1800 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 1801 | |
| 1802 | |
| 1803 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1804 | |
| 1805 | |
| 1806 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 1807 | |
| 1808 | |
| 1809 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1810 | |
| 1811 | |
| 1812 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1813 | |
| 1814 | |
| 1815 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1816 | |
| 1817 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1818 | |
| 1819 | # Installed binaries are usually stripped using `strip' when the user |
| 1820 | # run `make install-strip'. However `strip' might not be the right |
| 1821 | # tool to use in cross-compilation environments, therefore Automake |
| 1822 | # will honor the `STRIP' environment variable to overrule this program. |
| 1823 | if test "$cross_compiling" != no; then |
| 1824 | if test -n "$ac_tool_prefix"; then |
| 1825 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1826 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1827 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1829 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1831 | else |
| 1832 | if test -n "$STRIP"; then |
| 1833 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1834 | else |
| 1835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1836 | for as_dir in $PATH |
| 1837 | do |
| 1838 | IFS=$as_save_IFS |
| 1839 | test -z "$as_dir" && as_dir=. |
| 1840 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1841 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1842 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1844 | break 2 |
| 1845 | fi |
| 1846 | done |
| 1847 | done |
| 1848 | |
| 1849 | fi |
| 1850 | fi |
| 1851 | STRIP=$ac_cv_prog_STRIP |
| 1852 | if test -n "$STRIP"; then |
| 1853 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 1854 | echo "${ECHO_T}$STRIP" >&6 |
| 1855 | else |
| 1856 | echo "$as_me:$LINENO: result: no" >&5 |
| 1857 | echo "${ECHO_T}no" >&6 |
| 1858 | fi |
| 1859 | |
| 1860 | fi |
| 1861 | if test -z "$ac_cv_prog_STRIP"; then |
| 1862 | ac_ct_STRIP=$STRIP |
| 1863 | # Extract the first word of "strip", so it can be a program name with args. |
| 1864 | set dummy strip; ac_word=$2 |
| 1865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1867 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1869 | else |
| 1870 | if test -n "$ac_ct_STRIP"; then |
| 1871 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1872 | else |
| 1873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1874 | for as_dir in $PATH |
| 1875 | do |
| 1876 | IFS=$as_save_IFS |
| 1877 | test -z "$as_dir" && as_dir=. |
| 1878 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1879 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1880 | ac_cv_prog_ac_ct_STRIP="strip" |
| 1881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1882 | break 2 |
| 1883 | fi |
| 1884 | done |
| 1885 | done |
| 1886 | |
| 1887 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1888 | fi |
| 1889 | fi |
| 1890 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1891 | if test -n "$ac_ct_STRIP"; then |
| 1892 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 1893 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1894 | else |
| 1895 | echo "$as_me:$LINENO: result: no" >&5 |
| 1896 | echo "${ECHO_T}no" >&6 |
| 1897 | fi |
| 1898 | |
| 1899 | STRIP=$ac_ct_STRIP |
| 1900 | else |
| 1901 | STRIP="$ac_cv_prog_STRIP" |
| 1902 | fi |
| 1903 | |
| 1904 | fi |
| 1905 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1906 | |
| 1907 | # We need awk for the "check" target. The system "awk" is bad on |
| 1908 | # some platforms. |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | ac_ext=c |
| 1913 | ac_cpp='$CPP $CPPFLAGS' |
| 1914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1917 | if test -n "$ac_tool_prefix"; then |
| 1918 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1919 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1920 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1922 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1924 | else |
| 1925 | if test -n "$CC"; then |
| 1926 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1927 | else |
| 1928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1929 | for as_dir in $PATH |
| 1930 | do |
| 1931 | IFS=$as_save_IFS |
| 1932 | test -z "$as_dir" && as_dir=. |
| 1933 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1934 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1935 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1937 | break 2 |
| 1938 | fi |
| 1939 | done |
| 1940 | done |
| 1941 | |
| 1942 | fi |
| 1943 | fi |
| 1944 | CC=$ac_cv_prog_CC |
| 1945 | if test -n "$CC"; then |
| 1946 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1947 | echo "${ECHO_T}$CC" >&6 |
| 1948 | else |
| 1949 | echo "$as_me:$LINENO: result: no" >&5 |
| 1950 | echo "${ECHO_T}no" >&6 |
| 1951 | fi |
| 1952 | |
| 1953 | fi |
| 1954 | if test -z "$ac_cv_prog_CC"; then |
| 1955 | ac_ct_CC=$CC |
| 1956 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1957 | set dummy gcc; ac_word=$2 |
| 1958 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1960 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1962 | else |
| 1963 | if test -n "$ac_ct_CC"; then |
| 1964 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1965 | else |
| 1966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1967 | for as_dir in $PATH |
| 1968 | do |
| 1969 | IFS=$as_save_IFS |
| 1970 | test -z "$as_dir" && as_dir=. |
| 1971 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1972 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1973 | ac_cv_prog_ac_ct_CC="gcc" |
| 1974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1975 | break 2 |
| 1976 | fi |
| 1977 | done |
| 1978 | done |
| 1979 | |
| 1980 | fi |
| 1981 | fi |
| 1982 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1983 | if test -n "$ac_ct_CC"; then |
| 1984 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1985 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1986 | else |
| 1987 | echo "$as_me:$LINENO: result: no" >&5 |
| 1988 | echo "${ECHO_T}no" >&6 |
| 1989 | fi |
| 1990 | |
| 1991 | CC=$ac_ct_CC |
| 1992 | else |
| 1993 | CC="$ac_cv_prog_CC" |
| 1994 | fi |
| 1995 | |
| 1996 | if test -z "$CC"; then |
| 1997 | if test -n "$ac_tool_prefix"; then |
| 1998 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1999 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2000 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2001 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2002 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2004 | else |
| 2005 | if test -n "$CC"; then |
| 2006 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2007 | else |
| 2008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2009 | for as_dir in $PATH |
| 2010 | do |
| 2011 | IFS=$as_save_IFS |
| 2012 | test -z "$as_dir" && as_dir=. |
| 2013 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2014 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2015 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2016 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2017 | break 2 |
| 2018 | fi |
| 2019 | done |
| 2020 | done |
| 2021 | |
| 2022 | fi |
| 2023 | fi |
| 2024 | CC=$ac_cv_prog_CC |
| 2025 | if test -n "$CC"; then |
| 2026 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2027 | echo "${ECHO_T}$CC" >&6 |
| 2028 | else |
| 2029 | echo "$as_me:$LINENO: result: no" >&5 |
| 2030 | echo "${ECHO_T}no" >&6 |
| 2031 | fi |
| 2032 | |
| 2033 | fi |
| 2034 | if test -z "$ac_cv_prog_CC"; then |
| 2035 | ac_ct_CC=$CC |
| 2036 | # Extract the first word of "cc", so it can be a program name with args. |
| 2037 | set dummy cc; ac_word=$2 |
| 2038 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2040 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2042 | else |
| 2043 | if test -n "$ac_ct_CC"; then |
| 2044 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2045 | else |
| 2046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2047 | for as_dir in $PATH |
| 2048 | do |
| 2049 | IFS=$as_save_IFS |
| 2050 | test -z "$as_dir" && as_dir=. |
| 2051 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2052 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2053 | ac_cv_prog_ac_ct_CC="cc" |
| 2054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2055 | break 2 |
| 2056 | fi |
| 2057 | done |
| 2058 | done |
| 2059 | |
| 2060 | fi |
| 2061 | fi |
| 2062 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2063 | if test -n "$ac_ct_CC"; then |
| 2064 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2065 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2066 | else |
| 2067 | echo "$as_me:$LINENO: result: no" >&5 |
| 2068 | echo "${ECHO_T}no" >&6 |
| 2069 | fi |
| 2070 | |
| 2071 | CC=$ac_ct_CC |
| 2072 | else |
| 2073 | CC="$ac_cv_prog_CC" |
| 2074 | fi |
| 2075 | |
| 2076 | fi |
| 2077 | if test -z "$CC"; then |
| 2078 | # Extract the first word of "cc", so it can be a program name with args. |
| 2079 | set dummy cc; ac_word=$2 |
| 2080 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2081 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2082 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2084 | else |
| 2085 | if test -n "$CC"; then |
| 2086 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2087 | else |
| 2088 | ac_prog_rejected=no |
| 2089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2090 | for as_dir in $PATH |
| 2091 | do |
| 2092 | IFS=$as_save_IFS |
| 2093 | test -z "$as_dir" && as_dir=. |
| 2094 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2095 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2096 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2097 | ac_prog_rejected=yes |
| 2098 | continue |
| 2099 | fi |
| 2100 | ac_cv_prog_CC="cc" |
| 2101 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2102 | break 2 |
| 2103 | fi |
| 2104 | done |
| 2105 | done |
| 2106 | |
| 2107 | if test $ac_prog_rejected = yes; then |
| 2108 | # We found a bogon in the path, so make sure we never use it. |
| 2109 | set dummy $ac_cv_prog_CC |
| 2110 | shift |
| 2111 | if test $# != 0; then |
| 2112 | # We chose a different compiler from the bogus one. |
| 2113 | # However, it has the same basename, so the bogon will be chosen |
| 2114 | # first if we set CC to just the basename; use the full file name. |
| 2115 | shift |
| 2116 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2117 | fi |
| 2118 | fi |
| 2119 | fi |
| 2120 | fi |
| 2121 | CC=$ac_cv_prog_CC |
| 2122 | if test -n "$CC"; then |
| 2123 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2124 | echo "${ECHO_T}$CC" >&6 |
| 2125 | else |
| 2126 | echo "$as_me:$LINENO: result: no" >&5 |
| 2127 | echo "${ECHO_T}no" >&6 |
| 2128 | fi |
| 2129 | |
| 2130 | fi |
| 2131 | if test -z "$CC"; then |
| 2132 | if test -n "$ac_tool_prefix"; then |
| 2133 | for ac_prog in cl |
| 2134 | do |
| 2135 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2136 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2137 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2138 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2139 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2141 | else |
| 2142 | if test -n "$CC"; then |
| 2143 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2144 | else |
| 2145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2146 | for as_dir in $PATH |
| 2147 | do |
| 2148 | IFS=$as_save_IFS |
| 2149 | test -z "$as_dir" && as_dir=. |
| 2150 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2151 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2152 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2153 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2154 | break 2 |
| 2155 | fi |
| 2156 | done |
| 2157 | done |
| 2158 | |
| 2159 | fi |
| 2160 | fi |
| 2161 | CC=$ac_cv_prog_CC |
| 2162 | if test -n "$CC"; then |
| 2163 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2164 | echo "${ECHO_T}$CC" >&6 |
| 2165 | else |
| 2166 | echo "$as_me:$LINENO: result: no" >&5 |
| 2167 | echo "${ECHO_T}no" >&6 |
| 2168 | fi |
| 2169 | |
| 2170 | test -n "$CC" && break |
| 2171 | done |
| 2172 | fi |
| 2173 | if test -z "$CC"; then |
| 2174 | ac_ct_CC=$CC |
| 2175 | for ac_prog in cl |
| 2176 | do |
| 2177 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2178 | set dummy $ac_prog; ac_word=$2 |
| 2179 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2181 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2183 | else |
| 2184 | if test -n "$ac_ct_CC"; then |
| 2185 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2186 | else |
| 2187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2188 | for as_dir in $PATH |
| 2189 | do |
| 2190 | IFS=$as_save_IFS |
| 2191 | test -z "$as_dir" && as_dir=. |
| 2192 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2193 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2194 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2195 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2196 | break 2 |
| 2197 | fi |
| 2198 | done |
| 2199 | done |
| 2200 | |
| 2201 | fi |
| 2202 | fi |
| 2203 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2204 | if test -n "$ac_ct_CC"; then |
| 2205 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2206 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2207 | else |
| 2208 | echo "$as_me:$LINENO: result: no" >&5 |
| 2209 | echo "${ECHO_T}no" >&6 |
| 2210 | fi |
| 2211 | |
| 2212 | test -n "$ac_ct_CC" && break |
| 2213 | done |
| 2214 | |
| 2215 | CC=$ac_ct_CC |
| 2216 | fi |
| 2217 | |
| 2218 | fi |
| 2219 | |
| 2220 | |
| 2221 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2222 | See \`config.log' for more details." >&5 |
| 2223 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2224 | See \`config.log' for more details." >&2;} |
| 2225 | { (exit 1); exit 1; }; } |
| 2226 | |
| 2227 | # Provide some information about the compiler. |
| 2228 | echo "$as_me:$LINENO:" \ |
| 2229 | "checking for C compiler version" >&5 |
| 2230 | ac_compiler=`set X $ac_compile; echo $2` |
| 2231 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2232 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2233 | ac_status=$? |
| 2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2235 | (exit $ac_status); } |
| 2236 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2237 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2238 | ac_status=$? |
| 2239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2240 | (exit $ac_status); } |
| 2241 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2242 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2243 | ac_status=$? |
| 2244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2245 | (exit $ac_status); } |
| 2246 | |
| 2247 | cat >conftest.$ac_ext <<_ACEOF |
| 2248 | /* confdefs.h. */ |
| 2249 | _ACEOF |
| 2250 | cat confdefs.h >>conftest.$ac_ext |
| 2251 | cat >>conftest.$ac_ext <<_ACEOF |
| 2252 | /* end confdefs.h. */ |
| 2253 | |
| 2254 | int |
| 2255 | main () |
| 2256 | { |
| 2257 | |
| 2258 | ; |
| 2259 | return 0; |
| 2260 | } |
| 2261 | _ACEOF |
| 2262 | ac_clean_files_save=$ac_clean_files |
| 2263 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2264 | # Try to create an executable without -o first, disregard a.out. |
| 2265 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2266 | # of exeext. |
| 2267 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2268 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 2269 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2270 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2271 | (eval $ac_link_default) 2>&5 |
| 2272 | ac_status=$? |
| 2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2274 | (exit $ac_status); }; then |
| 2275 | # Find the output, starting from the most likely. This scheme is |
| 2276 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2277 | # resort. |
| 2278 | |
| 2279 | # Be careful to initialize this variable, since it used to be cached. |
| 2280 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2281 | ac_cv_exeext= |
| 2282 | # b.out is created by i960 compilers. |
| 2283 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2284 | do |
| 2285 | test -f "$ac_file" || continue |
| 2286 | case $ac_file in |
| 2287 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2288 | ;; |
| 2289 | conftest.$ac_ext ) |
| 2290 | # This is the source file. |
| 2291 | ;; |
| 2292 | [ab].out ) |
| 2293 | # We found the default executable, but exeext='' is most |
| 2294 | # certainly right. |
| 2295 | break;; |
| 2296 | *.* ) |
| 2297 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2298 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2299 | # but it would be cool to find out if it's true. Does anybody |
| 2300 | # maintain Libtool? --akim. |
| 2301 | export ac_cv_exeext |
| 2302 | break;; |
| 2303 | * ) |
| 2304 | break;; |
| 2305 | esac |
| 2306 | done |
| 2307 | else |
| 2308 | echo "$as_me: failed program was:" >&5 |
| 2309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2310 | |
| 2311 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2312 | See \`config.log' for more details." >&5 |
| 2313 | echo "$as_me: error: C compiler cannot create executables |
| 2314 | See \`config.log' for more details." >&2;} |
| 2315 | { (exit 77); exit 77; }; } |
| 2316 | fi |
| 2317 | |
| 2318 | ac_exeext=$ac_cv_exeext |
| 2319 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2320 | echo "${ECHO_T}$ac_file" >&6 |
| 2321 | |
| 2322 | # Check the compiler produces executables we can run. If not, either |
| 2323 | # the compiler is broken, or we cross compile. |
| 2324 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2325 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2326 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2327 | # If not cross compiling, check that we can run a simple program. |
| 2328 | if test "$cross_compiling" != yes; then |
| 2329 | if { ac_try='./$ac_file' |
| 2330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2331 | (eval $ac_try) 2>&5 |
| 2332 | ac_status=$? |
| 2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2334 | (exit $ac_status); }; }; then |
| 2335 | cross_compiling=no |
| 2336 | else |
| 2337 | if test "$cross_compiling" = maybe; then |
| 2338 | cross_compiling=yes |
| 2339 | else |
| 2340 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2341 | If you meant to cross compile, use \`--host'. |
| 2342 | See \`config.log' for more details." >&5 |
| 2343 | echo "$as_me: error: cannot run C compiled programs. |
| 2344 | If you meant to cross compile, use \`--host'. |
| 2345 | See \`config.log' for more details." >&2;} |
| 2346 | { (exit 1); exit 1; }; } |
| 2347 | fi |
| 2348 | fi |
| 2349 | fi |
| 2350 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2351 | echo "${ECHO_T}yes" >&6 |
| 2352 | |
| 2353 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2354 | ac_clean_files=$ac_clean_files_save |
| 2355 | # Check the compiler produces executables we can run. If not, either |
| 2356 | # the compiler is broken, or we cross compile. |
| 2357 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2358 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2359 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2360 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2361 | |
| 2362 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2363 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2365 | (eval $ac_link) 2>&5 |
| 2366 | ac_status=$? |
| 2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2368 | (exit $ac_status); }; then |
| 2369 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2370 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2371 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2372 | # `rm'. |
| 2373 | for ac_file in conftest.exe conftest conftest.*; do |
| 2374 | test -f "$ac_file" || continue |
| 2375 | case $ac_file in |
| 2376 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2377 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2378 | export ac_cv_exeext |
| 2379 | break;; |
| 2380 | * ) break;; |
| 2381 | esac |
| 2382 | done |
| 2383 | else |
| 2384 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2385 | See \`config.log' for more details." >&5 |
| 2386 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2387 | See \`config.log' for more details." >&2;} |
| 2388 | { (exit 1); exit 1; }; } |
| 2389 | fi |
| 2390 | |
| 2391 | rm -f conftest$ac_cv_exeext |
| 2392 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2393 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2394 | |
| 2395 | rm -f conftest.$ac_ext |
| 2396 | EXEEXT=$ac_cv_exeext |
| 2397 | ac_exeext=$EXEEXT |
| 2398 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2399 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2400 | if test "${ac_cv_objext+set}" = set; then |
| 2401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2402 | else |
| 2403 | cat >conftest.$ac_ext <<_ACEOF |
| 2404 | /* confdefs.h. */ |
| 2405 | _ACEOF |
| 2406 | cat confdefs.h >>conftest.$ac_ext |
| 2407 | cat >>conftest.$ac_ext <<_ACEOF |
| 2408 | /* end confdefs.h. */ |
| 2409 | |
| 2410 | int |
| 2411 | main () |
| 2412 | { |
| 2413 | |
| 2414 | ; |
| 2415 | return 0; |
| 2416 | } |
| 2417 | _ACEOF |
| 2418 | rm -f conftest.o conftest.obj |
| 2419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2420 | (eval $ac_compile) 2>&5 |
| 2421 | ac_status=$? |
| 2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2423 | (exit $ac_status); }; then |
| 2424 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2425 | case $ac_file in |
| 2426 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2427 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2428 | break;; |
| 2429 | esac |
| 2430 | done |
| 2431 | else |
| 2432 | echo "$as_me: failed program was:" >&5 |
| 2433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2434 | |
| 2435 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2436 | See \`config.log' for more details." >&5 |
| 2437 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2438 | See \`config.log' for more details." >&2;} |
| 2439 | { (exit 1); exit 1; }; } |
| 2440 | fi |
| 2441 | |
| 2442 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2443 | fi |
| 2444 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2445 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2446 | OBJEXT=$ac_cv_objext |
| 2447 | ac_objext=$OBJEXT |
| 2448 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2449 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2450 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2452 | else |
| 2453 | cat >conftest.$ac_ext <<_ACEOF |
| 2454 | /* confdefs.h. */ |
| 2455 | _ACEOF |
| 2456 | cat confdefs.h >>conftest.$ac_ext |
| 2457 | cat >>conftest.$ac_ext <<_ACEOF |
| 2458 | /* end confdefs.h. */ |
| 2459 | |
| 2460 | int |
| 2461 | main () |
| 2462 | { |
| 2463 | #ifndef __GNUC__ |
| 2464 | choke me |
| 2465 | #endif |
| 2466 | |
| 2467 | ; |
| 2468 | return 0; |
| 2469 | } |
| 2470 | _ACEOF |
| 2471 | rm -f conftest.$ac_objext |
| 2472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2473 | (eval $ac_compile) 2>conftest.er1 |
| 2474 | ac_status=$? |
| 2475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2476 | rm -f conftest.er1 |
| 2477 | cat conftest.err >&5 |
| 2478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2479 | (exit $ac_status); } && |
| 2480 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2482 | (eval $ac_try) 2>&5 |
| 2483 | ac_status=$? |
| 2484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2485 | (exit $ac_status); }; } && |
| 2486 | { ac_try='test -s conftest.$ac_objext' |
| 2487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2488 | (eval $ac_try) 2>&5 |
| 2489 | ac_status=$? |
| 2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2491 | (exit $ac_status); }; }; then |
| 2492 | ac_compiler_gnu=yes |
| 2493 | else |
| 2494 | echo "$as_me: failed program was:" >&5 |
| 2495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2496 | |
| 2497 | ac_compiler_gnu=no |
| 2498 | fi |
| 2499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2500 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2501 | |
| 2502 | fi |
| 2503 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2504 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2505 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2506 | ac_test_CFLAGS=${CFLAGS+set} |
| 2507 | ac_save_CFLAGS=$CFLAGS |
| 2508 | CFLAGS="-g" |
| 2509 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2510 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2511 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2513 | else |
| 2514 | cat >conftest.$ac_ext <<_ACEOF |
| 2515 | /* confdefs.h. */ |
| 2516 | _ACEOF |
| 2517 | cat confdefs.h >>conftest.$ac_ext |
| 2518 | cat >>conftest.$ac_ext <<_ACEOF |
| 2519 | /* end confdefs.h. */ |
| 2520 | |
| 2521 | int |
| 2522 | main () |
| 2523 | { |
| 2524 | |
| 2525 | ; |
| 2526 | return 0; |
| 2527 | } |
| 2528 | _ACEOF |
| 2529 | rm -f conftest.$ac_objext |
| 2530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2531 | (eval $ac_compile) 2>conftest.er1 |
| 2532 | ac_status=$? |
| 2533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2534 | rm -f conftest.er1 |
| 2535 | cat conftest.err >&5 |
| 2536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2537 | (exit $ac_status); } && |
| 2538 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2540 | (eval $ac_try) 2>&5 |
| 2541 | ac_status=$? |
| 2542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2543 | (exit $ac_status); }; } && |
| 2544 | { ac_try='test -s conftest.$ac_objext' |
| 2545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2546 | (eval $ac_try) 2>&5 |
| 2547 | ac_status=$? |
| 2548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2549 | (exit $ac_status); }; }; then |
| 2550 | ac_cv_prog_cc_g=yes |
| 2551 | else |
| 2552 | echo "$as_me: failed program was:" >&5 |
| 2553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2554 | |
| 2555 | ac_cv_prog_cc_g=no |
| 2556 | fi |
| 2557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2558 | fi |
| 2559 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2560 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2561 | if test "$ac_test_CFLAGS" = set; then |
| 2562 | CFLAGS=$ac_save_CFLAGS |
| 2563 | elif test $ac_cv_prog_cc_g = yes; then |
| 2564 | if test "$GCC" = yes; then |
| 2565 | CFLAGS="-g -O2" |
| 2566 | else |
| 2567 | CFLAGS="-g" |
| 2568 | fi |
| 2569 | else |
| 2570 | if test "$GCC" = yes; then |
| 2571 | CFLAGS="-O2" |
| 2572 | else |
| 2573 | CFLAGS= |
| 2574 | fi |
| 2575 | fi |
| 2576 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2577 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2578 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2580 | else |
| 2581 | ac_cv_prog_cc_stdc=no |
| 2582 | ac_save_CC=$CC |
| 2583 | cat >conftest.$ac_ext <<_ACEOF |
| 2584 | /* confdefs.h. */ |
| 2585 | _ACEOF |
| 2586 | cat confdefs.h >>conftest.$ac_ext |
| 2587 | cat >>conftest.$ac_ext <<_ACEOF |
| 2588 | /* end confdefs.h. */ |
| 2589 | #include <stdarg.h> |
| 2590 | #include <stdio.h> |
| 2591 | #include <sys/types.h> |
| 2592 | #include <sys/stat.h> |
| 2593 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2594 | struct buf { int x; }; |
| 2595 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2596 | static char *e (p, i) |
| 2597 | char **p; |
| 2598 | int i; |
| 2599 | { |
| 2600 | return p[i]; |
| 2601 | } |
| 2602 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2603 | { |
| 2604 | char *s; |
| 2605 | va_list v; |
| 2606 | va_start (v,p); |
| 2607 | s = g (p, va_arg (v,int)); |
| 2608 | va_end (v); |
| 2609 | return s; |
| 2610 | } |
| 2611 | |
| 2612 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2613 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2614 | These don't provoke an error unfortunately, instead are silently treated |
| 2615 | as 'x'. The following induces an error, until -std1 is added to get |
| 2616 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2617 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2618 | that's true only with -std1. */ |
| 2619 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2620 | |
| 2621 | int test (int i, double x); |
| 2622 | struct s1 {int (*f) (int a);}; |
| 2623 | struct s2 {int (*f) (double a);}; |
| 2624 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2625 | int argc; |
| 2626 | char **argv; |
| 2627 | int |
| 2628 | main () |
| 2629 | { |
| 2630 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2631 | ; |
| 2632 | return 0; |
| 2633 | } |
| 2634 | _ACEOF |
| 2635 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2636 | # breaks some systems' header files. |
| 2637 | # AIX -qlanglvl=ansi |
| 2638 | # Ultrix and OSF/1 -std1 |
| 2639 | # HP-UX 10.20 and later -Ae |
| 2640 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2641 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2642 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2643 | do |
| 2644 | CC="$ac_save_CC $ac_arg" |
| 2645 | rm -f conftest.$ac_objext |
| 2646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2647 | (eval $ac_compile) 2>conftest.er1 |
| 2648 | ac_status=$? |
| 2649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2650 | rm -f conftest.er1 |
| 2651 | cat conftest.err >&5 |
| 2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2653 | (exit $ac_status); } && |
| 2654 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2656 | (eval $ac_try) 2>&5 |
| 2657 | ac_status=$? |
| 2658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2659 | (exit $ac_status); }; } && |
| 2660 | { ac_try='test -s conftest.$ac_objext' |
| 2661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2662 | (eval $ac_try) 2>&5 |
| 2663 | ac_status=$? |
| 2664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2665 | (exit $ac_status); }; }; then |
| 2666 | ac_cv_prog_cc_stdc=$ac_arg |
| 2667 | break |
| 2668 | else |
| 2669 | echo "$as_me: failed program was:" >&5 |
| 2670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2671 | |
| 2672 | fi |
| 2673 | rm -f conftest.err conftest.$ac_objext |
| 2674 | done |
| 2675 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2676 | CC=$ac_save_CC |
| 2677 | |
| 2678 | fi |
| 2679 | |
| 2680 | case "x$ac_cv_prog_cc_stdc" in |
| 2681 | x|xno) |
| 2682 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2683 | echo "${ECHO_T}none needed" >&6 ;; |
| 2684 | *) |
| 2685 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2686 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2687 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2688 | esac |
| 2689 | |
| 2690 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2691 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2692 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2693 | # the declaration of exit, since it's the most demanding environment. |
| 2694 | cat >conftest.$ac_ext <<_ACEOF |
| 2695 | #ifndef __cplusplus |
| 2696 | choke me |
| 2697 | #endif |
| 2698 | _ACEOF |
| 2699 | rm -f conftest.$ac_objext |
| 2700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2701 | (eval $ac_compile) 2>conftest.er1 |
| 2702 | ac_status=$? |
| 2703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2704 | rm -f conftest.er1 |
| 2705 | cat conftest.err >&5 |
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2707 | (exit $ac_status); } && |
| 2708 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2710 | (eval $ac_try) 2>&5 |
| 2711 | ac_status=$? |
| 2712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2713 | (exit $ac_status); }; } && |
| 2714 | { ac_try='test -s conftest.$ac_objext' |
| 2715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2716 | (eval $ac_try) 2>&5 |
| 2717 | ac_status=$? |
| 2718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2719 | (exit $ac_status); }; }; then |
| 2720 | for ac_declaration in \ |
| 2721 | '' \ |
| 2722 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2723 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2724 | 'extern "C" void exit (int) throw ();' \ |
| 2725 | 'extern "C" void exit (int);' \ |
| 2726 | 'void exit (int);' |
| 2727 | do |
| 2728 | cat >conftest.$ac_ext <<_ACEOF |
| 2729 | /* confdefs.h. */ |
| 2730 | _ACEOF |
| 2731 | cat confdefs.h >>conftest.$ac_ext |
| 2732 | cat >>conftest.$ac_ext <<_ACEOF |
| 2733 | /* end confdefs.h. */ |
| 2734 | $ac_declaration |
| 2735 | #include <stdlib.h> |
| 2736 | int |
| 2737 | main () |
| 2738 | { |
| 2739 | exit (42); |
| 2740 | ; |
| 2741 | return 0; |
| 2742 | } |
| 2743 | _ACEOF |
| 2744 | rm -f conftest.$ac_objext |
| 2745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2746 | (eval $ac_compile) 2>conftest.er1 |
| 2747 | ac_status=$? |
| 2748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2749 | rm -f conftest.er1 |
| 2750 | cat conftest.err >&5 |
| 2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2752 | (exit $ac_status); } && |
| 2753 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2755 | (eval $ac_try) 2>&5 |
| 2756 | ac_status=$? |
| 2757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2758 | (exit $ac_status); }; } && |
| 2759 | { ac_try='test -s conftest.$ac_objext' |
| 2760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2761 | (eval $ac_try) 2>&5 |
| 2762 | ac_status=$? |
| 2763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2764 | (exit $ac_status); }; }; then |
| 2765 | : |
| 2766 | else |
| 2767 | echo "$as_me: failed program was:" >&5 |
| 2768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2769 | |
| 2770 | continue |
| 2771 | fi |
| 2772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2773 | cat >conftest.$ac_ext <<_ACEOF |
| 2774 | /* confdefs.h. */ |
| 2775 | _ACEOF |
| 2776 | cat confdefs.h >>conftest.$ac_ext |
| 2777 | cat >>conftest.$ac_ext <<_ACEOF |
| 2778 | /* end confdefs.h. */ |
| 2779 | $ac_declaration |
| 2780 | int |
| 2781 | main () |
| 2782 | { |
| 2783 | exit (42); |
| 2784 | ; |
| 2785 | return 0; |
| 2786 | } |
| 2787 | _ACEOF |
| 2788 | rm -f conftest.$ac_objext |
| 2789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2790 | (eval $ac_compile) 2>conftest.er1 |
| 2791 | ac_status=$? |
| 2792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2793 | rm -f conftest.er1 |
| 2794 | cat conftest.err >&5 |
| 2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2796 | (exit $ac_status); } && |
| 2797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2799 | (eval $ac_try) 2>&5 |
| 2800 | ac_status=$? |
| 2801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2802 | (exit $ac_status); }; } && |
| 2803 | { ac_try='test -s conftest.$ac_objext' |
| 2804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2805 | (eval $ac_try) 2>&5 |
| 2806 | ac_status=$? |
| 2807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2808 | (exit $ac_status); }; }; then |
| 2809 | break |
| 2810 | else |
| 2811 | echo "$as_me: failed program was:" >&5 |
| 2812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2813 | |
| 2814 | fi |
| 2815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2816 | done |
| 2817 | rm -f conftest* |
| 2818 | if test -n "$ac_declaration"; then |
| 2819 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2820 | echo $ac_declaration >>confdefs.h |
| 2821 | echo '#endif' >>confdefs.h |
| 2822 | fi |
| 2823 | |
| 2824 | else |
| 2825 | echo "$as_me: failed program was:" >&5 |
| 2826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2827 | |
| 2828 | fi |
| 2829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2830 | ac_ext=c |
| 2831 | ac_cpp='$CPP $CPPFLAGS' |
| 2832 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2833 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2834 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2835 | DEPDIR="${am__leading_dot}deps" |
| 2836 | |
| 2837 | ac_config_commands="$ac_config_commands depfiles" |
| 2838 | |
| 2839 | |
| 2840 | am_make=${MAKE-make} |
| 2841 | cat > confinc << 'END' |
| 2842 | am__doit: |
| 2843 | @echo done |
| 2844 | .PHONY: am__doit |
| 2845 | END |
| 2846 | # If we don't find an include directive, just comment out the code. |
| 2847 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2848 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 2849 | am__include="#" |
| 2850 | am__quote= |
| 2851 | _am_result=none |
| 2852 | # First try GNU make style include. |
| 2853 | echo "include confinc" > confmf |
| 2854 | # We grep out `Entering directory' and `Leaving directory' |
| 2855 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2856 | # In particular we don't look at `^make:' because GNU make might |
| 2857 | # be invoked under some other name (usually "gmake"), in which |
| 2858 | # case it prints its new name instead of `make'. |
| 2859 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 2860 | am__include=include |
| 2861 | am__quote= |
| 2862 | _am_result=GNU |
| 2863 | fi |
| 2864 | # Now try BSD make style include. |
| 2865 | if test "$am__include" = "#"; then |
| 2866 | echo '.include "confinc"' > confmf |
| 2867 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2868 | am__include=.include |
| 2869 | am__quote="\"" |
| 2870 | _am_result=BSD |
| 2871 | fi |
| 2872 | fi |
| 2873 | |
| 2874 | |
| 2875 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2876 | echo "${ECHO_T}$_am_result" >&6 |
| 2877 | rm -f confinc confmf |
| 2878 | |
| 2879 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2880 | if test "${enable_dependency_tracking+set}" = set; then |
| 2881 | enableval="$enable_dependency_tracking" |
| 2882 | |
| 2883 | fi; |
| 2884 | if test "x$enable_dependency_tracking" != xno; then |
| 2885 | am_depcomp="$ac_aux_dir/depcomp" |
| 2886 | AMDEPBACKSLASH='\' |
| 2887 | fi |
| 2888 | |
| 2889 | |
| 2890 | if test "x$enable_dependency_tracking" != xno; then |
| 2891 | AMDEP_TRUE= |
| 2892 | AMDEP_FALSE='#' |
| 2893 | else |
| 2894 | AMDEP_TRUE='#' |
| 2895 | AMDEP_FALSE= |
| 2896 | fi |
| 2897 | |
| 2898 | |
| 2899 | |
| 2900 | |
| 2901 | depcc="$CC" am_compiler_list= |
| 2902 | |
| 2903 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2904 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2905 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2907 | else |
| 2908 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2909 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2910 | # making bogus files that we don't know about and never remove. For |
| 2911 | # instance it was reported that on HP-UX the gcc test will end up |
| 2912 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2913 | # in D'. |
| 2914 | mkdir conftest.dir |
| 2915 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2916 | # using a relative directory. |
| 2917 | cp "$am_depcomp" conftest.dir |
| 2918 | cd conftest.dir |
| 2919 | # We will build objects and dependencies in a subdirectory because |
| 2920 | # it helps to detect inapplicable dependency modes. For instance |
| 2921 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 2922 | # side effect of compilation, but ICC will put the dependencies in |
| 2923 | # the current directory while Tru64 will put them in the object |
| 2924 | # directory. |
| 2925 | mkdir sub |
| 2926 | |
| 2927 | am_cv_CC_dependencies_compiler_type=none |
| 2928 | if test "$am_compiler_list" = ""; then |
| 2929 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2930 | fi |
| 2931 | for depmode in $am_compiler_list; do |
| 2932 | # Setup a source with many dependencies, because some compilers |
| 2933 | # like to wrap large dependency lists on column 80 (with \), and |
| 2934 | # we should not choose a depcomp mode which is confused by this. |
| 2935 | # |
| 2936 | # We need to recreate these files for each test, as the compiler may |
| 2937 | # overwrite some of them when testing with obscure command lines. |
| 2938 | # This happens at least with the AIX C compiler. |
| 2939 | : > sub/conftest.c |
| 2940 | for i in 1 2 3 4 5 6; do |
| 2941 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 2942 | : > sub/conftst$i.h |
| 2943 | done |
| 2944 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 2945 | |
| 2946 | case $depmode in |
| 2947 | nosideeffect) |
| 2948 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2949 | # only be used when explicitly requested |
| 2950 | if test "x$enable_dependency_tracking" = xyes; then |
| 2951 | continue |
| 2952 | else |
| 2953 | break |
| 2954 | fi |
| 2955 | ;; |
| 2956 | none) break ;; |
| 2957 | esac |
| 2958 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2959 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2960 | # handle `-M -o', and we need to detect this. |
| 2961 | if depmode=$depmode \ |
| 2962 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 2963 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 2964 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 2965 | >/dev/null 2>conftest.err && |
| 2966 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 2967 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 2968 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2969 | # icc doesn't choke on unknown options, it will just issue warnings |
| 2970 | # (even with -Werror). So we grep stderr for any message |
| 2971 | # that says an option was ignored. |
| 2972 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
| 2973 | am_cv_CC_dependencies_compiler_type=$depmode |
| 2974 | break |
| 2975 | fi |
| 2976 | fi |
| 2977 | done |
| 2978 | |
| 2979 | cd .. |
| 2980 | rm -rf conftest.dir |
| 2981 | else |
| 2982 | am_cv_CC_dependencies_compiler_type=none |
| 2983 | fi |
| 2984 | |
| 2985 | fi |
| 2986 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2987 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 2988 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 2989 | |
| 2990 | |
| 2991 | |
| 2992 | if |
| 2993 | test "x$enable_dependency_tracking" != xno \ |
| 2994 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 2995 | am__fastdepCC_TRUE= |
| 2996 | am__fastdepCC_FALSE='#' |
| 2997 | else |
| 2998 | am__fastdepCC_TRUE='#' |
| 2999 | am__fastdepCC_FALSE= |
| 3000 | fi |
| 3001 | |
| 3002 | |
| 3003 | # Check whether --enable-shared or --disable-shared was given. |
| 3004 | if test "${enable_shared+set}" = set; then |
| 3005 | enableval="$enable_shared" |
| 3006 | p=${PACKAGE-default} |
| 3007 | case $enableval in |
| 3008 | yes) enable_shared=yes ;; |
| 3009 | no) enable_shared=no ;; |
| 3010 | *) |
| 3011 | enable_shared=no |
| 3012 | # Look at the argument we got. We use all the common list separators. |
| 3013 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3014 | for pkg in $enableval; do |
| 3015 | IFS="$lt_save_ifs" |
| 3016 | if test "X$pkg" = "X$p"; then |
| 3017 | enable_shared=yes |
| 3018 | fi |
| 3019 | done |
| 3020 | IFS="$lt_save_ifs" |
| 3021 | ;; |
| 3022 | esac |
| 3023 | else |
| 3024 | enable_shared=yes |
| 3025 | fi; |
| 3026 | |
| 3027 | # Check whether --enable-static or --disable-static was given. |
| 3028 | if test "${enable_static+set}" = set; then |
| 3029 | enableval="$enable_static" |
| 3030 | p=${PACKAGE-default} |
| 3031 | case $enableval in |
| 3032 | yes) enable_static=yes ;; |
| 3033 | no) enable_static=no ;; |
| 3034 | *) |
| 3035 | enable_static=no |
| 3036 | # Look at the argument we got. We use all the common list separators. |
| 3037 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3038 | for pkg in $enableval; do |
| 3039 | IFS="$lt_save_ifs" |
| 3040 | if test "X$pkg" = "X$p"; then |
| 3041 | enable_static=yes |
| 3042 | fi |
| 3043 | done |
| 3044 | IFS="$lt_save_ifs" |
| 3045 | ;; |
| 3046 | esac |
| 3047 | else |
| 3048 | enable_static=yes |
| 3049 | fi; |
| 3050 | |
| 3051 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 3052 | if test "${enable_fast_install+set}" = set; then |
| 3053 | enableval="$enable_fast_install" |
| 3054 | p=${PACKAGE-default} |
| 3055 | case $enableval in |
| 3056 | yes) enable_fast_install=yes ;; |
| 3057 | no) enable_fast_install=no ;; |
| 3058 | *) |
| 3059 | enable_fast_install=no |
| 3060 | # Look at the argument we got. We use all the common list separators. |
| 3061 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3062 | for pkg in $enableval; do |
| 3063 | IFS="$lt_save_ifs" |
| 3064 | if test "X$pkg" = "X$p"; then |
| 3065 | enable_fast_install=yes |
| 3066 | fi |
| 3067 | done |
| 3068 | IFS="$lt_save_ifs" |
| 3069 | ;; |
| 3070 | esac |
| 3071 | else |
| 3072 | enable_fast_install=yes |
| 3073 | fi; |
| 3074 | |
| 3075 | # Make sure we can run config.sub. |
| 3076 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 3077 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 3078 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 3079 | { (exit 1); exit 1; }; } |
| 3080 | |
| 3081 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 3082 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 3083 | if test "${ac_cv_build+set}" = set; then |
| 3084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3085 | else |
| 3086 | ac_cv_build_alias=$build_alias |
| 3087 | test -z "$ac_cv_build_alias" && |
| 3088 | ac_cv_build_alias=`$ac_config_guess` |
| 3089 | test -z "$ac_cv_build_alias" && |
| 3090 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3091 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3092 | { (exit 1); exit 1; }; } |
| 3093 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 3094 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 3095 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 3096 | { (exit 1); exit 1; }; } |
| 3097 | |
| 3098 | fi |
| 3099 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3100 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 3101 | build=$ac_cv_build |
| 3102 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3103 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3104 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3105 | |
| 3106 | |
| 3107 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 3108 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 3109 | if test "${ac_cv_host+set}" = set; then |
| 3110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3111 | else |
| 3112 | ac_cv_host_alias=$host_alias |
| 3113 | test -z "$ac_cv_host_alias" && |
| 3114 | ac_cv_host_alias=$ac_cv_build_alias |
| 3115 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 3116 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 3117 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 3118 | { (exit 1); exit 1; }; } |
| 3119 | |
| 3120 | fi |
| 3121 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3122 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 3123 | host=$ac_cv_host |
| 3124 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3125 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3126 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3127 | |
| 3128 | |
| 3129 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3130 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3131 | if test "${lt_cv_path_SED+set}" = set; then |
| 3132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3133 | else |
| 3134 | # Loop through the user's path and test for sed and gsed. |
| 3135 | # Then use that list of sed's as ones to test for truncation. |
| 3136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3137 | for as_dir in $PATH |
| 3138 | do |
| 3139 | IFS=$as_save_IFS |
| 3140 | test -z "$as_dir" && as_dir=. |
| 3141 | for lt_ac_prog in sed gsed; do |
| 3142 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3143 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 3144 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 3145 | fi |
| 3146 | done |
| 3147 | done |
| 3148 | done |
| 3149 | lt_ac_max=0 |
| 3150 | lt_ac_count=0 |
| 3151 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3152 | # along with /bin/sed that truncates output. |
| 3153 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3154 | test ! -f $lt_ac_sed && break |
| 3155 | cat /dev/null > conftest.in |
| 3156 | lt_ac_count=0 |
| 3157 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3158 | # Check for GNU sed and select it if it is found. |
| 3159 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 3160 | lt_cv_path_SED=$lt_ac_sed |
| 3161 | break |
| 3162 | fi |
| 3163 | while true; do |
| 3164 | cat conftest.in conftest.in >conftest.tmp |
| 3165 | mv conftest.tmp conftest.in |
| 3166 | cp conftest.in conftest.nl |
| 3167 | echo >>conftest.nl |
| 3168 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 3169 | cmp -s conftest.out conftest.nl || break |
| 3170 | # 10000 chars as input seems more than enough |
| 3171 | test $lt_ac_count -gt 10 && break |
| 3172 | lt_ac_count=`expr $lt_ac_count + 1` |
| 3173 | if test $lt_ac_count -gt $lt_ac_max; then |
| 3174 | lt_ac_max=$lt_ac_count |
| 3175 | lt_cv_path_SED=$lt_ac_sed |
| 3176 | fi |
| 3177 | done |
| 3178 | done |
| 3179 | SED=$lt_cv_path_SED |
| 3180 | |
| 3181 | fi |
| 3182 | |
| 3183 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3184 | echo "${ECHO_T}$SED" >&6 |
| 3185 | |
| 3186 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3187 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3188 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3190 | else |
| 3191 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3192 | then ac_cv_prog_egrep='grep -E' |
| 3193 | else ac_cv_prog_egrep='egrep' |
| 3194 | fi |
| 3195 | fi |
| 3196 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3197 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3198 | EGREP=$ac_cv_prog_egrep |
| 3199 | |
| 3200 | |
| 3201 | |
| 3202 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3203 | if test "${with_gnu_ld+set}" = set; then |
| 3204 | withval="$with_gnu_ld" |
| 3205 | test "$withval" = no || with_gnu_ld=yes |
| 3206 | else |
| 3207 | with_gnu_ld=no |
| 3208 | fi; |
| 3209 | ac_prog=ld |
| 3210 | if test "$GCC" = yes; then |
| 3211 | # Check if gcc -print-prog-name=ld gives a path. |
| 3212 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 3213 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 3214 | case $host in |
| 3215 | *-*-mingw*) |
| 3216 | # gcc leaves a trailing carriage return which upsets mingw |
| 3217 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3218 | *) |
| 3219 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3220 | esac |
| 3221 | case $ac_prog in |
| 3222 | # Accept absolute paths. |
| 3223 | [\\/]* | ?:[\\/]*) |
| 3224 | re_direlt='/[^/][^/]*/\.\./' |
| 3225 | # Canonicalize the pathname of ld |
| 3226 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 3227 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3228 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 3229 | done |
| 3230 | test -z "$LD" && LD="$ac_prog" |
| 3231 | ;; |
| 3232 | "") |
| 3233 | # If it fails, then pretend we aren't using GCC. |
| 3234 | ac_prog=ld |
| 3235 | ;; |
| 3236 | *) |
| 3237 | # If it is relative, then search for the first ld in PATH. |
| 3238 | with_gnu_ld=unknown |
| 3239 | ;; |
| 3240 | esac |
| 3241 | elif test "$with_gnu_ld" = yes; then |
| 3242 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3243 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3244 | else |
| 3245 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3246 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3247 | fi |
| 3248 | if test "${lt_cv_path_LD+set}" = set; then |
| 3249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3250 | else |
| 3251 | if test -z "$LD"; then |
| 3252 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3253 | for ac_dir in $PATH; do |
| 3254 | IFS="$lt_save_ifs" |
| 3255 | test -z "$ac_dir" && ac_dir=. |
| 3256 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3257 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3258 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3259 | # but apparently some GNU ld's only accept -v. |
| 3260 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 3261 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3262 | *GNU* | *'with BFD'*) |
| 3263 | test "$with_gnu_ld" != no && break |
| 3264 | ;; |
| 3265 | *) |
| 3266 | test "$with_gnu_ld" != yes && break |
| 3267 | ;; |
| 3268 | esac |
| 3269 | fi |
| 3270 | done |
| 3271 | IFS="$lt_save_ifs" |
| 3272 | else |
| 3273 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3274 | fi |
| 3275 | fi |
| 3276 | |
| 3277 | LD="$lt_cv_path_LD" |
| 3278 | if test -n "$LD"; then |
| 3279 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3280 | echo "${ECHO_T}$LD" >&6 |
| 3281 | else |
| 3282 | echo "$as_me:$LINENO: result: no" >&5 |
| 3283 | echo "${ECHO_T}no" >&6 |
| 3284 | fi |
| 3285 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3286 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3287 | { (exit 1); exit 1; }; } |
| 3288 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3289 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 3290 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 3291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3292 | else |
| 3293 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 3294 | case `$LD -v 2>&1 </dev/null` in |
| 3295 | *GNU* | *'with BFD'*) |
| 3296 | lt_cv_prog_gnu_ld=yes |
| 3297 | ;; |
| 3298 | *) |
| 3299 | lt_cv_prog_gnu_ld=no |
| 3300 | ;; |
| 3301 | esac |
| 3302 | fi |
| 3303 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3304 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3305 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 3306 | |
| 3307 | |
| 3308 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3309 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3310 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3312 | else |
| 3313 | lt_cv_ld_reload_flag='-r' |
| 3314 | fi |
| 3315 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3316 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3317 | reload_flag=$lt_cv_ld_reload_flag |
| 3318 | case $reload_flag in |
| 3319 | "" | " "*) ;; |
| 3320 | *) reload_flag=" $reload_flag" ;; |
| 3321 | esac |
| 3322 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3323 | |
| 3324 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3325 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 3326 | if test "${lt_cv_path_NM+set}" = set; then |
| 3327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3328 | else |
| 3329 | if test -n "$NM"; then |
| 3330 | # Let the user override the test. |
| 3331 | lt_cv_path_NM="$NM" |
| 3332 | else |
| 3333 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3334 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 3335 | IFS="$lt_save_ifs" |
| 3336 | test -z "$ac_dir" && ac_dir=. |
| 3337 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 3338 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 3339 | # Check to see if the nm accepts a BSD-compat flag. |
| 3340 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3341 | # nm: unknown option "B" ignored |
| 3342 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3343 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3344 | */dev/null* | *'Invalid file or object type'*) |
| 3345 | lt_cv_path_NM="$tmp_nm -B" |
| 3346 | break |
| 3347 | ;; |
| 3348 | *) |
| 3349 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3350 | */dev/null*) |
| 3351 | lt_cv_path_NM="$tmp_nm -p" |
| 3352 | break |
| 3353 | ;; |
| 3354 | *) |
| 3355 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3356 | continue # so that we can try to find one that supports BSD flags |
| 3357 | ;; |
| 3358 | esac |
| 3359 | esac |
| 3360 | fi |
| 3361 | done |
| 3362 | IFS="$lt_save_ifs" |
| 3363 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 3364 | fi |
| 3365 | fi |
| 3366 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 3367 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| 3368 | NM="$lt_cv_path_NM" |
| 3369 | |
| 3370 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3371 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3372 | LN_S=$as_ln_s |
| 3373 | if test "$LN_S" = "ln -s"; then |
| 3374 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3375 | echo "${ECHO_T}yes" >&6 |
| 3376 | else |
| 3377 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3378 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3379 | fi |
| 3380 | |
| 3381 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3382 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 3383 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3385 | else |
| 3386 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3387 | lt_cv_file_magic_test_file= |
| 3388 | lt_cv_deplibs_check_method='unknown' |
| 3389 | # Need to set the preceding variable on all platforms that support |
| 3390 | # interlibrary dependencies. |
| 3391 | # 'none' -- dependencies not supported. |
| 3392 | # `unknown' -- same as none, but documents that we really don't know. |
| 3393 | # 'pass_all' -- all dependencies passed with no checks. |
| 3394 | # 'test_compile' -- check by making test program. |
| 3395 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 3396 | # which responds to the $file_magic_cmd with a given extended regex. |
| 3397 | # If you have `file' or equivalent on your system and you're not sure |
| 3398 | # whether `pass_all' will *always* work, you probably want this one. |
| 3399 | |
| 3400 | case $host_os in |
| 3401 | aix4* | aix5*) |
| 3402 | lt_cv_deplibs_check_method=pass_all |
| 3403 | ;; |
| 3404 | |
| 3405 | beos*) |
| 3406 | lt_cv_deplibs_check_method=pass_all |
| 3407 | ;; |
| 3408 | |
| 3409 | bsdi4*) |
| 3410 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3411 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3412 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3413 | ;; |
| 3414 | |
| 3415 | cygwin*) |
| 3416 | # win32_libid is a shell function defined in ltmain.sh |
| 3417 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 3418 | lt_cv_file_magic_cmd='win32_libid' |
| 3419 | ;; |
| 3420 | |
| 3421 | mingw* | pw32*) |
| 3422 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 3423 | # win32_libid shell function, so use a weaker test based on 'objdump'. |
| 3424 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3425 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3426 | ;; |
| 3427 | |
| 3428 | darwin* | rhapsody*) |
| 3429 | lt_cv_deplibs_check_method=pass_all |
| 3430 | ;; |
| 3431 | |
| 3432 | freebsd* | kfreebsd*-gnu) |
| 3433 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3434 | case $host_cpu in |
| 3435 | i*86 ) |
| 3436 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3437 | # Let's accept both of them until this is cleared up. |
| 3438 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 3439 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3440 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3441 | ;; |
| 3442 | esac |
| 3443 | else |
| 3444 | lt_cv_deplibs_check_method=pass_all |
| 3445 | fi |
| 3446 | ;; |
| 3447 | |
| 3448 | gnu*) |
| 3449 | lt_cv_deplibs_check_method=pass_all |
| 3450 | ;; |
| 3451 | |
| 3452 | hpux10.20* | hpux11*) |
| 3453 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3454 | case "$host_cpu" in |
| 3455 | ia64*) |
| 3456 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 3457 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 3458 | ;; |
| 3459 | hppa*64*) |
| 3460 | 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]' |
| 3461 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 3462 | ;; |
| 3463 | *) |
| 3464 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3465 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3466 | ;; |
| 3467 | esac |
| 3468 | ;; |
| 3469 | |
| 3470 | irix5* | irix6* | nonstopux*) |
| 3471 | case $LD in |
| 3472 | *-32|*"-32 ") libmagic=32-bit;; |
| 3473 | *-n32|*"-n32 ") libmagic=N32;; |
| 3474 | *-64|*"-64 ") libmagic=64-bit;; |
| 3475 | *) libmagic=never-match;; |
| 3476 | esac |
| 3477 | lt_cv_deplibs_check_method=pass_all |
| 3478 | ;; |
| 3479 | |
| 3480 | # This must be Linux ELF. |
| 3481 | linux*) |
| 3482 | lt_cv_deplibs_check_method=pass_all |
| 3483 | ;; |
| 3484 | |
| 3485 | netbsd* | knetbsd*-gnu) |
| 3486 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3487 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 3488 | else |
| 3489 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 3490 | fi |
| 3491 | ;; |
| 3492 | |
| 3493 | newos6*) |
| 3494 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3495 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3496 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3497 | ;; |
| 3498 | |
| 3499 | nto-qnx*) |
| 3500 | lt_cv_deplibs_check_method=unknown |
| 3501 | ;; |
| 3502 | |
| 3503 | openbsd*) |
| 3504 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3505 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3506 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3507 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 3508 | else |
| 3509 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3510 | fi |
| 3511 | ;; |
| 3512 | |
| 3513 | osf3* | osf4* | osf5*) |
| 3514 | lt_cv_deplibs_check_method=pass_all |
| 3515 | ;; |
| 3516 | |
| 3517 | sco3.2v5*) |
| 3518 | lt_cv_deplibs_check_method=pass_all |
| 3519 | ;; |
| 3520 | |
| 3521 | solaris*) |
| 3522 | lt_cv_deplibs_check_method=pass_all |
| 3523 | ;; |
| 3524 | |
| 3525 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3526 | case $host_vendor in |
| 3527 | motorola) |
| 3528 | 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]' |
| 3529 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3530 | ;; |
| 3531 | ncr) |
| 3532 | lt_cv_deplibs_check_method=pass_all |
| 3533 | ;; |
| 3534 | sequent) |
| 3535 | lt_cv_file_magic_cmd='/bin/file' |
| 3536 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3537 | ;; |
| 3538 | sni) |
| 3539 | lt_cv_file_magic_cmd='/bin/file' |
| 3540 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3541 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3542 | ;; |
| 3543 | siemens) |
| 3544 | lt_cv_deplibs_check_method=pass_all |
| 3545 | ;; |
| 3546 | esac |
| 3547 | ;; |
| 3548 | |
| 3549 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 3550 | lt_cv_deplibs_check_method=pass_all |
| 3551 | ;; |
| 3552 | esac |
| 3553 | |
| 3554 | fi |
| 3555 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3556 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3557 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3558 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 3559 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 3560 | |
| 3561 | |
| 3562 | |
| 3563 | |
| 3564 | # If no C compiler was specified, use CC. |
| 3565 | LTCC=${LTCC-"$CC"} |
| 3566 | |
| 3567 | # Allow CC to be a program name with arguments. |
| 3568 | compiler=$CC |
| 3569 | |
| 3570 | |
| 3571 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 3572 | if test "${enable_libtool_lock+set}" = set; then |
| 3573 | enableval="$enable_libtool_lock" |
| 3574 | |
| 3575 | fi; |
| 3576 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 3577 | |
| 3578 | # Some flags need to be propagated to the compiler or linker for good |
| 3579 | # libtool support. |
| 3580 | case $host in |
| 3581 | ia64-*-hpux*) |
| 3582 | # Find out which ABI we are using. |
| 3583 | echo 'int i;' > conftest.$ac_ext |
| 3584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3585 | (eval $ac_compile) 2>&5 |
| 3586 | ac_status=$? |
| 3587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3588 | (exit $ac_status); }; then |
| 3589 | case `/usr/bin/file conftest.$ac_objext` in |
| 3590 | *ELF-32*) |
| 3591 | HPUX_IA64_MODE="32" |
| 3592 | ;; |
| 3593 | *ELF-64*) |
| 3594 | HPUX_IA64_MODE="64" |
| 3595 | ;; |
| 3596 | esac |
| 3597 | fi |
| 3598 | rm -rf conftest* |
| 3599 | ;; |
| 3600 | *-*-irix6*) |
| 3601 | # Find out which ABI we are using. |
| 3602 | echo '#line 3602 "configure"' > conftest.$ac_ext |
| 3603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3604 | (eval $ac_compile) 2>&5 |
| 3605 | ac_status=$? |
| 3606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3607 | (exit $ac_status); }; then |
| 3608 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 3609 | case `/usr/bin/file conftest.$ac_objext` in |
| 3610 | *32-bit*) |
| 3611 | LD="${LD-ld} -melf32bsmip" |
| 3612 | ;; |
| 3613 | *N32*) |
| 3614 | LD="${LD-ld} -melf32bmipn32" |
| 3615 | ;; |
| 3616 | *64-bit*) |
| 3617 | LD="${LD-ld} -melf64bmip" |
| 3618 | ;; |
| 3619 | esac |
| 3620 | else |
| 3621 | case `/usr/bin/file conftest.$ac_objext` in |
| 3622 | *32-bit*) |
| 3623 | LD="${LD-ld} -32" |
| 3624 | ;; |
| 3625 | *N32*) |
| 3626 | LD="${LD-ld} -n32" |
| 3627 | ;; |
| 3628 | *64-bit*) |
| 3629 | LD="${LD-ld} -64" |
| 3630 | ;; |
| 3631 | esac |
| 3632 | fi |
| 3633 | fi |
| 3634 | rm -rf conftest* |
| 3635 | ;; |
| 3636 | |
| 3637 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 3638 | # Find out which ABI we are using. |
| 3639 | echo 'int i;' > conftest.$ac_ext |
| 3640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3641 | (eval $ac_compile) 2>&5 |
| 3642 | ac_status=$? |
| 3643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3644 | (exit $ac_status); }; then |
| 3645 | case "`/usr/bin/file conftest.o`" in |
| 3646 | *32-bit*) |
| 3647 | case $host in |
| 3648 | x86_64-*linux*) |
| 3649 | LD="${LD-ld} -m elf_i386" |
| 3650 | ;; |
| 3651 | ppc64-*linux*|powerpc64-*linux*) |
| 3652 | LD="${LD-ld} -m elf32ppclinux" |
| 3653 | ;; |
| 3654 | s390x-*linux*) |
| 3655 | LD="${LD-ld} -m elf_s390" |
| 3656 | ;; |
| 3657 | sparc64-*linux*) |
| 3658 | LD="${LD-ld} -m elf32_sparc" |
| 3659 | ;; |
| 3660 | esac |
| 3661 | ;; |
| 3662 | *64-bit*) |
| 3663 | case $host in |
| 3664 | x86_64-*linux*) |
| 3665 | LD="${LD-ld} -m elf_x86_64" |
| 3666 | ;; |
| 3667 | ppc*-*linux*|powerpc*-*linux*) |
| 3668 | LD="${LD-ld} -m elf64ppc" |
| 3669 | ;; |
| 3670 | s390*-*linux*) |
| 3671 | LD="${LD-ld} -m elf64_s390" |
| 3672 | ;; |
| 3673 | sparc*-*linux*) |
| 3674 | LD="${LD-ld} -m elf64_sparc" |
| 3675 | ;; |
| 3676 | esac |
| 3677 | ;; |
| 3678 | esac |
| 3679 | fi |
| 3680 | rm -rf conftest* |
| 3681 | ;; |
| 3682 | |
| 3683 | *-*-sco3.2v5*) |
| 3684 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 3685 | SAVE_CFLAGS="$CFLAGS" |
| 3686 | CFLAGS="$CFLAGS -belf" |
| 3687 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 3688 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 3689 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 3690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3691 | else |
| 3692 | ac_ext=c |
| 3693 | ac_cpp='$CPP $CPPFLAGS' |
| 3694 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3695 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3696 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3697 | |
| 3698 | cat >conftest.$ac_ext <<_ACEOF |
| 3699 | /* confdefs.h. */ |
| 3700 | _ACEOF |
| 3701 | cat confdefs.h >>conftest.$ac_ext |
| 3702 | cat >>conftest.$ac_ext <<_ACEOF |
| 3703 | /* end confdefs.h. */ |
| 3704 | |
| 3705 | int |
| 3706 | main () |
| 3707 | { |
| 3708 | |
| 3709 | ; |
| 3710 | return 0; |
| 3711 | } |
| 3712 | _ACEOF |
| 3713 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3715 | (eval $ac_link) 2>conftest.er1 |
| 3716 | ac_status=$? |
| 3717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3718 | rm -f conftest.er1 |
| 3719 | cat conftest.err >&5 |
| 3720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3721 | (exit $ac_status); } && |
| 3722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3724 | (eval $ac_try) 2>&5 |
| 3725 | ac_status=$? |
| 3726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3727 | (exit $ac_status); }; } && |
| 3728 | { ac_try='test -s conftest$ac_exeext' |
| 3729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3730 | (eval $ac_try) 2>&5 |
| 3731 | ac_status=$? |
| 3732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3733 | (exit $ac_status); }; }; then |
| 3734 | lt_cv_cc_needs_belf=yes |
| 3735 | else |
| 3736 | echo "$as_me: failed program was:" >&5 |
| 3737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3738 | |
| 3739 | lt_cv_cc_needs_belf=no |
| 3740 | fi |
| 3741 | rm -f conftest.err conftest.$ac_objext \ |
| 3742 | conftest$ac_exeext conftest.$ac_ext |
| 3743 | ac_ext=c |
| 3744 | ac_cpp='$CPP $CPPFLAGS' |
| 3745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3748 | |
| 3749 | fi |
| 3750 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 3751 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 3752 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 3753 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 3754 | CFLAGS="$SAVE_CFLAGS" |
| 3755 | fi |
| 3756 | ;; |
| 3757 | |
| 3758 | esac |
| 3759 | |
| 3760 | need_locks="$enable_libtool_lock" |
| 3761 | |
| 3762 | |
| 3763 | ac_ext=c |
| 3764 | ac_cpp='$CPP $CPPFLAGS' |
| 3765 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3766 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3767 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3768 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3769 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3770 | # On Suns, sometimes $CPP names a directory. |
| 3771 | if test -n "$CPP" && test -d "$CPP"; then |
| 3772 | CPP= |
| 3773 | fi |
| 3774 | if test -z "$CPP"; then |
| 3775 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3777 | else |
| 3778 | # Double quotes because CPP needs to be expanded |
| 3779 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3780 | do |
| 3781 | ac_preproc_ok=false |
| 3782 | for ac_c_preproc_warn_flag in '' yes |
| 3783 | do |
| 3784 | # Use a header file that comes with gcc, so configuring glibc |
| 3785 | # with a fresh cross-compiler works. |
| 3786 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3787 | # <limits.h> exists even on freestanding compilers. |
| 3788 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3789 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3790 | cat >conftest.$ac_ext <<_ACEOF |
| 3791 | /* confdefs.h. */ |
| 3792 | _ACEOF |
| 3793 | cat confdefs.h >>conftest.$ac_ext |
| 3794 | cat >>conftest.$ac_ext <<_ACEOF |
| 3795 | /* end confdefs.h. */ |
| 3796 | #ifdef __STDC__ |
| 3797 | # include <limits.h> |
| 3798 | #else |
| 3799 | # include <assert.h> |
| 3800 | #endif |
| 3801 | Syntax error |
| 3802 | _ACEOF |
| 3803 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3804 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3805 | ac_status=$? |
| 3806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3807 | rm -f conftest.er1 |
| 3808 | cat conftest.err >&5 |
| 3809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3810 | (exit $ac_status); } >/dev/null; then |
| 3811 | if test -s conftest.err; then |
| 3812 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3813 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3814 | else |
| 3815 | ac_cpp_err= |
| 3816 | fi |
| 3817 | else |
| 3818 | ac_cpp_err=yes |
| 3819 | fi |
| 3820 | if test -z "$ac_cpp_err"; then |
| 3821 | : |
| 3822 | else |
| 3823 | echo "$as_me: failed program was:" >&5 |
| 3824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3825 | |
| 3826 | # Broken: fails on valid input. |
| 3827 | continue |
| 3828 | fi |
| 3829 | rm -f conftest.err conftest.$ac_ext |
| 3830 | |
| 3831 | # OK, works on sane cases. Now check whether non-existent headers |
| 3832 | # can be detected and how. |
| 3833 | cat >conftest.$ac_ext <<_ACEOF |
| 3834 | /* confdefs.h. */ |
| 3835 | _ACEOF |
| 3836 | cat confdefs.h >>conftest.$ac_ext |
| 3837 | cat >>conftest.$ac_ext <<_ACEOF |
| 3838 | /* end confdefs.h. */ |
| 3839 | #include <ac_nonexistent.h> |
| 3840 | _ACEOF |
| 3841 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3842 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3843 | ac_status=$? |
| 3844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3845 | rm -f conftest.er1 |
| 3846 | cat conftest.err >&5 |
| 3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3848 | (exit $ac_status); } >/dev/null; then |
| 3849 | if test -s conftest.err; then |
| 3850 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3851 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3852 | else |
| 3853 | ac_cpp_err= |
| 3854 | fi |
| 3855 | else |
| 3856 | ac_cpp_err=yes |
| 3857 | fi |
| 3858 | if test -z "$ac_cpp_err"; then |
| 3859 | # Broken: success on invalid input. |
| 3860 | continue |
| 3861 | else |
| 3862 | echo "$as_me: failed program was:" >&5 |
| 3863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3864 | |
| 3865 | # Passes both tests. |
| 3866 | ac_preproc_ok=: |
| 3867 | break |
| 3868 | fi |
| 3869 | rm -f conftest.err conftest.$ac_ext |
| 3870 | |
| 3871 | done |
| 3872 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3873 | rm -f conftest.err conftest.$ac_ext |
| 3874 | if $ac_preproc_ok; then |
| 3875 | break |
| 3876 | fi |
| 3877 | |
| 3878 | done |
| 3879 | ac_cv_prog_CPP=$CPP |
| 3880 | |
| 3881 | fi |
| 3882 | CPP=$ac_cv_prog_CPP |
| 3883 | else |
| 3884 | ac_cv_prog_CPP=$CPP |
| 3885 | fi |
| 3886 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3887 | echo "${ECHO_T}$CPP" >&6 |
| 3888 | ac_preproc_ok=false |
| 3889 | for ac_c_preproc_warn_flag in '' yes |
| 3890 | do |
| 3891 | # Use a header file that comes with gcc, so configuring glibc |
| 3892 | # with a fresh cross-compiler works. |
| 3893 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3894 | # <limits.h> exists even on freestanding compilers. |
| 3895 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3896 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3897 | cat >conftest.$ac_ext <<_ACEOF |
| 3898 | /* confdefs.h. */ |
| 3899 | _ACEOF |
| 3900 | cat confdefs.h >>conftest.$ac_ext |
| 3901 | cat >>conftest.$ac_ext <<_ACEOF |
| 3902 | /* end confdefs.h. */ |
| 3903 | #ifdef __STDC__ |
| 3904 | # include <limits.h> |
| 3905 | #else |
| 3906 | # include <assert.h> |
| 3907 | #endif |
| 3908 | Syntax error |
| 3909 | _ACEOF |
| 3910 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3911 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3912 | ac_status=$? |
| 3913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3914 | rm -f conftest.er1 |
| 3915 | cat conftest.err >&5 |
| 3916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3917 | (exit $ac_status); } >/dev/null; then |
| 3918 | if test -s conftest.err; then |
| 3919 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3920 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3921 | else |
| 3922 | ac_cpp_err= |
| 3923 | fi |
| 3924 | else |
| 3925 | ac_cpp_err=yes |
| 3926 | fi |
| 3927 | if test -z "$ac_cpp_err"; then |
| 3928 | : |
| 3929 | else |
| 3930 | echo "$as_me: failed program was:" >&5 |
| 3931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3932 | |
| 3933 | # Broken: fails on valid input. |
| 3934 | continue |
| 3935 | fi |
| 3936 | rm -f conftest.err conftest.$ac_ext |
| 3937 | |
| 3938 | # OK, works on sane cases. Now check whether non-existent headers |
| 3939 | # can be detected and how. |
| 3940 | cat >conftest.$ac_ext <<_ACEOF |
| 3941 | /* confdefs.h. */ |
| 3942 | _ACEOF |
| 3943 | cat confdefs.h >>conftest.$ac_ext |
| 3944 | cat >>conftest.$ac_ext <<_ACEOF |
| 3945 | /* end confdefs.h. */ |
| 3946 | #include <ac_nonexistent.h> |
| 3947 | _ACEOF |
| 3948 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3949 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3950 | ac_status=$? |
| 3951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3952 | rm -f conftest.er1 |
| 3953 | cat conftest.err >&5 |
| 3954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3955 | (exit $ac_status); } >/dev/null; then |
| 3956 | if test -s conftest.err; then |
| 3957 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3958 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3959 | else |
| 3960 | ac_cpp_err= |
| 3961 | fi |
| 3962 | else |
| 3963 | ac_cpp_err=yes |
| 3964 | fi |
| 3965 | if test -z "$ac_cpp_err"; then |
| 3966 | # Broken: success on invalid input. |
| 3967 | continue |
| 3968 | else |
| 3969 | echo "$as_me: failed program was:" >&5 |
| 3970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3971 | |
| 3972 | # Passes both tests. |
| 3973 | ac_preproc_ok=: |
| 3974 | break |
| 3975 | fi |
| 3976 | rm -f conftest.err conftest.$ac_ext |
| 3977 | |
| 3978 | done |
| 3979 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3980 | rm -f conftest.err conftest.$ac_ext |
| 3981 | if $ac_preproc_ok; then |
| 3982 | : |
| 3983 | else |
| 3984 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3985 | See \`config.log' for more details." >&5 |
| 3986 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3987 | See \`config.log' for more details." >&2;} |
| 3988 | { (exit 1); exit 1; }; } |
| 3989 | fi |
| 3990 | |
| 3991 | ac_ext=c |
| 3992 | ac_cpp='$CPP $CPPFLAGS' |
| 3993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3996 | |
| 3997 | |
| 3998 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3999 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4000 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4002 | else |
| 4003 | cat >conftest.$ac_ext <<_ACEOF |
| 4004 | /* confdefs.h. */ |
| 4005 | _ACEOF |
| 4006 | cat confdefs.h >>conftest.$ac_ext |
| 4007 | cat >>conftest.$ac_ext <<_ACEOF |
| 4008 | /* end confdefs.h. */ |
| 4009 | #include <stdlib.h> |
| 4010 | #include <stdarg.h> |
| 4011 | #include <string.h> |
| 4012 | #include <float.h> |
| 4013 | |
| 4014 | int |
| 4015 | main () |
| 4016 | { |
| 4017 | |
| 4018 | ; |
| 4019 | return 0; |
| 4020 | } |
| 4021 | _ACEOF |
| 4022 | rm -f conftest.$ac_objext |
| 4023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4024 | (eval $ac_compile) 2>conftest.er1 |
| 4025 | ac_status=$? |
| 4026 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4027 | rm -f conftest.er1 |
| 4028 | cat conftest.err >&5 |
| 4029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4030 | (exit $ac_status); } && |
| 4031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4033 | (eval $ac_try) 2>&5 |
| 4034 | ac_status=$? |
| 4035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4036 | (exit $ac_status); }; } && |
| 4037 | { ac_try='test -s conftest.$ac_objext' |
| 4038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4039 | (eval $ac_try) 2>&5 |
| 4040 | ac_status=$? |
| 4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4042 | (exit $ac_status); }; }; then |
| 4043 | ac_cv_header_stdc=yes |
| 4044 | else |
| 4045 | echo "$as_me: failed program was:" >&5 |
| 4046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4047 | |
| 4048 | ac_cv_header_stdc=no |
| 4049 | fi |
| 4050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4051 | |
| 4052 | if test $ac_cv_header_stdc = yes; then |
| 4053 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4054 | cat >conftest.$ac_ext <<_ACEOF |
| 4055 | /* confdefs.h. */ |
| 4056 | _ACEOF |
| 4057 | cat confdefs.h >>conftest.$ac_ext |
| 4058 | cat >>conftest.$ac_ext <<_ACEOF |
| 4059 | /* end confdefs.h. */ |
| 4060 | #include <string.h> |
| 4061 | |
| 4062 | _ACEOF |
| 4063 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4064 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4065 | : |
| 4066 | else |
| 4067 | ac_cv_header_stdc=no |
| 4068 | fi |
| 4069 | rm -f conftest* |
| 4070 | |
| 4071 | fi |
| 4072 | |
| 4073 | if test $ac_cv_header_stdc = yes; then |
| 4074 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4075 | cat >conftest.$ac_ext <<_ACEOF |
| 4076 | /* confdefs.h. */ |
| 4077 | _ACEOF |
| 4078 | cat confdefs.h >>conftest.$ac_ext |
| 4079 | cat >>conftest.$ac_ext <<_ACEOF |
| 4080 | /* end confdefs.h. */ |
| 4081 | #include <stdlib.h> |
| 4082 | |
| 4083 | _ACEOF |
| 4084 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4085 | $EGREP "free" >/dev/null 2>&1; then |
| 4086 | : |
| 4087 | else |
| 4088 | ac_cv_header_stdc=no |
| 4089 | fi |
| 4090 | rm -f conftest* |
| 4091 | |
| 4092 | fi |
| 4093 | |
| 4094 | if test $ac_cv_header_stdc = yes; then |
| 4095 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4096 | if test "$cross_compiling" = yes; then |
| 4097 | : |
| 4098 | else |
| 4099 | cat >conftest.$ac_ext <<_ACEOF |
| 4100 | /* confdefs.h. */ |
| 4101 | _ACEOF |
| 4102 | cat confdefs.h >>conftest.$ac_ext |
| 4103 | cat >>conftest.$ac_ext <<_ACEOF |
| 4104 | /* end confdefs.h. */ |
| 4105 | #include <ctype.h> |
| 4106 | #if ((' ' & 0x0FF) == 0x020) |
| 4107 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4108 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4109 | #else |
| 4110 | # define ISLOWER(c) \ |
| 4111 | (('a' <= (c) && (c) <= 'i') \ |
| 4112 | || ('j' <= (c) && (c) <= 'r') \ |
| 4113 | || ('s' <= (c) && (c) <= 'z')) |
| 4114 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4115 | #endif |
| 4116 | |
| 4117 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4118 | int |
| 4119 | main () |
| 4120 | { |
| 4121 | int i; |
| 4122 | for (i = 0; i < 256; i++) |
| 4123 | if (XOR (islower (i), ISLOWER (i)) |
| 4124 | || toupper (i) != TOUPPER (i)) |
| 4125 | exit(2); |
| 4126 | exit (0); |
| 4127 | } |
| 4128 | _ACEOF |
| 4129 | rm -f conftest$ac_exeext |
| 4130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4131 | (eval $ac_link) 2>&5 |
| 4132 | ac_status=$? |
| 4133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4134 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4136 | (eval $ac_try) 2>&5 |
| 4137 | ac_status=$? |
| 4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4139 | (exit $ac_status); }; }; then |
| 4140 | : |
| 4141 | else |
| 4142 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4143 | echo "$as_me: failed program was:" >&5 |
| 4144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4145 | |
| 4146 | ( exit $ac_status ) |
| 4147 | ac_cv_header_stdc=no |
| 4148 | fi |
| 4149 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4150 | fi |
| 4151 | fi |
| 4152 | fi |
| 4153 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4154 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4155 | if test $ac_cv_header_stdc = yes; then |
| 4156 | |
| 4157 | cat >>confdefs.h <<\_ACEOF |
| 4158 | #define STDC_HEADERS 1 |
| 4159 | _ACEOF |
| 4160 | |
| 4161 | fi |
| 4162 | |
| 4163 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4164 | |
| 4165 | |
| 4166 | |
| 4167 | |
| 4168 | |
| 4169 | |
| 4170 | |
| 4171 | |
| 4172 | |
| 4173 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4174 | inttypes.h stdint.h unistd.h |
| 4175 | do |
| 4176 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4177 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4178 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4181 | else |
| 4182 | cat >conftest.$ac_ext <<_ACEOF |
| 4183 | /* confdefs.h. */ |
| 4184 | _ACEOF |
| 4185 | cat confdefs.h >>conftest.$ac_ext |
| 4186 | cat >>conftest.$ac_ext <<_ACEOF |
| 4187 | /* end confdefs.h. */ |
| 4188 | $ac_includes_default |
| 4189 | |
| 4190 | #include <$ac_header> |
| 4191 | _ACEOF |
| 4192 | rm -f conftest.$ac_objext |
| 4193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4194 | (eval $ac_compile) 2>conftest.er1 |
| 4195 | ac_status=$? |
| 4196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4197 | rm -f conftest.er1 |
| 4198 | cat conftest.err >&5 |
| 4199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4200 | (exit $ac_status); } && |
| 4201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4203 | (eval $ac_try) 2>&5 |
| 4204 | ac_status=$? |
| 4205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4206 | (exit $ac_status); }; } && |
| 4207 | { ac_try='test -s conftest.$ac_objext' |
| 4208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4209 | (eval $ac_try) 2>&5 |
| 4210 | ac_status=$? |
| 4211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4212 | (exit $ac_status); }; }; then |
| 4213 | eval "$as_ac_Header=yes" |
| 4214 | else |
| 4215 | echo "$as_me: failed program was:" >&5 |
| 4216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4217 | |
| 4218 | eval "$as_ac_Header=no" |
| 4219 | fi |
| 4220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4221 | fi |
| 4222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4223 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4224 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4225 | cat >>confdefs.h <<_ACEOF |
| 4226 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4227 | _ACEOF |
| 4228 | |
| 4229 | fi |
| 4230 | |
| 4231 | done |
| 4232 | |
| 4233 | |
| 4234 | |
| 4235 | for ac_header in dlfcn.h |
| 4236 | do |
| 4237 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4238 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4239 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4240 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4241 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4243 | fi |
| 4244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4245 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4246 | else |
| 4247 | # Is the header compilable? |
| 4248 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4249 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4250 | cat >conftest.$ac_ext <<_ACEOF |
| 4251 | /* confdefs.h. */ |
| 4252 | _ACEOF |
| 4253 | cat confdefs.h >>conftest.$ac_ext |
| 4254 | cat >>conftest.$ac_ext <<_ACEOF |
| 4255 | /* end confdefs.h. */ |
| 4256 | $ac_includes_default |
| 4257 | #include <$ac_header> |
| 4258 | _ACEOF |
| 4259 | rm -f conftest.$ac_objext |
| 4260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4261 | (eval $ac_compile) 2>conftest.er1 |
| 4262 | ac_status=$? |
| 4263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4264 | rm -f conftest.er1 |
| 4265 | cat conftest.err >&5 |
| 4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4267 | (exit $ac_status); } && |
| 4268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4270 | (eval $ac_try) 2>&5 |
| 4271 | ac_status=$? |
| 4272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4273 | (exit $ac_status); }; } && |
| 4274 | { ac_try='test -s conftest.$ac_objext' |
| 4275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4276 | (eval $ac_try) 2>&5 |
| 4277 | ac_status=$? |
| 4278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4279 | (exit $ac_status); }; }; then |
| 4280 | ac_header_compiler=yes |
| 4281 | else |
| 4282 | echo "$as_me: failed program was:" >&5 |
| 4283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4284 | |
| 4285 | ac_header_compiler=no |
| 4286 | fi |
| 4287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4288 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4289 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4290 | |
| 4291 | # Is the header present? |
| 4292 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4293 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4294 | cat >conftest.$ac_ext <<_ACEOF |
| 4295 | /* confdefs.h. */ |
| 4296 | _ACEOF |
| 4297 | cat confdefs.h >>conftest.$ac_ext |
| 4298 | cat >>conftest.$ac_ext <<_ACEOF |
| 4299 | /* end confdefs.h. */ |
| 4300 | #include <$ac_header> |
| 4301 | _ACEOF |
| 4302 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4303 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4304 | ac_status=$? |
| 4305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4306 | rm -f conftest.er1 |
| 4307 | cat conftest.err >&5 |
| 4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4309 | (exit $ac_status); } >/dev/null; then |
| 4310 | if test -s conftest.err; then |
| 4311 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4312 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4313 | else |
| 4314 | ac_cpp_err= |
| 4315 | fi |
| 4316 | else |
| 4317 | ac_cpp_err=yes |
| 4318 | fi |
| 4319 | if test -z "$ac_cpp_err"; then |
| 4320 | ac_header_preproc=yes |
| 4321 | else |
| 4322 | echo "$as_me: failed program was:" >&5 |
| 4323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4324 | |
| 4325 | ac_header_preproc=no |
| 4326 | fi |
| 4327 | rm -f conftest.err conftest.$ac_ext |
| 4328 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4329 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4330 | |
| 4331 | # So? What about this header? |
| 4332 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4333 | yes:no: ) |
| 4334 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4335 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4336 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4337 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4338 | ac_header_preproc=yes |
| 4339 | ;; |
| 4340 | no:yes:* ) |
| 4341 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4342 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4343 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4344 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4345 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4346 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4347 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4348 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4349 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4350 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4351 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4352 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 4353 | ( |
| 4354 | cat <<\_ASBOX |
| 4355 | ## ------------------------------------- ## |
| 4356 | ## Report this to feanor@tol-eressea.org ## |
| 4357 | ## ------------------------------------- ## |
| 4358 | _ASBOX |
| 4359 | ) | |
| 4360 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4361 | ;; |
| 4362 | esac |
| 4363 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4364 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4365 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4367 | else |
| 4368 | eval "$as_ac_Header=\$ac_header_preproc" |
| 4369 | fi |
| 4370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4371 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4372 | |
| 4373 | fi |
| 4374 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4375 | cat >>confdefs.h <<_ACEOF |
| 4376 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4377 | _ACEOF |
| 4378 | |
| 4379 | fi |
| 4380 | |
| 4381 | done |
| 4382 | |
| 4383 | ac_ext=cc |
| 4384 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4385 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4386 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4387 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4388 | if test -n "$ac_tool_prefix"; then |
| 4389 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 4390 | do |
| 4391 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4392 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4393 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4395 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 4396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4397 | else |
| 4398 | if test -n "$CXX"; then |
| 4399 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4400 | else |
| 4401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4402 | for as_dir in $PATH |
| 4403 | do |
| 4404 | IFS=$as_save_IFS |
| 4405 | test -z "$as_dir" && as_dir=. |
| 4406 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4407 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4408 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 4409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4410 | break 2 |
| 4411 | fi |
| 4412 | done |
| 4413 | done |
| 4414 | |
| 4415 | fi |
| 4416 | fi |
| 4417 | CXX=$ac_cv_prog_CXX |
| 4418 | if test -n "$CXX"; then |
| 4419 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 4420 | echo "${ECHO_T}$CXX" >&6 |
| 4421 | else |
| 4422 | echo "$as_me:$LINENO: result: no" >&5 |
| 4423 | echo "${ECHO_T}no" >&6 |
| 4424 | fi |
| 4425 | |
| 4426 | test -n "$CXX" && break |
| 4427 | done |
| 4428 | fi |
| 4429 | if test -z "$CXX"; then |
| 4430 | ac_ct_CXX=$CXX |
| 4431 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 4432 | do |
| 4433 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4434 | set dummy $ac_prog; ac_word=$2 |
| 4435 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4437 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 4438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4439 | else |
| 4440 | if test -n "$ac_ct_CXX"; then |
| 4441 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4442 | else |
| 4443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4444 | for as_dir in $PATH |
| 4445 | do |
| 4446 | IFS=$as_save_IFS |
| 4447 | test -z "$as_dir" && as_dir=. |
| 4448 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4449 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4450 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4451 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4452 | break 2 |
| 4453 | fi |
| 4454 | done |
| 4455 | done |
| 4456 | |
| 4457 | fi |
| 4458 | fi |
| 4459 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4460 | if test -n "$ac_ct_CXX"; then |
| 4461 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 4462 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 4463 | else |
| 4464 | echo "$as_me:$LINENO: result: no" >&5 |
| 4465 | echo "${ECHO_T}no" >&6 |
| 4466 | fi |
| 4467 | |
| 4468 | test -n "$ac_ct_CXX" && break |
| 4469 | done |
| 4470 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 4471 | |
| 4472 | CXX=$ac_ct_CXX |
| 4473 | fi |
| 4474 | |
| 4475 | |
| 4476 | # Provide some information about the compiler. |
| 4477 | echo "$as_me:$LINENO:" \ |
| 4478 | "checking for C++ compiler version" >&5 |
| 4479 | ac_compiler=`set X $ac_compile; echo $2` |
| 4480 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4481 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 4482 | ac_status=$? |
| 4483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4484 | (exit $ac_status); } |
| 4485 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 4486 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 4487 | ac_status=$? |
| 4488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4489 | (exit $ac_status); } |
| 4490 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 4491 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 4492 | ac_status=$? |
| 4493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4494 | (exit $ac_status); } |
| 4495 | |
| 4496 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 4497 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 4498 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 4499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4500 | else |
| 4501 | cat >conftest.$ac_ext <<_ACEOF |
| 4502 | /* confdefs.h. */ |
| 4503 | _ACEOF |
| 4504 | cat confdefs.h >>conftest.$ac_ext |
| 4505 | cat >>conftest.$ac_ext <<_ACEOF |
| 4506 | /* end confdefs.h. */ |
| 4507 | |
| 4508 | int |
| 4509 | main () |
| 4510 | { |
| 4511 | #ifndef __GNUC__ |
| 4512 | choke me |
| 4513 | #endif |
| 4514 | |
| 4515 | ; |
| 4516 | return 0; |
| 4517 | } |
| 4518 | _ACEOF |
| 4519 | rm -f conftest.$ac_objext |
| 4520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4521 | (eval $ac_compile) 2>conftest.er1 |
| 4522 | ac_status=$? |
| 4523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4524 | rm -f conftest.er1 |
| 4525 | cat conftest.err >&5 |
| 4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4527 | (exit $ac_status); } && |
| 4528 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4530 | (eval $ac_try) 2>&5 |
| 4531 | ac_status=$? |
| 4532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4533 | (exit $ac_status); }; } && |
| 4534 | { ac_try='test -s conftest.$ac_objext' |
| 4535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4536 | (eval $ac_try) 2>&5 |
| 4537 | ac_status=$? |
| 4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4539 | (exit $ac_status); }; }; then |
| 4540 | ac_compiler_gnu=yes |
| 4541 | else |
| 4542 | echo "$as_me: failed program was:" >&5 |
| 4543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4544 | |
| 4545 | ac_compiler_gnu=no |
| 4546 | fi |
| 4547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4548 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4549 | |
| 4550 | fi |
| 4551 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4552 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 4553 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4554 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4555 | ac_save_CXXFLAGS=$CXXFLAGS |
| 4556 | CXXFLAGS="-g" |
| 4557 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4558 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 4559 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4561 | else |
| 4562 | cat >conftest.$ac_ext <<_ACEOF |
| 4563 | /* confdefs.h. */ |
| 4564 | _ACEOF |
| 4565 | cat confdefs.h >>conftest.$ac_ext |
| 4566 | cat >>conftest.$ac_ext <<_ACEOF |
| 4567 | /* end confdefs.h. */ |
| 4568 | |
| 4569 | int |
| 4570 | main () |
| 4571 | { |
| 4572 | |
| 4573 | ; |
| 4574 | return 0; |
| 4575 | } |
| 4576 | _ACEOF |
| 4577 | rm -f conftest.$ac_objext |
| 4578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4579 | (eval $ac_compile) 2>conftest.er1 |
| 4580 | ac_status=$? |
| 4581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4582 | rm -f conftest.er1 |
| 4583 | cat conftest.err >&5 |
| 4584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4585 | (exit $ac_status); } && |
| 4586 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4588 | (eval $ac_try) 2>&5 |
| 4589 | ac_status=$? |
| 4590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4591 | (exit $ac_status); }; } && |
| 4592 | { ac_try='test -s conftest.$ac_objext' |
| 4593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4594 | (eval $ac_try) 2>&5 |
| 4595 | ac_status=$? |
| 4596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4597 | (exit $ac_status); }; }; then |
| 4598 | ac_cv_prog_cxx_g=yes |
| 4599 | else |
| 4600 | echo "$as_me: failed program was:" >&5 |
| 4601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4602 | |
| 4603 | ac_cv_prog_cxx_g=no |
| 4604 | fi |
| 4605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4606 | fi |
| 4607 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4608 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 4609 | if test "$ac_test_CXXFLAGS" = set; then |
| 4610 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4611 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4612 | if test "$GXX" = yes; then |
| 4613 | CXXFLAGS="-g -O2" |
| 4614 | else |
| 4615 | CXXFLAGS="-g" |
| 4616 | fi |
| 4617 | else |
| 4618 | if test "$GXX" = yes; then |
| 4619 | CXXFLAGS="-O2" |
| 4620 | else |
| 4621 | CXXFLAGS= |
| 4622 | fi |
| 4623 | fi |
| 4624 | for ac_declaration in \ |
| 4625 | '' \ |
| 4626 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 4627 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 4628 | 'extern "C" void exit (int) throw ();' \ |
| 4629 | 'extern "C" void exit (int);' \ |
| 4630 | 'void exit (int);' |
| 4631 | do |
| 4632 | cat >conftest.$ac_ext <<_ACEOF |
| 4633 | /* confdefs.h. */ |
| 4634 | _ACEOF |
| 4635 | cat confdefs.h >>conftest.$ac_ext |
| 4636 | cat >>conftest.$ac_ext <<_ACEOF |
| 4637 | /* end confdefs.h. */ |
| 4638 | $ac_declaration |
| 4639 | #include <stdlib.h> |
| 4640 | int |
| 4641 | main () |
| 4642 | { |
| 4643 | exit (42); |
| 4644 | ; |
| 4645 | return 0; |
| 4646 | } |
| 4647 | _ACEOF |
| 4648 | rm -f conftest.$ac_objext |
| 4649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4650 | (eval $ac_compile) 2>conftest.er1 |
| 4651 | ac_status=$? |
| 4652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4653 | rm -f conftest.er1 |
| 4654 | cat conftest.err >&5 |
| 4655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4656 | (exit $ac_status); } && |
| 4657 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4659 | (eval $ac_try) 2>&5 |
| 4660 | ac_status=$? |
| 4661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4662 | (exit $ac_status); }; } && |
| 4663 | { ac_try='test -s conftest.$ac_objext' |
| 4664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4665 | (eval $ac_try) 2>&5 |
| 4666 | ac_status=$? |
| 4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4668 | (exit $ac_status); }; }; then |
| 4669 | : |
| 4670 | else |
| 4671 | echo "$as_me: failed program was:" >&5 |
| 4672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4673 | |
| 4674 | continue |
| 4675 | fi |
| 4676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4677 | cat >conftest.$ac_ext <<_ACEOF |
| 4678 | /* confdefs.h. */ |
| 4679 | _ACEOF |
| 4680 | cat confdefs.h >>conftest.$ac_ext |
| 4681 | cat >>conftest.$ac_ext <<_ACEOF |
| 4682 | /* end confdefs.h. */ |
| 4683 | $ac_declaration |
| 4684 | int |
| 4685 | main () |
| 4686 | { |
| 4687 | exit (42); |
| 4688 | ; |
| 4689 | return 0; |
| 4690 | } |
| 4691 | _ACEOF |
| 4692 | rm -f conftest.$ac_objext |
| 4693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4694 | (eval $ac_compile) 2>conftest.er1 |
| 4695 | ac_status=$? |
| 4696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4697 | rm -f conftest.er1 |
| 4698 | cat conftest.err >&5 |
| 4699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4700 | (exit $ac_status); } && |
| 4701 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4703 | (eval $ac_try) 2>&5 |
| 4704 | ac_status=$? |
| 4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4706 | (exit $ac_status); }; } && |
| 4707 | { ac_try='test -s conftest.$ac_objext' |
| 4708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4709 | (eval $ac_try) 2>&5 |
| 4710 | ac_status=$? |
| 4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4712 | (exit $ac_status); }; }; then |
| 4713 | break |
| 4714 | else |
| 4715 | echo "$as_me: failed program was:" >&5 |
| 4716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4717 | |
| 4718 | fi |
| 4719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4720 | done |
| 4721 | rm -f conftest* |
| 4722 | if test -n "$ac_declaration"; then |
| 4723 | echo '#ifdef __cplusplus' >>confdefs.h |
| 4724 | echo $ac_declaration >>confdefs.h |
| 4725 | echo '#endif' >>confdefs.h |
| 4726 | fi |
| 4727 | |
| 4728 | ac_ext=cc |
| 4729 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4730 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4731 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4732 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4733 | |
| 4734 | depcc="$CXX" am_compiler_list= |
| 4735 | |
| 4736 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 4737 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 4738 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 4739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4740 | else |
| 4741 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4742 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4743 | # making bogus files that we don't know about and never remove. For |
| 4744 | # instance it was reported that on HP-UX the gcc test will end up |
| 4745 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4746 | # in D'. |
| 4747 | mkdir conftest.dir |
| 4748 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4749 | # using a relative directory. |
| 4750 | cp "$am_depcomp" conftest.dir |
| 4751 | cd conftest.dir |
| 4752 | # We will build objects and dependencies in a subdirectory because |
| 4753 | # it helps to detect inapplicable dependency modes. For instance |
| 4754 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4755 | # side effect of compilation, but ICC will put the dependencies in |
| 4756 | # the current directory while Tru64 will put them in the object |
| 4757 | # directory. |
| 4758 | mkdir sub |
| 4759 | |
| 4760 | am_cv_CXX_dependencies_compiler_type=none |
| 4761 | if test "$am_compiler_list" = ""; then |
| 4762 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4763 | fi |
| 4764 | for depmode in $am_compiler_list; do |
| 4765 | # Setup a source with many dependencies, because some compilers |
| 4766 | # like to wrap large dependency lists on column 80 (with \), and |
| 4767 | # we should not choose a depcomp mode which is confused by this. |
| 4768 | # |
| 4769 | # We need to recreate these files for each test, as the compiler may |
| 4770 | # overwrite some of them when testing with obscure command lines. |
| 4771 | # This happens at least with the AIX C compiler. |
| 4772 | : > sub/conftest.c |
| 4773 | for i in 1 2 3 4 5 6; do |
| 4774 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4775 | : > sub/conftst$i.h |
| 4776 | done |
| 4777 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4778 | |
| 4779 | case $depmode in |
| 4780 | nosideeffect) |
| 4781 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4782 | # only be used when explicitly requested |
| 4783 | if test "x$enable_dependency_tracking" = xyes; then |
| 4784 | continue |
| 4785 | else |
| 4786 | break |
| 4787 | fi |
| 4788 | ;; |
| 4789 | none) break ;; |
| 4790 | esac |
| 4791 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4792 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4793 | # handle `-M -o', and we need to detect this. |
| 4794 | if depmode=$depmode \ |
| 4795 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 4796 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4797 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 4798 | >/dev/null 2>conftest.err && |
| 4799 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4800 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 4801 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4802 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4803 | # (even with -Werror). So we grep stderr for any message |
| 4804 | # that says an option was ignored. |
| 4805 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
| 4806 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4807 | break |
| 4808 | fi |
| 4809 | fi |
| 4810 | done |
| 4811 | |
| 4812 | cd .. |
| 4813 | rm -rf conftest.dir |
| 4814 | else |
| 4815 | am_cv_CXX_dependencies_compiler_type=none |
| 4816 | fi |
| 4817 | |
| 4818 | fi |
| 4819 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4820 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 4821 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4822 | |
| 4823 | |
| 4824 | |
| 4825 | if |
| 4826 | test "x$enable_dependency_tracking" != xno \ |
| 4827 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4828 | am__fastdepCXX_TRUE= |
| 4829 | am__fastdepCXX_FALSE='#' |
| 4830 | else |
| 4831 | am__fastdepCXX_TRUE='#' |
| 4832 | am__fastdepCXX_FALSE= |
| 4833 | fi |
| 4834 | |
| 4835 | |
| 4836 | ac_ext=cc |
| 4837 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4838 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4839 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4840 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4841 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4842 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 4843 | if test -z "$CXXCPP"; then |
| 4844 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 4845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4846 | else |
| 4847 | # Double quotes because CXXCPP needs to be expanded |
| 4848 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4849 | do |
| 4850 | ac_preproc_ok=false |
| 4851 | for ac_cxx_preproc_warn_flag in '' yes |
| 4852 | do |
| 4853 | # Use a header file that comes with gcc, so configuring glibc |
| 4854 | # with a fresh cross-compiler works. |
| 4855 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4856 | # <limits.h> exists even on freestanding compilers. |
| 4857 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4858 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4859 | cat >conftest.$ac_ext <<_ACEOF |
| 4860 | /* confdefs.h. */ |
| 4861 | _ACEOF |
| 4862 | cat confdefs.h >>conftest.$ac_ext |
| 4863 | cat >>conftest.$ac_ext <<_ACEOF |
| 4864 | /* end confdefs.h. */ |
| 4865 | #ifdef __STDC__ |
| 4866 | # include <limits.h> |
| 4867 | #else |
| 4868 | # include <assert.h> |
| 4869 | #endif |
| 4870 | Syntax error |
| 4871 | _ACEOF |
| 4872 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4873 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4874 | ac_status=$? |
| 4875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4876 | rm -f conftest.er1 |
| 4877 | cat conftest.err >&5 |
| 4878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4879 | (exit $ac_status); } >/dev/null; then |
| 4880 | if test -s conftest.err; then |
| 4881 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4882 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4883 | else |
| 4884 | ac_cpp_err= |
| 4885 | fi |
| 4886 | else |
| 4887 | ac_cpp_err=yes |
| 4888 | fi |
| 4889 | if test -z "$ac_cpp_err"; then |
| 4890 | : |
| 4891 | else |
| 4892 | echo "$as_me: failed program was:" >&5 |
| 4893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4894 | |
| 4895 | # Broken: fails on valid input. |
| 4896 | continue |
| 4897 | fi |
| 4898 | rm -f conftest.err conftest.$ac_ext |
| 4899 | |
| 4900 | # OK, works on sane cases. Now check whether non-existent headers |
| 4901 | # can be detected and how. |
| 4902 | cat >conftest.$ac_ext <<_ACEOF |
| 4903 | /* confdefs.h. */ |
| 4904 | _ACEOF |
| 4905 | cat confdefs.h >>conftest.$ac_ext |
| 4906 | cat >>conftest.$ac_ext <<_ACEOF |
| 4907 | /* end confdefs.h. */ |
| 4908 | #include <ac_nonexistent.h> |
| 4909 | _ACEOF |
| 4910 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4911 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4912 | ac_status=$? |
| 4913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4914 | rm -f conftest.er1 |
| 4915 | cat conftest.err >&5 |
| 4916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4917 | (exit $ac_status); } >/dev/null; then |
| 4918 | if test -s conftest.err; then |
| 4919 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4920 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4921 | else |
| 4922 | ac_cpp_err= |
| 4923 | fi |
| 4924 | else |
| 4925 | ac_cpp_err=yes |
| 4926 | fi |
| 4927 | if test -z "$ac_cpp_err"; then |
| 4928 | # Broken: success on invalid input. |
| 4929 | continue |
| 4930 | else |
| 4931 | echo "$as_me: failed program was:" >&5 |
| 4932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4933 | |
| 4934 | # Passes both tests. |
| 4935 | ac_preproc_ok=: |
| 4936 | break |
| 4937 | fi |
| 4938 | rm -f conftest.err conftest.$ac_ext |
| 4939 | |
| 4940 | done |
| 4941 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4942 | rm -f conftest.err conftest.$ac_ext |
| 4943 | if $ac_preproc_ok; then |
| 4944 | break |
| 4945 | fi |
| 4946 | |
| 4947 | done |
| 4948 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4949 | |
| 4950 | fi |
| 4951 | CXXCPP=$ac_cv_prog_CXXCPP |
| 4952 | else |
| 4953 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4954 | fi |
| 4955 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 4956 | echo "${ECHO_T}$CXXCPP" >&6 |
| 4957 | ac_preproc_ok=false |
| 4958 | for ac_cxx_preproc_warn_flag in '' yes |
| 4959 | do |
| 4960 | # Use a header file that comes with gcc, so configuring glibc |
| 4961 | # with a fresh cross-compiler works. |
| 4962 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4963 | # <limits.h> exists even on freestanding compilers. |
| 4964 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4965 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4966 | cat >conftest.$ac_ext <<_ACEOF |
| 4967 | /* confdefs.h. */ |
| 4968 | _ACEOF |
| 4969 | cat confdefs.h >>conftest.$ac_ext |
| 4970 | cat >>conftest.$ac_ext <<_ACEOF |
| 4971 | /* end confdefs.h. */ |
| 4972 | #ifdef __STDC__ |
| 4973 | # include <limits.h> |
| 4974 | #else |
| 4975 | # include <assert.h> |
| 4976 | #endif |
| 4977 | Syntax error |
| 4978 | _ACEOF |
| 4979 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4980 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4981 | ac_status=$? |
| 4982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4983 | rm -f conftest.er1 |
| 4984 | cat conftest.err >&5 |
| 4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4986 | (exit $ac_status); } >/dev/null; then |
| 4987 | if test -s conftest.err; then |
| 4988 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4989 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4990 | else |
| 4991 | ac_cpp_err= |
| 4992 | fi |
| 4993 | else |
| 4994 | ac_cpp_err=yes |
| 4995 | fi |
| 4996 | if test -z "$ac_cpp_err"; then |
| 4997 | : |
| 4998 | else |
| 4999 | echo "$as_me: failed program was:" >&5 |
| 5000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5001 | |
| 5002 | # Broken: fails on valid input. |
| 5003 | continue |
| 5004 | fi |
| 5005 | rm -f conftest.err conftest.$ac_ext |
| 5006 | |
| 5007 | # OK, works on sane cases. Now check whether non-existent headers |
| 5008 | # can be detected and how. |
| 5009 | cat >conftest.$ac_ext <<_ACEOF |
| 5010 | /* confdefs.h. */ |
| 5011 | _ACEOF |
| 5012 | cat confdefs.h >>conftest.$ac_ext |
| 5013 | cat >>conftest.$ac_ext <<_ACEOF |
| 5014 | /* end confdefs.h. */ |
| 5015 | #include <ac_nonexistent.h> |
| 5016 | _ACEOF |
| 5017 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5018 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5019 | ac_status=$? |
| 5020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5021 | rm -f conftest.er1 |
| 5022 | cat conftest.err >&5 |
| 5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5024 | (exit $ac_status); } >/dev/null; then |
| 5025 | if test -s conftest.err; then |
| 5026 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5027 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5028 | else |
| 5029 | ac_cpp_err= |
| 5030 | fi |
| 5031 | else |
| 5032 | ac_cpp_err=yes |
| 5033 | fi |
| 5034 | if test -z "$ac_cpp_err"; then |
| 5035 | # Broken: success on invalid input. |
| 5036 | continue |
| 5037 | else |
| 5038 | echo "$as_me: failed program was:" >&5 |
| 5039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5040 | |
| 5041 | # Passes both tests. |
| 5042 | ac_preproc_ok=: |
| 5043 | break |
| 5044 | fi |
| 5045 | rm -f conftest.err conftest.$ac_ext |
| 5046 | |
| 5047 | done |
| 5048 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5049 | rm -f conftest.err conftest.$ac_ext |
| 5050 | if $ac_preproc_ok; then |
| 5051 | : |
| 5052 | else |
| 5053 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5054 | See \`config.log' for more details." >&5 |
| 5055 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5056 | See \`config.log' for more details." >&2;} |
| 5057 | { (exit 1); exit 1; }; } |
| 5058 | fi |
| 5059 | |
| 5060 | ac_ext=cc |
| 5061 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5062 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5063 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5064 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5065 | |
| 5066 | |
| 5067 | ac_ext=f |
| 5068 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 5069 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5070 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 5071 | if test -n "$ac_tool_prefix"; then |
| 5072 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 5073 | do |
| 5074 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5075 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5076 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5078 | if test "${ac_cv_prog_F77+set}" = set; then |
| 5079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5080 | else |
| 5081 | if test -n "$F77"; then |
| 5082 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 5083 | else |
| 5084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5085 | for as_dir in $PATH |
| 5086 | do |
| 5087 | IFS=$as_save_IFS |
| 5088 | test -z "$as_dir" && as_dir=. |
| 5089 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5090 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5091 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 5092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5093 | break 2 |
| 5094 | fi |
| 5095 | done |
| 5096 | done |
| 5097 | |
| 5098 | fi |
| 5099 | fi |
| 5100 | F77=$ac_cv_prog_F77 |
| 5101 | if test -n "$F77"; then |
| 5102 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 5103 | echo "${ECHO_T}$F77" >&6 |
| 5104 | else |
| 5105 | echo "$as_me:$LINENO: result: no" >&5 |
| 5106 | echo "${ECHO_T}no" >&6 |
| 5107 | fi |
| 5108 | |
| 5109 | test -n "$F77" && break |
| 5110 | done |
| 5111 | fi |
| 5112 | if test -z "$F77"; then |
| 5113 | ac_ct_F77=$F77 |
| 5114 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 5115 | do |
| 5116 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5117 | set dummy $ac_prog; ac_word=$2 |
| 5118 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5120 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 5121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5122 | else |
| 5123 | if test -n "$ac_ct_F77"; then |
| 5124 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 5125 | else |
| 5126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5127 | for as_dir in $PATH |
| 5128 | do |
| 5129 | IFS=$as_save_IFS |
| 5130 | test -z "$as_dir" && as_dir=. |
| 5131 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5132 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5133 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 5134 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5135 | break 2 |
| 5136 | fi |
| 5137 | done |
| 5138 | done |
| 5139 | |
| 5140 | fi |
| 5141 | fi |
| 5142 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 5143 | if test -n "$ac_ct_F77"; then |
| 5144 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 5145 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 5146 | else |
| 5147 | echo "$as_me:$LINENO: result: no" >&5 |
| 5148 | echo "${ECHO_T}no" >&6 |
| 5149 | fi |
| 5150 | |
| 5151 | test -n "$ac_ct_F77" && break |
| 5152 | done |
| 5153 | |
| 5154 | F77=$ac_ct_F77 |
| 5155 | fi |
| 5156 | |
| 5157 | |
| 5158 | # Provide some information about the compiler. |
| 5159 | echo "$as_me:5159:" \ |
| 5160 | "checking for Fortran 77 compiler version" >&5 |
| 5161 | ac_compiler=`set X $ac_compile; echo $2` |
| 5162 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 5163 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 5164 | ac_status=$? |
| 5165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5166 | (exit $ac_status); } |
| 5167 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 5168 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 5169 | ac_status=$? |
| 5170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5171 | (exit $ac_status); } |
| 5172 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 5173 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 5174 | ac_status=$? |
| 5175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5176 | (exit $ac_status); } |
| 5177 | rm -f a.out |
| 5178 | |
| 5179 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 5180 | # input file. (Note that this only needs to work for GNU compilers.) |
| 5181 | ac_save_ext=$ac_ext |
| 5182 | ac_ext=F |
| 5183 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 5184 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 5185 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 5186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5187 | else |
| 5188 | cat >conftest.$ac_ext <<_ACEOF |
| 5189 | program main |
| 5190 | #ifndef __GNUC__ |
| 5191 | choke me |
| 5192 | #endif |
| 5193 | |
| 5194 | end |
| 5195 | _ACEOF |
| 5196 | rm -f conftest.$ac_objext |
| 5197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5198 | (eval $ac_compile) 2>conftest.er1 |
| 5199 | ac_status=$? |
| 5200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5201 | rm -f conftest.er1 |
| 5202 | cat conftest.err >&5 |
| 5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5204 | (exit $ac_status); } && |
| 5205 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 5206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5207 | (eval $ac_try) 2>&5 |
| 5208 | ac_status=$? |
| 5209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5210 | (exit $ac_status); }; } && |
| 5211 | { ac_try='test -s conftest.$ac_objext' |
| 5212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5213 | (eval $ac_try) 2>&5 |
| 5214 | ac_status=$? |
| 5215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5216 | (exit $ac_status); }; }; then |
| 5217 | ac_compiler_gnu=yes |
| 5218 | else |
| 5219 | echo "$as_me: failed program was:" >&5 |
| 5220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5221 | |
| 5222 | ac_compiler_gnu=no |
| 5223 | fi |
| 5224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5225 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 5226 | |
| 5227 | fi |
| 5228 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 5229 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 5230 | ac_ext=$ac_save_ext |
| 5231 | ac_test_FFLAGS=${FFLAGS+set} |
| 5232 | ac_save_FFLAGS=$FFLAGS |
| 5233 | FFLAGS= |
| 5234 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 5235 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 5236 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 5237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5238 | else |
| 5239 | FFLAGS=-g |
| 5240 | cat >conftest.$ac_ext <<_ACEOF |
| 5241 | program main |
| 5242 | |
| 5243 | end |
| 5244 | _ACEOF |
| 5245 | rm -f conftest.$ac_objext |
| 5246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5247 | (eval $ac_compile) 2>conftest.er1 |
| 5248 | ac_status=$? |
| 5249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5250 | rm -f conftest.er1 |
| 5251 | cat conftest.err >&5 |
| 5252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5253 | (exit $ac_status); } && |
| 5254 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 5255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5256 | (eval $ac_try) 2>&5 |
| 5257 | ac_status=$? |
| 5258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5259 | (exit $ac_status); }; } && |
| 5260 | { ac_try='test -s conftest.$ac_objext' |
| 5261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5262 | (eval $ac_try) 2>&5 |
| 5263 | ac_status=$? |
| 5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5265 | (exit $ac_status); }; }; then |
| 5266 | ac_cv_prog_f77_g=yes |
| 5267 | else |
| 5268 | echo "$as_me: failed program was:" >&5 |
| 5269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5270 | |
| 5271 | ac_cv_prog_f77_g=no |
| 5272 | fi |
| 5273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5274 | |
| 5275 | fi |
| 5276 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 5277 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 5278 | if test "$ac_test_FFLAGS" = set; then |
| 5279 | FFLAGS=$ac_save_FFLAGS |
| 5280 | elif test $ac_cv_prog_f77_g = yes; then |
| 5281 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 5282 | FFLAGS="-g -O2" |
| 5283 | else |
| 5284 | FFLAGS="-g" |
| 5285 | fi |
| 5286 | else |
| 5287 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 5288 | FFLAGS="-O2" |
| 5289 | else |
| 5290 | FFLAGS= |
| 5291 | fi |
| 5292 | fi |
| 5293 | |
| 5294 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 5295 | ac_ext=c |
| 5296 | ac_cpp='$CPP $CPPFLAGS' |
| 5297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5300 | |
| 5301 | |
| 5302 | |
| 5303 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 5304 | |
| 5305 | # find the maximum length of command line arguments |
| 5306 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 5307 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 5308 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 5309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5310 | else |
| 5311 | i=0 |
| 5312 | testring="ABCD" |
| 5313 | |
| 5314 | case $build_os in |
| 5315 | msdosdjgpp*) |
| 5316 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5317 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5318 | # during glob expansion). Even if it were fixed, the result of this |
| 5319 | # check would be larger than it should be. |
| 5320 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5321 | ;; |
| 5322 | |
| 5323 | gnu*) |
| 5324 | # Under GNU Hurd, this test is not required because there is |
| 5325 | # no limit to the length of command line arguments. |
| 5326 | # Libtool will interpret -1 as no limit whatsoever |
| 5327 | lt_cv_sys_max_cmd_len=-1; |
| 5328 | ;; |
| 5329 | |
| 5330 | cygwin* | mingw*) |
| 5331 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5332 | # about 5 minutes as the teststring grows exponentially. |
| 5333 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5334 | # you end up with a "frozen" computer, even though with patience |
| 5335 | # the test eventually succeeds (with a max line length of 256k). |
| 5336 | # Instead, let's just punt: use the minimum linelength reported by |
| 5337 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5338 | lt_cv_sys_max_cmd_len=8192; |
| 5339 | ;; |
| 5340 | |
| 5341 | amigaos*) |
| 5342 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5343 | # So we just punt and use a minimum line length of 8192. |
| 5344 | lt_cv_sys_max_cmd_len=8192; |
| 5345 | ;; |
| 5346 | |
| 5347 | *) |
| 5348 | # If test is not a shell built-in, we'll probably end up computing a |
| 5349 | # maximum length that is only half of the actual maximum length, but |
| 5350 | # we can't tell. |
| 5351 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
| 5352 | = "XX$testring") >/dev/null 2>&1 && |
| 5353 | new_result=`expr "X$testring" : ".*" 2>&1` && |
| 5354 | lt_cv_sys_max_cmd_len=$new_result && |
| 5355 | test $i != 17 # 1/2 MB should be enough |
| 5356 | do |
| 5357 | i=`expr $i + 1` |
| 5358 | testring=$testring$testring |
| 5359 | done |
| 5360 | testring= |
| 5361 | # Add a significant safety factor because C++ compilers can tack on massive |
| 5362 | # amounts of additional arguments before passing them to the linker. |
| 5363 | # It appears as though 1/2 is a usable value. |
| 5364 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5365 | ;; |
| 5366 | esac |
| 5367 | |
| 5368 | fi |
| 5369 | |
| 5370 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5371 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5372 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 5373 | else |
| 5374 | echo "$as_me:$LINENO: result: none" >&5 |
| 5375 | echo "${ECHO_T}none" >&6 |
| 5376 | fi |
| 5377 | |
| 5378 | |
| 5379 | |
| 5380 | |
| 5381 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 5382 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 5383 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 5384 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 5385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5386 | else |
| 5387 | |
| 5388 | # These are sane defaults that work on at least a few old systems. |
| 5389 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5390 | |
| 5391 | # Character class describing NM global symbol codes. |
| 5392 | symcode='[BCDEGRST]' |
| 5393 | |
| 5394 | # Regexp to match symbols that can be accessed directly from C. |
| 5395 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5396 | |
| 5397 | # Transform the above into a raw symbol and a C symbol. |
| 5398 | symxfrm='\1 \2\3 \3' |
| 5399 | |
| 5400 | # Transform an extracted symbol line into a proper C declaration |
| 5401 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 5402 | |
| 5403 | # Transform an extracted symbol line into symbol name and symbol address |
| 5404 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 5405 | |
| 5406 | # Define system-specific variables. |
| 5407 | case $host_os in |
| 5408 | aix*) |
| 5409 | symcode='[BCDT]' |
| 5410 | ;; |
| 5411 | cygwin* | mingw* | pw32*) |
| 5412 | symcode='[ABCDGISTW]' |
| 5413 | ;; |
| 5414 | hpux*) # Its linker distinguishes data from code symbols |
| 5415 | if test "$host_cpu" = ia64; then |
| 5416 | symcode='[ABCDEGRST]' |
| 5417 | fi |
| 5418 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5419 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 5420 | ;; |
| 5421 | irix* | nonstopux*) |
| 5422 | symcode='[BCDEGRST]' |
| 5423 | ;; |
| 5424 | osf*) |
| 5425 | symcode='[BCDEGQRST]' |
| 5426 | ;; |
| 5427 | solaris* | sysv5*) |
| 5428 | symcode='[BDRT]' |
| 5429 | ;; |
| 5430 | sysv4) |
| 5431 | symcode='[DFNSTU]' |
| 5432 | ;; |
| 5433 | esac |
| 5434 | |
| 5435 | # Handle CRLF in mingw tool chain |
| 5436 | opt_cr= |
| 5437 | case $build_os in |
| 5438 | mingw*) |
| 5439 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5440 | ;; |
| 5441 | esac |
| 5442 | |
| 5443 | # If we're using GNU nm, then use its standard symbol codes. |
| 5444 | case `$NM -V 2>&1` in |
| 5445 | *GNU* | *'with BFD'*) |
| 5446 | symcode='[ABCDGIRSTW]' ;; |
| 5447 | esac |
| 5448 | |
| 5449 | # Try without a prefix undercore, then with it. |
| 5450 | for ac_symprfx in "" "_"; do |
| 5451 | |
| 5452 | # Write the raw and C identifiers. |
| 5453 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 5454 | |
| 5455 | # Check to see that the pipe works correctly. |
| 5456 | pipe_works=no |
| 5457 | |
| 5458 | rm -f conftest* |
| 5459 | cat > conftest.$ac_ext <<EOF |
| 5460 | #ifdef __cplusplus |
| 5461 | extern "C" { |
| 5462 | #endif |
| 5463 | char nm_test_var; |
| 5464 | void nm_test_func(){} |
| 5465 | #ifdef __cplusplus |
| 5466 | } |
| 5467 | #endif |
| 5468 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 5469 | EOF |
| 5470 | |
| 5471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5472 | (eval $ac_compile) 2>&5 |
| 5473 | ac_status=$? |
| 5474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5475 | (exit $ac_status); }; then |
| 5476 | # Now try to grab the symbols. |
| 5477 | nlist=conftest.nm |
| 5478 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 5479 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 5480 | ac_status=$? |
| 5481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5482 | (exit $ac_status); } && test -s "$nlist"; then |
| 5483 | # Try sorting and uniquifying the output. |
| 5484 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5485 | mv -f "$nlist"T "$nlist" |
| 5486 | else |
| 5487 | rm -f "$nlist"T |
| 5488 | fi |
| 5489 | |
| 5490 | # Make sure that we snagged all the symbols we need. |
| 5491 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 5492 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 5493 | cat <<EOF > conftest.$ac_ext |
| 5494 | #ifdef __cplusplus |
| 5495 | extern "C" { |
| 5496 | #endif |
| 5497 | |
| 5498 | EOF |
| 5499 | # Now generate the symbol file. |
| 5500 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 5501 | |
| 5502 | cat <<EOF >> conftest.$ac_ext |
| 5503 | #if defined (__STDC__) && __STDC__ |
| 5504 | # define lt_ptr_t void * |
| 5505 | #else |
| 5506 | # define lt_ptr_t char * |
| 5507 | # define const |
| 5508 | #endif |
| 5509 | |
| 5510 | /* The mapping between symbol names and symbols. */ |
| 5511 | const struct { |
| 5512 | const char *name; |
| 5513 | lt_ptr_t address; |
| 5514 | } |
| 5515 | lt_preloaded_symbols[] = |
| 5516 | { |
| 5517 | EOF |
| 5518 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 5519 | cat <<\EOF >> conftest.$ac_ext |
| 5520 | {0, (lt_ptr_t) 0} |
| 5521 | }; |
| 5522 | |
| 5523 | #ifdef __cplusplus |
| 5524 | } |
| 5525 | #endif |
| 5526 | EOF |
| 5527 | # Now try linking the two files. |
| 5528 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5529 | lt_save_LIBS="$LIBS" |
| 5530 | lt_save_CFLAGS="$CFLAGS" |
| 5531 | LIBS="conftstm.$ac_objext" |
| 5532 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 5533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5534 | (eval $ac_link) 2>&5 |
| 5535 | ac_status=$? |
| 5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5537 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 5538 | pipe_works=yes |
| 5539 | fi |
| 5540 | LIBS="$lt_save_LIBS" |
| 5541 | CFLAGS="$lt_save_CFLAGS" |
| 5542 | else |
| 5543 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5544 | fi |
| 5545 | else |
| 5546 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5547 | fi |
| 5548 | else |
| 5549 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5550 | fi |
| 5551 | else |
| 5552 | echo "$progname: failed program was:" >&5 |
| 5553 | cat conftest.$ac_ext >&5 |
| 5554 | fi |
| 5555 | rm -f conftest* conftst* |
| 5556 | |
| 5557 | # Do not use the global_symbol_pipe unless it works. |
| 5558 | if test "$pipe_works" = yes; then |
| 5559 | break |
| 5560 | else |
| 5561 | lt_cv_sys_global_symbol_pipe= |
| 5562 | fi |
| 5563 | done |
| 5564 | |
| 5565 | fi |
| 5566 | |
| 5567 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5568 | lt_cv_sys_global_symbol_to_cdecl= |
| 5569 | fi |
| 5570 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 5571 | echo "$as_me:$LINENO: result: failed" >&5 |
| 5572 | echo "${ECHO_T}failed" >&6 |
| 5573 | else |
| 5574 | echo "$as_me:$LINENO: result: ok" >&5 |
| 5575 | echo "${ECHO_T}ok" >&6 |
| 5576 | fi |
| 5577 | |
| 5578 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 5579 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 5580 | if test "${lt_cv_objdir+set}" = set; then |
| 5581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5582 | else |
| 5583 | rm -f .libs 2>/dev/null |
| 5584 | mkdir .libs 2>/dev/null |
| 5585 | if test -d .libs; then |
| 5586 | lt_cv_objdir=.libs |
| 5587 | else |
| 5588 | # MS-DOS does not allow filenames that begin with a dot. |
| 5589 | lt_cv_objdir=_libs |
| 5590 | fi |
| 5591 | rmdir .libs 2>/dev/null |
| 5592 | fi |
| 5593 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 5594 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 5595 | objdir=$lt_cv_objdir |
| 5596 | |
| 5597 | |
| 5598 | |
| 5599 | |
| 5600 | |
| 5601 | case $host_os in |
| 5602 | aix3*) |
| 5603 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 5604 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 5605 | # vanish in a puff of smoke. |
| 5606 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 5607 | COLLECT_NAMES= |
| 5608 | export COLLECT_NAMES |
| 5609 | fi |
| 5610 | ;; |
| 5611 | esac |
| 5612 | |
| 5613 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 5614 | # metacharacters that are still active within double-quoted strings. |
| 5615 | Xsed='sed -e s/^X//' |
| 5616 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 5617 | |
| 5618 | # Same as above, but do not quote variable references. |
| 5619 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 5620 | |
| 5621 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5622 | # double_quote_subst'ed string. |
| 5623 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5624 | |
| 5625 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5626 | no_glob_subst='s/\*/\\\*/g' |
| 5627 | |
| 5628 | # Constants: |
| 5629 | rm="rm -f" |
| 5630 | |
| 5631 | # Global variables: |
| 5632 | default_ofile=libtool |
| 5633 | can_build_shared=yes |
| 5634 | |
| 5635 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 5636 | # which needs '.lib'). |
| 5637 | libext=a |
| 5638 | ltmain="$ac_aux_dir/ltmain.sh" |
| 5639 | ofile="$default_ofile" |
| 5640 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5641 | |
| 5642 | if test -n "$ac_tool_prefix"; then |
| 5643 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5644 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5645 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5646 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5647 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5649 | else |
| 5650 | if test -n "$AR"; then |
| 5651 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5652 | else |
| 5653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5654 | for as_dir in $PATH |
| 5655 | do |
| 5656 | IFS=$as_save_IFS |
| 5657 | test -z "$as_dir" && as_dir=. |
| 5658 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5659 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5660 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5661 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5662 | break 2 |
| 5663 | fi |
| 5664 | done |
| 5665 | done |
| 5666 | |
| 5667 | fi |
| 5668 | fi |
| 5669 | AR=$ac_cv_prog_AR |
| 5670 | if test -n "$AR"; then |
| 5671 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5672 | echo "${ECHO_T}$AR" >&6 |
| 5673 | else |
| 5674 | echo "$as_me:$LINENO: result: no" >&5 |
| 5675 | echo "${ECHO_T}no" >&6 |
| 5676 | fi |
| 5677 | |
| 5678 | fi |
| 5679 | if test -z "$ac_cv_prog_AR"; then |
| 5680 | ac_ct_AR=$AR |
| 5681 | # Extract the first word of "ar", so it can be a program name with args. |
| 5682 | set dummy ar; ac_word=$2 |
| 5683 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5685 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5687 | else |
| 5688 | if test -n "$ac_ct_AR"; then |
| 5689 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5690 | else |
| 5691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5692 | for as_dir in $PATH |
| 5693 | do |
| 5694 | IFS=$as_save_IFS |
| 5695 | test -z "$as_dir" && as_dir=. |
| 5696 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5697 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5698 | ac_cv_prog_ac_ct_AR="ar" |
| 5699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5700 | break 2 |
| 5701 | fi |
| 5702 | done |
| 5703 | done |
| 5704 | |
| 5705 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 5706 | fi |
| 5707 | fi |
| 5708 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5709 | if test -n "$ac_ct_AR"; then |
| 5710 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5711 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5712 | else |
| 5713 | echo "$as_me:$LINENO: result: no" >&5 |
| 5714 | echo "${ECHO_T}no" >&6 |
| 5715 | fi |
| 5716 | |
| 5717 | AR=$ac_ct_AR |
| 5718 | else |
| 5719 | AR="$ac_cv_prog_AR" |
| 5720 | fi |
| 5721 | |
| 5722 | if test -n "$ac_tool_prefix"; then |
| 5723 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5724 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5727 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5729 | else |
| 5730 | if test -n "$RANLIB"; then |
| 5731 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5732 | else |
| 5733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5734 | for as_dir in $PATH |
| 5735 | do |
| 5736 | IFS=$as_save_IFS |
| 5737 | test -z "$as_dir" && as_dir=. |
| 5738 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5740 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5742 | break 2 |
| 5743 | fi |
| 5744 | done |
| 5745 | done |
| 5746 | |
| 5747 | fi |
| 5748 | fi |
| 5749 | RANLIB=$ac_cv_prog_RANLIB |
| 5750 | if test -n "$RANLIB"; then |
| 5751 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5752 | echo "${ECHO_T}$RANLIB" >&6 |
| 5753 | else |
| 5754 | echo "$as_me:$LINENO: result: no" >&5 |
| 5755 | echo "${ECHO_T}no" >&6 |
| 5756 | fi |
| 5757 | |
| 5758 | fi |
| 5759 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5760 | ac_ct_RANLIB=$RANLIB |
| 5761 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5762 | set dummy ranlib; ac_word=$2 |
| 5763 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5765 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5767 | else |
| 5768 | if test -n "$ac_ct_RANLIB"; then |
| 5769 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5770 | else |
| 5771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5772 | for as_dir in $PATH |
| 5773 | do |
| 5774 | IFS=$as_save_IFS |
| 5775 | test -z "$as_dir" && as_dir=. |
| 5776 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5777 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5778 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5780 | break 2 |
| 5781 | fi |
| 5782 | done |
| 5783 | done |
| 5784 | |
| 5785 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5786 | fi |
| 5787 | fi |
| 5788 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5789 | if test -n "$ac_ct_RANLIB"; then |
| 5790 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5791 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5792 | else |
| 5793 | echo "$as_me:$LINENO: result: no" >&5 |
| 5794 | echo "${ECHO_T}no" >&6 |
| 5795 | fi |
| 5796 | |
| 5797 | RANLIB=$ac_ct_RANLIB |
| 5798 | else |
| 5799 | RANLIB="$ac_cv_prog_RANLIB" |
| 5800 | fi |
| 5801 | |
| 5802 | if test -n "$ac_tool_prefix"; then |
| 5803 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5804 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5805 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5807 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5809 | else |
| 5810 | if test -n "$STRIP"; then |
| 5811 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5812 | else |
| 5813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5814 | for as_dir in $PATH |
| 5815 | do |
| 5816 | IFS=$as_save_IFS |
| 5817 | test -z "$as_dir" && as_dir=. |
| 5818 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5819 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5820 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5821 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5822 | break 2 |
| 5823 | fi |
| 5824 | done |
| 5825 | done |
| 5826 | |
| 5827 | fi |
| 5828 | fi |
| 5829 | STRIP=$ac_cv_prog_STRIP |
| 5830 | if test -n "$STRIP"; then |
| 5831 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5832 | echo "${ECHO_T}$STRIP" >&6 |
| 5833 | else |
| 5834 | echo "$as_me:$LINENO: result: no" >&5 |
| 5835 | echo "${ECHO_T}no" >&6 |
| 5836 | fi |
| 5837 | |
| 5838 | fi |
| 5839 | if test -z "$ac_cv_prog_STRIP"; then |
| 5840 | ac_ct_STRIP=$STRIP |
| 5841 | # Extract the first word of "strip", so it can be a program name with args. |
| 5842 | set dummy strip; ac_word=$2 |
| 5843 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5845 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5847 | else |
| 5848 | if test -n "$ac_ct_STRIP"; then |
| 5849 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5850 | else |
| 5851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5852 | for as_dir in $PATH |
| 5853 | do |
| 5854 | IFS=$as_save_IFS |
| 5855 | test -z "$as_dir" && as_dir=. |
| 5856 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5857 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5858 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5859 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5860 | break 2 |
| 5861 | fi |
| 5862 | done |
| 5863 | done |
| 5864 | |
| 5865 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 5866 | fi |
| 5867 | fi |
| 5868 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5869 | if test -n "$ac_ct_STRIP"; then |
| 5870 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5871 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5872 | else |
| 5873 | echo "$as_me:$LINENO: result: no" >&5 |
| 5874 | echo "${ECHO_T}no" >&6 |
| 5875 | fi |
| 5876 | |
| 5877 | STRIP=$ac_ct_STRIP |
| 5878 | else |
| 5879 | STRIP="$ac_cv_prog_STRIP" |
| 5880 | fi |
| 5881 | |
| 5882 | |
| 5883 | old_CC="$CC" |
| 5884 | old_CFLAGS="$CFLAGS" |
| 5885 | |
| 5886 | # Set sane defaults for various variables |
| 5887 | test -z "$AR" && AR=ar |
| 5888 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5889 | test -z "$AS" && AS=as |
| 5890 | test -z "$CC" && CC=cc |
| 5891 | test -z "$LTCC" && LTCC=$CC |
| 5892 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5893 | test -z "$LD" && LD=ld |
| 5894 | test -z "$LN_S" && LN_S="ln -s" |
| 5895 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 5896 | test -z "$NM" && NM=nm |
| 5897 | test -z "$SED" && SED=sed |
| 5898 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5899 | test -z "$RANLIB" && RANLIB=: |
| 5900 | test -z "$STRIP" && STRIP=: |
| 5901 | test -z "$ac_objext" && ac_objext=o |
| 5902 | |
| 5903 | # Determine commands to create old-style static archives. |
| 5904 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 5905 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5906 | old_postuninstall_cmds= |
| 5907 | |
| 5908 | if test -n "$RANLIB"; then |
| 5909 | case $host_os in |
| 5910 | openbsd*) |
| 5911 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 5912 | ;; |
| 5913 | *) |
| 5914 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 5915 | ;; |
| 5916 | esac |
| 5917 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5918 | fi |
| 5919 | |
| 5920 | # Only perform the check for file, if the check method requires it |
| 5921 | case $deplibs_check_method in |
| 5922 | file_magic*) |
| 5923 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 5924 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 5925 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 5926 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5928 | else |
| 5929 | case $MAGIC_CMD in |
| 5930 | [\\/*] | ?:[\\/]*) |
| 5931 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5932 | ;; |
| 5933 | *) |
| 5934 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5935 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5936 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5937 | for ac_dir in $ac_dummy; do |
| 5938 | IFS="$lt_save_ifs" |
| 5939 | test -z "$ac_dir" && ac_dir=. |
| 5940 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 5941 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 5942 | if test -n "$file_magic_test_file"; then |
| 5943 | case $deplibs_check_method in |
| 5944 | "file_magic "*) |
| 5945 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5946 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5947 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5948 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5949 | : |
| 5950 | else |
| 5951 | cat <<EOF 1>&2 |
| 5952 | |
| 5953 | *** Warning: the command libtool uses to detect shared libraries, |
| 5954 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5955 | *** The result is that libtool may fail to recognize shared libraries |
| 5956 | *** as such. This will affect the creation of libtool libraries that |
| 5957 | *** depend on shared libraries, but programs linked with such libtool |
| 5958 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5959 | *** may want to report the problem to your system manager and/or to |
| 5960 | *** bug-libtool@gnu.org |
| 5961 | |
| 5962 | EOF |
| 5963 | fi ;; |
| 5964 | esac |
| 5965 | fi |
| 5966 | break |
| 5967 | fi |
| 5968 | done |
| 5969 | IFS="$lt_save_ifs" |
| 5970 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5971 | ;; |
| 5972 | esac |
| 5973 | fi |
| 5974 | |
| 5975 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5976 | if test -n "$MAGIC_CMD"; then |
| 5977 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5978 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5979 | else |
| 5980 | echo "$as_me:$LINENO: result: no" >&5 |
| 5981 | echo "${ECHO_T}no" >&6 |
| 5982 | fi |
| 5983 | |
| 5984 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 5985 | if test -n "$ac_tool_prefix"; then |
| 5986 | echo "$as_me:$LINENO: checking for file" >&5 |
| 5987 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 5988 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5990 | else |
| 5991 | case $MAGIC_CMD in |
| 5992 | [\\/*] | ?:[\\/]*) |
| 5993 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5994 | ;; |
| 5995 | *) |
| 5996 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5997 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5998 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5999 | for ac_dir in $ac_dummy; do |
| 6000 | IFS="$lt_save_ifs" |
| 6001 | test -z "$ac_dir" && ac_dir=. |
| 6002 | if test -f $ac_dir/file; then |
| 6003 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 6004 | if test -n "$file_magic_test_file"; then |
| 6005 | case $deplibs_check_method in |
| 6006 | "file_magic "*) |
| 6007 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 6008 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6009 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6010 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6011 | : |
| 6012 | else |
| 6013 | cat <<EOF 1>&2 |
| 6014 | |
| 6015 | *** Warning: the command libtool uses to detect shared libraries, |
| 6016 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6017 | *** The result is that libtool may fail to recognize shared libraries |
| 6018 | *** as such. This will affect the creation of libtool libraries that |
| 6019 | *** depend on shared libraries, but programs linked with such libtool |
| 6020 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6021 | *** may want to report the problem to your system manager and/or to |
| 6022 | *** bug-libtool@gnu.org |
| 6023 | |
| 6024 | EOF |
| 6025 | fi ;; |
| 6026 | esac |
| 6027 | fi |
| 6028 | break |
| 6029 | fi |
| 6030 | done |
| 6031 | IFS="$lt_save_ifs" |
| 6032 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6033 | ;; |
| 6034 | esac |
| 6035 | fi |
| 6036 | |
| 6037 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6038 | if test -n "$MAGIC_CMD"; then |
| 6039 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6040 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 6041 | else |
| 6042 | echo "$as_me:$LINENO: result: no" >&5 |
| 6043 | echo "${ECHO_T}no" >&6 |
| 6044 | fi |
| 6045 | |
| 6046 | else |
| 6047 | MAGIC_CMD=: |
| 6048 | fi |
| 6049 | fi |
| 6050 | |
| 6051 | fi |
| 6052 | ;; |
| 6053 | esac |
| 6054 | |
| 6055 | enable_dlopen=no |
| 6056 | enable_win32_dll=no |
| 6057 | |
| 6058 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 6059 | if test "${enable_libtool_lock+set}" = set; then |
| 6060 | enableval="$enable_libtool_lock" |
| 6061 | |
| 6062 | fi; |
| 6063 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6064 | |
| 6065 | |
| 6066 | # Check whether --with-pic or --without-pic was given. |
| 6067 | if test "${with_pic+set}" = set; then |
| 6068 | withval="$with_pic" |
| 6069 | pic_mode="$withval" |
| 6070 | else |
| 6071 | pic_mode=default |
| 6072 | fi; |
| 6073 | test -z "$pic_mode" && pic_mode=default |
| 6074 | |
| 6075 | # Use C for the default configuration in the libtool script |
| 6076 | tagname= |
| 6077 | lt_save_CC="$CC" |
| 6078 | ac_ext=c |
| 6079 | ac_cpp='$CPP $CPPFLAGS' |
| 6080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6083 | |
| 6084 | |
| 6085 | # Source file extension for C test sources. |
| 6086 | ac_ext=c |
| 6087 | |
| 6088 | # Object file extension for compiled C test sources. |
| 6089 | objext=o |
| 6090 | objext=$objext |
| 6091 | |
| 6092 | # Code to be used in simple compile tests |
| 6093 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 6094 | |
| 6095 | # Code to be used in simple link tests |
| 6096 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 6097 | |
| 6098 | |
| 6099 | # If no C compiler was specified, use CC. |
| 6100 | LTCC=${LTCC-"$CC"} |
| 6101 | |
| 6102 | # Allow CC to be a program name with arguments. |
| 6103 | compiler=$CC |
| 6104 | |
| 6105 | |
| 6106 | # |
| 6107 | # Check for any special shared library compilation flags. |
| 6108 | # |
| 6109 | lt_prog_cc_shlib= |
| 6110 | if test "$GCC" = no; then |
| 6111 | case $host_os in |
| 6112 | sco3.2v5*) |
| 6113 | lt_prog_cc_shlib='-belf' |
| 6114 | ;; |
| 6115 | esac |
| 6116 | fi |
| 6117 | if test -n "$lt_prog_cc_shlib"; then |
| 6118 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 6119 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 6120 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 6121 | else |
| 6122 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 6123 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 6124 | lt_cv_prog_cc_can_build_shared=no |
| 6125 | fi |
| 6126 | fi |
| 6127 | |
| 6128 | |
| 6129 | # |
| 6130 | # Check to make sure the static flag actually works. |
| 6131 | # |
| 6132 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 6133 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 6134 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 6135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6136 | else |
| 6137 | lt_prog_compiler_static_works=no |
| 6138 | save_LDFLAGS="$LDFLAGS" |
| 6139 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 6140 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 6141 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 6142 | # The compiler can only warn and ignore the option if not recognized |
| 6143 | # So say no if there are warnings |
| 6144 | if test -s conftest.err; then |
| 6145 | # Append any errors to the config.log. |
| 6146 | cat conftest.err 1>&5 |
| 6147 | else |
| 6148 | lt_prog_compiler_static_works=yes |
| 6149 | fi |
| 6150 | fi |
| 6151 | $rm conftest* |
| 6152 | LDFLAGS="$save_LDFLAGS" |
| 6153 | |
| 6154 | fi |
| 6155 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 6156 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 6157 | |
| 6158 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 6159 | : |
| 6160 | else |
| 6161 | lt_prog_compiler_static= |
| 6162 | fi |
| 6163 | |
| 6164 | |
| 6165 | |
| 6166 | |
| 6167 | lt_prog_compiler_no_builtin_flag= |
| 6168 | |
| 6169 | if test "$GCC" = yes; then |
| 6170 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 6171 | |
| 6172 | |
| 6173 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 6174 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 6175 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 6176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6177 | else |
| 6178 | lt_cv_prog_compiler_rtti_exceptions=no |
| 6179 | ac_outfile=conftest.$ac_objext |
| 6180 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6181 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 6182 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6183 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6184 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6185 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6186 | # The option is referenced via a variable to avoid confusing sed. |
| 6187 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6188 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6189 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6190 | -e 's:$: $lt_compiler_flag:'` |
| 6191 | (eval echo "\"\$as_me:6191: $lt_compile\"" >&5) |
| 6192 | (eval "$lt_compile" 2>conftest.err) |
| 6193 | ac_status=$? |
| 6194 | cat conftest.err >&5 |
| 6195 | echo "$as_me:6195: \$? = $ac_status" >&5 |
| 6196 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6197 | # The compiler can only warn and ignore the option if not recognized |
| 6198 | # So say no if there are warnings |
| 6199 | if test ! -s conftest.err; then |
| 6200 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 6201 | fi |
| 6202 | fi |
| 6203 | $rm conftest* |
| 6204 | |
| 6205 | fi |
| 6206 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 6207 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 6208 | |
| 6209 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 6210 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 6211 | else |
| 6212 | : |
| 6213 | fi |
| 6214 | |
| 6215 | fi |
| 6216 | |
| 6217 | lt_prog_compiler_wl= |
| 6218 | lt_prog_compiler_pic= |
| 6219 | lt_prog_compiler_static= |
| 6220 | |
| 6221 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 6222 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 6223 | |
| 6224 | if test "$GCC" = yes; then |
| 6225 | lt_prog_compiler_wl='-Wl,' |
| 6226 | lt_prog_compiler_static='-static' |
| 6227 | |
| 6228 | case $host_os in |
| 6229 | aix*) |
| 6230 | # All AIX code is PIC. |
| 6231 | if test "$host_cpu" = ia64; then |
| 6232 | # AIX 5 now supports IA64 processor |
| 6233 | lt_prog_compiler_static='-Bstatic' |
| 6234 | fi |
| 6235 | ;; |
| 6236 | |
| 6237 | amigaos*) |
| 6238 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 6239 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 6240 | # like `-m68040'. |
| 6241 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 6242 | ;; |
| 6243 | |
| 6244 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 6245 | # PIC is the default for these OSes. |
| 6246 | ;; |
| 6247 | |
| 6248 | mingw* | pw32* | os2*) |
| 6249 | # This hack is so that the source file can tell whether it is being |
| 6250 | # built for inclusion in a dll (and should export symbols for example). |
| 6251 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6252 | ;; |
| 6253 | |
| 6254 | darwin* | rhapsody*) |
| 6255 | # PIC is the default on this platform |
| 6256 | # Common symbols not allowed in MH_DYLIB files |
| 6257 | lt_prog_compiler_pic='-fno-common' |
| 6258 | ;; |
| 6259 | |
| 6260 | msdosdjgpp*) |
| 6261 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6262 | # on systems that don't support them. |
| 6263 | lt_prog_compiler_can_build_shared=no |
| 6264 | enable_shared=no |
| 6265 | ;; |
| 6266 | |
| 6267 | sysv4*MP*) |
| 6268 | if test -d /usr/nec; then |
| 6269 | lt_prog_compiler_pic=-Kconform_pic |
| 6270 | fi |
| 6271 | ;; |
| 6272 | |
| 6273 | hpux*) |
| 6274 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6275 | # not for PA HP-UX. |
| 6276 | case "$host_cpu" in |
| 6277 | hppa*64*|ia64*) |
| 6278 | # +Z the default |
| 6279 | ;; |
| 6280 | *) |
| 6281 | lt_prog_compiler_pic='-fPIC' |
| 6282 | ;; |
| 6283 | esac |
| 6284 | ;; |
| 6285 | |
| 6286 | *) |
| 6287 | lt_prog_compiler_pic='-fPIC' |
| 6288 | ;; |
| 6289 | esac |
| 6290 | else |
| 6291 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 6292 | case $host_os in |
| 6293 | aix*) |
| 6294 | lt_prog_compiler_wl='-Wl,' |
| 6295 | if test "$host_cpu" = ia64; then |
| 6296 | # AIX 5 now supports IA64 processor |
| 6297 | lt_prog_compiler_static='-Bstatic' |
| 6298 | else |
| 6299 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 6300 | fi |
| 6301 | ;; |
| 6302 | |
| 6303 | mingw* | pw32* | os2*) |
| 6304 | # This hack is so that the source file can tell whether it is being |
| 6305 | # built for inclusion in a dll (and should export symbols for example). |
| 6306 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6307 | ;; |
| 6308 | |
| 6309 | hpux9* | hpux10* | hpux11*) |
| 6310 | lt_prog_compiler_wl='-Wl,' |
| 6311 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6312 | # not for PA HP-UX. |
| 6313 | case "$host_cpu" in |
| 6314 | hppa*64*|ia64*) |
| 6315 | # +Z the default |
| 6316 | ;; |
| 6317 | *) |
| 6318 | lt_prog_compiler_pic='+Z' |
| 6319 | ;; |
| 6320 | esac |
| 6321 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 6322 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 6323 | ;; |
| 6324 | |
| 6325 | irix5* | irix6* | nonstopux*) |
| 6326 | lt_prog_compiler_wl='-Wl,' |
| 6327 | # PIC (with -KPIC) is the default. |
| 6328 | lt_prog_compiler_static='-non_shared' |
| 6329 | ;; |
| 6330 | |
| 6331 | newsos6) |
| 6332 | lt_prog_compiler_pic='-KPIC' |
| 6333 | lt_prog_compiler_static='-Bstatic' |
| 6334 | ;; |
| 6335 | |
| 6336 | linux*) |
| 6337 | case $CC in |
| 6338 | icc* | ecc*) |
| 6339 | lt_prog_compiler_wl='-Wl,' |
| 6340 | lt_prog_compiler_pic='-KPIC' |
| 6341 | lt_prog_compiler_static='-static' |
| 6342 | ;; |
| 6343 | ccc*) |
| 6344 | lt_prog_compiler_wl='-Wl,' |
| 6345 | # All Alpha code is PIC. |
| 6346 | lt_prog_compiler_static='-non_shared' |
| 6347 | ;; |
| 6348 | esac |
| 6349 | ;; |
| 6350 | |
| 6351 | osf3* | osf4* | osf5*) |
| 6352 | lt_prog_compiler_wl='-Wl,' |
| 6353 | # All OSF/1 code is PIC. |
| 6354 | lt_prog_compiler_static='-non_shared' |
| 6355 | ;; |
| 6356 | |
| 6357 | sco3.2v5*) |
| 6358 | lt_prog_compiler_pic='-Kpic' |
| 6359 | lt_prog_compiler_static='-dn' |
| 6360 | ;; |
| 6361 | |
| 6362 | solaris*) |
| 6363 | lt_prog_compiler_wl='-Wl,' |
| 6364 | lt_prog_compiler_pic='-KPIC' |
| 6365 | lt_prog_compiler_static='-Bstatic' |
| 6366 | ;; |
| 6367 | |
| 6368 | sunos4*) |
| 6369 | lt_prog_compiler_wl='-Qoption ld ' |
| 6370 | lt_prog_compiler_pic='-PIC' |
| 6371 | lt_prog_compiler_static='-Bstatic' |
| 6372 | ;; |
| 6373 | |
| 6374 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 6375 | lt_prog_compiler_wl='-Wl,' |
| 6376 | lt_prog_compiler_pic='-KPIC' |
| 6377 | lt_prog_compiler_static='-Bstatic' |
| 6378 | ;; |
| 6379 | |
| 6380 | sysv4*MP*) |
| 6381 | if test -d /usr/nec ;then |
| 6382 | lt_prog_compiler_pic='-Kconform_pic' |
| 6383 | lt_prog_compiler_static='-Bstatic' |
| 6384 | fi |
| 6385 | ;; |
| 6386 | |
| 6387 | uts4*) |
| 6388 | lt_prog_compiler_pic='-pic' |
| 6389 | lt_prog_compiler_static='-Bstatic' |
| 6390 | ;; |
| 6391 | |
| 6392 | *) |
| 6393 | lt_prog_compiler_can_build_shared=no |
| 6394 | ;; |
| 6395 | esac |
| 6396 | fi |
| 6397 | |
| 6398 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 6399 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
| 6400 | |
| 6401 | # |
| 6402 | # Check to make sure the PIC flag actually works. |
| 6403 | # |
| 6404 | if test -n "$lt_prog_compiler_pic"; then |
| 6405 | |
| 6406 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 6407 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 6408 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 6409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6410 | else |
| 6411 | lt_prog_compiler_pic_works=no |
| 6412 | ac_outfile=conftest.$ac_objext |
| 6413 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6414 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 6415 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6416 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6417 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6418 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6419 | # The option is referenced via a variable to avoid confusing sed. |
| 6420 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6421 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6422 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6423 | -e 's:$: $lt_compiler_flag:'` |
| 6424 | (eval echo "\"\$as_me:6424: $lt_compile\"" >&5) |
| 6425 | (eval "$lt_compile" 2>conftest.err) |
| 6426 | ac_status=$? |
| 6427 | cat conftest.err >&5 |
| 6428 | echo "$as_me:6428: \$? = $ac_status" >&5 |
| 6429 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6430 | # The compiler can only warn and ignore the option if not recognized |
| 6431 | # So say no if there are warnings |
| 6432 | if test ! -s conftest.err; then |
| 6433 | lt_prog_compiler_pic_works=yes |
| 6434 | fi |
| 6435 | fi |
| 6436 | $rm conftest* |
| 6437 | |
| 6438 | fi |
| 6439 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 6440 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
| 6441 | |
| 6442 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 6443 | case $lt_prog_compiler_pic in |
| 6444 | "" | " "*) ;; |
| 6445 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 6446 | esac |
| 6447 | else |
| 6448 | lt_prog_compiler_pic= |
| 6449 | lt_prog_compiler_can_build_shared=no |
| 6450 | fi |
| 6451 | |
| 6452 | fi |
| 6453 | case "$host_os" in |
| 6454 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6455 | *djgpp*) |
| 6456 | lt_prog_compiler_pic= |
| 6457 | ;; |
| 6458 | *) |
| 6459 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 6460 | ;; |
| 6461 | esac |
| 6462 | |
| 6463 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6464 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 6465 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 6466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6467 | else |
| 6468 | lt_cv_prog_compiler_c_o=no |
| 6469 | $rm -r conftest 2>/dev/null |
| 6470 | mkdir conftest |
| 6471 | cd conftest |
| 6472 | mkdir out |
| 6473 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6474 | |
| 6475 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 6476 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6477 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6478 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6479 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6480 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6481 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6482 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6483 | -e 's:$: $lt_compiler_flag:'` |
| 6484 | (eval echo "\"\$as_me:6484: $lt_compile\"" >&5) |
| 6485 | (eval "$lt_compile" 2>out/conftest.err) |
| 6486 | ac_status=$? |
| 6487 | cat out/conftest.err >&5 |
| 6488 | echo "$as_me:6488: \$? = $ac_status" >&5 |
| 6489 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6490 | then |
| 6491 | # The compiler can only warn and ignore the option if not recognized |
| 6492 | # So say no if there are warnings |
| 6493 | if test ! -s out/conftest.err; then |
| 6494 | lt_cv_prog_compiler_c_o=yes |
| 6495 | fi |
| 6496 | fi |
| 6497 | chmod u+w . |
| 6498 | $rm conftest* |
| 6499 | # SGI C++ compiler will create directory out/ii_files/ for |
| 6500 | # template instantiation |
| 6501 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 6502 | $rm out/* && rmdir out |
| 6503 | cd .. |
| 6504 | rmdir conftest |
| 6505 | $rm conftest* |
| 6506 | |
| 6507 | fi |
| 6508 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 6509 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
| 6510 | |
| 6511 | |
| 6512 | hard_links="nottested" |
| 6513 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 6514 | # do not overwrite the value of need_locks provided by the user |
| 6515 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 6516 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 6517 | hard_links=yes |
| 6518 | $rm conftest* |
| 6519 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6520 | touch conftest.a |
| 6521 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 6522 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6523 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 6524 | echo "${ECHO_T}$hard_links" >&6 |
| 6525 | if test "$hard_links" = no; then |
| 6526 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 6527 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 6528 | need_locks=warn |
| 6529 | fi |
| 6530 | else |
| 6531 | need_locks=no |
| 6532 | fi |
| 6533 | |
| 6534 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 6535 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 6536 | |
| 6537 | runpath_var= |
| 6538 | allow_undefined_flag= |
| 6539 | enable_shared_with_static_runtimes=no |
| 6540 | archive_cmds= |
| 6541 | archive_expsym_cmds= |
| 6542 | old_archive_From_new_cmds= |
| 6543 | old_archive_from_expsyms_cmds= |
| 6544 | export_dynamic_flag_spec= |
| 6545 | whole_archive_flag_spec= |
| 6546 | thread_safe_flag_spec= |
| 6547 | hardcode_libdir_flag_spec= |
| 6548 | hardcode_libdir_flag_spec_ld= |
| 6549 | hardcode_libdir_separator= |
| 6550 | hardcode_direct=no |
| 6551 | hardcode_minus_L=no |
| 6552 | hardcode_shlibpath_var=unsupported |
| 6553 | link_all_deplibs=unknown |
| 6554 | hardcode_automatic=no |
| 6555 | module_cmds= |
| 6556 | module_expsym_cmds= |
| 6557 | always_export_symbols=no |
| 6558 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 6559 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 6560 | # included in the symbol list |
| 6561 | include_expsyms= |
| 6562 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 6563 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 6564 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 6565 | # as well as any symbol that contains `d'. |
| 6566 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 6567 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 6568 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 6569 | # the symbol is explicitly referenced. Since portable code cannot |
| 6570 | # rely on this symbol name, it's probably fine to never include it in |
| 6571 | # preloaded symbol tables. |
| 6572 | extract_expsyms_cmds= |
| 6573 | |
| 6574 | case $host_os in |
| 6575 | cygwin* | mingw* | pw32*) |
| 6576 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 6577 | # When not using gcc, we currently assume that we are using |
| 6578 | # Microsoft Visual C++. |
| 6579 | if test "$GCC" != yes; then |
| 6580 | with_gnu_ld=no |
| 6581 | fi |
| 6582 | ;; |
| 6583 | openbsd*) |
| 6584 | with_gnu_ld=no |
| 6585 | ;; |
| 6586 | esac |
| 6587 | |
| 6588 | ld_shlibs=yes |
| 6589 | if test "$with_gnu_ld" = yes; then |
| 6590 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 6591 | wlarc='${wl}' |
| 6592 | |
| 6593 | # See if GNU ld supports shared libraries. |
| 6594 | case $host_os in |
| 6595 | aix3* | aix4* | aix5*) |
| 6596 | # On AIX/PPC, the GNU linker is very broken |
| 6597 | if test "$host_cpu" != ia64; then |
| 6598 | ld_shlibs=no |
| 6599 | cat <<EOF 1>&2 |
| 6600 | |
| 6601 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 6602 | *** to be unable to reliably create shared libraries on AIX. |
| 6603 | *** Therefore, libtool is disabling shared libraries support. If you |
| 6604 | *** really care for shared libraries, you may want to modify your PATH |
| 6605 | *** so that a non-GNU linker is found, and then restart. |
| 6606 | |
| 6607 | EOF |
| 6608 | fi |
| 6609 | ;; |
| 6610 | |
| 6611 | amigaos*) |
| 6612 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 6613 | hardcode_libdir_flag_spec='-L$libdir' |
| 6614 | hardcode_minus_L=yes |
| 6615 | |
| 6616 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 6617 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 6618 | # to version 4, is to share data among multiple programs linked |
| 6619 | # with the same dynamic library. Since this doesn't match the |
| 6620 | # behavior |