| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.59. |
| 4 | # |
| 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
| 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
| 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
| 11 | |
| 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
| 243 | |
| 244 | |
| 245 | # Check that we are running under the correct shell. |
| 246 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 247 | |
| 248 | case X$lt_ECHO in |
| 249 | X*--fallback-echo) |
| 250 | # Remove one level of quotation (which was required for Make). |
| 251 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 252 | ;; |
| 253 | esac |
| 254 | |
| 255 | ECHO=${lt_ECHO-echo} |
| 256 | if test "X$1" = X--no-reexec; then |
| 257 | # Discard the --no-reexec flag, and continue. |
| 258 | shift |
| 259 | elif test "X$1" = X--fallback-echo; then |
| 260 | # Avoid inline document here, it may be left over |
| 261 | : |
| 262 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 263 | # Yippee, $ECHO works! |
| 264 | : |
| 265 | else |
| 266 | # Restart under the correct shell. |
| 267 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 268 | fi |
| 269 | |
| 270 | if test "X$1" = X--fallback-echo; then |
| 271 | # used as fallback echo |
| 272 | shift |
| 273 | cat <<_LT_EOF |
| 274 | $* |
| 275 | _LT_EOF |
| 276 | exit 0 |
| 277 | fi |
| 278 | |
| 279 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 280 | # if CDPATH is set. |
| 281 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 282 | |
| 283 | if test -z "$lt_ECHO"; then |
| 284 | if test "X${echo_test_string+set}" != Xset; then |
| 285 | # find a string as large as possible, as long as the shell can cope with it |
| 286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 288 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 289 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 290 | then |
| 291 | break |
| 292 | fi |
| 293 | done |
| 294 | fi |
| 295 | |
| 296 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 297 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 298 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 299 | : |
| 300 | else |
| 301 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 302 | # backslashes. This makes it impossible to quote backslashes using |
| 303 | # echo "$something" | sed 's/\\/\\\\/g' |
| 304 | # |
| 305 | # So, first we look for a working echo in the user's PATH. |
| 306 | |
| 307 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 308 | for dir in $PATH /usr/ucb; do |
| 309 | IFS="$lt_save_ifs" |
| 310 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 311 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 312 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 313 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 314 | ECHO="$dir/echo" |
| 315 | break |
| 316 | fi |
| 317 | done |
| 318 | IFS="$lt_save_ifs" |
| 319 | |
| 320 | if test "X$ECHO" = Xecho; then |
| 321 | # We didn't find a better echo, so look for alternatives. |
| 322 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 323 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 324 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 325 | # This shell has a builtin print -r that does the trick. |
| 326 | ECHO='print -r' |
| 327 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 328 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 329 | # If we have ksh, try running configure again with it. |
| 330 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 331 | export ORIGINAL_CONFIG_SHELL |
| 332 | CONFIG_SHELL=/bin/ksh |
| 333 | export CONFIG_SHELL |
| 334 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 335 | else |
| 336 | # Try using printf. |
| 337 | ECHO='printf %s\n' |
| 338 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 339 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 340 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 341 | # Cool, printf works |
| 342 | : |
| 343 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 344 | test "X$echo_testing_string" = 'X\t' && |
| 345 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 346 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 347 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 348 | export CONFIG_SHELL |
| 349 | SHELL="$CONFIG_SHELL" |
| 350 | export SHELL |
| 351 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 352 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 353 | test "X$echo_testing_string" = 'X\t' && |
| 354 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 355 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 356 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 357 | else |
| 358 | # maybe with a smaller string... |
| 359 | prev=: |
| 360 | |
| 361 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 362 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 363 | then |
| 364 | break |
| 365 | fi |
| 366 | prev="$cmd" |
| 367 | done |
| 368 | |
| 369 | if test "$prev" != 'sed 50q "$0"'; then |
| 370 | echo_test_string=`eval $prev` |
| 371 | export echo_test_string |
| 372 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 373 | else |
| 374 | # Oops. We lost completely, so just stick with echo. |
| 375 | ECHO=echo |
| 376 | fi |
| 377 | fi |
| 378 | fi |
| 379 | fi |
| 380 | fi |
| 381 | fi |
| 382 | |
| 383 | # Copy echo and quote the copy suitably for passing to libtool from |
| 384 | # the Makefile, instead of quoting the original, which is used later. |
| 385 | lt_ECHO=$ECHO |
| 386 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 387 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 388 | fi |
| 389 | |
| 390 | |
| 391 | |
| 392 | |
| 393 | # Name of the host. |
| 394 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 395 | # so uname gets run too. |
| 396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 397 | |
| 398 | exec 6>&1 |
| 399 | |
| 400 | # |
| 401 | # Initializations. |
| 402 | # |
| 403 | ac_default_prefix=/usr/local |
| 404 | ac_config_libobj_dir=. |
| 405 | cross_compiling=no |
| 406 | subdirs= |
| 407 | MFLAGS= |
| 408 | MAKEFLAGS= |
| 409 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 410 | |
| 411 | # Maximum number of lines to put in a shell here document. |
| 412 | # This variable seems obsolete. It should probably be removed, and |
| 413 | # only ac_max_sed_lines should be used. |
| 414 | : ${ac_max_here_lines=38} |
| 415 | |
| 416 | # Identity of this package. |
| 417 | PACKAGE_NAME= |
| 418 | PACKAGE_TARNAME= |
| 419 | PACKAGE_VERSION= |
| 420 | PACKAGE_STRING= |
| 421 | PACKAGE_BUGREPORT= |
| 422 | |
| 423 | ac_unique_file="ar.c" |
| 424 | # Factoring default headers for most tests. |
| 425 | ac_includes_default="\ |
| 426 | #include <stdio.h> |
| 427 | #if HAVE_SYS_TYPES_H |
| 428 | # include <sys/types.h> |
| 429 | #endif |
| 430 | #if HAVE_SYS_STAT_H |
| 431 | # include <sys/stat.h> |
| 432 | #endif |
| 433 | #if STDC_HEADERS |
| 434 | # include <stdlib.h> |
| 435 | # include <stddef.h> |
| 436 | #else |
| 437 | # if HAVE_STDLIB_H |
| 438 | # include <stdlib.h> |
| 439 | # endif |
| 440 | #endif |
| 441 | #if HAVE_STRING_H |
| 442 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 443 | # include <memory.h> |
| 444 | # endif |
| 445 | # include <string.h> |
| 446 | #endif |
| 447 | #if HAVE_STRINGS_H |
| 448 | # include <strings.h> |
| 449 | #endif |
| 450 | #if HAVE_INTTYPES_H |
| 451 | # include <inttypes.h> |
| 452 | #else |
| 453 | # if HAVE_STDINT_H |
| 454 | # include <stdint.h> |
| 455 | # endif |
| 456 | #endif |
| 457 | #if HAVE_UNISTD_H |
| 458 | # include <unistd.h> |
| 459 | #endif" |
| 460 | |
| 461 | 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS' |
| 462 | ac_subst_files='' |
| 463 | |
| 464 | # Initialize some variables set by options. |
| 465 | ac_init_help= |
| 466 | ac_init_version=false |
| 467 | # The variables have the same names as the options, with |
| 468 | # dashes changed to underlines. |
| 469 | cache_file=/dev/null |
| 470 | exec_prefix=NONE |
| 471 | no_create= |
| 472 | no_recursion= |
| 473 | prefix=NONE |
| 474 | program_prefix=NONE |
| 475 | program_suffix=NONE |
| 476 | program_transform_name=s,x,x, |
| 477 | silent= |
| 478 | site= |
| 479 | srcdir= |
| 480 | verbose= |
| 481 | x_includes=NONE |
| 482 | x_libraries=NONE |
| 483 | |
| 484 | # Installation directory options. |
| 485 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 486 | # and all the variables that are supposed to be based on exec_prefix |
| 487 | # by default will actually change. |
| 488 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 489 | bindir='${exec_prefix}/bin' |
| 490 | sbindir='${exec_prefix}/sbin' |
| 491 | libexecdir='${exec_prefix}/libexec' |
| 492 | datadir='${prefix}/share' |
| 493 | sysconfdir='${prefix}/etc' |
| 494 | sharedstatedir='${prefix}/com' |
| 495 | localstatedir='${prefix}/var' |
| 496 | libdir='${exec_prefix}/lib' |
| 497 | includedir='${prefix}/include' |
| 498 | oldincludedir='/usr/include' |
| 499 | infodir='${prefix}/info' |
| 500 | mandir='${prefix}/man' |
| 501 | |
| 502 | ac_prev= |
| 503 | for ac_option |
| 504 | do |
| 505 | # If the previous option needs an argument, assign it. |
| 506 | if test -n "$ac_prev"; then |
| 507 | eval "$ac_prev=\$ac_option" |
| 508 | ac_prev= |
| 509 | continue |
| 510 | fi |
| 511 | |
| 512 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 513 | |
| 514 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 515 | |
| 516 | case $ac_option in |
| 517 | |
| 518 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 519 | ac_prev=bindir ;; |
| 520 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 521 | bindir=$ac_optarg ;; |
| 522 | |
| 523 | -build | --build | --buil | --bui | --bu) |
| 524 | ac_prev=build_alias ;; |
| 525 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 526 | build_alias=$ac_optarg ;; |
| 527 | |
| 528 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 529 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 530 | ac_prev=cache_file ;; |
| 531 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 532 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 533 | cache_file=$ac_optarg ;; |
| 534 | |
| 535 | --config-cache | -C) |
| 536 | cache_file=config.cache ;; |
| 537 | |
| 538 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 539 | ac_prev=datadir ;; |
| 540 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 541 | | --da=*) |
| 542 | datadir=$ac_optarg ;; |
| 543 | |
| 544 | -disable-* | --disable-*) |
| 545 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 546 | # Reject names that are not valid shell variable names. |
| 547 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 548 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 549 | { (exit 1); exit 1; }; } |
| 550 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 551 | eval "enable_$ac_feature=no" ;; |
| 552 | |
| 553 | -enable-* | --enable-*) |
| 554 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 555 | # Reject names that are not valid shell variable names. |
| 556 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 557 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 558 | { (exit 1); exit 1; }; } |
| 559 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 560 | case $ac_option in |
| 561 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 562 | *) ac_optarg=yes ;; |
| 563 | esac |
| 564 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 565 | |
| 566 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 567 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 568 | | --exec | --exe | --ex) |
| 569 | ac_prev=exec_prefix ;; |
| 570 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 571 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 572 | | --exec=* | --exe=* | --ex=*) |
| 573 | exec_prefix=$ac_optarg ;; |
| 574 | |
| 575 | -gas | --gas | --ga | --g) |
| 576 | # Obsolete; use --with-gas. |
| 577 | with_gas=yes ;; |
| 578 | |
| 579 | -help | --help | --hel | --he | -h) |
| 580 | ac_init_help=long ;; |
| 581 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 582 | ac_init_help=recursive ;; |
| 583 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 584 | ac_init_help=short ;; |
| 585 | |
| 586 | -host | --host | --hos | --ho) |
| 587 | ac_prev=host_alias ;; |
| 588 | -host=* | --host=* | --hos=* | --ho=*) |
| 589 | host_alias=$ac_optarg ;; |
| 590 | |
| 591 | -includedir | --includedir | --includedi | --included | --include \ |
| 592 | | --includ | --inclu | --incl | --inc) |
| 593 | ac_prev=includedir ;; |
| 594 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 595 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 596 | includedir=$ac_optarg ;; |
| 597 | |
| 598 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 599 | ac_prev=infodir ;; |
| 600 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 601 | infodir=$ac_optarg ;; |
| 602 | |
| 603 | -libdir | --libdir | --libdi | --libd) |
| 604 | ac_prev=libdir ;; |
| 605 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 606 | libdir=$ac_optarg ;; |
| 607 | |
| 608 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 609 | | --libexe | --libex | --libe) |
| 610 | ac_prev=libexecdir ;; |
| 611 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 612 | | --libexe=* | --libex=* | --libe=*) |
| 613 | libexecdir=$ac_optarg ;; |
| 614 | |
| 615 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 616 | | --localstate | --localstat | --localsta | --localst \ |
| 617 | | --locals | --local | --loca | --loc | --lo) |
| 618 | ac_prev=localstatedir ;; |
| 619 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 620 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 621 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 622 | localstatedir=$ac_optarg ;; |
| 623 | |
| 624 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 625 | ac_prev=mandir ;; |
| 626 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 627 | mandir=$ac_optarg ;; |
| 628 | |
| 629 | -nfp | --nfp | --nf) |
| 630 | # Obsolete; use --without-fp. |
| 631 | with_fp=no ;; |
| 632 | |
| 633 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 634 | | --no-cr | --no-c | -n) |
| 635 | no_create=yes ;; |
| 636 | |
| 637 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 638 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 639 | no_recursion=yes ;; |
| 640 | |
| 641 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 642 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 643 | | --oldin | --oldi | --old | --ol | --o) |
| 644 | ac_prev=oldincludedir ;; |
| 645 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 646 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 647 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 648 | oldincludedir=$ac_optarg ;; |
| 649 | |
| 650 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 651 | ac_prev=prefix ;; |
| 652 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 653 | prefix=$ac_optarg ;; |
| 654 | |
| 655 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 656 | | --program-pre | --program-pr | --program-p) |
| 657 | ac_prev=program_prefix ;; |
| 658 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 659 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 660 | program_prefix=$ac_optarg ;; |
| 661 | |
| 662 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 663 | | --program-suf | --program-su | --program-s) |
| 664 | ac_prev=program_suffix ;; |
| 665 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 666 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 667 | program_suffix=$ac_optarg ;; |
| 668 | |
| 669 | -program-transform-name | --program-transform-name \ |
| 670 | | --program-transform-nam | --program-transform-na \ |
| 671 | | --program-transform-n | --program-transform- \ |
| 672 | | --program-transform | --program-transfor \ |
| 673 | | --program-transfo | --program-transf \ |
| 674 | | --program-trans | --program-tran \ |
| 675 | | --progr-tra | --program-tr | --program-t) |
| 676 | ac_prev=program_transform_name ;; |
| 677 | -program-transform-name=* | --program-transform-name=* \ |
| 678 | | --program-transform-nam=* | --program-transform-na=* \ |
| 679 | | --program-transform-n=* | --program-transform-=* \ |
| 680 | | --program-transform=* | --program-transfor=* \ |
| 681 | | --program-transfo=* | --program-transf=* \ |
| 682 | | --program-trans=* | --program-tran=* \ |
| 683 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 684 | program_transform_name=$ac_optarg ;; |
| 685 | |
| 686 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 687 | | -silent | --silent | --silen | --sile | --sil) |
| 688 | silent=yes ;; |
| 689 | |
| 690 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 691 | ac_prev=sbindir ;; |
| 692 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 693 | | --sbi=* | --sb=*) |
| 694 | sbindir=$ac_optarg ;; |
| 695 | |
| 696 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 697 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 698 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 699 | | --sha | --sh) |
| 700 | ac_prev=sharedstatedir ;; |
| 701 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 702 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 703 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 704 | | --sha=* | --sh=*) |
| 705 | sharedstatedir=$ac_optarg ;; |
| 706 | |
| 707 | -site | --site | --sit) |
| 708 | ac_prev=site ;; |
| 709 | -site=* | --site=* | --sit=*) |
| 710 | site=$ac_optarg ;; |
| 711 | |
| 712 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 713 | ac_prev=srcdir ;; |
| 714 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 715 | srcdir=$ac_optarg ;; |
| 716 | |
| 717 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 718 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 719 | ac_prev=sysconfdir ;; |
| 720 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 721 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 722 | sysconfdir=$ac_optarg ;; |
| 723 | |
| 724 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 725 | ac_prev=target_alias ;; |
| 726 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 727 | target_alias=$ac_optarg ;; |
| 728 | |
| 729 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 730 | verbose=yes ;; |
| 731 | |
| 732 | -version | --version | --versio | --versi | --vers | -V) |
| 733 | ac_init_version=: ;; |
| 734 | |
| 735 | -with-* | --with-*) |
| 736 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 737 | # Reject names that are not valid shell variable names. |
| 738 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 739 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 740 | { (exit 1); exit 1; }; } |
| 741 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 742 | case $ac_option in |
| 743 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 744 | *) ac_optarg=yes ;; |
| 745 | esac |
| 746 | eval "with_$ac_package='$ac_optarg'" ;; |
| 747 | |
| 748 | -without-* | --without-*) |
| 749 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 750 | # Reject names that are not valid shell variable names. |
| 751 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 752 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 753 | { (exit 1); exit 1; }; } |
| 754 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 755 | eval "with_$ac_package=no" ;; |
| 756 | |
| 757 | --x) |
| 758 | # Obsolete; use --with-x. |
| 759 | with_x=yes ;; |
| 760 | |
| 761 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 762 | | --x-incl | --x-inc | --x-in | --x-i) |
| 763 | ac_prev=x_includes ;; |
| 764 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 765 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 766 | x_includes=$ac_optarg ;; |
| 767 | |
| 768 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 769 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 770 | ac_prev=x_libraries ;; |
| 771 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 772 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 773 | x_libraries=$ac_optarg ;; |
| 774 | |
| 775 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 776 | Try \`$0 --help' for more information." >&2 |
| 777 | { (exit 1); exit 1; }; } |
| 778 | ;; |
| 779 | |
| 780 | *=*) |
| 781 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 782 | # Reject names that are not valid shell variable names. |
| 783 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 784 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 785 | { (exit 1); exit 1; }; } |
| 786 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 787 | eval "$ac_envvar='$ac_optarg'" |
| 788 | export $ac_envvar ;; |
| 789 | |
| 790 | *) |
| 791 | # FIXME: should be removed in autoconf 3.0. |
| 792 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 793 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 794 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 795 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 796 | ;; |
| 797 | |
| 798 | esac |
| 799 | done |
| 800 | |
| 801 | if test -n "$ac_prev"; then |
| 802 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 803 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 804 | { (exit 1); exit 1; }; } |
| 805 | fi |
| 806 | |
| 807 | # Be sure to have absolute paths. |
| 808 | for ac_var in exec_prefix prefix |
| 809 | do |
| 810 | eval ac_val=$`echo $ac_var` |
| 811 | case $ac_val in |
| 812 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 813 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 814 | { (exit 1); exit 1; }; };; |
| 815 | esac |
| 816 | done |
| 817 | |
| 818 | # Be sure to have absolute paths. |
| 819 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 820 | localstatedir libdir includedir oldincludedir infodir mandir |
| 821 | do |
| 822 | eval ac_val=$`echo $ac_var` |
| 823 | case $ac_val in |
| 824 | [\\/$]* | ?:[\\/]* ) ;; |
| 825 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 826 | { (exit 1); exit 1; }; };; |
| 827 | esac |
| 828 | done |
| 829 | |
| 830 | # There might be people who depend on the old broken behavior: `$host' |
| 831 | # used to hold the argument of --host etc. |
| 832 | # FIXME: To remove some day. |
| 833 | build=$build_alias |
| 834 | host=$host_alias |
| 835 | target=$target_alias |
| 836 | |
| 837 | # FIXME: To remove some day. |
| 838 | if test "x$host_alias" != x; then |
| 839 | if test "x$build_alias" = x; then |
| 840 | cross_compiling=maybe |
| 841 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 842 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 843 | elif test "x$build_alias" != "x$host_alias"; then |
| 844 | cross_compiling=yes |
| 845 | fi |
| 846 | fi |
| 847 | |
| 848 | ac_tool_prefix= |
| 849 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 850 | |
| 851 | test "$silent" = yes && exec 6>/dev/null |
| 852 | |
| 853 | |
| 854 | # Find the source files, if location was not specified. |
| 855 | if test -z "$srcdir"; then |
| 856 | ac_srcdir_defaulted=yes |
| 857 | # Try the directory containing this script, then its parent. |
| 858 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 859 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 860 | X"$0" : 'X\(//\)[^/]' \| \ |
| 861 | X"$0" : 'X\(//\)$' \| \ |
| 862 | X"$0" : 'X\(/\)' \| \ |
| 863 | . : '\(.\)' 2>/dev/null || |
| 864 | echo X"$0" | |
| 865 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 866 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 867 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 868 | /^X\(\/\).*/{ s//\1/; q; } |
| 869 | s/.*/./; q'` |
| 870 | srcdir=$ac_confdir |
| 871 | if test ! -r $srcdir/$ac_unique_file; then |
| 872 | srcdir=.. |
| 873 | fi |
| 874 | else |
| 875 | ac_srcdir_defaulted=no |
| 876 | fi |
| 877 | if test ! -r $srcdir/$ac_unique_file; then |
| 878 | if test "$ac_srcdir_defaulted" = yes; then |
| 879 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 880 | { (exit 1); exit 1; }; } |
| 881 | else |
| 882 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 883 | { (exit 1); exit 1; }; } |
| 884 | fi |
| 885 | fi |
| 886 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 887 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 888 | { (exit 1); exit 1; }; } |
| 889 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 890 | ac_env_build_alias_set=${build_alias+set} |
| 891 | ac_env_build_alias_value=$build_alias |
| 892 | ac_cv_env_build_alias_set=${build_alias+set} |
| 893 | ac_cv_env_build_alias_value=$build_alias |
| 894 | ac_env_host_alias_set=${host_alias+set} |
| 895 | ac_env_host_alias_value=$host_alias |
| 896 | ac_cv_env_host_alias_set=${host_alias+set} |
| 897 | ac_cv_env_host_alias_value=$host_alias |
| 898 | ac_env_target_alias_set=${target_alias+set} |
| 899 | ac_env_target_alias_value=$target_alias |
| 900 | ac_cv_env_target_alias_set=${target_alias+set} |
| 901 | ac_cv_env_target_alias_value=$target_alias |
| 902 | ac_env_CC_set=${CC+set} |
| 903 | ac_env_CC_value=$CC |
| 904 | ac_cv_env_CC_set=${CC+set} |
| 905 | ac_cv_env_CC_value=$CC |
| 906 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 907 | ac_env_CFLAGS_value=$CFLAGS |
| 908 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 909 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 910 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 911 | ac_env_LDFLAGS_value=$LDFLAGS |
| 912 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 913 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 914 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 915 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 916 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 917 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 918 | ac_env_CPP_set=${CPP+set} |
| 919 | ac_env_CPP_value=$CPP |
| 920 | ac_cv_env_CPP_set=${CPP+set} |
| 921 | ac_cv_env_CPP_value=$CPP |
| 922 | |
| 923 | # |
| 924 | # Report the --help message. |
| 925 | # |
| 926 | if test "$ac_init_help" = "long"; then |
| 927 | # Omit some internal or obsolete options to make the list less imposing. |
| 928 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 929 | cat <<_ACEOF |
| 930 | \`configure' configures this package to adapt to many kinds of systems. |
| 931 | |
| 932 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 933 | |
| 934 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 935 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 936 | |
| 937 | Defaults for the options are specified in brackets. |
| 938 | |
| 939 | Configuration: |
| 940 | -h, --help display this help and exit |
| 941 | --help=short display options specific to this package |
| 942 | --help=recursive display the short help of all the included packages |
| 943 | -V, --version display version information and exit |
| 944 | -q, --quiet, --silent do not print \`checking...' messages |
| 945 | --cache-file=FILE cache test results in FILE [disabled] |
| 946 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 947 | -n, --no-create do not create output files |
| 948 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 949 | |
| 950 | _ACEOF |
| 951 | |
| 952 | cat <<_ACEOF |
| 953 | Installation directories: |
| 954 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 955 | [$ac_default_prefix] |
| 956 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 957 | [PREFIX] |
| 958 | |
| 959 | By default, \`make install' will install all the files in |
| 960 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 961 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 962 | for instance \`--prefix=\$HOME'. |
| 963 | |
| 964 | For better control, use the options below. |
| 965 | |
| 966 | Fine tuning of the installation directories: |
| 967 | --bindir=DIR user executables [EPREFIX/bin] |
| 968 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 969 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 970 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 971 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 972 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 973 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 974 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 975 | --includedir=DIR C header files [PREFIX/include] |
| 976 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 977 | --infodir=DIR info documentation [PREFIX/info] |
| 978 | --mandir=DIR man documentation [PREFIX/man] |
| 979 | _ACEOF |
| 980 | |
| 981 | cat <<\_ACEOF |
| 982 | |
| 983 | Program names: |
| 984 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 985 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 986 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 987 | |
| 988 | System types: |
| 989 | --build=BUILD configure for building on BUILD [guessed] |
| 990 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 991 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 992 | _ACEOF |
| 993 | fi |
| 994 | |
| 995 | if test -n "$ac_init_help"; then |
| 996 | |
| 997 | cat <<\_ACEOF |
| 998 | |
| 999 | Optional Features: |
| 1000 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1001 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1002 | --disable-dependency-tracking speeds up one-time build |
| 1003 | --enable-dependency-tracking do not reject slow dependency extractors |
| 1004 | --enable-shared[=PKGS] |
| 1005 | build shared libraries [default=yes] |
| 1006 | --enable-static[=PKGS] |
| 1007 | build static libraries [default=yes] |
| 1008 | --enable-fast-install[=PKGS] |
| 1009 | optimize for fast installation [default=yes] |
| 1010 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1011 | --enable-targets alternative target configurations |
| 1012 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library |
| 1013 | --enable-werror treat compile warnings as errors |
| 1014 | --enable-build-warnings enable build-time compiler warnings |
| 1015 | --disable-nls do not use Native Language Support |
| 1016 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1017 | (and sometimes confusing) to the casual installer |
| 1018 | --disable-rpath do not hardcode runtime library paths |
| 1019 | |
| 1020 | Optional Packages: |
| 1021 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1022 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1023 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1024 | both] |
| 1025 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1026 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1027 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1028 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1029 | |
| 1030 | Some influential environment variables: |
| 1031 | CC C compiler command |
| 1032 | CFLAGS C compiler flags |
| 1033 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1034 | nonstandard directory <lib dir> |
| 1035 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1036 | headers in a nonstandard directory <include dir> |
| 1037 | CPP C preprocessor |
| 1038 | |
| 1039 | Use these variables to override the choices made by `configure' or to help |
| 1040 | it to find libraries and programs with nonstandard names/locations. |
| 1041 | |
| 1042 | _ACEOF |
| 1043 | fi |
| 1044 | |
| 1045 | if test "$ac_init_help" = "recursive"; then |
| 1046 | # If there are subdirs, report their specific --help. |
| 1047 | ac_popdir=`pwd` |
| 1048 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1049 | test -d $ac_dir || continue |
| 1050 | ac_builddir=. |
| 1051 | |
| 1052 | if test "$ac_dir" != .; then |
| 1053 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1054 | # A "../" for each directory in $ac_dir_suffix. |
| 1055 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1056 | else |
| 1057 | ac_dir_suffix= ac_top_builddir= |
| 1058 | fi |
| 1059 | |
| 1060 | case $srcdir in |
| 1061 | .) # No --srcdir option. We are building in place. |
| 1062 | ac_srcdir=. |
| 1063 | if test -z "$ac_top_builddir"; then |
| 1064 | ac_top_srcdir=. |
| 1065 | else |
| 1066 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1067 | fi ;; |
| 1068 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1069 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1070 | ac_top_srcdir=$srcdir ;; |
| 1071 | *) # Relative path. |
| 1072 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1073 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1074 | esac |
| 1075 | |
| 1076 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1077 | # the directories may not exist. |
| 1078 | case `pwd` in |
| 1079 | .) ac_abs_builddir="$ac_dir";; |
| 1080 | *) |
| 1081 | case "$ac_dir" in |
| 1082 | .) ac_abs_builddir=`pwd`;; |
| 1083 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1084 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1085 | esac;; |
| 1086 | esac |
| 1087 | case $ac_abs_builddir in |
| 1088 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1089 | *) |
| 1090 | case ${ac_top_builddir}. in |
| 1091 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1092 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1093 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1094 | esac;; |
| 1095 | esac |
| 1096 | case $ac_abs_builddir in |
| 1097 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1098 | *) |
| 1099 | case $ac_srcdir in |
| 1100 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1101 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1102 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1103 | esac;; |
| 1104 | esac |
| 1105 | case $ac_abs_builddir in |
| 1106 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1107 | *) |
| 1108 | case $ac_top_srcdir in |
| 1109 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1110 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1111 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1112 | esac;; |
| 1113 | esac |
| 1114 | |
| 1115 | cd $ac_dir |
| 1116 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1117 | if test -f $ac_srcdir/configure.gnu; then |
| 1118 | echo |
| 1119 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1120 | elif test -f $ac_srcdir/configure; then |
| 1121 | echo |
| 1122 | $SHELL $ac_srcdir/configure --help=recursive |
| 1123 | elif test -f $ac_srcdir/configure.ac || |
| 1124 | test -f $ac_srcdir/configure.in; then |
| 1125 | echo |
| 1126 | $ac_configure --help |
| 1127 | else |
| 1128 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1129 | fi |
| 1130 | cd $ac_popdir |
| 1131 | done |
| 1132 | fi |
| 1133 | |
| 1134 | test -n "$ac_init_help" && exit 0 |
| 1135 | if $ac_init_version; then |
| 1136 | cat <<\_ACEOF |
| 1137 | |
| 1138 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1139 | This configure script is free software; the Free Software Foundation |
| 1140 | gives unlimited permission to copy, distribute and modify it. |
| 1141 | _ACEOF |
| 1142 | exit 0 |
| 1143 | fi |
| 1144 | exec 5>config.log |
| 1145 | cat >&5 <<_ACEOF |
| 1146 | This file contains any messages produced by compilers while |
| 1147 | running configure, to aid debugging if configure makes a mistake. |
| 1148 | |
| 1149 | It was created by $as_me, which was |
| 1150 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1151 | |
| 1152 | $ $0 $@ |
| 1153 | |
| 1154 | _ACEOF |
| 1155 | { |
| 1156 | cat <<_ASUNAME |
| 1157 | ## --------- ## |
| 1158 | ## Platform. ## |
| 1159 | ## --------- ## |
| 1160 | |
| 1161 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1162 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1163 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1164 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1165 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1166 | |
| 1167 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1168 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1169 | |
| 1170 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1171 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1172 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1173 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1174 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1175 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1176 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1177 | |
| 1178 | _ASUNAME |
| 1179 | |
| 1180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1181 | for as_dir in $PATH |
| 1182 | do |
| 1183 | IFS=$as_save_IFS |
| 1184 | test -z "$as_dir" && as_dir=. |
| 1185 | echo "PATH: $as_dir" |
| 1186 | done |
| 1187 | |
| 1188 | } >&5 |
| 1189 | |
| 1190 | cat >&5 <<_ACEOF |
| 1191 | |
| 1192 | |
| 1193 | ## ----------- ## |
| 1194 | ## Core tests. ## |
| 1195 | ## ----------- ## |
| 1196 | |
| 1197 | _ACEOF |
| 1198 | |
| 1199 | |
| 1200 | # Keep a trace of the command line. |
| 1201 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1202 | # Strip out --silent because we don't want to record it for future runs. |
| 1203 | # Also quote any args containing shell meta-characters. |
| 1204 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1205 | ac_configure_args= |
| 1206 | ac_configure_args0= |
| 1207 | ac_configure_args1= |
| 1208 | ac_sep= |
| 1209 | ac_must_keep_next=false |
| 1210 | for ac_pass in 1 2 |
| 1211 | do |
| 1212 | for ac_arg |
| 1213 | do |
| 1214 | case $ac_arg in |
| 1215 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1216 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1217 | | -silent | --silent | --silen | --sile | --sil) |
| 1218 | continue ;; |
| 1219 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1220 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1221 | esac |
| 1222 | case $ac_pass in |
| 1223 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1224 | 2) |
| 1225 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1226 | if test $ac_must_keep_next = true; then |
| 1227 | ac_must_keep_next=false # Got value, back to normal. |
| 1228 | else |
| 1229 | case $ac_arg in |
| 1230 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1231 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1232 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1233 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1234 | case "$ac_configure_args0 " in |
| 1235 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1236 | esac |
| 1237 | ;; |
| 1238 | -* ) ac_must_keep_next=true ;; |
| 1239 | esac |
| 1240 | fi |
| 1241 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1242 | # Get rid of the leading space. |
| 1243 | ac_sep=" " |
| 1244 | ;; |
| 1245 | esac |
| 1246 | done |
| 1247 | done |
| 1248 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1249 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1250 | |
| 1251 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1252 | # config.log. We remove comments because anyway the quotes in there |
| 1253 | # would cause problems or look ugly. |
| 1254 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1255 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1256 | trap 'exit_status=$? |
| 1257 | # Save into config.log some information that might help in debugging. |
| 1258 | { |
| 1259 | echo |
| 1260 | |
| 1261 | cat <<\_ASBOX |
| 1262 | ## ---------------- ## |
| 1263 | ## Cache variables. ## |
| 1264 | ## ---------------- ## |
| 1265 | _ASBOX |
| 1266 | echo |
| 1267 | # The following way of writing the cache mishandles newlines in values, |
| 1268 | { |
| 1269 | (set) 2>&1 | |
| 1270 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1271 | *ac_space=\ *) |
| 1272 | sed -n \ |
| 1273 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1274 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1275 | ;; |
| 1276 | *) |
| 1277 | sed -n \ |
| 1278 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1279 | ;; |
| 1280 | esac; |
| 1281 | } |
| 1282 | echo |
| 1283 | |
| 1284 | cat <<\_ASBOX |
| 1285 | ## ----------------- ## |
| 1286 | ## Output variables. ## |
| 1287 | ## ----------------- ## |
| 1288 | _ASBOX |
| 1289 | echo |
| 1290 | for ac_var in $ac_subst_vars |
| 1291 | do |
| 1292 | eval ac_val=$`echo $ac_var` |
| 1293 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1294 | done | sort |
| 1295 | echo |
| 1296 | |
| 1297 | if test -n "$ac_subst_files"; then |
| 1298 | cat <<\_ASBOX |
| 1299 | ## ------------- ## |
| 1300 | ## Output files. ## |
| 1301 | ## ------------- ## |
| 1302 | _ASBOX |
| 1303 | echo |
| 1304 | for ac_var in $ac_subst_files |
| 1305 | do |
| 1306 | eval ac_val=$`echo $ac_var` |
| 1307 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1308 | done | sort |
| 1309 | echo |
| 1310 | fi |
| 1311 | |
| 1312 | if test -s confdefs.h; then |
| 1313 | cat <<\_ASBOX |
| 1314 | ## ----------- ## |
| 1315 | ## confdefs.h. ## |
| 1316 | ## ----------- ## |
| 1317 | _ASBOX |
| 1318 | echo |
| 1319 | sed "/^$/d" confdefs.h | sort |
| 1320 | echo |
| 1321 | fi |
| 1322 | test "$ac_signal" != 0 && |
| 1323 | echo "$as_me: caught signal $ac_signal" |
| 1324 | echo "$as_me: exit $exit_status" |
| 1325 | } >&5 |
| 1326 | rm -f core *.core && |
| 1327 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1328 | exit $exit_status |
| 1329 | ' 0 |
| 1330 | for ac_signal in 1 2 13 15; do |
| 1331 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1332 | done |
| 1333 | ac_signal=0 |
| 1334 | |
| 1335 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1336 | rm -rf conftest* confdefs.h |
| 1337 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1338 | echo >confdefs.h |
| 1339 | |
| 1340 | # Predefined preprocessor variables. |
| 1341 | |
| 1342 | cat >>confdefs.h <<_ACEOF |
| 1343 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1344 | _ACEOF |
| 1345 | |
| 1346 | |
| 1347 | cat >>confdefs.h <<_ACEOF |
| 1348 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1349 | _ACEOF |
| 1350 | |
| 1351 | |
| 1352 | cat >>confdefs.h <<_ACEOF |
| 1353 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1354 | _ACEOF |
| 1355 | |
| 1356 | |
| 1357 | cat >>confdefs.h <<_ACEOF |
| 1358 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1359 | _ACEOF |
| 1360 | |
| 1361 | |
| 1362 | cat >>confdefs.h <<_ACEOF |
| 1363 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1364 | _ACEOF |
| 1365 | |
| 1366 | |
| 1367 | # Let the site file select an alternate cache file if it wants to. |
| 1368 | # Prefer explicitly selected file to automatically selected ones. |
| 1369 | if test -z "$CONFIG_SITE"; then |
| 1370 | if test "x$prefix" != xNONE; then |
| 1371 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1372 | else |
| 1373 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1374 | fi |
| 1375 | fi |
| 1376 | for ac_site_file in $CONFIG_SITE; do |
| 1377 | if test -r "$ac_site_file"; then |
| 1378 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1379 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1380 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1381 | . "$ac_site_file" |
| 1382 | fi |
| 1383 | done |
| 1384 | |
| 1385 | if test -r "$cache_file"; then |
| 1386 | # Some versions of bash will fail to source /dev/null (special |
| 1387 | # files actually), so we avoid doing that. |
| 1388 | if test -f "$cache_file"; then |
| 1389 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1390 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1391 | case $cache_file in |
| 1392 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1393 | *) . ./$cache_file;; |
| 1394 | esac |
| 1395 | fi |
| 1396 | else |
| 1397 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1398 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1399 | >$cache_file |
| 1400 | fi |
| 1401 | |
| 1402 | # Check that the precious variables saved in the cache have kept the same |
| 1403 | # value. |
| 1404 | ac_cache_corrupted=false |
| 1405 | for ac_var in `(set) 2>&1 | |
| 1406 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1407 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1408 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1409 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1410 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1411 | case $ac_old_set,$ac_new_set in |
| 1412 | set,) |
| 1413 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1414 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1415 | ac_cache_corrupted=: ;; |
| 1416 | ,set) |
| 1417 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1418 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1419 | ac_cache_corrupted=: ;; |
| 1420 | ,);; |
| 1421 | *) |
| 1422 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1423 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1424 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1425 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1426 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1427 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1428 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1429 | ac_cache_corrupted=: |
| 1430 | fi;; |
| 1431 | esac |
| 1432 | # Pass precious variables to config.status. |
| 1433 | if test "$ac_new_set" = set; then |
| 1434 | case $ac_new_val in |
| 1435 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1436 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1437 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1438 | esac |
| 1439 | case " $ac_configure_args " in |
| 1440 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1441 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1442 | esac |
| 1443 | fi |
| 1444 | done |
| 1445 | if $ac_cache_corrupted; then |
| 1446 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1447 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1448 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1449 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1450 | { (exit 1); exit 1; }; } |
| 1451 | fi |
| 1452 | |
| 1453 | ac_ext=c |
| 1454 | ac_cpp='$CPP $CPPFLAGS' |
| 1455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1458 | |
| 1459 | |
| 1460 | |
| 1461 | |
| 1462 | |
| 1463 | |
| 1464 | |
| 1465 | |
| 1466 | |
| 1467 | |
| 1468 | |
| 1469 | |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | |
| 1476 | |
| 1477 | |
| 1478 | ac_aux_dir= |
| 1479 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1480 | if test -f $ac_dir/install-sh; then |
| 1481 | ac_aux_dir=$ac_dir |
| 1482 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1483 | break |
| 1484 | elif test -f $ac_dir/install.sh; then |
| 1485 | ac_aux_dir=$ac_dir |
| 1486 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1487 | break |
| 1488 | elif test -f $ac_dir/shtool; then |
| 1489 | ac_aux_dir=$ac_dir |
| 1490 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1491 | break |
| 1492 | fi |
| 1493 | done |
| 1494 | if test -z "$ac_aux_dir"; then |
| 1495 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1496 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1497 | { (exit 1); exit 1; }; } |
| 1498 | fi |
| 1499 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1500 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1501 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1502 | |
| 1503 | # Make sure we can run config.sub. |
| 1504 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1505 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1506 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1507 | { (exit 1); exit 1; }; } |
| 1508 | |
| 1509 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1510 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1511 | if test "${ac_cv_build+set}" = set; then |
| 1512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1513 | else |
| 1514 | ac_cv_build_alias=$build_alias |
| 1515 | test -z "$ac_cv_build_alias" && |
| 1516 | ac_cv_build_alias=`$ac_config_guess` |
| 1517 | test -z "$ac_cv_build_alias" && |
| 1518 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1519 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1520 | { (exit 1); exit 1; }; } |
| 1521 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1522 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1523 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1524 | { (exit 1); exit 1; }; } |
| 1525 | |
| 1526 | fi |
| 1527 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1528 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1529 | build=$ac_cv_build |
| 1530 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1531 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1532 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1533 | |
| 1534 | |
| 1535 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1536 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1537 | if test "${ac_cv_host+set}" = set; then |
| 1538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1539 | else |
| 1540 | ac_cv_host_alias=$host_alias |
| 1541 | test -z "$ac_cv_host_alias" && |
| 1542 | ac_cv_host_alias=$ac_cv_build_alias |
| 1543 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1544 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1545 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1546 | { (exit 1); exit 1; }; } |
| 1547 | |
| 1548 | fi |
| 1549 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1550 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1551 | host=$ac_cv_host |
| 1552 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1553 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1554 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1555 | |
| 1556 | |
| 1557 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1558 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1559 | if test "${ac_cv_target+set}" = set; then |
| 1560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1561 | else |
| 1562 | ac_cv_target_alias=$target_alias |
| 1563 | test "x$ac_cv_target_alias" = "x" && |
| 1564 | ac_cv_target_alias=$ac_cv_host_alias |
| 1565 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1566 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1567 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1568 | { (exit 1); exit 1; }; } |
| 1569 | |
| 1570 | fi |
| 1571 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1572 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1573 | target=$ac_cv_target |
| 1574 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1575 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1576 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1577 | |
| 1578 | |
| 1579 | # The aliases save the names the user supplied, while $host etc. |
| 1580 | # will get canonicalized. |
| 1581 | test -n "$target_alias" && |
| 1582 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1583 | NONENONEs,x,x, && |
| 1584 | program_prefix=${target_alias}- |
| 1585 | ac_ext=c |
| 1586 | ac_cpp='$CPP $CPPFLAGS' |
| 1587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1590 | if test -n "$ac_tool_prefix"; then |
| 1591 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1592 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1595 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1597 | else |
| 1598 | if test -n "$CC"; then |
| 1599 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1600 | else |
| 1601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1602 | for as_dir in $PATH |
| 1603 | do |
| 1604 | IFS=$as_save_IFS |
| 1605 | test -z "$as_dir" && as_dir=. |
| 1606 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1608 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1610 | break 2 |
| 1611 | fi |
| 1612 | done |
| 1613 | done |
| 1614 | |
| 1615 | fi |
| 1616 | fi |
| 1617 | CC=$ac_cv_prog_CC |
| 1618 | if test -n "$CC"; then |
| 1619 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1620 | echo "${ECHO_T}$CC" >&6 |
| 1621 | else |
| 1622 | echo "$as_me:$LINENO: result: no" >&5 |
| 1623 | echo "${ECHO_T}no" >&6 |
| 1624 | fi |
| 1625 | |
| 1626 | fi |
| 1627 | if test -z "$ac_cv_prog_CC"; then |
| 1628 | ac_ct_CC=$CC |
| 1629 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1630 | set dummy gcc; ac_word=$2 |
| 1631 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1633 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1635 | else |
| 1636 | if test -n "$ac_ct_CC"; then |
| 1637 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1638 | else |
| 1639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1640 | for as_dir in $PATH |
| 1641 | do |
| 1642 | IFS=$as_save_IFS |
| 1643 | test -z "$as_dir" && as_dir=. |
| 1644 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1645 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1646 | ac_cv_prog_ac_ct_CC="gcc" |
| 1647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1648 | break 2 |
| 1649 | fi |
| 1650 | done |
| 1651 | done |
| 1652 | |
| 1653 | fi |
| 1654 | fi |
| 1655 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1656 | if test -n "$ac_ct_CC"; then |
| 1657 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1658 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1659 | else |
| 1660 | echo "$as_me:$LINENO: result: no" >&5 |
| 1661 | echo "${ECHO_T}no" >&6 |
| 1662 | fi |
| 1663 | |
| 1664 | CC=$ac_ct_CC |
| 1665 | else |
| 1666 | CC="$ac_cv_prog_CC" |
| 1667 | fi |
| 1668 | |
| 1669 | if test -z "$CC"; then |
| 1670 | if test -n "$ac_tool_prefix"; then |
| 1671 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1672 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1673 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1675 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1677 | else |
| 1678 | if test -n "$CC"; then |
| 1679 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1680 | else |
| 1681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1682 | for as_dir in $PATH |
| 1683 | do |
| 1684 | IFS=$as_save_IFS |
| 1685 | test -z "$as_dir" && as_dir=. |
| 1686 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1687 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1688 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1690 | break 2 |
| 1691 | fi |
| 1692 | done |
| 1693 | done |
| 1694 | |
| 1695 | fi |
| 1696 | fi |
| 1697 | CC=$ac_cv_prog_CC |
| 1698 | if test -n "$CC"; then |
| 1699 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1700 | echo "${ECHO_T}$CC" >&6 |
| 1701 | else |
| 1702 | echo "$as_me:$LINENO: result: no" >&5 |
| 1703 | echo "${ECHO_T}no" >&6 |
| 1704 | fi |
| 1705 | |
| 1706 | fi |
| 1707 | if test -z "$ac_cv_prog_CC"; then |
| 1708 | ac_ct_CC=$CC |
| 1709 | # Extract the first word of "cc", so it can be a program name with args. |
| 1710 | set dummy cc; ac_word=$2 |
| 1711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1713 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1715 | else |
| 1716 | if test -n "$ac_ct_CC"; then |
| 1717 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1718 | else |
| 1719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1720 | for as_dir in $PATH |
| 1721 | do |
| 1722 | IFS=$as_save_IFS |
| 1723 | test -z "$as_dir" && as_dir=. |
| 1724 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1726 | ac_cv_prog_ac_ct_CC="cc" |
| 1727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1728 | break 2 |
| 1729 | fi |
| 1730 | done |
| 1731 | done |
| 1732 | |
| 1733 | fi |
| 1734 | fi |
| 1735 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1736 | if test -n "$ac_ct_CC"; then |
| 1737 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1738 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1739 | else |
| 1740 | echo "$as_me:$LINENO: result: no" >&5 |
| 1741 | echo "${ECHO_T}no" >&6 |
| 1742 | fi |
| 1743 | |
| 1744 | CC=$ac_ct_CC |
| 1745 | else |
| 1746 | CC="$ac_cv_prog_CC" |
| 1747 | fi |
| 1748 | |
| 1749 | fi |
| 1750 | if test -z "$CC"; then |
| 1751 | # Extract the first word of "cc", so it can be a program name with args. |
| 1752 | set dummy cc; ac_word=$2 |
| 1753 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1755 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1757 | else |
| 1758 | if test -n "$CC"; then |
| 1759 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1760 | else |
| 1761 | ac_prog_rejected=no |
| 1762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1763 | for as_dir in $PATH |
| 1764 | do |
| 1765 | IFS=$as_save_IFS |
| 1766 | test -z "$as_dir" && as_dir=. |
| 1767 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1768 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1769 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1770 | ac_prog_rejected=yes |
| 1771 | continue |
| 1772 | fi |
| 1773 | ac_cv_prog_CC="cc" |
| 1774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1775 | break 2 |
| 1776 | fi |
| 1777 | done |
| 1778 | done |
| 1779 | |
| 1780 | if test $ac_prog_rejected = yes; then |
| 1781 | # We found a bogon in the path, so make sure we never use it. |
| 1782 | set dummy $ac_cv_prog_CC |
| 1783 | shift |
| 1784 | if test $# != 0; then |
| 1785 | # We chose a different compiler from the bogus one. |
| 1786 | # However, it has the same basename, so the bogon will be chosen |
| 1787 | # first if we set CC to just the basename; use the full file name. |
| 1788 | shift |
| 1789 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1790 | fi |
| 1791 | fi |
| 1792 | fi |
| 1793 | fi |
| 1794 | CC=$ac_cv_prog_CC |
| 1795 | if test -n "$CC"; then |
| 1796 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1797 | echo "${ECHO_T}$CC" >&6 |
| 1798 | else |
| 1799 | echo "$as_me:$LINENO: result: no" >&5 |
| 1800 | echo "${ECHO_T}no" >&6 |
| 1801 | fi |
| 1802 | |
| 1803 | fi |
| 1804 | if test -z "$CC"; then |
| 1805 | if test -n "$ac_tool_prefix"; then |
| 1806 | for ac_prog in cl |
| 1807 | do |
| 1808 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1809 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1810 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1812 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1814 | else |
| 1815 | if test -n "$CC"; then |
| 1816 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1817 | else |
| 1818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1819 | for as_dir in $PATH |
| 1820 | do |
| 1821 | IFS=$as_save_IFS |
| 1822 | test -z "$as_dir" && as_dir=. |
| 1823 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1824 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1825 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1827 | break 2 |
| 1828 | fi |
| 1829 | done |
| 1830 | done |
| 1831 | |
| 1832 | fi |
| 1833 | fi |
| 1834 | CC=$ac_cv_prog_CC |
| 1835 | if test -n "$CC"; then |
| 1836 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1837 | echo "${ECHO_T}$CC" >&6 |
| 1838 | else |
| 1839 | echo "$as_me:$LINENO: result: no" >&5 |
| 1840 | echo "${ECHO_T}no" >&6 |
| 1841 | fi |
| 1842 | |
| 1843 | test -n "$CC" && break |
| 1844 | done |
| 1845 | fi |
| 1846 | if test -z "$CC"; then |
| 1847 | ac_ct_CC=$CC |
| 1848 | for ac_prog in cl |
| 1849 | do |
| 1850 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1851 | set dummy $ac_prog; ac_word=$2 |
| 1852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1854 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1856 | else |
| 1857 | if test -n "$ac_ct_CC"; then |
| 1858 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1859 | else |
| 1860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1861 | for as_dir in $PATH |
| 1862 | do |
| 1863 | IFS=$as_save_IFS |
| 1864 | test -z "$as_dir" && as_dir=. |
| 1865 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1867 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1869 | break 2 |
| 1870 | fi |
| 1871 | done |
| 1872 | done |
| 1873 | |
| 1874 | fi |
| 1875 | fi |
| 1876 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1877 | if test -n "$ac_ct_CC"; then |
| 1878 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1879 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1880 | else |
| 1881 | echo "$as_me:$LINENO: result: no" >&5 |
| 1882 | echo "${ECHO_T}no" >&6 |
| 1883 | fi |
| 1884 | |
| 1885 | test -n "$ac_ct_CC" && break |
| 1886 | done |
| 1887 | |
| 1888 | CC=$ac_ct_CC |
| 1889 | fi |
| 1890 | |
| 1891 | fi |
| 1892 | |
| 1893 | |
| 1894 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1895 | See \`config.log' for more details." >&5 |
| 1896 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1897 | See \`config.log' for more details." >&2;} |
| 1898 | { (exit 1); exit 1; }; } |
| 1899 | |
| 1900 | # Provide some information about the compiler. |
| 1901 | echo "$as_me:$LINENO:" \ |
| 1902 | "checking for C compiler version" >&5 |
| 1903 | ac_compiler=`set X $ac_compile; echo $2` |
| 1904 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1905 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1906 | ac_status=$? |
| 1907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1908 | (exit $ac_status); } |
| 1909 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1910 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1911 | ac_status=$? |
| 1912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1913 | (exit $ac_status); } |
| 1914 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1915 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1916 | ac_status=$? |
| 1917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1918 | (exit $ac_status); } |
| 1919 | |
| 1920 | cat >conftest.$ac_ext <<_ACEOF |
| 1921 | /* confdefs.h. */ |
| 1922 | _ACEOF |
| 1923 | cat confdefs.h >>conftest.$ac_ext |
| 1924 | cat >>conftest.$ac_ext <<_ACEOF |
| 1925 | /* end confdefs.h. */ |
| 1926 | |
| 1927 | int |
| 1928 | main () |
| 1929 | { |
| 1930 | |
| 1931 | ; |
| 1932 | return 0; |
| 1933 | } |
| 1934 | _ACEOF |
| 1935 | ac_clean_files_save=$ac_clean_files |
| 1936 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1937 | # Try to create an executable without -o first, disregard a.out. |
| 1938 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1939 | # of exeext. |
| 1940 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1941 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1942 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1943 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1944 | (eval $ac_link_default) 2>&5 |
| 1945 | ac_status=$? |
| 1946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1947 | (exit $ac_status); }; then |
| 1948 | # Find the output, starting from the most likely. This scheme is |
| 1949 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1950 | # resort. |
| 1951 | |
| 1952 | # Be careful to initialize this variable, since it used to be cached. |
| 1953 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1954 | ac_cv_exeext= |
| 1955 | # b.out is created by i960 compilers. |
| 1956 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1957 | do |
| 1958 | test -f "$ac_file" || continue |
| 1959 | case $ac_file in |
| 1960 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1961 | ;; |
| 1962 | conftest.$ac_ext ) |
| 1963 | # This is the source file. |
| 1964 | ;; |
| 1965 | [ab].out ) |
| 1966 | # We found the default executable, but exeext='' is most |
| 1967 | # certainly right. |
| 1968 | break;; |
| 1969 | *.* ) |
| 1970 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1971 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1972 | # but it would be cool to find out if it's true. Does anybody |
| 1973 | # maintain Libtool? --akim. |
| 1974 | export ac_cv_exeext |
| 1975 | break;; |
| 1976 | * ) |
| 1977 | break;; |
| 1978 | esac |
| 1979 | done |
| 1980 | else |
| 1981 | echo "$as_me: failed program was:" >&5 |
| 1982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1983 | |
| 1984 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1985 | See \`config.log' for more details." >&5 |
| 1986 | echo "$as_me: error: C compiler cannot create executables |
| 1987 | See \`config.log' for more details." >&2;} |
| 1988 | { (exit 77); exit 77; }; } |
| 1989 | fi |
| 1990 | |
| 1991 | ac_exeext=$ac_cv_exeext |
| 1992 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1993 | echo "${ECHO_T}$ac_file" >&6 |
| 1994 | |
| 1995 | # Check the compiler produces executables we can run. If not, either |
| 1996 | # the compiler is broken, or we cross compile. |
| 1997 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1998 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1999 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2000 | # If not cross compiling, check that we can run a simple program. |
| 2001 | if test "$cross_compiling" != yes; then |
| 2002 | if { ac_try='./$ac_file' |
| 2003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2004 | (eval $ac_try) 2>&5 |
| 2005 | ac_status=$? |
| 2006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2007 | (exit $ac_status); }; }; then |
| 2008 | cross_compiling=no |
| 2009 | else |
| 2010 | if test "$cross_compiling" = maybe; then |
| 2011 | cross_compiling=yes |
| 2012 | else |
| 2013 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2014 | If you meant to cross compile, use \`--host'. |
| 2015 | See \`config.log' for more details." >&5 |
| 2016 | echo "$as_me: error: cannot run C compiled programs. |
| 2017 | If you meant to cross compile, use \`--host'. |
| 2018 | See \`config.log' for more details." >&2;} |
| 2019 | { (exit 1); exit 1; }; } |
| 2020 | fi |
| 2021 | fi |
| 2022 | fi |
| 2023 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2024 | echo "${ECHO_T}yes" >&6 |
| 2025 | |
| 2026 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2027 | ac_clean_files=$ac_clean_files_save |
| 2028 | # Check the compiler produces executables we can run. If not, either |
| 2029 | # the compiler is broken, or we cross compile. |
| 2030 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2031 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2032 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2033 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2034 | |
| 2035 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2036 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2038 | (eval $ac_link) 2>&5 |
| 2039 | ac_status=$? |
| 2040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2041 | (exit $ac_status); }; then |
| 2042 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2043 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2044 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2045 | # `rm'. |
| 2046 | for ac_file in conftest.exe conftest conftest.*; do |
| 2047 | test -f "$ac_file" || continue |
| 2048 | case $ac_file in |
| 2049 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2050 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2051 | export ac_cv_exeext |
| 2052 | break;; |
| 2053 | * ) break;; |
| 2054 | esac |
| 2055 | done |
| 2056 | else |
| 2057 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2058 | See \`config.log' for more details." >&5 |
| 2059 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2060 | See \`config.log' for more details." >&2;} |
| 2061 | { (exit 1); exit 1; }; } |
| 2062 | fi |
| 2063 | |
| 2064 | rm -f conftest$ac_cv_exeext |
| 2065 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2066 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2067 | |
| 2068 | rm -f conftest.$ac_ext |
| 2069 | EXEEXT=$ac_cv_exeext |
| 2070 | ac_exeext=$EXEEXT |
| 2071 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2072 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2073 | if test "${ac_cv_objext+set}" = set; then |
| 2074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2075 | else |
| 2076 | cat >conftest.$ac_ext <<_ACEOF |
| 2077 | /* confdefs.h. */ |
| 2078 | _ACEOF |
| 2079 | cat confdefs.h >>conftest.$ac_ext |
| 2080 | cat >>conftest.$ac_ext <<_ACEOF |
| 2081 | /* end confdefs.h. */ |
| 2082 | |
| 2083 | int |
| 2084 | main () |
| 2085 | { |
| 2086 | |
| 2087 | ; |
| 2088 | return 0; |
| 2089 | } |
| 2090 | _ACEOF |
| 2091 | rm -f conftest.o conftest.obj |
| 2092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2093 | (eval $ac_compile) 2>&5 |
| 2094 | ac_status=$? |
| 2095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2096 | (exit $ac_status); }; then |
| 2097 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2098 | case $ac_file in |
| 2099 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2100 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2101 | break;; |
| 2102 | esac |
| 2103 | done |
| 2104 | else |
| 2105 | echo "$as_me: failed program was:" >&5 |
| 2106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2107 | |
| 2108 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2109 | See \`config.log' for more details." >&5 |
| 2110 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2111 | See \`config.log' for more details." >&2;} |
| 2112 | { (exit 1); exit 1; }; } |
| 2113 | fi |
| 2114 | |
| 2115 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2116 | fi |
| 2117 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2118 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2119 | OBJEXT=$ac_cv_objext |
| 2120 | ac_objext=$OBJEXT |
| 2121 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2122 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2123 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2125 | else |
| 2126 | cat >conftest.$ac_ext <<_ACEOF |
| 2127 | /* confdefs.h. */ |
| 2128 | _ACEOF |
| 2129 | cat confdefs.h >>conftest.$ac_ext |
| 2130 | cat >>conftest.$ac_ext <<_ACEOF |
| 2131 | /* end confdefs.h. */ |
| 2132 | |
| 2133 | int |
| 2134 | main () |
| 2135 | { |
| 2136 | #ifndef __GNUC__ |
| 2137 | choke me |
| 2138 | #endif |
| 2139 | |
| 2140 | ; |
| 2141 | return 0; |
| 2142 | } |
| 2143 | _ACEOF |
| 2144 | rm -f conftest.$ac_objext |
| 2145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2146 | (eval $ac_compile) 2>conftest.er1 |
| 2147 | ac_status=$? |
| 2148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2149 | rm -f conftest.er1 |
| 2150 | cat conftest.err >&5 |
| 2151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2152 | (exit $ac_status); } && |
| 2153 | { ac_try='test -z "$ac_c_werror_flag" |
| 2154 | || test ! -s conftest.err' |
| 2155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2156 | (eval $ac_try) 2>&5 |
| 2157 | ac_status=$? |
| 2158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2159 | (exit $ac_status); }; } && |
| 2160 | { ac_try='test -s conftest.$ac_objext' |
| 2161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2162 | (eval $ac_try) 2>&5 |
| 2163 | ac_status=$? |
| 2164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2165 | (exit $ac_status); }; }; then |
| 2166 | ac_compiler_gnu=yes |
| 2167 | else |
| 2168 | echo "$as_me: failed program was:" >&5 |
| 2169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2170 | |
| 2171 | ac_compiler_gnu=no |
| 2172 | fi |
| 2173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2174 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2175 | |
| 2176 | fi |
| 2177 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2178 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2179 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2180 | ac_test_CFLAGS=${CFLAGS+set} |
| 2181 | ac_save_CFLAGS=$CFLAGS |
| 2182 | CFLAGS="-g" |
| 2183 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2184 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2185 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2187 | else |
| 2188 | cat >conftest.$ac_ext <<_ACEOF |
| 2189 | /* confdefs.h. */ |
| 2190 | _ACEOF |
| 2191 | cat confdefs.h >>conftest.$ac_ext |
| 2192 | cat >>conftest.$ac_ext <<_ACEOF |
| 2193 | /* end confdefs.h. */ |
| 2194 | |
| 2195 | int |
| 2196 | main () |
| 2197 | { |
| 2198 | |
| 2199 | ; |
| 2200 | return 0; |
| 2201 | } |
| 2202 | _ACEOF |
| 2203 | rm -f conftest.$ac_objext |
| 2204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2205 | (eval $ac_compile) 2>conftest.er1 |
| 2206 | ac_status=$? |
| 2207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2208 | rm -f conftest.er1 |
| 2209 | cat conftest.err >&5 |
| 2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2211 | (exit $ac_status); } && |
| 2212 | { ac_try='test -z "$ac_c_werror_flag" |
| 2213 | || test ! -s conftest.err' |
| 2214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2215 | (eval $ac_try) 2>&5 |
| 2216 | ac_status=$? |
| 2217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2218 | (exit $ac_status); }; } && |
| 2219 | { ac_try='test -s conftest.$ac_objext' |
| 2220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2221 | (eval $ac_try) 2>&5 |
| 2222 | ac_status=$? |
| 2223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2224 | (exit $ac_status); }; }; then |
| 2225 | ac_cv_prog_cc_g=yes |
| 2226 | else |
| 2227 | echo "$as_me: failed program was:" >&5 |
| 2228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2229 | |
| 2230 | ac_cv_prog_cc_g=no |
| 2231 | fi |
| 2232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2233 | fi |
| 2234 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2235 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2236 | if test "$ac_test_CFLAGS" = set; then |
| 2237 | CFLAGS=$ac_save_CFLAGS |
| 2238 | elif test $ac_cv_prog_cc_g = yes; then |
| 2239 | if test "$GCC" = yes; then |
| 2240 | CFLAGS="-g -O2" |
| 2241 | else |
| 2242 | CFLAGS="-g" |
| 2243 | fi |
| 2244 | else |
| 2245 | if test "$GCC" = yes; then |
| 2246 | CFLAGS="-O2" |
| 2247 | else |
| 2248 | CFLAGS= |
| 2249 | fi |
| 2250 | fi |
| 2251 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2252 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2253 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2255 | else |
| 2256 | ac_cv_prog_cc_stdc=no |
| 2257 | ac_save_CC=$CC |
| 2258 | cat >conftest.$ac_ext <<_ACEOF |
| 2259 | /* confdefs.h. */ |
| 2260 | _ACEOF |
| 2261 | cat confdefs.h >>conftest.$ac_ext |
| 2262 | cat >>conftest.$ac_ext <<_ACEOF |
| 2263 | /* end confdefs.h. */ |
| 2264 | #include <stdarg.h> |
| 2265 | #include <stdio.h> |
| 2266 | #include <sys/types.h> |
| 2267 | #include <sys/stat.h> |
| 2268 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2269 | struct buf { int x; }; |
| 2270 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2271 | static char *e (p, i) |
| 2272 | char **p; |
| 2273 | int i; |
| 2274 | { |
| 2275 | return p[i]; |
| 2276 | } |
| 2277 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2278 | { |
| 2279 | char *s; |
| 2280 | va_list v; |
| 2281 | va_start (v,p); |
| 2282 | s = g (p, va_arg (v,int)); |
| 2283 | va_end (v); |
| 2284 | return s; |
| 2285 | } |
| 2286 | |
| 2287 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2288 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2289 | These don't provoke an error unfortunately, instead are silently treated |
| 2290 | as 'x'. The following induces an error, until -std1 is added to get |
| 2291 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2292 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2293 | that's true only with -std1. */ |
| 2294 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2295 | |
| 2296 | int test (int i, double x); |
| 2297 | struct s1 {int (*f) (int a);}; |
| 2298 | struct s2 {int (*f) (double a);}; |
| 2299 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2300 | int argc; |
| 2301 | char **argv; |
| 2302 | int |
| 2303 | main () |
| 2304 | { |
| 2305 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2306 | ; |
| 2307 | return 0; |
| 2308 | } |
| 2309 | _ACEOF |
| 2310 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2311 | # breaks some systems' header files. |
| 2312 | # AIX -qlanglvl=ansi |
| 2313 | # Ultrix and OSF/1 -std1 |
| 2314 | # HP-UX 10.20 and later -Ae |
| 2315 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2316 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2317 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2318 | do |
| 2319 | CC="$ac_save_CC $ac_arg" |
| 2320 | rm -f conftest.$ac_objext |
| 2321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2322 | (eval $ac_compile) 2>conftest.er1 |
| 2323 | ac_status=$? |
| 2324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2325 | rm -f conftest.er1 |
| 2326 | cat conftest.err >&5 |
| 2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2328 | (exit $ac_status); } && |
| 2329 | { ac_try='test -z "$ac_c_werror_flag" |
| 2330 | || test ! -s conftest.err' |
| 2331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2332 | (eval $ac_try) 2>&5 |
| 2333 | ac_status=$? |
| 2334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2335 | (exit $ac_status); }; } && |
| 2336 | { ac_try='test -s conftest.$ac_objext' |
| 2337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2338 | (eval $ac_try) 2>&5 |
| 2339 | ac_status=$? |
| 2340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2341 | (exit $ac_status); }; }; then |
| 2342 | ac_cv_prog_cc_stdc=$ac_arg |
| 2343 | break |
| 2344 | else |
| 2345 | echo "$as_me: failed program was:" >&5 |
| 2346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2347 | |
| 2348 | fi |
| 2349 | rm -f conftest.err conftest.$ac_objext |
| 2350 | done |
| 2351 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2352 | CC=$ac_save_CC |
| 2353 | |
| 2354 | fi |
| 2355 | |
| 2356 | case "x$ac_cv_prog_cc_stdc" in |
| 2357 | x|xno) |
| 2358 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2359 | echo "${ECHO_T}none needed" >&6 ;; |
| 2360 | *) |
| 2361 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2362 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2363 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2364 | esac |
| 2365 | |
| 2366 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2367 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2368 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2369 | # the declaration of exit, since it's the most demanding environment. |
| 2370 | cat >conftest.$ac_ext <<_ACEOF |
| 2371 | #ifndef __cplusplus |
| 2372 | choke me |
| 2373 | #endif |
| 2374 | _ACEOF |
| 2375 | rm -f conftest.$ac_objext |
| 2376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2377 | (eval $ac_compile) 2>conftest.er1 |
| 2378 | ac_status=$? |
| 2379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2380 | rm -f conftest.er1 |
| 2381 | cat conftest.err >&5 |
| 2382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2383 | (exit $ac_status); } && |
| 2384 | { ac_try='test -z "$ac_c_werror_flag" |
| 2385 | || test ! -s conftest.err' |
| 2386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2387 | (eval $ac_try) 2>&5 |
| 2388 | ac_status=$? |
| 2389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2390 | (exit $ac_status); }; } && |
| 2391 | { ac_try='test -s conftest.$ac_objext' |
| 2392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2393 | (eval $ac_try) 2>&5 |
| 2394 | ac_status=$? |
| 2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2396 | (exit $ac_status); }; }; then |
| 2397 | for ac_declaration in \ |
| 2398 | '' \ |
| 2399 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2400 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2401 | 'extern "C" void exit (int) throw ();' \ |
| 2402 | 'extern "C" void exit (int);' \ |
| 2403 | 'void exit (int);' |
| 2404 | do |
| 2405 | cat >conftest.$ac_ext <<_ACEOF |
| 2406 | /* confdefs.h. */ |
| 2407 | _ACEOF |
| 2408 | cat confdefs.h >>conftest.$ac_ext |
| 2409 | cat >>conftest.$ac_ext <<_ACEOF |
| 2410 | /* end confdefs.h. */ |
| 2411 | $ac_declaration |
| 2412 | #include <stdlib.h> |
| 2413 | int |
| 2414 | main () |
| 2415 | { |
| 2416 | exit (42); |
| 2417 | ; |
| 2418 | return 0; |
| 2419 | } |
| 2420 | _ACEOF |
| 2421 | rm -f conftest.$ac_objext |
| 2422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2423 | (eval $ac_compile) 2>conftest.er1 |
| 2424 | ac_status=$? |
| 2425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2426 | rm -f conftest.er1 |
| 2427 | cat conftest.err >&5 |
| 2428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2429 | (exit $ac_status); } && |
| 2430 | { ac_try='test -z "$ac_c_werror_flag" |
| 2431 | || test ! -s conftest.err' |
| 2432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2433 | (eval $ac_try) 2>&5 |
| 2434 | ac_status=$? |
| 2435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2436 | (exit $ac_status); }; } && |
| 2437 | { ac_try='test -s conftest.$ac_objext' |
| 2438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2439 | (eval $ac_try) 2>&5 |
| 2440 | ac_status=$? |
| 2441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2442 | (exit $ac_status); }; }; then |
| 2443 | : |
| 2444 | else |
| 2445 | echo "$as_me: failed program was:" >&5 |
| 2446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2447 | |
| 2448 | continue |
| 2449 | fi |
| 2450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2451 | cat >conftest.$ac_ext <<_ACEOF |
| 2452 | /* confdefs.h. */ |
| 2453 | _ACEOF |
| 2454 | cat confdefs.h >>conftest.$ac_ext |
| 2455 | cat >>conftest.$ac_ext <<_ACEOF |
| 2456 | /* end confdefs.h. */ |
| 2457 | $ac_declaration |
| 2458 | int |
| 2459 | main () |
| 2460 | { |
| 2461 | exit (42); |
| 2462 | ; |
| 2463 | return 0; |
| 2464 | } |
| 2465 | _ACEOF |
| 2466 | rm -f conftest.$ac_objext |
| 2467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2468 | (eval $ac_compile) 2>conftest.er1 |
| 2469 | ac_status=$? |
| 2470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2471 | rm -f conftest.er1 |
| 2472 | cat conftest.err >&5 |
| 2473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2474 | (exit $ac_status); } && |
| 2475 | { ac_try='test -z "$ac_c_werror_flag" |
| 2476 | || test ! -s conftest.err' |
| 2477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2478 | (eval $ac_try) 2>&5 |
| 2479 | ac_status=$? |
| 2480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2481 | (exit $ac_status); }; } && |
| 2482 | { ac_try='test -s conftest.$ac_objext' |
| 2483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2484 | (eval $ac_try) 2>&5 |
| 2485 | ac_status=$? |
| 2486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2487 | (exit $ac_status); }; }; then |
| 2488 | break |
| 2489 | else |
| 2490 | echo "$as_me: failed program was:" >&5 |
| 2491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2492 | |
| 2493 | fi |
| 2494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2495 | done |
| 2496 | rm -f conftest* |
| 2497 | if test -n "$ac_declaration"; then |
| 2498 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2499 | echo $ac_declaration >>confdefs.h |
| 2500 | echo '#endif' >>confdefs.h |
| 2501 | fi |
| 2502 | |
| 2503 | else |
| 2504 | echo "$as_me: failed program was:" >&5 |
| 2505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2506 | |
| 2507 | fi |
| 2508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2509 | ac_ext=c |
| 2510 | ac_cpp='$CPP $CPPFLAGS' |
| 2511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2514 | |
| 2515 | |
| 2516 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 2517 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
| 2518 | if test "${ac_cv_search_strerror+set}" = set; then |
| 2519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2520 | else |
| 2521 | ac_func_search_save_LIBS=$LIBS |
| 2522 | ac_cv_search_strerror=no |
| 2523 | cat >conftest.$ac_ext <<_ACEOF |
| 2524 | /* confdefs.h. */ |
| 2525 | _ACEOF |
| 2526 | cat confdefs.h >>conftest.$ac_ext |
| 2527 | cat >>conftest.$ac_ext <<_ACEOF |
| 2528 | /* end confdefs.h. */ |
| 2529 | |
| 2530 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2531 | #ifdef __cplusplus |
| 2532 | extern "C" |
| 2533 | #endif |
| 2534 | /* We use char because int might match the return type of a gcc2 |
| 2535 | builtin and then its argument prototype would still apply. */ |
| 2536 | char strerror (); |
| 2537 | int |
| 2538 | main () |
| 2539 | { |
| 2540 | strerror (); |
| 2541 | ; |
| 2542 | return 0; |
| 2543 | } |
| 2544 | _ACEOF |
| 2545 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2547 | (eval $ac_link) 2>conftest.er1 |
| 2548 | ac_status=$? |
| 2549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2550 | rm -f conftest.er1 |
| 2551 | cat conftest.err >&5 |
| 2552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2553 | (exit $ac_status); } && |
| 2554 | { ac_try='test -z "$ac_c_werror_flag" |
| 2555 | || test ! -s conftest.err' |
| 2556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2557 | (eval $ac_try) 2>&5 |
| 2558 | ac_status=$? |
| 2559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2560 | (exit $ac_status); }; } && |
| 2561 | { ac_try='test -s conftest$ac_exeext' |
| 2562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2563 | (eval $ac_try) 2>&5 |
| 2564 | ac_status=$? |
| 2565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2566 | (exit $ac_status); }; }; then |
| 2567 | ac_cv_search_strerror="none required" |
| 2568 | else |
| 2569 | echo "$as_me: failed program was:" >&5 |
| 2570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2571 | |
| 2572 | fi |
| 2573 | rm -f conftest.err conftest.$ac_objext \ |
| 2574 | conftest$ac_exeext conftest.$ac_ext |
| 2575 | if test "$ac_cv_search_strerror" = no; then |
| 2576 | for ac_lib in cposix; do |
| 2577 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 2578 | cat >conftest.$ac_ext <<_ACEOF |
| 2579 | /* confdefs.h. */ |
| 2580 | _ACEOF |
| 2581 | cat confdefs.h >>conftest.$ac_ext |
| 2582 | cat >>conftest.$ac_ext <<_ACEOF |
| 2583 | /* end confdefs.h. */ |
| 2584 | |
| 2585 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2586 | #ifdef __cplusplus |
| 2587 | extern "C" |
| 2588 | #endif |
| 2589 | /* We use char because int might match the return type of a gcc2 |
| 2590 | builtin and then its argument prototype would still apply. */ |
| 2591 | char strerror (); |
| 2592 | int |
| 2593 | main () |
| 2594 | { |
| 2595 | strerror (); |
| 2596 | ; |
| 2597 | return 0; |
| 2598 | } |
| 2599 | _ACEOF |
| 2600 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2602 | (eval $ac_link) 2>conftest.er1 |
| 2603 | ac_status=$? |
| 2604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2605 | rm -f conftest.er1 |
| 2606 | cat conftest.err >&5 |
| 2607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2608 | (exit $ac_status); } && |
| 2609 | { ac_try='test -z "$ac_c_werror_flag" |
| 2610 | || test ! -s conftest.err' |
| 2611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2612 | (eval $ac_try) 2>&5 |
| 2613 | ac_status=$? |
| 2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2615 | (exit $ac_status); }; } && |
| 2616 | { ac_try='test -s conftest$ac_exeext' |
| 2617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2618 | (eval $ac_try) 2>&5 |
| 2619 | ac_status=$? |
| 2620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2621 | (exit $ac_status); }; }; then |
| 2622 | ac_cv_search_strerror="-l$ac_lib" |
| 2623 | break |
| 2624 | else |
| 2625 | echo "$as_me: failed program was:" >&5 |
| 2626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2627 | |
| 2628 | fi |
| 2629 | rm -f conftest.err conftest.$ac_objext \ |
| 2630 | conftest$ac_exeext conftest.$ac_ext |
| 2631 | done |
| 2632 | fi |
| 2633 | LIBS=$ac_func_search_save_LIBS |
| 2634 | fi |
| 2635 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 2636 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
| 2637 | if test "$ac_cv_search_strerror" != no; then |
| 2638 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
| 2639 | |
| 2640 | fi |
| 2641 | |
| 2642 | |
| 2643 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` |
| 2644 | am__api_version="1.9" |
| 2645 | # Find a good install program. We prefer a C program (faster), |
| 2646 | # so one script is as good as another. But avoid the broken or |
| 2647 | # incompatible versions: |
| 2648 | # SysV /etc/install, /usr/sbin/install |
| 2649 | # SunOS /usr/etc/install |
| 2650 | # IRIX /sbin/install |
| 2651 | # AIX /bin/install |
| 2652 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2653 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2654 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2655 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2656 | # OS/2's system install, which has a completely different semantic |
| 2657 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2658 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2659 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 2660 | if test -z "$INSTALL"; then |
| 2661 | if test "${ac_cv_path_install+set}" = set; then |
| 2662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2663 | else |
| 2664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2665 | for as_dir in $PATH |
| 2666 | do |
| 2667 | IFS=$as_save_IFS |
| 2668 | test -z "$as_dir" && as_dir=. |
| 2669 | # Account for people who put trailing slashes in PATH elements. |
| 2670 | case $as_dir/ in |
| 2671 | ./ | .// | /cC/* | \ |
| 2672 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2673 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 2674 | /usr/ucb/* ) ;; |
| 2675 | *) |
| 2676 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2677 | # Don't use installbsd from OSF since it installs stuff as root |
| 2678 | # by default. |
| 2679 | for ac_prog in ginstall scoinst install; do |
| 2680 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2681 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2682 | if test $ac_prog = install && |
| 2683 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2684 | # AIX install. It has an incompatible calling convention. |
| 2685 | : |
| 2686 | elif test $ac_prog = install && |
| 2687 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2688 | # program-specific install script used by HP pwplus--don't use. |
| 2689 | : |
| 2690 | else |
| 2691 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2692 | break 3 |
| 2693 | fi |
| 2694 | fi |
| 2695 | done |
| 2696 | done |
| 2697 | ;; |
| 2698 | esac |
| 2699 | done |
| 2700 | |
| 2701 | |
| 2702 | fi |
| 2703 | if test "${ac_cv_path_install+set}" = set; then |
| 2704 | INSTALL=$ac_cv_path_install |
| 2705 | else |
| 2706 | # As a last resort, use the slow shell script. We don't cache a |
| 2707 | # path for INSTALL within a source directory, because that will |
| 2708 | # break other packages using the cache if that directory is |
| 2709 | # removed, or if the path is relative. |
| 2710 | INSTALL=$ac_install_sh |
| 2711 | fi |
| 2712 | fi |
| 2713 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2714 | echo "${ECHO_T}$INSTALL" >&6 |
| 2715 | |
| 2716 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2717 | # It thinks the first close brace ends the variable substitution. |
| 2718 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2719 | |
| 2720 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2721 | |
| 2722 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2723 | |
| 2724 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 2725 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 2726 | # Just in case |
| 2727 | sleep 1 |
| 2728 | echo timestamp > conftest.file |
| 2729 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2730 | # arguments. Must try -L first in case configure is actually a |
| 2731 | # symlink; some systems play weird games with the mod time of symlinks |
| 2732 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2733 | # directory). |
| 2734 | if ( |
| 2735 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 2736 | if test "$*" = "X"; then |
| 2737 | # -L didn't work. |
| 2738 | set X `ls -t $srcdir/configure conftest.file` |
| 2739 | fi |
| 2740 | rm -f conftest.file |
| 2741 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2742 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2743 | |
| 2744 | # If neither matched, then we have a broken ls. This can happen |
| 2745 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2746 | # broken ls alias from the environment. This has actually |
| 2747 | # happened. Such a system could not be considered "sane". |
| 2748 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2749 | alias in your environment" >&5 |
| 2750 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2751 | alias in your environment" >&2;} |
| 2752 | { (exit 1); exit 1; }; } |
| 2753 | fi |
| 2754 | |
| 2755 | test "$2" = conftest.file |
| 2756 | ) |
| 2757 | then |
| 2758 | # Ok. |
| 2759 | : |
| 2760 | else |
| 2761 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2762 | Check your system clock" >&5 |
| 2763 | echo "$as_me: error: newly created file is older than distributed files! |
| 2764 | Check your system clock" >&2;} |
| 2765 | { (exit 1); exit 1; }; } |
| 2766 | fi |
| 2767 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2768 | echo "${ECHO_T}yes" >&6 |
| 2769 | test "$program_prefix" != NONE && |
| 2770 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 2771 | # Use a double $ so make ignores it. |
| 2772 | test "$program_suffix" != NONE && |
| 2773 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 2774 | # Double any \ or $. echo might interpret backslashes. |
| 2775 | # By default was `s,x,x', remove it if useless. |
| 2776 | cat <<\_ACEOF >conftest.sed |
| 2777 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 2778 | _ACEOF |
| 2779 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 2780 | rm conftest.sed |
| 2781 | |
| 2782 | # expand $ac_aux_dir to an absolute path |
| 2783 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2784 | |
| 2785 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 2786 | # Use eval to expand $SHELL |
| 2787 | if eval "$MISSING --run true"; then |
| 2788 | am_missing_run="$MISSING --run " |
| 2789 | else |
| 2790 | am_missing_run= |
| 2791 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2792 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2793 | fi |
| 2794 | |
| 2795 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| 2796 | # We used to keeping the `.' as first argument, in order to |
| 2797 | # allow $(mkdir_p) to be used without argument. As in |
| 2798 | # $(mkdir_p) $(somedir) |
| 2799 | # where $(somedir) is conditionally defined. However this is wrong |
| 2800 | # for two reasons: |
| 2801 | # 1. if the package is installed by a user who cannot write `.' |
| 2802 | # make install will fail, |
| 2803 | # 2. the above comment should most certainly read |
| 2804 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 2805 | # so it does not work when $(somedir) is undefined and |
| 2806 | # $(DESTDIR) is not. |
| 2807 | # To support the latter case, we have to write |
| 2808 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 2809 | # so the `.' trick is pointless. |
| 2810 | mkdir_p='mkdir -p --' |
| 2811 | else |
| 2812 | # On NextStep and OpenStep, the `mkdir' command does not |
| 2813 | # recognize any option. It will interpret all options as |
| 2814 | # directories to create, and then abort because `.' already |
| 2815 | # exists. |
| 2816 | for d in ./-p ./--version; |
| 2817 | do |
| 2818 | test -d $d && rmdir $d |
| 2819 | done |
| 2820 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 2821 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 2822 | mkdir_p='$(mkinstalldirs)' |
| 2823 | else |
| 2824 | mkdir_p='$(install_sh) -d' |
| 2825 | fi |
| 2826 | fi |
| 2827 | |
| 2828 | for ac_prog in gawk mawk nawk awk |
| 2829 | do |
| 2830 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2831 | set dummy $ac_prog; ac_word=$2 |
| 2832 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2834 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2836 | else |
| 2837 | if test -n "$AWK"; then |
| 2838 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2839 | else |
| 2840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2841 | for as_dir in $PATH |
| 2842 | do |
| 2843 | IFS=$as_save_IFS |
| 2844 | test -z "$as_dir" && as_dir=. |
| 2845 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2846 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2847 | ac_cv_prog_AWK="$ac_prog" |
| 2848 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2849 | break 2 |
| 2850 | fi |
| 2851 | done |
| 2852 | done |
| 2853 | |
| 2854 | fi |
| 2855 | fi |
| 2856 | AWK=$ac_cv_prog_AWK |
| 2857 | if test -n "$AWK"; then |
| 2858 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2859 | echo "${ECHO_T}$AWK" >&6 |
| 2860 | else |
| 2861 | echo "$as_me:$LINENO: result: no" >&5 |
| 2862 | echo "${ECHO_T}no" >&6 |
| 2863 | fi |
| 2864 | |
| 2865 | test -n "$AWK" && break |
| 2866 | done |
| 2867 | |
| 2868 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2869 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 2870 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 2871 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 2872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2873 | else |
| 2874 | cat >conftest.make <<\_ACEOF |
| 2875 | all: |
| 2876 | @echo 'ac_maketemp="$(MAKE)"' |
| 2877 | _ACEOF |
| 2878 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2879 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 2880 | if test -n "$ac_maketemp"; then |
| 2881 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 2882 | else |
| 2883 | eval ac_cv_prog_make_${ac_make}_set=no |
| 2884 | fi |
| 2885 | rm -f conftest.make |
| 2886 | fi |
| 2887 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 2888 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2889 | echo "${ECHO_T}yes" >&6 |
| 2890 | SET_MAKE= |
| 2891 | else |
| 2892 | echo "$as_me:$LINENO: result: no" >&5 |
| 2893 | echo "${ECHO_T}no" >&6 |
| 2894 | SET_MAKE="MAKE=${MAKE-make}" |
| 2895 | fi |
| 2896 | |
| 2897 | rm -rf .tst 2>/dev/null |
| 2898 | mkdir .tst 2>/dev/null |
| 2899 | if test -d .tst; then |
| 2900 | am__leading_dot=. |
| 2901 | else |
| 2902 | am__leading_dot=_ |
| 2903 | fi |
| 2904 | rmdir .tst 2>/dev/null |
| 2905 | |
| 2906 | DEPDIR="${am__leading_dot}deps" |
| 2907 | |
| 2908 | ac_config_commands="$ac_config_commands depfiles" |
| 2909 | |
| 2910 | |
| 2911 | am_make=${MAKE-make} |
| 2912 | cat > confinc << 'END' |
| 2913 | am__doit: |
| 2914 | @echo done |
| 2915 | .PHONY: am__doit |
| 2916 | END |
| 2917 | # If we don't find an include directive, just comment out the code. |
| 2918 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2919 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 2920 | am__include="#" |
| 2921 | am__quote= |
| 2922 | _am_result=none |
| 2923 | # First try GNU make style include. |
| 2924 | echo "include confinc" > confmf |
| 2925 | # We grep out `Entering directory' and `Leaving directory' |
| 2926 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2927 | # In particular we don't look at `^make:' because GNU make might |
| 2928 | # be invoked under some other name (usually "gmake"), in which |
| 2929 | # case it prints its new name instead of `make'. |
| 2930 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 2931 | am__include=include |
| 2932 | am__quote= |
| 2933 | _am_result=GNU |
| 2934 | fi |
| 2935 | # Now try BSD make style include. |
| 2936 | if test "$am__include" = "#"; then |
| 2937 | echo '.include "confinc"' > confmf |
| 2938 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2939 | am__include=.include |
| 2940 | am__quote="\"" |
| 2941 | _am_result=BSD |
| 2942 | fi |
| 2943 | fi |
| 2944 | |
| 2945 | |
| 2946 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2947 | echo "${ECHO_T}$_am_result" >&6 |
| 2948 | rm -f confinc confmf |
| 2949 | |
| 2950 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2951 | if test "${enable_dependency_tracking+set}" = set; then |
| 2952 | enableval="$enable_dependency_tracking" |
| 2953 | |
| 2954 | fi; |
| 2955 | if test "x$enable_dependency_tracking" != xno; then |
| 2956 | am_depcomp="$ac_aux_dir/depcomp" |
| 2957 | AMDEPBACKSLASH='\' |
| 2958 | fi |
| 2959 | |
| 2960 | |
| 2961 | if test "x$enable_dependency_tracking" != xno; then |
| 2962 | AMDEP_TRUE= |
| 2963 | AMDEP_FALSE='#' |
| 2964 | else |
| 2965 | AMDEP_TRUE='#' |
| 2966 | AMDEP_FALSE= |
| 2967 | fi |
| 2968 | |
| 2969 | |
| 2970 | |
| 2971 | # test to see if srcdir already configured |
| 2972 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 2973 | test -f $srcdir/config.status; then |
| 2974 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 2975 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 2976 | { (exit 1); exit 1; }; } |
| 2977 | fi |
| 2978 | |
| 2979 | # test whether we have cygpath |
| 2980 | if test -z "$CYGPATH_W"; then |
| 2981 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2982 | CYGPATH_W='cygpath -w' |
| 2983 | else |
| 2984 | CYGPATH_W=echo |
| 2985 | fi |
| 2986 | fi |
| 2987 | |
| 2988 | |
| 2989 | # Define the identity of the package. |
| 2990 | PACKAGE=binutils |
| 2991 | VERSION=${BFD_VERSION} |
| 2992 | |
| 2993 | |
| 2994 | cat >>confdefs.h <<_ACEOF |
| 2995 | #define PACKAGE "$PACKAGE" |
| 2996 | _ACEOF |
| 2997 | |
| 2998 | |
| 2999 | cat >>confdefs.h <<_ACEOF |
| 3000 | #define VERSION "$VERSION" |
| 3001 | _ACEOF |
| 3002 | |
| 3003 | # Some tools Automake needs. |
| 3004 | |
| 3005 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3006 | |
| 3007 | |
| 3008 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3009 | |
| 3010 | |
| 3011 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3012 | |
| 3013 | |
| 3014 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3015 | |
| 3016 | |
| 3017 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3018 | |
| 3019 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 3020 | |
| 3021 | # Installed binaries are usually stripped using `strip' when the user |
| 3022 | # run `make install-strip'. However `strip' might not be the right |
| 3023 | # tool to use in cross-compilation environments, therefore Automake |
| 3024 | # will honor the `STRIP' environment variable to overrule this program. |
| 3025 | if test "$cross_compiling" != no; then |
| 3026 | if test -n "$ac_tool_prefix"; then |
| 3027 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3028 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3029 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3031 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 3032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3033 | else |
| 3034 | if test -n "$STRIP"; then |
| 3035 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3036 | else |
| 3037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3038 | for as_dir in $PATH |
| 3039 | do |
| 3040 | IFS=$as_save_IFS |
| 3041 | test -z "$as_dir" && as_dir=. |
| 3042 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3043 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3044 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3046 | break 2 |
| 3047 | fi |
| 3048 | done |
| 3049 | done |
| 3050 | |
| 3051 | fi |
| 3052 | fi |
| 3053 | STRIP=$ac_cv_prog_STRIP |
| 3054 | if test -n "$STRIP"; then |
| 3055 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 3056 | echo "${ECHO_T}$STRIP" >&6 |
| 3057 | else |
| 3058 | echo "$as_me:$LINENO: result: no" >&5 |
| 3059 | echo "${ECHO_T}no" >&6 |
| 3060 | fi |
| 3061 | |
| 3062 | fi |
| 3063 | if test -z "$ac_cv_prog_STRIP"; then |
| 3064 | ac_ct_STRIP=$STRIP |
| 3065 | # Extract the first word of "strip", so it can be a program name with args. |
| 3066 | set dummy strip; ac_word=$2 |
| 3067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3069 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 3070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3071 | else |
| 3072 | if test -n "$ac_ct_STRIP"; then |
| 3073 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3074 | else |
| 3075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3076 | for as_dir in $PATH |
| 3077 | do |
| 3078 | IFS=$as_save_IFS |
| 3079 | test -z "$as_dir" && as_dir=. |
| 3080 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3082 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3084 | break 2 |
| 3085 | fi |
| 3086 | done |
| 3087 | done |
| 3088 | |
| 3089 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 3090 | fi |
| 3091 | fi |
| 3092 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3093 | if test -n "$ac_ct_STRIP"; then |
| 3094 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 3095 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 3096 | else |
| 3097 | echo "$as_me:$LINENO: result: no" >&5 |
| 3098 | echo "${ECHO_T}no" >&6 |
| 3099 | fi |
| 3100 | |
| 3101 | STRIP=$ac_ct_STRIP |
| 3102 | else |
| 3103 | STRIP="$ac_cv_prog_STRIP" |
| 3104 | fi |
| 3105 | |
| 3106 | fi |
| 3107 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 3108 | |
| 3109 | # We need awk for the "check" target. The system "awk" is bad on |
| 3110 | # some platforms. |
| 3111 | # Always define AMTAR for backward compatibility. |
| 3112 | |
| 3113 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 3114 | |
| 3115 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 3116 | |
| 3117 | |
| 3118 | |
| 3119 | |
| 3120 | depcc="$CC" am_compiler_list= |
| 3121 | |
| 3122 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3123 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 3124 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 3125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3126 | else |
| 3127 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3128 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3129 | # making bogus files that we don't know about and never remove. For |
| 3130 | # instance it was reported that on HP-UX the gcc test will end up |
| 3131 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3132 | # in D'. |
| 3133 | mkdir conftest.dir |
| 3134 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3135 | # using a relative directory. |
| 3136 | cp "$am_depcomp" conftest.dir |
| 3137 | cd conftest.dir |
| 3138 | # We will build objects and dependencies in a subdirectory because |
| 3139 | # it helps to detect inapplicable dependency modes. For instance |
| 3140 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3141 | # side effect of compilation, but ICC will put the dependencies in |
| 3142 | # the current directory while Tru64 will put them in the object |
| 3143 | # directory. |
| 3144 | mkdir sub |
| 3145 | |
| 3146 | am_cv_CC_dependencies_compiler_type=none |
| 3147 | if test "$am_compiler_list" = ""; then |
| 3148 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3149 | fi |
| 3150 | for depmode in $am_compiler_list; do |
| 3151 | # Setup a source with many dependencies, because some compilers |
| 3152 | # like to wrap large dependency lists on column 80 (with \), and |
| 3153 | # we should not choose a depcomp mode which is confused by this. |
| 3154 | # |
| 3155 | # We need to recreate these files for each test, as the compiler may |
| 3156 | # overwrite some of them when testing with obscure command lines. |
| 3157 | # This happens at least with the AIX C compiler. |
| 3158 | : > sub/conftest.c |
| 3159 | for i in 1 2 3 4 5 6; do |
| 3160 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3161 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3162 | # Solaris 8's {/usr,}/bin/sh. |
| 3163 | touch sub/conftst$i.h |
| 3164 | done |
| 3165 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3166 | |
| 3167 | case $depmode in |
| 3168 | nosideeffect) |
| 3169 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3170 | # only be used when explicitly requested |
| 3171 | if test "x$enable_dependency_tracking" = xyes; then |
| 3172 | continue |
| 3173 | else |
| 3174 | break |
| 3175 | fi |
| 3176 | ;; |
| 3177 | none) break ;; |
| 3178 | esac |
| 3179 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3180 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3181 | # handle `-M -o', and we need to detect this. |
| 3182 | if depmode=$depmode \ |
| 3183 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3184 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3185 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3186 | >/dev/null 2>conftest.err && |
| 3187 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3188 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3189 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3190 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3191 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3192 | # that says an option was ignored or not supported. |
| 3193 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3194 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3195 | # The diagnosis changed in icc 8.0: |
| 3196 | # icc: Command line remark: option '-MP' not supported |
| 3197 | if (grep 'ignoring option' conftest.err || |
| 3198 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3199 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3200 | break |
| 3201 | fi |
| 3202 | fi |
| 3203 | done |
| 3204 | |
| 3205 | cd .. |
| 3206 | rm -rf conftest.dir |
| 3207 | else |
| 3208 | am_cv_CC_dependencies_compiler_type=none |
| 3209 | fi |
| 3210 | |
| 3211 | fi |
| 3212 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3213 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 3214 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3215 | |
| 3216 | |
| 3217 | |
| 3218 | if |
| 3219 | test "x$enable_dependency_tracking" != xno \ |
| 3220 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3221 | am__fastdepCC_TRUE= |
| 3222 | am__fastdepCC_FALSE='#' |
| 3223 | else |
| 3224 | am__fastdepCC_TRUE='#' |
| 3225 | am__fastdepCC_FALSE= |
| 3226 | fi |
| 3227 | |
| 3228 | |
| 3229 | |
| 3230 | |
| 3231 | ac_ext=c |
| 3232 | ac_cpp='$CPP $CPPFLAGS' |
| 3233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3236 | if test -n "$ac_tool_prefix"; then |
| 3237 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3238 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3239 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3240 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3241 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3243 | else |
| 3244 | if test -n "$CC"; then |
| 3245 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3246 | else |
| 3247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3248 | for as_dir in $PATH |
| 3249 | do |
| 3250 | IFS=$as_save_IFS |
| 3251 | test -z "$as_dir" && as_dir=. |
| 3252 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3253 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3254 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3255 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3256 | break 2 |
| 3257 | fi |
| 3258 | done |
| 3259 | done |
| 3260 | |
| 3261 | fi |
| 3262 | fi |
| 3263 | CC=$ac_cv_prog_CC |
| 3264 | if test -n "$CC"; then |
| 3265 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3266 | echo "${ECHO_T}$CC" >&6 |
| 3267 | else |
| 3268 | echo "$as_me:$LINENO: result: no" >&5 |
| 3269 | echo "${ECHO_T}no" >&6 |
| 3270 | fi |
| 3271 | |
| 3272 | fi |
| 3273 | if test -z "$ac_cv_prog_CC"; then |
| 3274 | ac_ct_CC=$CC |
| 3275 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3276 | set dummy gcc; ac_word=$2 |
| 3277 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3279 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3281 | else |
| 3282 | if test -n "$ac_ct_CC"; then |
| 3283 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3284 | else |
| 3285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3286 | for as_dir in $PATH |
| 3287 | do |
| 3288 | IFS=$as_save_IFS |
| 3289 | test -z "$as_dir" && as_dir=. |
| 3290 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3291 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3292 | ac_cv_prog_ac_ct_CC="gcc" |
| 3293 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3294 | break 2 |
| 3295 | fi |
| 3296 | done |
| 3297 | done |
| 3298 | |
| 3299 | fi |
| 3300 | fi |
| 3301 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3302 | if test -n "$ac_ct_CC"; then |
| 3303 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3304 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3305 | else |
| 3306 | echo "$as_me:$LINENO: result: no" >&5 |
| 3307 | echo "${ECHO_T}no" >&6 |
| 3308 | fi |
| 3309 | |
| 3310 | CC=$ac_ct_CC |
| 3311 | else |
| 3312 | CC="$ac_cv_prog_CC" |
| 3313 | fi |
| 3314 | |
| 3315 | if test -z "$CC"; then |
| 3316 | if test -n "$ac_tool_prefix"; then |
| 3317 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3318 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3319 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3320 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3321 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3323 | else |
| 3324 | if test -n "$CC"; then |
| 3325 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3326 | else |
| 3327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3328 | for as_dir in $PATH |
| 3329 | do |
| 3330 | IFS=$as_save_IFS |
| 3331 | test -z "$as_dir" && as_dir=. |
| 3332 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3333 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3334 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3335 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3336 | break 2 |
| 3337 | fi |
| 3338 | done |
| 3339 | done |
| 3340 | |
| 3341 | fi |
| 3342 | fi |
| 3343 | CC=$ac_cv_prog_CC |
| 3344 | if test -n "$CC"; then |
| 3345 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3346 | echo "${ECHO_T}$CC" >&6 |
| 3347 | else |
| 3348 | echo "$as_me:$LINENO: result: no" >&5 |
| 3349 | echo "${ECHO_T}no" >&6 |
| 3350 | fi |
| 3351 | |
| 3352 | fi |
| 3353 | if test -z "$ac_cv_prog_CC"; then |
| 3354 | ac_ct_CC=$CC |
| 3355 | # Extract the first word of "cc", so it can be a program name with args. |
| 3356 | set dummy cc; ac_word=$2 |
| 3357 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3359 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3361 | else |
| 3362 | if test -n "$ac_ct_CC"; then |
| 3363 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3364 | else |
| 3365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3366 | for as_dir in $PATH |
| 3367 | do |
| 3368 | IFS=$as_save_IFS |
| 3369 | test -z "$as_dir" && as_dir=. |
| 3370 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3371 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3372 | ac_cv_prog_ac_ct_CC="cc" |
| 3373 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3374 | break 2 |
| 3375 | fi |
| 3376 | done |
| 3377 | done |
| 3378 | |
| 3379 | fi |
| 3380 | fi |
| 3381 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3382 | if test -n "$ac_ct_CC"; then |
| 3383 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3384 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3385 | else |
| 3386 | echo "$as_me:$LINENO: result: no" >&5 |
| 3387 | echo "${ECHO_T}no" >&6 |
| 3388 | fi |
| 3389 | |
| 3390 | CC=$ac_ct_CC |
| 3391 | else |
| 3392 | CC="$ac_cv_prog_CC" |
| 3393 | fi |
| 3394 | |
| 3395 | fi |
| 3396 | if test -z "$CC"; then |
| 3397 | # Extract the first word of "cc", so it can be a program name with args. |
| 3398 | set dummy cc; ac_word=$2 |
| 3399 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3401 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3403 | else |
| 3404 | if test -n "$CC"; then |
| 3405 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3406 | else |
| 3407 | ac_prog_rejected=no |
| 3408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3409 | for as_dir in $PATH |
| 3410 | do |
| 3411 | IFS=$as_save_IFS |
| 3412 | test -z "$as_dir" && as_dir=. |
| 3413 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3414 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3415 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3416 | ac_prog_rejected=yes |
| 3417 | continue |
| 3418 | fi |
| 3419 | ac_cv_prog_CC="cc" |
| 3420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3421 | break 2 |
| 3422 | fi |
| 3423 | done |
| 3424 | done |
| 3425 | |
| 3426 | if test $ac_prog_rejected = yes; then |
| 3427 | # We found a bogon in the path, so make sure we never use it. |
| 3428 | set dummy $ac_cv_prog_CC |
| 3429 | shift |
| 3430 | if test $# != 0; then |
| 3431 | # We chose a different compiler from the bogus one. |
| 3432 | # However, it has the same basename, so the bogon will be chosen |
| 3433 | # first if we set CC to just the basename; use the full file name. |
| 3434 | shift |
| 3435 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3436 | fi |
| 3437 | fi |
| 3438 | fi |
| 3439 | fi |
| 3440 | CC=$ac_cv_prog_CC |
| 3441 | if test -n "$CC"; then |
| 3442 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3443 | echo "${ECHO_T}$CC" >&6 |
| 3444 | else |
| 3445 | echo "$as_me:$LINENO: result: no" >&5 |
| 3446 | echo "${ECHO_T}no" >&6 |
| 3447 | fi |
| 3448 | |
| 3449 | fi |
| 3450 | if test -z "$CC"; then |
| 3451 | if test -n "$ac_tool_prefix"; then |
| 3452 | for ac_prog in cl |
| 3453 | do |
| 3454 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3455 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3458 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3460 | else |
| 3461 | if test -n "$CC"; then |
| 3462 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3463 | else |
| 3464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3465 | for as_dir in $PATH |
| 3466 | do |
| 3467 | IFS=$as_save_IFS |
| 3468 | test -z "$as_dir" && as_dir=. |
| 3469 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3470 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3471 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3473 | break 2 |
| 3474 | fi |
| 3475 | done |
| 3476 | done |
| 3477 | |
| 3478 | fi |
| 3479 | fi |
| 3480 | CC=$ac_cv_prog_CC |
| 3481 | if test -n "$CC"; then |
| 3482 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3483 | echo "${ECHO_T}$CC" >&6 |
| 3484 | else |
| 3485 | echo "$as_me:$LINENO: result: no" >&5 |
| 3486 | echo "${ECHO_T}no" >&6 |
| 3487 | fi |
| 3488 | |
| 3489 | test -n "$CC" && break |
| 3490 | done |
| 3491 | fi |
| 3492 | if test -z "$CC"; then |
| 3493 | ac_ct_CC=$CC |
| 3494 | for ac_prog in cl |
| 3495 | do |
| 3496 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3497 | set dummy $ac_prog; ac_word=$2 |
| 3498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3500 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3502 | else |
| 3503 | if test -n "$ac_ct_CC"; then |
| 3504 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3505 | else |
| 3506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3507 | for as_dir in $PATH |
| 3508 | do |
| 3509 | IFS=$as_save_IFS |
| 3510 | test -z "$as_dir" && as_dir=. |
| 3511 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3513 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3515 | break 2 |
| 3516 | fi |
| 3517 | done |
| 3518 | done |
| 3519 | |
| 3520 | fi |
| 3521 | fi |
| 3522 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3523 | if test -n "$ac_ct_CC"; then |
| 3524 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3525 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3526 | else |
| 3527 | echo "$as_me:$LINENO: result: no" >&5 |
| 3528 | echo "${ECHO_T}no" >&6 |
| 3529 | fi |
| 3530 | |
| 3531 | test -n "$ac_ct_CC" && break |
| 3532 | done |
| 3533 | |
| 3534 | CC=$ac_ct_CC |
| 3535 | fi |
| 3536 | |
| 3537 | fi |
| 3538 | |
| 3539 | |
| 3540 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 3541 | See \`config.log' for more details." >&5 |
| 3542 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 3543 | See \`config.log' for more details." >&2;} |
| 3544 | { (exit 1); exit 1; }; } |
| 3545 | |
| 3546 | # Provide some information about the compiler. |
| 3547 | echo "$as_me:$LINENO:" \ |
| 3548 | "checking for C compiler version" >&5 |
| 3549 | ac_compiler=`set X $ac_compile; echo $2` |
| 3550 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3551 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3552 | ac_status=$? |
| 3553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3554 | (exit $ac_status); } |
| 3555 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3556 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3557 | ac_status=$? |
| 3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3559 | (exit $ac_status); } |
| 3560 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3561 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3562 | ac_status=$? |
| 3563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3564 | (exit $ac_status); } |
| 3565 | |
| 3566 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3567 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 3568 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3570 | else |
| 3571 | cat >conftest.$ac_ext <<_ACEOF |
| 3572 | /* confdefs.h. */ |
| 3573 | _ACEOF |
| 3574 | cat confdefs.h >>conftest.$ac_ext |
| 3575 | cat >>conftest.$ac_ext <<_ACEOF |
| 3576 | /* end confdefs.h. */ |
| 3577 | |
| 3578 | int |
| 3579 | main () |
| 3580 | { |
| 3581 | #ifndef __GNUC__ |
| 3582 | choke me |
| 3583 | #endif |
| 3584 | |
| 3585 | ; |
| 3586 | return 0; |
| 3587 | } |
| 3588 | _ACEOF |
| 3589 | rm -f conftest.$ac_objext |
| 3590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3591 | (eval $ac_compile) 2>conftest.er1 |
| 3592 | ac_status=$? |
| 3593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3594 | rm -f conftest.er1 |
| 3595 | cat conftest.err >&5 |
| 3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3597 | (exit $ac_status); } && |
| 3598 | { ac_try='test -z "$ac_c_werror_flag" |
| 3599 | || test ! -s conftest.err' |
| 3600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3601 | (eval $ac_try) 2>&5 |
| 3602 | ac_status=$? |
| 3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3604 | (exit $ac_status); }; } && |
| 3605 | { ac_try='test -s conftest.$ac_objext' |
| 3606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3607 | (eval $ac_try) 2>&5 |
| 3608 | ac_status=$? |
| 3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3610 | (exit $ac_status); }; }; then |
| 3611 | ac_compiler_gnu=yes |
| 3612 | else |
| 3613 | echo "$as_me: failed program was:" >&5 |
| 3614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3615 | |
| 3616 | ac_compiler_gnu=no |
| 3617 | fi |
| 3618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3619 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3620 | |
| 3621 | fi |
| 3622 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3623 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 3624 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3625 | ac_test_CFLAGS=${CFLAGS+set} |
| 3626 | ac_save_CFLAGS=$CFLAGS |
| 3627 | CFLAGS="-g" |
| 3628 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3629 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 3630 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3632 | else |
| 3633 | cat >conftest.$ac_ext <<_ACEOF |
| 3634 | /* confdefs.h. */ |
| 3635 | _ACEOF |
| 3636 | cat confdefs.h >>conftest.$ac_ext |
| 3637 | cat >>conftest.$ac_ext <<_ACEOF |
| 3638 | /* end confdefs.h. */ |
| 3639 | |
| 3640 | int |
| 3641 | main () |
| 3642 | { |
| 3643 | |
| 3644 | ; |
| 3645 | return 0; |
| 3646 | } |
| 3647 | _ACEOF |
| 3648 | rm -f conftest.$ac_objext |
| 3649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3650 | (eval $ac_compile) 2>conftest.er1 |
| 3651 | ac_status=$? |
| 3652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3653 | rm -f conftest.er1 |
| 3654 | cat conftest.err >&5 |
| 3655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3656 | (exit $ac_status); } && |
| 3657 | { ac_try='test -z "$ac_c_werror_flag" |
| 3658 | || test ! -s conftest.err' |
| 3659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3660 | (eval $ac_try) 2>&5 |
| 3661 | ac_status=$? |
| 3662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3663 | (exit $ac_status); }; } && |
| 3664 | { ac_try='test -s conftest.$ac_objext' |
| 3665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3666 | (eval $ac_try) 2>&5 |
| 3667 | ac_status=$? |
| 3668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3669 | (exit $ac_status); }; }; then |
| 3670 | ac_cv_prog_cc_g=yes |
| 3671 | else |
| 3672 | echo "$as_me: failed program was:" >&5 |
| 3673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3674 | |
| 3675 | ac_cv_prog_cc_g=no |
| 3676 | fi |
| 3677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3678 | fi |
| 3679 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3680 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 3681 | if test "$ac_test_CFLAGS" = set; then |
| 3682 | CFLAGS=$ac_save_CFLAGS |
| 3683 | elif test $ac_cv_prog_cc_g = yes; then |
| 3684 | if test "$GCC" = yes; then |
| 3685 | CFLAGS="-g -O2" |
| 3686 | else |
| 3687 | CFLAGS="-g" |
| 3688 | fi |
| 3689 | else |
| 3690 | if test "$GCC" = yes; then |
| 3691 | CFLAGS="-O2" |
| 3692 | else |
| 3693 | CFLAGS= |
| 3694 | fi |
| 3695 | fi |
| 3696 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 3697 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3698 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3700 | else |
| 3701 | ac_cv_prog_cc_stdc=no |
| 3702 | ac_save_CC=$CC |
| 3703 | cat >conftest.$ac_ext <<_ACEOF |
| 3704 | /* confdefs.h. */ |
| 3705 | _ACEOF |
| 3706 | cat confdefs.h >>conftest.$ac_ext |
| 3707 | cat >>conftest.$ac_ext <<_ACEOF |
| 3708 | /* end confdefs.h. */ |
| 3709 | #include <stdarg.h> |
| 3710 | #include <stdio.h> |
| 3711 | #include <sys/types.h> |
| 3712 | #include <sys/stat.h> |
| 3713 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3714 | struct buf { int x; }; |
| 3715 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3716 | static char *e (p, i) |
| 3717 | char **p; |
| 3718 | int i; |
| 3719 | { |
| 3720 | return p[i]; |
| 3721 | } |
| 3722 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3723 | { |
| 3724 | char *s; |
| 3725 | va_list v; |
| 3726 | va_start (v,p); |
| 3727 | s = g (p, va_arg (v,int)); |
| 3728 | va_end (v); |
| 3729 | return s; |
| 3730 | } |
| 3731 | |
| 3732 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3733 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3734 | These don't provoke an error unfortunately, instead are silently treated |
| 3735 | as 'x'. The following induces an error, until -std1 is added to get |
| 3736 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3737 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3738 | that's true only with -std1. */ |
| 3739 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3740 | |
| 3741 | int test (int i, double x); |
| 3742 | struct s1 {int (*f) (int a);}; |
| 3743 | struct s2 {int (*f) (double a);}; |
| 3744 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3745 | int argc; |
| 3746 | char **argv; |
| 3747 | int |
| 3748 | main () |
| 3749 | { |
| 3750 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3751 | ; |
| 3752 | return 0; |
| 3753 | } |
| 3754 | _ACEOF |
| 3755 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3756 | # breaks some systems' header files. |
| 3757 | # AIX -qlanglvl=ansi |
| 3758 | # Ultrix and OSF/1 -std1 |
| 3759 | # HP-UX 10.20 and later -Ae |
| 3760 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3761 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3762 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3763 | do |
| 3764 | CC="$ac_save_CC $ac_arg" |
| 3765 | rm -f conftest.$ac_objext |
| 3766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3767 | (eval $ac_compile) 2>conftest.er1 |
| 3768 | ac_status=$? |
| 3769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3770 | rm -f conftest.er1 |
| 3771 | cat conftest.err >&5 |
| 3772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3773 | (exit $ac_status); } && |
| 3774 | { ac_try='test -z "$ac_c_werror_flag" |
| 3775 | || test ! -s conftest.err' |
| 3776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3777 | (eval $ac_try) 2>&5 |
| 3778 | ac_status=$? |
| 3779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3780 | (exit $ac_status); }; } && |
| 3781 | { ac_try='test -s conftest.$ac_objext' |
| 3782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3783 | (eval $ac_try) 2>&5 |
| 3784 | ac_status=$? |
| 3785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3786 | (exit $ac_status); }; }; then |
| 3787 | ac_cv_prog_cc_stdc=$ac_arg |
| 3788 | break |
| 3789 | else |
| 3790 | echo "$as_me: failed program was:" >&5 |
| 3791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3792 | |
| 3793 | fi |
| 3794 | rm -f conftest.err conftest.$ac_objext |
| 3795 | done |
| 3796 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3797 | CC=$ac_save_CC |
| 3798 | |
| 3799 | fi |
| 3800 | |
| 3801 | case "x$ac_cv_prog_cc_stdc" in |
| 3802 | x|xno) |
| 3803 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3804 | echo "${ECHO_T}none needed" >&6 ;; |
| 3805 | *) |
| 3806 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3807 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3808 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3809 | esac |
| 3810 | |
| 3811 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 3812 | # in C++ we need to declare it. In case someone uses the same compiler |
| 3813 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 3814 | # the declaration of exit, since it's the most demanding environment. |
| 3815 | cat >conftest.$ac_ext <<_ACEOF |
| 3816 | #ifndef __cplusplus |
| 3817 | choke me |
| 3818 | #endif |
| 3819 | _ACEOF |
| 3820 | rm -f conftest.$ac_objext |
| 3821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3822 | (eval $ac_compile) 2>conftest.er1 |
| 3823 | ac_status=$? |
| 3824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3825 | rm -f conftest.er1 |
| 3826 | cat conftest.err >&5 |
| 3827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3828 | (exit $ac_status); } && |
| 3829 | { ac_try='test -z "$ac_c_werror_flag" |
| 3830 | || test ! -s conftest.err' |
| 3831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3832 | (eval $ac_try) 2>&5 |
| 3833 | ac_status=$? |
| 3834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3835 | (exit $ac_status); }; } && |
| 3836 | { ac_try='test -s conftest.$ac_objext' |
| 3837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3838 | (eval $ac_try) 2>&5 |
| 3839 | ac_status=$? |
| 3840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3841 | (exit $ac_status); }; }; then |
| 3842 | for ac_declaration in \ |
| 3843 | '' \ |
| 3844 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3845 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3846 | 'extern "C" void exit (int) throw ();' \ |
| 3847 | 'extern "C" void exit (int);' \ |
| 3848 | 'void exit (int);' |
| 3849 | do |
| 3850 | cat >conftest.$ac_ext <<_ACEOF |
| 3851 | /* confdefs.h. */ |
| 3852 | _ACEOF |
| 3853 | cat confdefs.h >>conftest.$ac_ext |
| 3854 | cat >>conftest.$ac_ext <<_ACEOF |
| 3855 | /* end confdefs.h. */ |
| 3856 | $ac_declaration |
| 3857 | #include <stdlib.h> |
| 3858 | int |
| 3859 | main () |
| 3860 | { |
| 3861 | exit (42); |
| 3862 | ; |
| 3863 | return 0; |
| 3864 | } |
| 3865 | _ACEOF |
| 3866 | rm -f conftest.$ac_objext |
| 3867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3868 | (eval $ac_compile) 2>conftest.er1 |
| 3869 | ac_status=$? |
| 3870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3871 | rm -f conftest.er1 |
| 3872 | cat conftest.err >&5 |
| 3873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3874 | (exit $ac_status); } && |
| 3875 | { ac_try='test -z "$ac_c_werror_flag" |
| 3876 | || test ! -s conftest.err' |
| 3877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3878 | (eval $ac_try) 2>&5 |
| 3879 | ac_status=$? |
| 3880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3881 | (exit $ac_status); }; } && |
| 3882 | { ac_try='test -s conftest.$ac_objext' |
| 3883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3884 | (eval $ac_try) 2>&5 |
| 3885 | ac_status=$? |
| 3886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3887 | (exit $ac_status); }; }; then |
| 3888 | : |
| 3889 | else |
| 3890 | echo "$as_me: failed program was:" >&5 |
| 3891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3892 | |
| 3893 | continue |
| 3894 | fi |
| 3895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3896 | cat >conftest.$ac_ext <<_ACEOF |
| 3897 | /* confdefs.h. */ |
| 3898 | _ACEOF |
| 3899 | cat confdefs.h >>conftest.$ac_ext |
| 3900 | cat >>conftest.$ac_ext <<_ACEOF |
| 3901 | /* end confdefs.h. */ |
| 3902 | $ac_declaration |
| 3903 | int |
| 3904 | main () |
| 3905 | { |
| 3906 | exit (42); |
| 3907 | ; |
| 3908 | return 0; |
| 3909 | } |
| 3910 | _ACEOF |
| 3911 | rm -f conftest.$ac_objext |
| 3912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3913 | (eval $ac_compile) 2>conftest.er1 |
| 3914 | ac_status=$? |
| 3915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3916 | rm -f conftest.er1 |
| 3917 | cat conftest.err >&5 |
| 3918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3919 | (exit $ac_status); } && |
| 3920 | { ac_try='test -z "$ac_c_werror_flag" |
| 3921 | || test ! -s conftest.err' |
| 3922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3923 | (eval $ac_try) 2>&5 |
| 3924 | ac_status=$? |
| 3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3926 | (exit $ac_status); }; } && |
| 3927 | { ac_try='test -s conftest.$ac_objext' |
| 3928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3929 | (eval $ac_try) 2>&5 |
| 3930 | ac_status=$? |
| 3931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3932 | (exit $ac_status); }; }; then |
| 3933 | break |
| 3934 | else |
| 3935 | echo "$as_me: failed program was:" >&5 |
| 3936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3937 | |
| 3938 | fi |
| 3939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3940 | done |
| 3941 | rm -f conftest* |
| 3942 | if test -n "$ac_declaration"; then |
| 3943 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3944 | echo $ac_declaration >>confdefs.h |
| 3945 | echo '#endif' >>confdefs.h |
| 3946 | fi |
| 3947 | |
| 3948 | else |
| 3949 | echo "$as_me: failed program was:" >&5 |
| 3950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3951 | |
| 3952 | fi |
| 3953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3954 | ac_ext=c |
| 3955 | ac_cpp='$CPP $CPPFLAGS' |
| 3956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3959 | |
| 3960 | |
| 3961 | cat >>confdefs.h <<\_ACEOF |
| 3962 | #define _GNU_SOURCE 1 |
| 3963 | _ACEOF |
| 3964 | |
| 3965 | |
| 3966 | |
| 3967 | |
| 3968 | macro_version='2.1a' |
| 3969 | macro_revision='1.2435' |
| 3970 | |
| 3971 | |
| 3972 | |
| 3973 | |
| 3974 | |
| 3975 | |
| 3976 | |
| 3977 | |
| 3978 | |
| 3979 | |
| 3980 | |
| 3981 | |
| 3982 | ltmain="$ac_aux_dir/ltmain.sh" |
| 3983 | |
| 3984 | # Set options |
| 3985 | |
| 3986 | enable_dlopen=no |
| 3987 | |
| 3988 | |
| 3989 | enable_win32_dll=no |
| 3990 | |
| 3991 | |
| 3992 | # Check whether --enable-shared or --disable-shared was given. |
| 3993 | if test "${enable_shared+set}" = set; then |
| 3994 | enableval="$enable_shared" |
| 3995 | p=${PACKAGE-default} |
| 3996 | case $enableval in |
| 3997 | yes) enable_shared=yes ;; |
| 3998 | no) enable_shared=no ;; |
| 3999 | *) |
| 4000 | enable_shared=no |
| 4001 | # Look at the argument we got. We use all the common list separators. |
| 4002 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4003 | for pkg in $enableval; do |
| 4004 | IFS="$lt_save_ifs" |
| 4005 | if test "X$pkg" = "X$p"; then |
| 4006 | enable_shared=yes |
| 4007 | fi |
| 4008 | done |
| 4009 | IFS="$lt_save_ifs" |
| 4010 | ;; |
| 4011 | esac |
| 4012 | else |
| 4013 | enable_shared=yes |
| 4014 | fi; |
| 4015 | |
| 4016 | |
| 4017 | |
| 4018 | |
| 4019 | |
| 4020 | |
| 4021 | |
| 4022 | |
| 4023 | # Check whether --enable-static or --disable-static was given. |
| 4024 | if test "${enable_static+set}" = set; then |
| 4025 | enableval="$enable_static" |
| 4026 | p=${PACKAGE-default} |
| 4027 | case $enableval in |
| 4028 | yes) enable_static=yes ;; |
| 4029 | no) enable_static=no ;; |
| 4030 | *) |
| 4031 | enable_static=no |
| 4032 | # Look at the argument we got. We use all the common list separators. |
| 4033 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4034 | for pkg in $enableval; do |
| 4035 | IFS="$lt_save_ifs" |
| 4036 | if test "X$pkg" = "X$p"; then |
| 4037 | enable_static=yes |
| 4038 | fi |
| 4039 | done |
| 4040 | IFS="$lt_save_ifs" |
| 4041 | ;; |
| 4042 | esac |
| 4043 | else |
| 4044 | enable_static=yes |
| 4045 | fi; |
| 4046 | |
| 4047 | |
| 4048 | |
| 4049 | |
| 4050 | |
| 4051 | |
| 4052 | |
| 4053 | |
| 4054 | |
| 4055 | # Check whether --with-pic or --without-pic was given. |
| 4056 | if test "${with_pic+set}" = set; then |
| 4057 | withval="$with_pic" |
| 4058 | pic_mode="$withval" |
| 4059 | else |
| 4060 | pic_mode=default |
| 4061 | fi; |
| 4062 | |
| 4063 | test -z "$pic_mode" && pic_mode=default |
| 4064 | |
| 4065 | |
| 4066 | |
| 4067 | |
| 4068 | |
| 4069 | |
| 4070 | |
| 4071 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 4072 | if test "${enable_fast_install+set}" = set; then |
| 4073 | enableval="$enable_fast_install" |
| 4074 | p=${PACKAGE-default} |
| 4075 | case $enableval in |
| 4076 | yes) enable_fast_install=yes ;; |
| 4077 | no) enable_fast_install=no ;; |
| 4078 | *) |
| 4079 | enable_fast_install=no |
| 4080 | # Look at the argument we got. We use all the common list separators. |
| 4081 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4082 | for pkg in $enableval; do |
| 4083 | IFS="$lt_save_ifs" |
| 4084 | if test "X$pkg" = "X$p"; then |
| 4085 | enable_fast_install=yes |
| 4086 | fi |
| 4087 | done |
| 4088 | IFS="$lt_save_ifs" |
| 4089 | ;; |
| 4090 | esac |
| 4091 | else |
| 4092 | enable_fast_install=yes |
| 4093 | fi; |
| 4094 | |
| 4095 | |
| 4096 | |
| 4097 | |
| 4098 | |
| 4099 | |
| 4100 | |
| 4101 | |
| 4102 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 4103 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 4104 | if test "${lt_cv_path_SED+set}" = set; then |
| 4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4106 | else |
| 4107 | # Loop through the user's path and test for sed and gsed. |
| 4108 | # Then use that list of sed's as ones to test for truncation. |
| 4109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4110 | for as_dir in $PATH |
| 4111 | do |
| 4112 | IFS=$as_save_IFS |
| 4113 | test -z "$as_dir" && as_dir=. |
| 4114 | for lt_ac_prog in sed gsed; do |
| 4115 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4116 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 4117 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 4118 | fi |
| 4119 | done |
| 4120 | done |
| 4121 | done |
| 4122 | IFS=$as_save_IFS |
| 4123 | lt_ac_max=0 |
| 4124 | lt_ac_count=0 |
| 4125 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 4126 | # along with /bin/sed that truncates output. |
| 4127 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 4128 | test ! -f $lt_ac_sed && continue |
| 4129 | cat /dev/null > conftest.in |
| 4130 | lt_ac_count=0 |
| 4131 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 4132 | # Check for GNU sed and select it if it is found. |
| 4133 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 4134 | lt_cv_path_SED=$lt_ac_sed |
| 4135 | break |
| 4136 | fi |
| 4137 | while true; do |
| 4138 | cat conftest.in conftest.in >conftest.tmp |
| 4139 | mv conftest.tmp conftest.in |
| 4140 | cp conftest.in conftest.nl |
| 4141 | echo >>conftest.nl |
| 4142 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 4143 | cmp -s conftest.out conftest.nl || break |
| 4144 | # 10000 chars as input seems more than enough |
| 4145 | test $lt_ac_count -gt 10 && break |
| 4146 | lt_ac_count=`expr $lt_ac_count + 1` |
| 4147 | if test $lt_ac_count -gt $lt_ac_max; then |
| 4148 | lt_ac_max=$lt_ac_count |
| 4149 | lt_cv_path_SED=$lt_ac_sed |
| 4150 | fi |
| 4151 | done |
| 4152 | done |
| 4153 | |
| 4154 | fi |
| 4155 | |
| 4156 | SED=$lt_cv_path_SED |
| 4157 | |
| 4158 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 4159 | echo "${ECHO_T}$SED" >&6 |
| 4160 | |
| 4161 | test -z "$SED" && SED=sed |
| 4162 | Xsed="$SED -e 1s/^X//" |
| 4163 | |
| 4164 | |
| 4165 | |
| 4166 | |
| 4167 | |
| 4168 | |
| 4169 | |
| 4170 | |
| 4171 | |
| 4172 | |
| 4173 | |
| 4174 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4175 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4176 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 4177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4178 | else |
| 4179 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4180 | then ac_cv_prog_egrep='grep -E' |
| 4181 | else ac_cv_prog_egrep='egrep' |
| 4182 | fi |
| 4183 | fi |
| 4184 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4185 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4186 | EGREP=$ac_cv_prog_egrep |
| 4187 | |
| 4188 | |
| 4189 | echo "$as_me:$LINENO: checking for fgrep" >&5 |
| 4190 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 |
| 4191 | if test "${ac_cv_prog_fgrep+set}" = set; then |
| 4192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4193 | else |
| 4194 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 |
| 4195 | then ac_cv_prog_fgrep='grep -F' |
| 4196 | else ac_cv_prog_fgrep='fgrep' |
| 4197 | fi |
| 4198 | fi |
| 4199 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 |
| 4200 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 |
| 4201 | FGREP=$ac_cv_prog_fgrep |
| 4202 | |
| 4203 | |
| 4204 | test -z "$GREP" && GREP=grep |
| 4205 | |
| 4206 | |
| 4207 | |
| 4208 | |
| 4209 | |
| 4210 | |
| 4211 | |
| 4212 | |
| 4213 | |
| 4214 | |
| 4215 | |
| 4216 | |
| 4217 | |
| 4218 | |
| 4219 | |
| 4220 | |
| 4221 | |
| 4222 | |
| 4223 | |
| 4224 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 4225 | if test "${with_gnu_ld+set}" = set; then |
| 4226 | withval="$with_gnu_ld" |
| 4227 | test "$withval" = no || with_gnu_ld=yes |
| 4228 | else |
| 4229 | with_gnu_ld=no |
| 4230 | fi; |
| 4231 | ac_prog=ld |
| 4232 | if test "$GCC" = yes; then |
| 4233 | # Check if gcc -print-prog-name=ld gives a path. |
| 4234 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 4235 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 4236 | case $host in |
| 4237 | *-*-mingw*) |
| 4238 | # gcc leaves a trailing carriage return which upsets mingw |
| 4239 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4240 | *) |
| 4241 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4242 | esac |
| 4243 | case $ac_prog in |
| 4244 | # Accept absolute paths. |
| 4245 | [\\/]* | ?:[\\/]*) |
| 4246 | re_direlt='/[^/][^/]*/\.\./' |
| 4247 | # Canonicalize the pathname of ld |
| 4248 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4249 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4250 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 4251 | done |
| 4252 | test -z "$LD" && LD="$ac_prog" |
| 4253 | ;; |
| 4254 | "") |
| 4255 | # If it fails, then pretend we aren't using GCC. |
| 4256 | ac_prog=ld |
| 4257 | ;; |
| 4258 | *) |
| 4259 | # If it is relative, then search for the first ld in PATH. |
| 4260 | with_gnu_ld=unknown |
| 4261 | ;; |
| 4262 | esac |
| 4263 | elif test "$with_gnu_ld" = yes; then |
| 4264 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4265 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 4266 | else |
| 4267 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 4268 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 4269 | fi |
| 4270 | if test "${lt_cv_path_LD+set}" = set; then |
| 4271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4272 | else |
| 4273 | if test -z "$LD"; then |
| 4274 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4275 | for ac_dir in $PATH; do |
| 4276 | IFS="$lt_save_ifs" |
| 4277 | test -z "$ac_dir" && ac_dir=. |
| 4278 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4279 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4280 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4281 | # but apparently some variants of GNU ld only accept -v. |
| 4282 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4283 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4284 | *GNU* | *'with BFD'*) |
| 4285 | test "$with_gnu_ld" != no && break |
| 4286 | ;; |
| 4287 | *) |
| 4288 | test "$with_gnu_ld" != yes && break |
| 4289 | ;; |
| 4290 | esac |
| 4291 | fi |
| 4292 | done |
| 4293 | IFS="$lt_save_ifs" |
| 4294 | else |
| 4295 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4296 | fi |
| 4297 | fi |
| 4298 | |
| 4299 | LD="$lt_cv_path_LD" |
| 4300 | if test -n "$LD"; then |
| 4301 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 4302 | echo "${ECHO_T}$LD" >&6 |
| 4303 | else |
| 4304 | echo "$as_me:$LINENO: result: no" >&5 |
| 4305 | echo "${ECHO_T}no" >&6 |
| 4306 | fi |
| 4307 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4308 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4309 | { (exit 1); exit 1; }; } |
| 4310 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4311 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 4312 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 4313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4314 | else |
| 4315 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4316 | case `$LD -v 2>&1 </dev/null` in |
| 4317 | *GNU* | *'with BFD'*) |
| 4318 | lt_cv_prog_gnu_ld=yes |
| 4319 | ;; |
| 4320 | *) |
| 4321 | lt_cv_prog_gnu_ld=no |
| 4322 | ;; |
| 4323 | esac |
| 4324 | fi |
| 4325 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4326 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 4327 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4328 | |
| 4329 | |
| 4330 | |
| 4331 | |
| 4332 | |
| 4333 | |
| 4334 | |
| 4335 | |
| 4336 | |
| 4337 | |
| 4338 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 4339 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 |
| 4340 | if test "${lt_cv_path_NM+set}" = set; then |
| 4341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4342 | else |
| 4343 | if test -n "$NM"; then |
| 4344 | # Let the user override the test. |
| 4345 | lt_cv_path_NM="$NM" |
| 4346 | else |
| 4347 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4348 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4349 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4350 | fi |
| 4351 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4352 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4353 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4354 | IFS="$lt_save_ifs" |
| 4355 | test -z "$ac_dir" && ac_dir=. |
| 4356 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4357 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4358 | # Check to see if the nm accepts a BSD-compat flag. |
| 4359 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4360 | # nm: unknown option "B" ignored |
| 4361 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4362 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4363 | */dev/null* | *'Invalid file or object type'*) |
| 4364 | lt_cv_path_NM="$tmp_nm -B" |
| 4365 | break |
| 4366 | ;; |
| 4367 | *) |
| 4368 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4369 | */dev/null*) |
| 4370 | lt_cv_path_NM="$tmp_nm -p" |
| 4371 | break |
| 4372 | ;; |
| 4373 | *) |
| 4374 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4375 | continue # so that we can try to find one that supports BSD flags |
| 4376 | ;; |
| 4377 | esac |
| 4378 | ;; |
| 4379 | esac |
| 4380 | fi |
| 4381 | done |
| 4382 | IFS="$lt_save_ifs" |
| 4383 | done |
| 4384 | : ${lt_cv_path_NM=no} |
| 4385 | fi |
| 4386 | fi |
| 4387 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4388 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| 4389 | if test "$lt_cv_path_NM" != "no"; then |
| 4390 | NM="$lt_cv_path_NM" |
| 4391 | else |
| 4392 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 4393 | if test -n "$ac_tool_prefix"; then |
| 4394 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 4395 | do |
| 4396 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4397 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4398 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4400 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
| 4401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4402 | else |
| 4403 | if test -n "$DUMPBIN"; then |
| 4404 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 4405 | else |
| 4406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4407 | for as_dir in $PATH |
| 4408 | do |
| 4409 | IFS=$as_save_IFS |
| 4410 | test -z "$as_dir" && as_dir=. |
| 4411 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4412 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4413 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 4414 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4415 | break 2 |
| 4416 | fi |
| 4417 | done |
| 4418 | done |
| 4419 | |
| 4420 | fi |
| 4421 | fi |
| 4422 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 4423 | if test -n "$DUMPBIN"; then |
| 4424 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
| 4425 | echo "${ECHO_T}$DUMPBIN" >&6 |
| 4426 | else |
| 4427 | echo "$as_me:$LINENO: result: no" >&5 |
| 4428 | echo "${ECHO_T}no" >&6 |
| 4429 | fi |
| 4430 | |
| 4431 | test -n "$DUMPBIN" && break |
| 4432 | done |
| 4433 | fi |
| 4434 | if test -z "$DUMPBIN"; then |
| 4435 | ac_ct_DUMPBIN=$DUMPBIN |
| 4436 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 4437 | do |
| 4438 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4439 | set dummy $ac_prog; ac_word=$2 |
| 4440 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4442 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
| 4443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4444 | else |
| 4445 | if test -n "$ac_ct_DUMPBIN"; then |
| 4446 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 4447 | else |
| 4448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4449 | for as_dir in $PATH |
| 4450 | do |
| 4451 | IFS=$as_save_IFS |
| 4452 | test -z "$as_dir" && as_dir=. |
| 4453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4454 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4455 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 4456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4457 | break 2 |
| 4458 | fi |
| 4459 | done |
| 4460 | done |
| 4461 | |
| 4462 | fi |
| 4463 | fi |
| 4464 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 4465 | if test -n "$ac_ct_DUMPBIN"; then |
| 4466 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
| 4467 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 |
| 4468 | else |
| 4469 | echo "$as_me:$LINENO: result: no" >&5 |
| 4470 | echo "${ECHO_T}no" >&6 |
| 4471 | fi |
| 4472 | |
| 4473 | test -n "$ac_ct_DUMPBIN" && break |
| 4474 | done |
| 4475 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" |
| 4476 | |
| 4477 | DUMPBIN=$ac_ct_DUMPBIN |
| 4478 | fi |
| 4479 | |
| 4480 | |
| 4481 | if test "$DUMPBIN" != ":"; then |
| 4482 | NM="$DUMPBIN" |
| 4483 | fi |
| 4484 | fi |
| 4485 | test -z "$NM" && NM=nm |
| 4486 | |
| 4487 | |
| 4488 | |
| 4489 | |
| 4490 | |
| 4491 | |
| 4492 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
| 4493 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 |
| 4494 | if test "${lt_cv_nm_interface+set}" = set; then |
| 4495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4496 | else |
| 4497 | lt_cv_nm_interface="BSD nm" |
| 4498 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 4499 | (eval echo "\"\$as_me:4499: $ac_compile\"" >&5) |
| 4500 | (eval "$ac_compile" 2>conftest.err) |
| 4501 | cat conftest.err >&5 |
| 4502 | (eval echo "\"\$as_me:4502: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 4503 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 4504 | cat conftest.err >&5 |
| 4505 | (eval echo "\"\$as_me:4505: output\"" >&5) |
| 4506 | cat conftest.out >&5 |
| 4507 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 4508 | lt_cv_nm_interface="MS dumpbin" |
| 4509 | fi |
| 4510 | rm -f conftest* |
| 4511 | fi |
| 4512 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
| 4513 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 |
| 4514 | |
| 4515 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4516 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4517 | LN_S=$as_ln_s |
| 4518 | if test "$LN_S" = "ln -s"; then |
| 4519 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4520 | echo "${ECHO_T}yes" >&6 |
| 4521 | else |
| 4522 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4523 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 4524 | fi |
| 4525 | |
| 4526 | # find the maximum length of command line arguments |
| 4527 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 4528 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 4529 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 4530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4531 | else |
| 4532 | i=0 |
| 4533 | teststring="ABCD" |
| 4534 | |
| 4535 | case $build_os in |
| 4536 | msdosdjgpp*) |
| 4537 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4538 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4539 | # during glob expansion). Even if it were fixed, the result of this |
| 4540 | # check would be larger than it should be. |
| 4541 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4542 | ;; |
| 4543 | |
| 4544 | gnu*) |
| 4545 | # Under GNU Hurd, this test is not required because there is |
| 4546 | # no limit to the length of command line arguments. |
| 4547 | # Libtool will interpret -1 as no limit whatsoever |
| 4548 | lt_cv_sys_max_cmd_len=-1; |
| 4549 | ;; |
| 4550 | |
| 4551 | cygwin* | mingw*) |
| 4552 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4553 | # about 5 minutes as the teststring grows exponentially. |
| 4554 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 4555 | # you end up with a "frozen" computer, even though with patience |
| 4556 | # the test eventually succeeds (with a max line length of 256k). |
| 4557 | # Instead, let's just punt: use the minimum linelength reported by |
| 4558 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 4559 | lt_cv_sys_max_cmd_len=8192; |
| 4560 | ;; |
| 4561 | |
| 4562 | amigaos*) |
| 4563 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 4564 | # So we just punt and use a minimum line length of 8192. |
| 4565 | lt_cv_sys_max_cmd_len=8192; |
| 4566 | ;; |
| 4567 | |
| 4568 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 4569 | # This has been around since 386BSD, at least. Likely further. |
| 4570 | if test -x /sbin/sysctl; then |
| 4571 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 4572 | elif test -x /usr/sbin/sysctl; then |
| 4573 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 4574 | else |
| 4575 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 4576 | fi |
| 4577 | # And add a safety zone |
| 4578 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4579 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4580 | ;; |
| 4581 | |
| 4582 | interix*) |
| 4583 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 4584 | lt_cv_sys_max_cmd_len=196608 |
| 4585 | ;; |
| 4586 | |
| 4587 | osf*) |
| 4588 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 4589 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 4590 | # nice to cause kernel panics so lets avoid the loop below. |
| 4591 | # First set a reasonable default. |
| 4592 | lt_cv_sys_max_cmd_len=16384 |
| 4593 | # |
| 4594 | if test -x /sbin/sysconfig; then |
| 4595 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 4596 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 4597 | esac |
| 4598 | fi |
| 4599 | ;; |
| 4600 | sco3.2v5*) |
| 4601 | lt_cv_sys_max_cmd_len=102400 |
| 4602 | ;; |
| 4603 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 4604 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 4605 | if test -n "$kargmax"; then |
| 4606 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 4607 | else |
| 4608 | lt_cv_sys_max_cmd_len=32768 |
| 4609 | fi |
| 4610 | ;; |
| 4611 | *) |
| 4612 | lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null` |
| 4613 | if test -n $lt_cv_sys_max_cmd_len; then |
| 4614 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4615 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4616 | else |
| 4617 | # Make teststring a little bigger before we do anything with it. |
| 4618 | # a 1K string should be a reasonable start. |
| 4619 | for i in 1 2 3 4 5 6 7 8 ; do |
| 4620 | teststring=$teststring$teststring |
| 4621 | done |
| 4622 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 4623 | # If test is not a shell built-in, we'll probably end up computing a |
| 4624 | # maximum length that is only half of the actual maximum length, but |
| 4625 | # we can't tell. |
| 4626 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 4627 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 4628 | test $i != 17 # 1/2 MB should be enough |
| 4629 | do |
| 4630 | i=`expr $i + 1` |
| 4631 | teststring=$teststring$teststring |
| 4632 | done |
| 4633 | # Only check the string length outside the loop. |
| 4634 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 4635 | teststring= |
| 4636 | # Add a significant safety factor because C++ compilers can tack on |
| 4637 | # massive amounts of additional arguments before passing them to the |
| 4638 | # linker. It appears as though 1/2 is a usable value. |
| 4639 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4640 | fi |
| 4641 | ;; |
| 4642 | esac |
| 4643 | |
| 4644 | fi |
| 4645 | |
| 4646 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 4647 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 4648 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 4649 | else |
| 4650 | echo "$as_me:$LINENO: result: none" >&5 |
| 4651 | echo "${ECHO_T}none" >&6 |
| 4652 | fi |
| 4653 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 4654 | |
| 4655 | |
| 4656 | |
| 4657 | |
| 4658 | |
| 4659 | |
| 4660 | |
| 4661 | : ${CP="cp -f"} |
| 4662 | : ${MV="mv -f"} |
| 4663 | : ${RM="rm -f"} |
| 4664 | |
| 4665 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
| 4666 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 |
| 4667 | # Try some XSI features |
| 4668 | xsi_shell=no |
| 4669 | ( _lt_dummy="a/b/c" |
| 4670 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 4671 | = c,a/b,, ) >/dev/null 2>&1 \ |
| 4672 | && xsi_shell=yes |
| 4673 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
| 4674 | echo "${ECHO_T}$xsi_shell" >&6 |
| 4675 | |
| 4676 | |
| 4677 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
| 4678 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 |
| 4679 | lt_shell_append=no |
| 4680 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 4681 | >/dev/null 2>&1 \ |
| 4682 | && lt_shell_append=yes |
| 4683 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
| 4684 | echo "${ECHO_T}$lt_shell_append" >&6 |
| 4685 | |
| 4686 | |
| 4687 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 4688 | lt_unset=unset |
| 4689 | else |
| 4690 | lt_unset=false |
| 4691 | fi |
| 4692 | |
| 4693 | |
| 4694 | |
| 4695 | |
| 4696 | |
| 4697 | # test EBCDIC or ASCII |
| 4698 | case `echo X|tr X '\101'` in |
| 4699 | A) # ASCII based system |
| 4700 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 4701 | lt_SP2NL='tr \040 \012' |
| 4702 | lt_NL2SP='tr \015\012 \040\040' |
| 4703 | ;; |
| 4704 | *) # EBCDIC based system |
| 4705 | lt_SP2NL='tr \100 \n' |
| 4706 | lt_NL2SP='tr \r\n \100\100' |
| 4707 | ;; |
| 4708 | esac |
| 4709 | |
| 4710 | |
| 4711 | |
| 4712 | |
| 4713 | |
| 4714 | |
| 4715 | |
| 4716 | |
| 4717 | |
| 4718 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 4719 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 4720 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 4721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4722 | else |
| 4723 | lt_cv_ld_reload_flag='-r' |
| 4724 | fi |
| 4725 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 4726 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 4727 | reload_flag=$lt_cv_ld_reload_flag |
| 4728 | case $reload_flag in |
| 4729 | "" | " "*) ;; |
| 4730 | *) reload_flag=" $reload_flag" ;; |
| 4731 | esac |
| 4732 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4733 | case $host_os in |
| 4734 | darwin*) |
| 4735 | if test "$GCC" = yes; then |
| 4736 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4737 | else |
| 4738 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4739 | fi |
| 4740 | ;; |
| 4741 | esac |
| 4742 | |
| 4743 | |
| 4744 | |
| 4745 | |
| 4746 | |
| 4747 | |
| 4748 | |
| 4749 | |
| 4750 | |
| 4751 | |
| 4752 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
| 4753 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 |
| 4754 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 4755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4756 | else |
| 4757 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4758 | lt_cv_file_magic_test_file= |
| 4759 | lt_cv_deplibs_check_method='unknown' |
| 4760 | # Need to set the preceding variable on all platforms that support |
| 4761 | # interlibrary dependencies. |
| 4762 | # 'none' -- dependencies not supported. |
| 4763 | # `unknown' -- same as none, but documents that we really don't know. |
| 4764 | # 'pass_all' -- all dependencies passed with no checks. |
| 4765 | # 'test_compile' -- check by making test program. |
| 4766 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4767 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4768 | # If you have `file' or equivalent on your system and you're not sure |
| 4769 | # whether `pass_all' will *always* work, you probably want this one. |
| 4770 | |
| 4771 | case $host_os in |
| 4772 | aix4* | aix5*) |
| 4773 | lt_cv_deplibs_check_method=pass_all |
| 4774 | ;; |
| 4775 | |
| 4776 | beos*) |
| 4777 | lt_cv_deplibs_check_method=pass_all |
| 4778 | ;; |
| 4779 | |
| 4780 | bsdi[45]*) |
| 4781 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4782 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4783 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4784 | ;; |
| 4785 | |
| 4786 | cygwin*) |
| 4787 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4788 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4789 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4790 | ;; |
| 4791 | |
| 4792 | mingw* | pw32*) |
| 4793 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4794 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 4795 | # unless we find 'file', for example because we are cross-compiling. |
| 4796 | if ( file / ) >/dev/null 2>&1; then |
| 4797 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4798 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4799 | else |
| 4800 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4801 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4802 | fi |
| 4803 | ;; |
| 4804 | |
| 4805 | darwin* | rhapsody*) |
| 4806 | lt_cv_deplibs_check_method=pass_all |
| 4807 | ;; |
| 4808 | |
| 4809 | freebsd* | dragonfly*) |
| 4810 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 4811 | case $host_cpu in |
| 4812 | i*86 ) |
| 4813 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4814 | # Let's accept both of them until this is cleared up. |
| 4815 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 4816 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4817 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4818 | ;; |
| 4819 | esac |
| 4820 | else |
| 4821 | lt_cv_deplibs_check_method=pass_all |
| 4822 | fi |
| 4823 | ;; |
| 4824 | |
| 4825 | gnu*) |
| 4826 | lt_cv_deplibs_check_method=pass_all |
| 4827 | ;; |
| 4828 | |
| 4829 | hpux10.20* | hpux11*) |
| 4830 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4831 | case $host_cpu in |
| 4832 | ia64*) |
| 4833 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4834 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4835 | ;; |
| 4836 | hppa*64*) |
| 4837 | 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]' |
| 4838 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4839 | ;; |
| 4840 | *) |
| 4841 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4842 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4843 | ;; |
| 4844 | esac |
| 4845 | ;; |
| 4846 | |
| 4847 | interix[3-9]*) |
| 4848 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4849 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 4850 | ;; |
| 4851 | |
| 4852 | irix5* | irix6* | nonstopux*) |
| 4853 | case $LD in |
| 4854 | *-32|*"-32 ") libmagic=32-bit;; |
| 4855 | *-n32|*"-n32 ") libmagic=N32;; |
| 4856 | *-64|*"-64 ") libmagic=64-bit;; |
| 4857 | *) libmagic=never-match;; |
| 4858 | esac |
| 4859 | lt_cv_deplibs_check_method=pass_all |
| 4860 | ;; |
| 4861 | |
| 4862 | # This must be Linux ELF. |
| 4863 | linux* | k*bsd*-gnu) |
| 4864 | lt_cv_deplibs_check_method=pass_all |
| 4865 | ;; |
| 4866 | |
| 4867 | netbsd*) |
| 4868 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 4869 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4870 | else |
| 4871 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 4872 | fi |
| 4873 | ;; |
| 4874 | |
| 4875 | newos6*) |
| 4876 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4877 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4878 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4879 | ;; |
| 4880 | |
| 4881 | *nto* | *qnx*) |
| 4882 | lt_cv_deplibs_check_method=pass_all |
| 4883 | ;; |
| 4884 | |
| 4885 | openbsd*) |
| 4886 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 4887 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 4888 | else |
| 4889 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4890 | fi |
| 4891 | ;; |
| 4892 | |
| 4893 | osf3* | osf4* | osf5*) |
| 4894 | lt_cv_deplibs_check_method=pass_all |
| 4895 | ;; |
| 4896 | |
| 4897 | rdos*) |
| 4898 | lt_cv_deplibs_check_method=pass_all |
| 4899 | ;; |
| 4900 | |
| 4901 | solaris*) |
| 4902 | lt_cv_deplibs_check_method=pass_all |
| 4903 | ;; |
| 4904 | |
| 4905 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 4906 | lt_cv_deplibs_check_method=pass_all |
| 4907 | ;; |
| 4908 | |
| 4909 | sysv4 | sysv4.3*) |
| 4910 | case $host_vendor in |
| 4911 | motorola) |
| 4912 | 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]' |
| 4913 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4914 | ;; |
| 4915 | ncr) |
| 4916 | lt_cv_deplibs_check_method=pass_all |
| 4917 | ;; |
| 4918 | sequent) |
| 4919 | lt_cv_file_magic_cmd='/bin/file' |
| 4920 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4921 | ;; |
| 4922 | sni) |
| 4923 | lt_cv_file_magic_cmd='/bin/file' |
| 4924 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4925 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4926 | ;; |
| 4927 | siemens) |
| 4928 | lt_cv_deplibs_check_method=pass_all |
| 4929 | ;; |
| 4930 | pc) |
| 4931 | lt_cv_deplibs_check_method=pass_all |
| 4932 | ;; |
| 4933 | esac |
| 4934 | ;; |
| 4935 | |
| 4936 | tpf*) |
| 4937 | lt_cv_deplibs_check_method=pass_all |
| 4938 | ;; |
| 4939 | esac |
| 4940 | |
| 4941 | fi |
| 4942 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 4943 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 4944 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4945 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 4946 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 4947 | |
| 4948 | |
| 4949 | |
| 4950 | |
| 4951 | |
| 4952 | |
| 4953 | |
| 4954 | |
| 4955 | |
| 4956 | |
| 4957 | |
| 4958 | |
| 4959 | if test -n "$ac_tool_prefix"; then |
| 4960 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 4961 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 4962 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4964 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4966 | else |
| 4967 | if test -n "$AR"; then |
| 4968 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4969 | else |
| 4970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4971 | for as_dir in $PATH |
| 4972 | do |
| 4973 | IFS=$as_save_IFS |
| 4974 | test -z "$as_dir" && as_dir=. |
| 4975 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4976 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4977 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 4978 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4979 | break 2 |
| 4980 | fi |
| 4981 | done |
| 4982 | done |
| 4983 | |
| 4984 | fi |
| 4985 | fi |
| 4986 | AR=$ac_cv_prog_AR |
| 4987 | if test -n "$AR"; then |
| 4988 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 4989 | echo "${ECHO_T}$AR" >&6 |
| 4990 | else |
| 4991 | echo "$as_me:$LINENO: result: no" >&5 |
| 4992 | echo "${ECHO_T}no" >&6 |
| 4993 | fi |
| 4994 | |
| 4995 | fi |
| 4996 | if test -z "$ac_cv_prog_AR"; then |
| 4997 | ac_ct_AR=$AR |
| 4998 | # Extract the first word of "ar", so it can be a program name with args. |
| 4999 | set dummy ar; ac_word=$2 |
| 5000 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5001 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5002 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5004 | else |
| 5005 | if test -n "$ac_ct_AR"; then |
| 5006 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5007 | else |
| 5008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5009 | for as_dir in $PATH |
| 5010 | do |
| 5011 | IFS=$as_save_IFS |
| 5012 | test -z "$as_dir" && as_dir=. |
| 5013 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5014 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5015 | ac_cv_prog_ac_ct_AR="ar" |
| 5016 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5017 | break 2 |
| 5018 | fi |
| 5019 | done |
| 5020 | done |
| 5021 | |
| 5022 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 5023 | fi |
| 5024 | fi |
| 5025 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5026 | if test -n "$ac_ct_AR"; then |
| 5027 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5028 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5029 | else |
| 5030 | echo "$as_me:$LINENO: result: no" >&5 |
| 5031 | echo "${ECHO_T}no" >&6 |
| 5032 | fi |
| 5033 | |
| 5034 | AR=$ac_ct_AR |
| 5035 | else |
| 5036 | AR="$ac_cv_prog_AR" |
| 5037 | fi |
| 5038 | |
| 5039 | test -z "$AR" && AR=ar |
| 5040 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5041 | |
| 5042 | |
| 5043 | |
| 5044 | |
| 5045 | |
| 5046 | |
| 5047 | |
| 5048 | |
| 5049 | |
| 5050 | |
| 5051 | |
| 5052 | if test -n "$ac_tool_prefix"; then |
| 5053 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5054 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5057 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5059 | else |
| 5060 | if test -n "$STRIP"; then |
| 5061 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5062 | else |
| 5063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5064 | for as_dir in $PATH |
| 5065 | do |
| 5066 | IFS=$as_save_IFS |
| 5067 | test -z "$as_dir" && as_dir=. |
| 5068 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5070 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5072 | break 2 |
| 5073 | fi |
| 5074 | done |
| 5075 | done |
| 5076 | |
| 5077 | fi |
| 5078 | fi |
| 5079 | STRIP=$ac_cv_prog_STRIP |
| 5080 | if test -n "$STRIP"; then |
| 5081 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5082 | echo "${ECHO_T}$STRIP" >&6 |
| 5083 | else |
| 5084 | echo "$as_me:$LINENO: result: no" >&5 |
| 5085 | echo "${ECHO_T}no" >&6 |
| 5086 | fi |
| 5087 | |
| 5088 | fi |
| 5089 | if test -z "$ac_cv_prog_STRIP"; then |
| 5090 | ac_ct_STRIP=$STRIP |
| 5091 | # Extract the first word of "strip", so it can be a program name with args. |
| 5092 | set dummy strip; ac_word=$2 |
| 5093 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5095 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5097 | else |
| 5098 | if test -n "$ac_ct_STRIP"; then |
| 5099 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5100 | else |
| 5101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5102 | for as_dir in $PATH |
| 5103 | do |
| 5104 | IFS=$as_save_IFS |
| 5105 | test -z "$as_dir" && as_dir=. |
| 5106 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5107 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5108 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5110 | break 2 |
| 5111 | fi |
| 5112 | done |
| 5113 | done |
| 5114 | |
| 5115 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 5116 | fi |
| 5117 | fi |
| 5118 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5119 | if test -n "$ac_ct_STRIP"; then |
| 5120 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5121 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5122 | else |
| 5123 | echo "$as_me:$LINENO: result: no" >&5 |
| 5124 | echo "${ECHO_T}no" >&6 |
| 5125 | fi |
| 5126 | |
| 5127 | STRIP=$ac_ct_STRIP |
| 5128 | else |
| 5129 | STRIP="$ac_cv_prog_STRIP" |
| 5130 | fi |
| 5131 | |
| 5132 | test -z "$STRIP" && STRIP=: |
| 5133 | |
| 5134 | |
| 5135 | |
| 5136 | |
| 5137 | |
| 5138 | |
| 5139 | if test -n "$ac_tool_prefix"; then |
| 5140 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5141 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5142 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5144 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5146 | else |
| 5147 | if test -n "$RANLIB"; then |
| 5148 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5149 | else |
| 5150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5151 | for as_dir in $PATH |
| 5152 | do |
| 5153 | IFS=$as_save_IFS |
| 5154 | test -z "$as_dir" && as_dir=. |
| 5155 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5156 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5157 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5159 | break 2 |
| 5160 | fi |
| 5161 | done |
| 5162 | done |
| 5163 | |
| 5164 | fi |
| 5165 | fi |
| 5166 | RANLIB=$ac_cv_prog_RANLIB |
| 5167 | if test -n "$RANLIB"; then |
| 5168 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5169 | echo "${ECHO_T}$RANLIB" >&6 |
| 5170 | else |
| 5171 | echo "$as_me:$LINENO: result: no" >&5 |
| 5172 | echo "${ECHO_T}no" >&6 |
| 5173 | fi |
| 5174 | |
| 5175 | fi |
| 5176 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5177 | ac_ct_RANLIB=$RANLIB |
| 5178 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5179 | set dummy ranlib; ac_word=$2 |
| 5180 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5182 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5184 | else |
| 5185 | if test -n "$ac_ct_RANLIB"; then |
| 5186 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5187 | else |
| 5188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5189 | for as_dir in $PATH |
| 5190 | do |
| 5191 | IFS=$as_save_IFS |
| 5192 | test -z "$as_dir" && as_dir=. |
| 5193 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5194 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5195 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5196 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5197 | break 2 |
| 5198 | fi |
| 5199 | done |
| 5200 | done |
| 5201 | |
| 5202 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5203 | fi |
| 5204 | fi |
| 5205 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5206 | if test -n "$ac_ct_RANLIB"; then |
| 5207 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5208 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5209 | else |
| 5210 | echo "$as_me:$LINENO: result: no" >&5 |
| 5211 | echo "${ECHO_T}no" >&6 |
| 5212 | fi |
| 5213 | |
| 5214 | RANLIB=$ac_ct_RANLIB |
| 5215 | else |
| 5216 | RANLIB="$ac_cv_prog_RANLIB" |
| 5217 | fi |
| 5218 | |
| 5219 | test -z "$RANLIB" && RANLIB=: |
| 5220 | |
| 5221 | |
| 5222 | |
| 5223 | |
| 5224 | |
| 5225 | |
| 5226 | # Determine commands to create old-style static archives. |
| 5227 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 5228 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5229 | old_postuninstall_cmds= |
| 5230 | |
| 5231 | if test -n "$RANLIB"; then |
| 5232 | case $host_os in |
| 5233 | openbsd*) |
| 5234 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 5235 | ;; |
| 5236 | *) |
| 5237 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 5238 | ;; |
| 5239 | esac |
| 5240 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5241 | fi |
| 5242 | |
| 5243 | |
| 5244 | |
| 5245 | |
| 5246 | |
| 5247 | |
| 5248 | |
| 5249 | |
| 5250 | |
| 5251 | |
| 5252 | |
| 5253 | |
| 5254 | |
| 5255 | |
| 5256 | |
| 5257 | |
| 5258 | |
| 5259 | |
| 5260 | |
| 5261 | |
| 5262 | |
| 5263 | |
| 5264 | |
| 5265 | |
| 5266 | |
| 5267 | |
| 5268 | |
| 5269 | |
| 5270 | |
| 5271 | |
| 5272 | |
| 5273 | |
| 5274 | |
| 5275 | |
| 5276 | # If no C compiler was specified, use CC. |
| 5277 | LTCC=${LTCC-"$CC"} |
| 5278 | |
| 5279 | # If no C compiler flags were specified, use CFLAGS. |
| 5280 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5281 | |
| 5282 | # Allow CC to be a program name with arguments. |
| 5283 | compiler=$CC |
| 5284 | |
| 5285 | |
| 5286 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 5287 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 5288 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 5289 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 5290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5291 | else |
| 5292 | |
| 5293 | # These are sane defaults that work on at least a few old systems. |
| 5294 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5295 | |
| 5296 | # Character class describing NM global symbol codes. |
| 5297 | symcode='[BCDEGRST]' |
| 5298 | |
| 5299 | # Regexp to match symbols that can be accessed directly from C. |
| 5300 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5301 | |
| 5302 | # Define system-specific variables. |
| 5303 | case $host_os in |
| 5304 | aix*) |
| 5305 | symcode='[BCDT]' |
| 5306 | ;; |
| 5307 | cygwin* | mingw* | pw32*) |
| 5308 | symcode='[ABCDGISTW]' |
| 5309 | ;; |
| 5310 | hpux*) |
| 5311 | if test "$host_cpu" = ia64; then |
| 5312 | symcode='[ABCDEGRST]' |
| 5313 | fi |
| 5314 | ;; |
| 5315 | irix* | nonstopux*) |
| 5316 | symcode='[BCDEGRST]' |
| 5317 | ;; |
| 5318 | osf*) |
| 5319 | symcode='[BCDEGQRST]' |
| 5320 | ;; |
| 5321 | solaris*) |
| 5322 | symcode='[BDRT]' |
| 5323 | ;; |
| 5324 | sco3.2v5*) |
| 5325 | symcode='[DT]' |
| 5326 | ;; |
| 5327 | sysv4.2uw2*) |
| 5328 | symcode='[DT]' |
| 5329 | ;; |
| 5330 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 5331 | symcode='[ABDT]' |
| 5332 | ;; |
| 5333 | sysv4) |
| 5334 | symcode='[DFNSTU]' |
| 5335 | ;; |
| 5336 | esac |
| 5337 | |
| 5338 | # If we're using GNU nm, then use its standard symbol codes. |
| 5339 | case `$NM -V 2>&1` in |
| 5340 | *GNU* | *'with BFD'*) |
| 5341 | symcode='[ABCDGIRSTW]' ;; |
| 5342 | esac |
| 5343 | |
| 5344 | # Transform an extracted symbol line into a proper C declaration. |
| 5345 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 5346 | # so use this general approach. |
| 5347 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5348 | |
| 5349 | # Transform an extracted symbol line into symbol name and symbol address |
| 5350 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 5351 | |
| 5352 | # Handle CRLF in mingw tool chain |
| 5353 | opt_cr= |
| 5354 | case $build_os in |
| 5355 | mingw*) |
| 5356 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5357 | ;; |
| 5358 | esac |
| 5359 | |
| 5360 | # Try without a prefix underscore, then with it. |
| 5361 | for ac_symprfx in "" "_"; do |
| 5362 | |
| 5363 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 5364 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 5365 | |
| 5366 | # Write the raw and C identifiers. |
| 5367 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 5368 | # Fake it for dumpbin and say T for any non-static function |
| 5369 | # and D for any global variable. |
| 5370 | # Also find C++ and __fastcall symbols from MSVC++, |
| 5371 | # which start with @ or ?. |
| 5372 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 5373 | " {last_section=section; section=\$ 3};"\ |
| 5374 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 5375 | " \$ 0!~/External *\|/{next};"\ |
| 5376 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 5377 | " {if(hide[section]) next};"\ |
| 5378 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 5379 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 5380 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 5381 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 5382 | " ' prfx=^$ac_symprfx" |
| 5383 | else |
| 5384 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 5385 | fi |
| 5386 | |
| 5387 | # Check to see that the pipe works correctly. |
| 5388 | pipe_works=no |
| 5389 | |
| 5390 | rm -f conftest* |
| 5391 | cat > conftest.$ac_ext <<_LT_EOF |
| 5392 | #ifdef __cplusplus |
| 5393 | extern "C" { |
| 5394 | #endif |
| 5395 | char nm_test_var; |
| 5396 | void nm_test_func(void); |
| 5397 | void nm_test_func(void){} |
| 5398 | #ifdef __cplusplus |
| 5399 | } |
| 5400 | #endif |
| 5401 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 5402 | _LT_EOF |
| 5403 | |
| 5404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5405 | (eval $ac_compile) 2>&5 |
| 5406 | ac_status=$? |
| 5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5408 | (exit $ac_status); }; then |
| 5409 | # Now try to grab the symbols. |
| 5410 | nlist=conftest.nm |
| 5411 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 5412 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 5413 | ac_status=$? |
| 5414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5415 | (exit $ac_status); } && test -s "$nlist"; then |
| 5416 | # Try sorting and uniquifying the output. |
| 5417 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5418 | mv -f "$nlist"T "$nlist" |
| 5419 | else |
| 5420 | rm -f "$nlist"T |
| 5421 | fi |
| 5422 | |
| 5423 | # Make sure that we snagged all the symbols we need. |
| 5424 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 5425 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 5426 | cat <<_LT_EOF > conftest.$ac_ext |
| 5427 | #ifdef __cplusplus |
| 5428 | extern "C" { |
| 5429 | #endif |
| 5430 | |
| 5431 | _LT_EOF |
| 5432 | # Now generate the symbol file. |
| 5433 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 5434 | |
| 5435 | cat <<_LT_EOF >> conftest.$ac_ext |
| 5436 | |
| 5437 | /* The mapping between symbol names and symbols. */ |
| 5438 | const struct { |
| 5439 | const char *name; |
| 5440 | void *address; |
| 5441 | } |
| 5442 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 5443 | { |
| 5444 | { "@PROGRAM@", (void *) 0 }, |
| 5445 | _LT_EOF |
| 5446 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 5447 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 5448 | {0, (void *) 0} |
| 5449 | }; |
| 5450 | |
| 5451 | /* This works around a problem in FreeBSD linker */ |
| 5452 | #ifdef FREEBSD_WORKAROUND |
| 5453 | static const void *lt_preloaded_setup() { |
| 5454 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 5455 | } |
| 5456 | #endif |
| 5457 | |
| 5458 | #ifdef __cplusplus |
| 5459 | } |
| 5460 | #endif |
| 5461 | _LT_EOF |
| 5462 | # Now try linking the two files. |
| 5463 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5464 | lt_save_LIBS="$LIBS" |
| 5465 | lt_save_CFLAGS="$CFLAGS" |
| 5466 | LIBS="conftstm.$ac_objext" |
| 5467 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 5468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5469 | (eval $ac_link) 2>&5 |
| 5470 | ac_status=$? |
| 5471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5472 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 5473 | pipe_works=yes |
| 5474 | fi |
| 5475 | LIBS="$lt_save_LIBS" |
| 5476 | CFLAGS="$lt_save_CFLAGS" |
| 5477 | else |
| 5478 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5479 | fi |
| 5480 | else |
| 5481 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5482 | fi |
| 5483 | else |
| 5484 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5485 | fi |
| 5486 | else |
| 5487 | echo "$progname: failed program was:" >&5 |
| 5488 | cat conftest.$ac_ext >&5 |
| 5489 | fi |
| 5490 | rm -f conftest* conftst* |
| 5491 | |
| 5492 | # Do not use the global_symbol_pipe unless it works. |
| 5493 | if test "$pipe_works" = yes; then |
| 5494 | break |
| 5495 | else |
| 5496 | lt_cv_sys_global_symbol_pipe= |
| 5497 | fi |
| 5498 | done |
| 5499 | |
| 5500 | fi |
| 5501 | |
| 5502 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5503 | lt_cv_sys_global_symbol_to_cdecl= |
| 5504 | fi |
| 5505 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 5506 | echo "$as_me:$LINENO: result: failed" >&5 |
| 5507 | echo "${ECHO_T}failed" >&6 |
| 5508 | else |
| 5509 | echo "$as_me:$LINENO: result: ok" >&5 |
| 5510 | echo "${ECHO_T}ok" >&6 |
| 5511 | fi |
| 5512 | |
| 5513 | |
| 5514 | |
| 5515 | |
| 5516 | |
| 5517 | |
| 5518 | |
| 5519 | |
| 5520 | |
| 5521 | |
| 5522 | |
| 5523 | |
| 5524 | |
| 5525 | |
| 5526 | |
| 5527 | |
| 5528 | |
| 5529 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 5530 | if test "${enable_libtool_lock+set}" = set; then |
| 5531 | enableval="$enable_libtool_lock" |
| 5532 | |
| 5533 | fi; |
| 5534 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5535 | |
| 5536 | # Some flags need to be propagated to the compiler or linker for good |
| 5537 | # libtool support. |
| 5538 | case $host in |
| 5539 | ia64-*-hpux*) |
| 5540 | # Find out which ABI we are using. |
| 5541 | echo 'int i;' > conftest.$ac_ext |
| 5542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5543 | (eval $ac_compile) 2>&5 |
| 5544 | ac_status=$? |
| 5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5546 | (exit $ac_status); }; then |
| 5547 | case `/usr/bin/file conftest.$ac_objext` in |
| 5548 | *ELF-32*) |
| 5549 | HPUX_IA64_MODE="32" |
| 5550 | ;; |
| 5551 | *ELF-64*) |
| 5552 | HPUX_IA64_MODE="64" |
| 5553 | ;; |
| 5554 | esac |
| 5555 | fi |
| 5556 | rm -rf conftest* |
| 5557 | ;; |
| 5558 | *-*-irix6*) |
| 5559 | # Find out which ABI we are using. |
| 5560 | echo '#line 5560 "configure"' > conftest.$ac_ext |
| 5561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5562 | (eval $ac_compile) 2>&5 |
| 5563 | ac_status=$? |
| 5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5565 | (exit $ac_status); }; then |
| 5566 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 5567 | case `/usr/bin/file conftest.$ac_objext` in |
| 5568 | *32-bit*) |
| 5569 | LD="${LD-ld} -melf32bsmip" |
| 5570 | ;; |
| 5571 | *N32*) |
| 5572 | LD="${LD-ld} -melf32bmipn32" |
| 5573 | ;; |
| 5574 | *64-bit*) |
| 5575 | LD="${LD-ld} -melf64bmip" |
| 5576 | ;; |
| 5577 | esac |
| 5578 | else |
| 5579 | case `/usr/bin/file conftest.$ac_objext` in |
| 5580 | *32-bit*) |
| 5581 | LD="${LD-ld} -32" |
| 5582 | ;; |
| 5583 | *N32*) |
| 5584 | LD="${LD-ld} -n32" |
| 5585 | ;; |
| 5586 | *64-bit*) |
| 5587 | LD="${LD-ld} -64" |
| 5588 | ;; |
| 5589 | esac |
| 5590 | fi |
| 5591 | fi |
| 5592 | rm -rf conftest* |
| 5593 | ;; |
| 5594 | |
| 5595 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 5596 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 5597 | # Find out which ABI we are using. |
| 5598 | echo 'int i;' > conftest.$ac_ext |
| 5599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5600 | (eval $ac_compile) 2>&5 |
| 5601 | ac_status=$? |
| 5602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5603 | (exit $ac_status); }; then |
| 5604 | case `/usr/bin/file conftest.o` in |
| 5605 | *32-bit*) |
| 5606 | case $host in |
| 5607 | x86_64-*kfreebsd*-gnu) |
| 5608 | LD="${LD-ld} -m elf_i386_fbsd" |
| 5609 | ;; |
| 5610 | x86_64-*linux*) |
| 5611 | LD="${LD-ld} -m elf_i386" |
| 5612 | ;; |
| 5613 | ppc64-*linux*|powerpc64-*linux*) |
| 5614 | LD="${LD-ld} -m elf32ppclinux" |
| 5615 | ;; |
| 5616 | s390x-*linux*) |
| 5617 | LD="${LD-ld} -m elf_s390" |
| 5618 | ;; |
| 5619 | sparc64-*linux*) |
| 5620 | LD="${LD-ld} -m elf32_sparc" |
| 5621 | ;; |
| 5622 | esac |
| 5623 | ;; |
| 5624 | *64-bit*) |
| 5625 | case $host in |
| 5626 | x86_64-*kfreebsd*-gnu) |
| 5627 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 5628 | ;; |
| 5629 | x86_64-*linux*) |
| 5630 | LD="${LD-ld} -m elf_x86_64" |
| 5631 | ;; |
| 5632 | ppc*-*linux*|powerpc*-*linux*) |
| 5633 | LD="${LD-ld} -m elf64ppc" |
| 5634 | ;; |
| 5635 | s390*-*linux*|s390*-*tpf*) |
| 5636 | LD="${LD-ld} -m elf64_s390" |
| 5637 | ;; |
| 5638 | sparc*-*linux*) |
| 5639 | LD="${LD-ld} -m elf64_sparc" |
| 5640 | ;; |
| 5641 | esac |
| 5642 | ;; |
| 5643 | esac |
| 5644 | fi |
| 5645 | rm -rf conftest* |
| 5646 | ;; |
| 5647 | |
| 5648 | *-*-sco3.2v5*) |
| 5649 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5650 | SAVE_CFLAGS="$CFLAGS" |
| 5651 | CFLAGS="$CFLAGS -belf" |
| 5652 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 5653 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 5654 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 5655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5656 | else |
| 5657 | ac_ext=c |
| 5658 | ac_cpp='$CPP $CPPFLAGS' |
| 5659 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5660 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5661 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5662 | |
| 5663 | cat >conftest.$ac_ext <<_ACEOF |
| 5664 | /* confdefs.h. */ |
| 5665 | _ACEOF |
| 5666 | cat confdefs.h >>conftest.$ac_ext |
| 5667 | cat >>conftest.$ac_ext <<_ACEOF |
| 5668 | /* end confdefs.h. */ |
| 5669 | |
| 5670 | int |
| 5671 | main () |
| 5672 | { |
| 5673 | |
| 5674 | ; |
| 5675 | return 0; |
| 5676 | } |
| 5677 | _ACEOF |
| 5678 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5680 | (eval $ac_link) 2>conftest.er1 |
| 5681 | ac_status=$? |
| 5682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5683 | rm -f conftest.er1 |
| 5684 | cat conftest.err >&5 |
| 5685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5686 | (exit $ac_status); } && |
| 5687 | { ac_try='test -z "$ac_c_werror_flag" |
| 5688 | || test ! -s conftest.err' |
| 5689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5690 | (eval $ac_try) 2>&5 |
| 5691 | ac_status=$? |
| 5692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5693 | (exit $ac_status); }; } && |
| 5694 | { ac_try='test -s conftest$ac_exeext' |
| 5695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5696 | (eval $ac_try) 2>&5 |
| 5697 | ac_status=$? |
| 5698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5699 | (exit $ac_status); }; }; then |
| 5700 | lt_cv_cc_needs_belf=yes |
| 5701 | else |
| 5702 | echo "$as_me: failed program was:" >&5 |
| 5703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5704 | |
| 5705 | lt_cv_cc_needs_belf=no |
| 5706 | fi |
| 5707 | rm -f conftest.err conftest.$ac_objext \ |
| 5708 | conftest$ac_exeext conftest.$ac_ext |
| 5709 | ac_ext=c |
| 5710 | ac_cpp='$CPP $CPPFLAGS' |
| 5711 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5712 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5713 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5714 | |
| 5715 | fi |
| 5716 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 5717 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 5718 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5719 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5720 | CFLAGS="$SAVE_CFLAGS" |
| 5721 | fi |
| 5722 | ;; |
| 5723 | sparc*-*solaris*) |
| 5724 | # Find out which ABI we are using. |
| 5725 | echo 'int i;' > conftest.$ac_ext |
| 5726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5727 | (eval $ac_compile) 2>&5 |
| 5728 | ac_status=$? |
| 5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5730 | (exit $ac_status); }; then |
| 5731 | case `/usr/bin/file conftest.o` in |
| 5732 | *64-bit*) |
| 5733 | case $lt_cv_prog_gnu_ld in |
| 5734 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 5735 | *) LD="${LD-ld} -64" ;; |
| 5736 | esac |
| 5737 | ;; |
| 5738 | esac |
| 5739 | fi |
| 5740 | rm -rf conftest* |
| 5741 | ;; |
| 5742 | esac |
| 5743 | |
| 5744 | need_locks="$enable_libtool_lock" |
| 5745 | |
| 5746 | ac_ext=c |
| 5747 | ac_cpp='$CPP $CPPFLAGS' |
| 5748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5751 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5752 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 5753 | # On Suns, sometimes $CPP names a directory. |
| 5754 | if test -n "$CPP" && test -d "$CPP"; then |
| 5755 | CPP= |
| 5756 | fi |
| 5757 | if test -z "$CPP"; then |
| 5758 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5760 | else |
| 5761 | # Double quotes because CPP needs to be expanded |
| 5762 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5763 | do |
| 5764 | ac_preproc_ok=false |
| 5765 | for ac_c_preproc_warn_flag in '' yes |
| 5766 | do |
| 5767 | # Use a header file that comes with gcc, so configuring glibc |
| 5768 | # with a fresh cross-compiler works. |
| 5769 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5770 | # <limits.h> exists even on freestanding compilers. |
| 5771 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5772 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5773 | cat >conftest.$ac_ext <<_ACEOF |
| 5774 | /* confdefs.h. */ |
| 5775 | _ACEOF |
| 5776 | cat confdefs.h >>conftest.$ac_ext |
| 5777 | cat >>conftest.$ac_ext <<_ACEOF |
| 5778 | /* end confdefs.h. */ |
| 5779 | #ifdef __STDC__ |
| 5780 | # include <limits.h> |
| 5781 | #else |
| 5782 | # include <assert.h> |
| 5783 | #endif |
| 5784 | Syntax error |
| 5785 | _ACEOF |
| 5786 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5787 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5788 | ac_status=$? |
| 5789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5790 | rm -f conftest.er1 |
| 5791 | cat conftest.err >&5 |
| 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5793 | (exit $ac_status); } >/dev/null; then |
| 5794 | if test -s conftest.err; then |
| 5795 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5796 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5797 | else |
| 5798 | ac_cpp_err= |
| 5799 | fi |
| 5800 | else |
| 5801 | ac_cpp_err=yes |
| 5802 | fi |
| 5803 | if test -z "$ac_cpp_err"; then |
| 5804 | : |
| 5805 | else |
| 5806 | echo "$as_me: failed program was:" >&5 |
| 5807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5808 | |
| 5809 | # Broken: fails on valid input. |
| 5810 | continue |
| 5811 | fi |
| 5812 | rm -f conftest.err conftest.$ac_ext |
| 5813 | |
| 5814 | # OK, works on sane cases. Now check whether non-existent headers |
| 5815 | # can be detected and how. |
| 5816 | cat >conftest.$ac_ext <<_ACEOF |
| 5817 | /* confdefs.h. */ |
| 5818 | _ACEOF |
| 5819 | cat confdefs.h >>conftest.$ac_ext |
| 5820 | cat >>conftest.$ac_ext <<_ACEOF |
| 5821 | /* end confdefs.h. */ |
| 5822 | #include <ac_nonexistent.h> |
| 5823 | _ACEOF |
| 5824 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5825 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5826 | ac_status=$? |
| 5827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5828 | rm -f conftest.er1 |
| 5829 | cat conftest.err >&5 |
| 5830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5831 | (exit $ac_status); } >/dev/null; then |
| 5832 | if test -s conftest.err; then |
| 5833 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5834 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5835 | else |
| 5836 | ac_cpp_err= |
| 5837 | fi |
| 5838 | else |
| 5839 | ac_cpp_err=yes |
| 5840 | fi |
| 5841 | if test -z "$ac_cpp_err"; then |
| 5842 | # Broken: success on invalid input. |
| 5843 | continue |
| 5844 | else |
| 5845 | echo "$as_me: failed program was:" >&5 |
| 5846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5847 | |
| 5848 | # Passes both tests. |
| 5849 | ac_preproc_ok=: |
| 5850 | break |
| 5851 | fi |
| 5852 | rm -f conftest.err conftest.$ac_ext |
| 5853 | |
| 5854 | done |
| 5855 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5856 | rm -f conftest.err conftest.$ac_ext |
| 5857 | if $ac_preproc_ok; then |
| 5858 | break |
| 5859 | fi |
| 5860 | |
| 5861 | done |
| 5862 | ac_cv_prog_CPP=$CPP |
| 5863 | |
| 5864 | fi |
| 5865 | CPP=$ac_cv_prog_CPP |
| 5866 | else |
| 5867 | ac_cv_prog_CPP=$CPP |
| 5868 | fi |
| 5869 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5870 | echo "${ECHO_T}$CPP" >&6 |
| 5871 | ac_preproc_ok=false |
| 5872 | for ac_c_preproc_warn_flag in '' yes |
| 5873 | do |
| 5874 | # Use a header file that comes with gcc, so configuring glibc |
| 5875 | # with a fresh cross-compiler works. |
| 5876 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5877 | # <limits.h> exists even on freestanding compilers. |
| 5878 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5879 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5880 | cat >conftest.$ac_ext <<_ACEOF |
| 5881 | /* confdefs.h. */ |
| 5882 | _ACEOF |
| 5883 | cat confdefs.h >>conftest.$ac_ext |
| 5884 | cat >>conftest.$ac_ext <<_ACEOF |
| 5885 | /* end confdefs.h. */ |
| 5886 | #ifdef __STDC__ |
| 5887 | # include <limits.h> |
| 5888 | #else |
| 5889 | # include <assert.h> |
| 5890 | #endif |
| 5891 | Syntax error |
| 5892 | _ACEOF |
| 5893 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5894 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5895 | ac_status=$? |
| 5896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5897 | rm -f conftest.er1 |
| 5898 | cat conftest.err >&5 |
| 5899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5900 | (exit $ac_status); } >/dev/null; then |
| 5901 | if test -s conftest.err; then |
| 5902 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5903 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5904 | else |
| 5905 | ac_cpp_err= |
| 5906 | fi |
| 5907 | else |
| 5908 | ac_cpp_err=yes |
| 5909 | fi |
| 5910 | if test -z "$ac_cpp_err"; then |
| 5911 | : |
| 5912 | else |
| 5913 | echo "$as_me: failed program was:" >&5 |
| 5914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5915 | |
| 5916 | # Broken: fails on valid input. |
| 5917 | continue |
| 5918 | fi |
| 5919 | rm -f conftest.err conftest.$ac_ext |
| 5920 | |
| 5921 | # OK, works on sane cases. Now check whether non-existent headers |
| 5922 | # can be detected and how. |
| 5923 | cat >conftest.$ac_ext <<_ACEOF |
| 5924 | /* confdefs.h. */ |
| 5925 | _ACEOF |
| 5926 | cat confdefs.h >>conftest.$ac_ext |
| 5927 | cat >>conftest.$ac_ext <<_ACEOF |
| 5928 | /* end confdefs.h. */ |
| 5929 | #include <ac_nonexistent.h> |
| 5930 | _ACEOF |
| 5931 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5932 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5933 | ac_status=$? |
| 5934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5935 | rm -f conftest.er1 |
| 5936 | cat conftest.err >&5 |
| 5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5938 | (exit $ac_status); } >/dev/null; then |
| 5939 | if test -s conftest.err; then |
| 5940 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5941 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5942 | else |
| 5943 | ac_cpp_err= |
| 5944 | fi |
| 5945 | else |
| 5946 | ac_cpp_err=yes |
| 5947 | fi |
| 5948 | if test -z "$ac_cpp_err"; then |
| 5949 | # Broken: success on invalid input. |
| 5950 | continue |
| 5951 | else |
| 5952 | echo "$as_me: failed program was:" >&5 |
| 5953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5954 | |
| 5955 | # Passes both tests. |
| 5956 | ac_preproc_ok=: |
| 5957 | break |
| 5958 | fi |
| 5959 | rm -f conftest.err conftest.$ac_ext |
| 5960 | |
| 5961 | done |
| 5962 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5963 | rm -f conftest.err conftest.$ac_ext |
| 5964 | if $ac_preproc_ok; then |
| 5965 | : |
| 5966 | else |
| 5967 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5968 | See \`config.log' for more details." >&5 |
| 5969 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5970 | See \`config.log' for more details." >&2;} |
| 5971 | { (exit 1); exit 1; }; } |
| 5972 | fi |
| 5973 | |
| 5974 | ac_ext=c |
| 5975 | ac_cpp='$CPP $CPPFLAGS' |
| 5976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5979 | |
| 5980 | |
| 5981 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5982 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5983 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5985 | else |
| 5986 | cat >conftest.$ac_ext <<_ACEOF |
| 5987 | /* confdefs.h. */ |
| 5988 | _ACEOF |
| 5989 | cat confdefs.h >>conftest.$ac_ext |
| 5990 | cat >>conftest.$ac_ext <<_ACEOF |
| 5991 | /* end confdefs.h. */ |
| 5992 | #include <stdlib.h> |
| 5993 | #include <stdarg.h> |
| 5994 | #include <string.h> |
| 5995 | #include <float.h> |
| 5996 | |
| 5997 | int |
| 5998 | main () |
| 5999 | { |
| 6000 | |
| 6001 | ; |
| 6002 | return 0; |
| 6003 | } |
| 6004 | _ACEOF |
| 6005 | rm -f conftest.$ac_objext |
| 6006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6007 | (eval $ac_compile) 2>conftest.er1 |
| 6008 | ac_status=$? |
| 6009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6010 | rm -f conftest.er1 |
| 6011 | cat conftest.err >&5 |
| 6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6013 | (exit $ac_status); } && |
| 6014 | { ac_try='test -z "$ac_c_werror_flag" |
| 6015 | || test ! -s conftest.err' |
| 6016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6017 | (eval $ac_try) 2>&5 |
| 6018 | ac_status=$? |
| 6019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6020 | (exit $ac_status); }; } && |
| 6021 | { ac_try='test -s conftest.$ac_objext' |
| 6022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6023 | (eval $ac_try) 2>&5 |
| 6024 | ac_status=$? |
| 6025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6026 | (exit $ac_status); }; }; then |
| 6027 | ac_cv_header_stdc=yes |
| 6028 | else |
| 6029 | echo "$as_me: failed program was:" >&5 |
| 6030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6031 | |
| 6032 | ac_cv_header_stdc=no |
| 6033 | fi |
| 6034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6035 | |
| 6036 | if test $ac_cv_header_stdc = yes; then |
| 6037 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6038 | cat >conftest.$ac_ext <<_ACEOF |
| 6039 | /* confdefs.h. */ |
| 6040 | _ACEOF |
| 6041 | cat confdefs.h >>conftest.$ac_ext |
| 6042 | cat >>conftest.$ac_ext <<_ACEOF |
| 6043 | /* end confdefs.h. */ |
| 6044 | #include <string.h> |
| 6045 | |
| 6046 | _ACEOF |
| 6047 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6048 | $EGREP "memchr" >/dev/null 2>&1; then |
| 6049 | : |
| 6050 | else |
| 6051 | ac_cv_header_stdc=no |
| 6052 | fi |
| 6053 | rm -f conftest* |
| 6054 | |
| 6055 | fi |
| 6056 | |
| 6057 | if test $ac_cv_header_stdc = yes; then |
| 6058 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6059 | cat >conftest.$ac_ext <<_ACEOF |
| 6060 | /* confdefs.h. */ |
| 6061 | _ACEOF |
| 6062 | cat confdefs.h >>conftest.$ac_ext |
| 6063 | cat >>conftest.$ac_ext <<_ACEOF |
| 6064 | /* end confdefs.h. */ |
| 6065 | #include <stdlib.h> |
| 6066 | |
| 6067 | _ACEOF |
| 6068 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6069 | $EGREP "free" >/dev/null 2>&1; then |
| 6070 | : |
| 6071 | else |
| 6072 | ac_cv_header_stdc=no |
| 6073 | fi |
| 6074 | rm -f conftest* |
| 6075 | |
| 6076 | fi |
| 6077 | |
| 6078 | if test $ac_cv_header_stdc = yes; then |
| 6079 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6080 | if test "$cross_compiling" = yes; then |
| 6081 | : |
| 6082 | else |
| 6083 | cat >conftest.$ac_ext <<_ACEOF |
| 6084 | /* confdefs.h. */ |
| 6085 | _ACEOF |
| 6086 | cat confdefs.h >>conftest.$ac_ext |
| 6087 | cat >>conftest.$ac_ext <<_ACEOF |
| 6088 | /* end confdefs.h. */ |
| 6089 | #include <ctype.h> |
| 6090 | #if ((' ' & 0x0FF) == 0x020) |
| 6091 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6092 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6093 | #else |
| 6094 | # define ISLOWER(c) \ |
| 6095 | (('a' <= (c) && (c) <= 'i') \ |
| 6096 | || ('j' <= (c) && (c) <= 'r') \ |
| 6097 | || ('s' <= (c) && (c) <= 'z')) |
| 6098 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6099 | #endif |
| 6100 | |
| 6101 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6102 | int |
| 6103 | main () |
| 6104 | { |
| 6105 | int i; |
| 6106 | for (i = 0; i < 256; i++) |
| 6107 | if (XOR (islower (i), ISLOWER (i)) |
| 6108 | || toupper (i) != TOUPPER (i)) |
| 6109 | exit(2); |
| 6110 | exit (0); |
| 6111 | } |
| 6112 | _ACEOF |
| 6113 | rm -f conftest$ac_exeext |
| 6114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6115 | (eval $ac_link) 2>&5 |
| 6116 | ac_status=$? |
| 6117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6118 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6120 | (eval $ac_try) 2>&5 |
| 6121 | ac_status=$? |
| 6122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6123 | (exit $ac_status); }; }; then |
| 6124 | : |
| 6125 | else |
| 6126 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6127 | echo "$as_me: failed program was:" >&5 |
| 6128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6129 | |
| 6130 | ( exit $ac_status ) |
| 6131 | ac_cv_header_stdc=no |
| 6132 | fi |
| 6133 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6134 | fi |
| 6135 | fi |
| 6136 | fi |
| 6137 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6138 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 6139 | if test $ac_cv_header_stdc = yes; then |
| 6140 | |
| 6141 | cat >>confdefs.h <<\_ACEOF |
| 6142 | #define STDC_HEADERS 1 |
| 6143 | _ACEOF |
| 6144 | |
| 6145 | fi |
| 6146 | |
| 6147 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6148 | |
| 6149 | |
| 6150 | |
| 6151 | |
| 6152 | |
| 6153 | |
| 6154 | |
| 6155 | |
| 6156 | |
| 6157 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6158 | inttypes.h stdint.h unistd.h |
| 6159 | do |
| 6160 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6161 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6165 | else |
| 6166 | cat >conftest.$ac_ext <<_ACEOF |
| 6167 | /* confdefs.h. */ |
| 6168 | _ACEOF |
| 6169 | cat confdefs.h >>conftest.$ac_ext |
| 6170 | cat >>conftest.$ac_ext <<_ACEOF |
| 6171 | /* end confdefs.h. */ |
| 6172 | $ac_includes_default |
| 6173 | |
| 6174 | #include <$ac_header> |
| 6175 | _ACEOF |
| 6176 | rm -f conftest.$ac_objext |
| 6177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6178 | (eval $ac_compile) 2>conftest.er1 |
| 6179 | ac_status=$? |
| 6180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6181 | rm -f conftest.er1 |
| 6182 | cat conftest.err >&5 |
| 6183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6184 | (exit $ac_status); } && |
| 6185 | { ac_try='test -z "$ac_c_werror_flag" |
| 6186 | || test ! -s conftest.err' |
| 6187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6188 | (eval $ac_try) 2>&5 |
| 6189 | ac_status=$? |
| 6190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6191 | (exit $ac_status); }; } && |
| 6192 | { ac_try='test -s conftest.$ac_objext' |
| 6193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6194 | (eval $ac_try) 2>&5 |
| 6195 | ac_status=$? |
| 6196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6197 | (exit $ac_status); }; }; then |
| 6198 | eval "$as_ac_Header=yes" |
| 6199 | else |
| 6200 | echo "$as_me: failed program was:" >&5 |
| 6201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6202 | |
| 6203 | eval "$as_ac_Header=no" |
| 6204 | fi |
| 6205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6206 | fi |
| 6207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6208 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6209 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6210 | cat >>confdefs.h <<_ACEOF |
| 6211 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6212 | _ACEOF |
| 6213 | |
| 6214 | fi |
| 6215 | |
| 6216 | done |
| 6217 | |
| 6218 | |
| 6219 | |
| 6220 | for ac_header in dlfcn.h |
| 6221 | do |
| 6222 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6223 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6224 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6225 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6227 | else |
| 6228 | cat >conftest.$ac_ext <<_ACEOF |
| 6229 | /* confdefs.h. */ |
| 6230 | _ACEOF |
| 6231 | cat confdefs.h >>conftest.$ac_ext |
| 6232 | cat >>conftest.$ac_ext <<_ACEOF |
| 6233 | /* end confdefs.h. */ |
| 6234 | $ac_includes_default |
| 6235 | |
| 6236 | #include <$ac_header> |
| 6237 | _ACEOF |
| 6238 | rm -f conftest.$ac_objext |
| 6239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6240 | (eval $ac_compile) 2>conftest.er1 |
| 6241 | ac_status=$? |
| 6242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6243 | rm -f conftest.er1 |
| 6244 | cat conftest.err >&5 |
| 6245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6246 | (exit $ac_status); } && |
| 6247 | { ac_try='test -z "$ac_c_werror_flag" |
| 6248 | || test ! -s conftest.err' |
| 6249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6250 | (eval $ac_try) 2>&5 |
| 6251 | ac_status=$? |
| 6252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6253 | (exit $ac_status); }; } && |
| 6254 | { ac_try='test -s conftest.$ac_objext' |
| 6255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6256 | (eval $ac_try) 2>&5 |
| 6257 | ac_status=$? |
| 6258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6259 | (exit $ac_status); }; }; then |
| 6260 | eval "$as_ac_Header=yes" |
| 6261 | else |
| 6262 | echo "$as_me: failed program was:" >&5 |
| 6263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6264 | |
| 6265 | eval "$as_ac_Header=no" |
| 6266 | fi |
| 6267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6268 | fi |
| 6269 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6270 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6271 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6272 | cat >>confdefs.h <<_ACEOF |
| 6273 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6274 | _ACEOF |
| 6275 | |
| 6276 | fi |
| 6277 | |
| 6278 | done |
| 6279 | |
| 6280 | |
| 6281 | |
| 6282 | # This can be used to rebuild libtool when needed |
| 6283 | LIBTOOL_DEPS="$ltmain" |
| 6284 | |
| 6285 | # Always use our own libtool. |
| 6286 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 6287 | |
| 6288 | |
| 6289 | |
| 6290 | |
| 6291 | |
| 6292 | |
| 6293 | |
| 6294 | |
| 6295 | |
| 6296 | |
| 6297 | |
| 6298 | |
| 6299 | |
| 6300 | |
| 6301 | |
| 6302 | |
| 6303 | |
| 6304 | |
| 6305 | |
| 6306 | |
| 6307 | |
| 6308 | |
| 6309 | |
| 6310 | |
| 6311 | |
| 6312 | test -z "$LN_S" && LN_S="ln -s" |
| 6313 | |
| 6314 | |
| 6315 | |
| 6316 | |
| 6317 | |
| 6318 | |
| 6319 | |
| 6320 | |
| 6321 | |
| 6322 | |
| 6323 | |
| 6324 | |
| 6325 | |
| 6326 | |
| 6327 | if test -n "${ZSH_VERSION+set}" ; then |
| 6328 | setopt NO_GLOB_SUBST |
| 6329 | fi |
| 6330 | |
| 6331 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 6332 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 6333 | if test "${lt_cv_objdir+set}" = set; then |
| 6334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6335 | else |
| 6336 | rm -f .libs 2>/dev/null |
| 6337 | mkdir .libs 2>/dev/null |
| 6338 | if test -d .libs; then |
| 6339 | lt_cv_objdir=.libs |
| 6340 | else |
| 6341 | # MS-DOS does not allow filenames that begin with a dot. |
| 6342 | lt_cv_objdir=_libs |
| 6343 | fi |
| 6344 | rmdir .libs 2>/dev/null |
| 6345 | fi |
| 6346 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 6347 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 6348 | objdir=$lt_cv_objdir |
| 6349 | |
| 6350 | |
| 6351 | |
| 6352 | |
| 6353 | |
| 6354 | cat >>confdefs.h <<_ACEOF |
| 6355 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 6356 | _ACEOF |
| 6357 | |
| 6358 | |
| 6359 | |
| 6360 | |
| 6361 | |
| 6362 | |
| 6363 | |
| 6364 | |
| 6365 | |
| 6366 | |
| 6367 | |
| 6368 | |
| 6369 | |
| 6370 | |
| 6371 | |
| 6372 | |
| 6373 | |
| 6374 | case $host_os in |
| 6375 | aix3*) |
| 6376 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6377 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6378 | # vanish in a puff of smoke. |
| 6379 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6380 | COLLECT_NAMES= |
| 6381 | export COLLECT_NAMES |
| 6382 | fi |
| 6383 | ;; |
| 6384 | esac |
| 6385 | |
| 6386 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6387 | # metacharacters that are still active within double-quoted strings. |
| 6388 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 6389 | |
| 6390 | # Same as above, but do not quote variable references. |
| 6391 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 6392 | |
| 6393 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6394 | # double_quote_subst'ed string. |
| 6395 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6396 | |
| 6397 | # Sed substitution to delay expansion of an escaped single quote. |
| 6398 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 6399 | |
| 6400 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6401 | no_glob_subst='s/\*/\\\*/g' |
| 6402 | |
| 6403 | # Global variables: |
| 6404 | ofile=libtool |
| 6405 | can_build_shared=yes |
| 6406 | |
| 6407 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 6408 | # which needs '.lib'). |
| 6409 | libext=a |
| 6410 | |
| 6411 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6412 | |
| 6413 | old_CC="$CC" |
| 6414 | old_CFLAGS="$CFLAGS" |
| 6415 | |
| 6416 | # Set sane defaults for various variables |
| 6417 | test -z "$CC" && CC=cc |
| 6418 | test -z "$LTCC" && LTCC=$CC |
| 6419 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 6420 | test -z "$LD" && LD=ld |
| 6421 | test -z "$ac_objext" && ac_objext=o |
| 6422 | |
| 6423 | for cc_temp in $compiler""; do |
| 6424 | case $cc_temp in |
| 6425 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6426 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6427 | \-*) ;; |
| 6428 | *) break;; |
| 6429 | esac |
| 6430 | done |
| 6431 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 6432 | |
| 6433 | |
| 6434 | # Only perform the check for file, if the check method requires it |
| 6435 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 6436 | case $deplibs_check_method in |
| 6437 | file_magic*) |
| 6438 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 6439 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 6440 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 6441 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6443 | else |
| 6444 | case $MAGIC_CMD in |
| 6445 | [\\/*] | ?:[\\/]*) |
| 6446 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6447 | ;; |
| 6448 | *) |
| 6449 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6450 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6451 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6452 | for ac_dir in $ac_dummy; do |
| 6453 | IFS="$lt_save_ifs" |
| 6454 | test -z "$ac_dir" && ac_dir=. |
| 6455 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 6456 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 6457 | if test -n "$file_magic_test_file"; then |
| 6458 | case $deplibs_check_method in |
| 6459 | "file_magic "*) |
| 6460 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 6461 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6462 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6463 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6464 | : |
| 6465 | else |
| 6466 | cat <<_LT_EOF 1>&2 |
| 6467 | |
| 6468 | *** Warning: the command libtool uses to detect shared libraries, |
| 6469 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6470 | *** The result is that libtool may fail to recognize shared libraries |
| 6471 | *** as such. This will affect the creation of libtool libraries that |
| 6472 | *** depend on shared libraries, but programs linked with such libtool |
| 6473 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6474 | *** may want to report the problem to your system manager and/or to |
| 6475 | *** bug-libtool@gnu.org |
| 6476 | |
| 6477 | _LT_EOF |
| 6478 | fi ;; |
| 6479 | esac |
| 6480 | fi |
| 6481 | break |
| 6482 | fi |
| 6483 | done |
| 6484 | IFS="$lt_save_ifs" |
| 6485 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6486 | ;; |
| 6487 | esac |
| 6488 | fi |
| 6489 | |
| 6490 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6491 | if test -n "$MAGIC_CMD"; then |
| 6492 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6493 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 6494 | else |
| 6495 | echo "$as_me:$LINENO: result: no" >&5 |
| 6496 | echo "${ECHO_T}no" >&6 |
| 6497 | fi |
| 6498 | |
| 6499 | |
| 6500 | |
| 6501 | |
| 6502 | |
| 6503 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 6504 | if test -n "$ac_tool_prefix"; then |
| 6505 | echo "$as_me:$LINENO: checking for file" >&5 |
| 6506 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 6507 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6509 | else |
| 6510 | case $MAGIC_CMD in |
| 6511 | [\\/*] | ?:[\\/]*) |
| 6512 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6513 | ;; |
| 6514 | *) |
| 6515 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6516 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6517 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6518 | for ac_dir in $ac_dummy; do |
| 6519 | IFS="$lt_save_ifs" |
| 6520 | test -z "$ac_dir" && ac_dir=. |
| 6521 | if test -f $ac_dir/file; then |
| 6522 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 6523 | if test -n "$file_magic_test_file"; then |
| 6524 | case $deplibs_check_method in |
| 6525 | "file_magic "*) |
| 6526 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 6527 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6528 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6529 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6530 | : |
| 6531 | else |
| 6532 | cat <<_LT_EOF 1>&2 |
| 6533 | |
| 6534 | *** Warning: the command libtool uses to detect shared libraries, |
| 6535 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6536 | *** The result is that libtool may fail to recognize shared libraries |
| 6537 | *** as such. This will affect the creation of libtool libraries that |
| 6538 | *** depend on shared libraries, but programs linked with such libtool |
| 6539 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6540 | *** may want to report the problem to your system manager and/or to |
| 6541 | *** bug-libtool@gnu.org |
| 6542 | |
| 6543 | _LT_EOF |
| 6544 | fi ;; |
| 6545 | esac |
| 6546 | fi |
| 6547 | break |
| 6548 | fi |
| 6549 | done |
| 6550 | IFS="$lt_save_ifs" |
| 6551 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6552 | ;; |
| 6553 | esac |
| 6554 | fi |
| 6555 | |
| 6556 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6557 | if test -n "$MAGIC_CMD"; then |
| 6558 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6559 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 6560 | else |
| 6561 | echo "$as_me:$LINENO: result: no" >&5 |
| 6562 | echo "${ECHO_T}no" >&6 |
| 6563 | fi |
| 6564 | |
| 6565 | |
| 6566 | else |
| 6567 | MAGIC_CMD=: |
| 6568 | fi |
| 6569 | fi |
| 6570 | |
| 6571 | fi |
| 6572 | ;; |
| 6573 | esac |
| 6574 | |
| 6575 | # Use C for the default configuration in the libtool script |
| 6576 | |
| 6577 | lt_save_CC="$CC" |
| 6578 | ac_ext=c |
| 6579 | ac_cpp='$CPP $CPPFLAGS' |
| 6580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6583 | |
| 6584 | |
| 6585 | # Source file extension for C test sources. |
| 6586 | ac_ext=c |
| 6587 | |
| 6588 | # Object file extension for compiled C test sources. |
| 6589 | objext=o |
| 6590 | objext=$objext |
| 6591 | |
| 6592 | # Code to be used in simple compile tests |
| 6593 | lt_simple_compile_test_code="int some_variable = 0;" |
| 6594 | |
| 6595 | # Code to be used in simple link tests |
| 6596 | lt_simple_link_test_code='int main(){return(0);}' |
| 6597 | |
| 6598 | |
| 6599 | |
| 6600 | |
| 6601 | |
| 6602 | |
| 6603 | |
| 6604 | # If no C compiler was specified, use CC. |
| 6605 | LTCC=${LTCC-"$CC"} |
| 6606 | |
| 6607 | # If no C compiler flags were specified, use CFLAGS. |
| 6608 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6609 | |
| 6610 | # Allow CC to be a program name with arguments. |
| 6611 | compiler=$CC |
| 6612 | |
| 6613 | # Save the default compiler, since it gets overwritten when the other |
| 6614 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 6615 | compiler_DEFAULT=$CC |
| 6616 | |
| 6617 | # save warnings/boilerplate of simple test code |
| 6618 | ac_outfile=conftest.$ac_objext |
| 6619 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 6620 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 6621 | _lt_compiler_boilerplate=`cat conftest.err` |
| 6622 | $RM conftest* |
| 6623 | |
| 6624 | ac_outfile=conftest.$ac_objext |
| 6625 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 6626 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 6627 | _lt_linker_boilerplate=`cat conftest.err` |
| 6628 | $RM conftest* |
| 6629 | |
| 6630 | |
| 6631 | ## CAVEAT EMPTOR: |
| 6632 | ## There is no encapsulation within the following macros, do not change |
| 6633 | ## the running order or otherwise move them around unless you know exactly |
| 6634 | ## what you are doing... |
| 6635 | if test -n "$compiler"; then |
| 6636 | |
| 6637 | lt_prog_compiler_no_builtin_flag= |
| 6638 | |
| 6639 | if test "$GCC" = yes; then |
| 6640 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 6641 | |
| 6642 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 6643 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 6644 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 6645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6646 | else |
| 6647 | lt_cv_prog_compiler_rtti_exceptions=no |
| 6648 | ac_outfile=conftest.$ac_objext |
| 6649 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6650 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 6651 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6652 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6653 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6654 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6655 | # The option is referenced via a variable to avoid confusing sed. |
| 6656 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6657 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 6658 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6659 | -e 's:$: $lt_compiler_flag:'` |
| 6660 | (eval echo "\"\$as_me:6660: $lt_compile\"" >&5) |
| 6661 | (eval "$lt_compile" 2>conftest.err) |
| 6662 | ac_status=$? |
| 6663 | cat conftest.err >&5 |
| 6664 | echo "$as_me:6664: \$? = $ac_status" >&5 |
| 6665 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6666 | # The compiler can only warn and ignore the option if not recognized |
| 6667 | # So say no if there are warnings other than the usual output. |
| 6668 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 6669 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6670 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 6671 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 6672 | fi |
| 6673 | fi |
| 6674 | $RM conftest* |
| 6675 | |
| 6676 | fi |
| 6677 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 6678 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 6679 | |
| 6680 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 6681 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 6682 | else |
| 6683 | : |
| 6684 | fi |
| 6685 | |
| 6686 | fi |
| 6687 | |
| 6688 | |
| 6689 | |
| 6690 | |
| 6691 | |
| 6692 | |
| 6693 | lt_prog_compiler_wl= |
| 6694 | lt_prog_compiler_pic= |
| 6695 | lt_prog_compiler_static= |
| 6696 | |
| 6697 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 6698 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 6699 | |
| 6700 | if test "$GCC" = yes; then |
| 6701 | lt_prog_compiler_wl='-Wl,' |
| 6702 | lt_prog_compiler_static='-static' |
| 6703 | |
| 6704 | case $host_os in |
| 6705 | aix*) |
| 6706 | # All AIX code is PIC. |
| 6707 | if test "$host_cpu" = ia64; then |
| 6708 | # AIX 5 now supports IA64 processor |
| 6709 | lt_prog_compiler_static='-Bstatic' |
| 6710 | fi |
| 6711 | ;; |
| 6712 | |
| 6713 | amigaos*) |
| 6714 | if test "$host_cpu" = m68k; then |
| 6715 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 6716 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 6717 | # like `-m68040'. |
| 6718 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 6719 | fi |
| 6720 | ;; |
| 6721 | |
| 6722 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 6723 | # PIC is the default for these OSes. |
| 6724 | ;; |
| 6725 | |
| 6726 | mingw* | cygwin* | pw32* | os2*) |
| 6727 | # This hack is so that the source file can tell whether it is being |
| 6728 | # built for inclusion in a dll (and should export symbols for example). |
| 6729 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 6730 | # (--disable-auto-import) libraries |
| 6731 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6732 | ;; |
| 6733 | |
| 6734 | darwin* | rhapsody*) |
| 6735 | # PIC is the default on this platform |
| 6736 | # Common symbols not allowed in MH_DYLIB files |
| 6737 | lt_prog_compiler_pic='-fno-common' |
| 6738 | ;; |
| 6739 | |
| 6740 | hpux*) |
| 6741 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6742 | # not for PA HP-UX. |
| 6743 | case $host_cpu in |
| 6744 | hppa*64*|ia64*) |
| 6745 | # +Z the default |
| 6746 | ;; |
| 6747 | *) |
| 6748 | lt_prog_compiler_pic='-fPIC' |
| 6749 | ;; |
| 6750 | esac |
| 6751 | ;; |
| 6752 | |
| 6753 | interix[3-9]*) |
| 6754 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 6755 | # Instead, we relocate shared libraries at runtime. |
| 6756 | ;; |
| 6757 | |
| 6758 | msdosdjgpp*) |
| 6759 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6760 | # on systems that don't support them. |
| 6761 | lt_prog_compiler_can_build_shared=no |
| 6762 | enable_shared=no |
| 6763 | ;; |
| 6764 | |
| 6765 | *nto* | *qnx*) |
| 6766 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 6767 | # it will coredump. |
| 6768 | lt_prog_compiler_pic='-fPIC -shared' |
| 6769 | ;; |
| 6770 | |
| 6771 | sysv4*MP*) |
| 6772 | if test -d /usr/nec; then |
| 6773 | lt_prog_compiler_pic=-Kconform_pic |
| 6774 | fi |
| 6775 | ;; |
| 6776 | |
| 6777 | *) |
| 6778 | lt_prog_compiler_pic='-fPIC' |
| 6779 | ;; |
| 6780 | esac |
| 6781 | else |
| 6782 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 6783 | case $host_os in |
| 6784 | aix*) |
| 6785 | lt_prog_compiler_wl='-Wl,' |
| 6786 | if test "$host_cpu" = ia64; then |
| 6787 | # AIX 5 now supports IA64 processor |
| 6788 | lt_prog_compiler_static='-Bstatic' |
| 6789 | else |
| 6790 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 6791 | fi |
| 6792 | ;; |
| 6793 | darwin*) |
| 6794 | # PIC is the default on this platform |
| 6795 | # Common symbols not allowed in MH_DYLIB files |
| 6796 | case $cc_basename in |
| 6797 | xlc*) |
| 6798 | lt_prog_compiler_pic='-qnocommon' |
| 6799 | lt_prog_compiler_wl='-Wl,' |
| 6800 | ;; |
| 6801 | esac |
| 6802 | ;; |
| 6803 | |
| 6804 | mingw* | cygwin* | pw32* | os2*) |
| 6805 | # This hack is so that the source file can tell whether it is being |
| 6806 | # built for inclusion in a dll (and should export symbols for example). |
| 6807 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6808 | ;; |
| 6809 | |
| 6810 | hpux9* | hpux10* | hpux11*) |
| 6811 | lt_prog_compiler_wl='-Wl,' |
| 6812 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6813 | # not for PA HP-UX. |
| 6814 | case $host_cpu in |
| 6815 | hppa*64*|ia64*) |
| 6816 | # +Z the default |
| 6817 | ;; |
| 6818 | *) |
| 6819 | lt_prog_compiler_pic='+Z' |
| 6820 | ;; |
| 6821 | esac |
| 6822 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 6823 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 6824 | ;; |
| 6825 | |
| 6826 | irix5* | irix6* | nonstopux*) |
| 6827 | lt_prog_compiler_wl='-Wl,' |
| 6828 | # PIC (with -KPIC) is the default. |
| 6829 | lt_prog_compiler_static='-non_shared' |
| 6830 | ;; |
| 6831 | |
| 6832 | linux* | k*bsd*-gnu) |
| 6833 | case $cc_basename in |
| 6834 | icc* | ecc*) |
| 6835 | lt_prog_compiler_wl='-Wl,' |
| 6836 | lt_prog_compiler_pic='-KPIC' |
| 6837 | lt_prog_compiler_static='-static' |
| 6838 | ;; |
| 6839 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 6840 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 6841 | # which looks to be a dead project) |
| 6842 | lt_prog_compiler_wl='-Wl,' |
| 6843 | lt_prog_compiler_pic='-fpic' |
| 6844 | lt_prog_compiler_static='-Bstatic' |
| 6845 | ;; |
| 6846 | ccc*) |
| 6847 | lt_prog_compiler_wl='-Wl,' |
| 6848 | # All Alpha code is PIC. |
| 6849 | lt_prog_compiler_static='-non_shared' |
| 6850 | ;; |
| 6851 | *) |
| 6852 | case `$CC -V 2>&1 | sed 5q` in |
| 6853 | *Sun\ C*) |
| 6854 | # Sun C 5.9 |
| 6855 | lt_prog_compiler_pic='-KPIC' |
| 6856 | lt_prog_compiler_static='-Bstatic' |
| 6857 | lt_prog_compiler_wl='-Wl,' |
| 6858 | ;; |
| 6859 | *Sun\ F*) |
| 6860 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 6861 | lt_prog_compiler_pic='-KPIC' |
| 6862 | lt_prog_compiler_static='-Bstatic' |
| 6863 | lt_prog_compiler_wl='' |
| 6864 | ;; |
| 6865 | esac |
| 6866 | ;; |
| 6867 | esac |
| 6868 | ;; |
| 6869 | |
| 6870 | newsos6) |
| 6871 | lt_prog_compiler_pic='-KPIC' |
| 6872 | lt_prog_compiler_static='-Bstatic' |
| 6873 | ;; |
| 6874 | |
| 6875 | *nto* | *qnx*) |
| 6876 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 6877 | # it will coredump. |
| 6878 | lt_prog_compiler_pic='-fPIC -shared' |
| 6879 | ;; |
| 6880 | |
| 6881 | osf3* | osf4* | osf5*) |
| 6882 | lt_prog_compiler_wl='-Wl,' |
| 6883 | # All OSF/1 code is PIC. |
| 6884 | lt_prog_compiler_static='-non_shared' |
| 6885 | ;; |
| 6886 | |
| 6887 | rdos*) |
| 6888 | lt_prog_compiler_static='-non_shared' |
| 6889 | ;; |
| 6890 | |
| 6891 | solaris*) |
| 6892 | lt_prog_compiler_pic='-KPIC' |
| 6893 | lt_prog_compiler_static='-Bstatic' |
| 6894 | case $cc_basename in |
| 6895 | f77* | f90* | f95*) |
| 6896 | lt_prog_compiler_wl='-Qoption ld ';; |
| 6897 | *) |
| 6898 | lt_prog_compiler_wl='-Wl,';; |
| 6899 | esac |
| 6900 | ;; |
| 6901 | |
| 6902 | sunos4*) |
| 6903 | lt_prog_compiler_wl='-Qoption ld ' |
| 6904 | lt_prog_compiler_pic='-PIC' |
| 6905 | lt_prog_compiler_static='-Bstatic' |
| 6906 | ;; |
| 6907 | |
| 6908 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 6909 | lt_prog_compiler_wl='-Wl,' |
| 6910 | lt_prog_compiler_pic='-KPIC' |
| 6911 | lt_prog_compiler_static='-Bstatic' |
| 6912 | ;; |
| 6913 | |
| 6914 | sysv4*MP*) |
| 6915 | if test -d /usr/nec ;then |
| 6916 | lt_prog_compiler_pic='-Kconform_pic' |
| 6917 | lt_prog_compiler_static='-Bstatic' |
| 6918 | fi |
| 6919 | ;; |
| 6920 | |
| 6921 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 6922 | lt_prog_compiler_wl='-Wl,' |
| 6923 | lt_prog_compiler_pic='-KPIC' |
| 6924 | lt_prog_compiler_static='-Bstatic' |
| 6925 | ;; |
| 6926 | |
| 6927 | unicos*) |
| 6928 | lt_prog_compiler_wl='-Wl,' |
| 6929 | lt_prog_compiler_can_build_shared=no |
| 6930 | ;; |
| 6931 | |
| 6932 | uts4*) |
| 6933 | lt_prog_compiler_pic='-pic' |
| 6934 | lt_prog_compiler_static='-Bstatic' |
| 6935 | ;; |
| 6936 | |
| 6937 | *) |
| 6938 | lt_prog_compiler_can_build_shared=no |
| 6939 | ;; |
| 6940 | esac |
| 6941 | fi |
| 6942 | |
| 6943 | case $host_os in |
| 6944 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6945 | *djgpp*) |
| 6946 | lt_prog_compiler_pic= |
| 6947 | ;; |
| 6948 | *) |
| 6949 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 6950 | ;; |
| 6951 | esac |
| 6952 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 6953 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
| 6954 | |
| 6955 | |
| 6956 | |
| 6957 | |
| 6958 | |
| 6959 | |
| 6960 | # |
| 6961 | # Check to make sure the PIC flag actually works. |
| 6962 | # |
| 6963 | if test -n "$lt_prog_compiler_pic"; then |
| 6964 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 6965 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 6966 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 6967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6968 | else |
| 6969 | lt_prog_compiler_pic_works=no |
| 6970 | ac_outfile=conftest.$ac_objext |
| 6971 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6972 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 6973 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6974 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6975 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6976 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6977 | # The option is referenced via a variable to avoid confusing sed. |
| 6978 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6979 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 6980 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6981 | -e 's:$: $lt_compiler_flag:'` |
| 6982 | (eval echo "\"\$as_me:6982: $lt_compile\"" >&5) |
| 6983 | (eval "$lt_compile" 2>conftest.err) |
| 6984 | ac_status=$? |
| 6985 | cat conftest.err >&5 |
| 6986 | echo "$as_me:6986: \$? = $ac_status" >&5 |
| 6987 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6988 | # The compiler can only warn and ignore the option if not recognized |
| 6989 | # So say no if there are warnings other than the usual output. |
| 6990 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 6991 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6992 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 6993 | lt_prog_compiler_pic_works=yes |
| 6994 | fi |
| 6995 | fi |
| 6996 | $RM conftest* |
| 6997 | |
| 6998 | fi |
| 6999 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 7000 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
| 7001 | |
| 7002 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 7003 | case $lt_prog_compiler_pic in |
| 7004 | "" | " "*) ;; |
| 7005 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7006 | esac |
| 7007 | else |
| 7008 | lt_prog_compiler_pic= |
| 7009 | lt_prog_compiler_can_build_shared=no |
| 7010 | fi |
| 7011 | |
| 7012 | fi |
| 7013 | |
| 7014 | |
| 7015 | |
| 7016 | |
| 7017 | |
| 7018 | |
| 7019 | # |
| 7020 | # Check to make sure the static flag actually works. |
| 7021 | # |
| 7022 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 7023 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 7024 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| 7025 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 7026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7027 | else |
| 7028 | lt_prog_compiler_static_works=no |
| 7029 | save_LDFLAGS="$LDFLAGS" |
| 7030 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 7031 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 7032 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7033 | # The linker can only warn and ignore the option if not recognized |
| 7034 | # So say no if there are warnings |
| 7035 | if test -s conftest.err; then |
| 7036 | # Append any errors to the config.log. |
| 7037 | cat conftest.err 1>&5 |
| 7038 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 7039 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7040 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 7041 | lt_prog_compiler_static_works=yes |
| 7042 | fi |
| 7043 | else |
| 7044 | lt_prog_compiler_static_works=yes |
| 7045 | fi |
| 7046 | fi |
| 7047 | $RM conftest* |
| 7048 | LDFLAGS="$save_LDFLAGS" |
| 7049 | |
| 7050 | fi |
| 7051 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 7052 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 7053 | |
| 7054 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 7055 | : |
| 7056 | else |
| 7057 | lt_prog_compiler_static= |
| 7058 | fi |
| 7059 | |
| 7060 | |
| 7061 | |
| 7062 | |
| 7063 | |
| 7064 | |
| 7065 | |
| 7066 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7067 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 7068 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 7069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7070 | else |
| 7071 | lt_cv_prog_compiler_c_o=no |
| 7072 | $RM -r conftest 2>/dev/null |
| 7073 | mkdir conftest |
| 7074 | cd conftest |
| 7075 | mkdir out |
| 7076 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7077 | |
| 7078 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7079 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7080 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7081 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7082 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7083 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7084 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7085 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7086 | -e 's:$: $lt_compiler_flag:'` |
| 7087 | (eval echo "\"\$as_me:7087: $lt_compile\"" >&5) |
| 7088 | (eval "$lt_compile" 2>out/conftest.err) |
| 7089 | ac_status=$? |
| 7090 | cat out/conftest.err >&5 |
| 7091 | echo "$as_me:7091: \$? = $ac_status" >&5 |
| 7092 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7093 | then |
| 7094 | # The compiler can only warn and ignore the option if not recognized |
| 7095 | # So say no if there are warnings |
| 7096 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 7097 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7098 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 7099 | lt_cv_prog_compiler_c_o=yes |
| 7100 | fi |
| 7101 | fi |
| 7102 | chmod u+w . 2>&5 |
| 7103 | $RM conftest* |
| 7104 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7105 | # template instantiation |
| 7106 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 7107 | $RM out/* && rmdir out |
| 7108 | cd .. |
| 7109 | $RM -r conftest |
| 7110 | $RM conftest* |
| 7111 | |
| 7112 | fi |
| 7113 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7114 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
| 7115 | |
| 7116 | |
| 7117 | |
| 7118 | |
| 7119 | |
| 7120 | |
| 7121 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7122 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 7123 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 7124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7125 | else |
| 7126 | lt_cv_prog_compiler_c_o=no |
| 7127 | $RM -r conftest 2>/dev/null |
| 7128 | mkdir conftest |
| 7129 | cd conftest |
| 7130 | mkdir out |
| 7131 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7132 | |
| 7133 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7134 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7135 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7136 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7137 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7138 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7139 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7140 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7141 | -e 's:$: $lt_compiler_flag:'` |
| 7142 | (eval echo "\"\$as_me:7142: $lt_compile\"" >&5) |
| 7143 | (eval "$lt_compile" 2>out/conftest.err) |
| 7144 | ac_status=$? |
| 7145 | cat out/conftest.err >&5 |
| 7146 | echo "$as_me:7146: \$? = $ac_status" >&5 |
| 7147 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7148 | then |
| 7149 | # The compiler can only warn and ignore the option if not recognized |
| 7150 | # So say no if there are warnings |
| 7151 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 7152 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7153 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 7154 | lt_cv_prog_compiler_c_o=yes |
| 7155 | fi |
| 7156 | fi |
| 7157 | chmod u+w . 2>&5 |
| 7158 | $RM conftest* |
| 7159 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7160 | # template instantiation |
| 7161 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 7162 | $RM out/* && rmdir out |
| 7163 | cd .. |
| 7164 | $RM -r conftest |
| 7165 | $RM conftest* |
| 7166 | |
| 7167 | fi |
| 7168 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7169 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
| 7170 | |
| 7171 | |
| 7172 | |
| 7173 | |
| 7174 | hard_links="nottested" |
| 7175 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 7176 | # do not overwrite the value of need_locks provided by the user |
| 7177 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 7178 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 7179 | hard_links=yes |
| 7180 | $RM conftest* |
| 7181 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7182 | touch conftest.a |
| 7183 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7184 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7185 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 7186 | echo "${ECHO_T}$hard_links" >&6 |
| 7187 | if test "$hard_links" = no; then |
| 7188 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 7189 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 7190 | need_locks=warn |
| 7191 | fi |
| 7192 | else |
| 7193 | need_locks=no |
| 7194 | fi |
| 7195 | |
| 7196 | |
| 7197 | |
| 7198 | |
| 7199 | |
| 7200 | |
| 7201 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 7202 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 7203 | |
| 7204 | runpath_var= |
| 7205 | allow_undefined_flag= |
| 7206 | always_export_symbols=no |
| 7207 | archive_cmds= |
| 7208 | archive_expsym_cmds= |
| 7209 | compiler_needs_object=no |
| 7210 | enable_shared_with_static_runtimes=no |
| 7211 | export_dynamic_flag_spec= |
| 7212 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7213 | hardcode_automatic=no |
| 7214 | hardcode_direct=no |
| 7215 | hardcode_direct_absolute=no |
| 7216 | hardcode_libdir_flag_spec= |
| 7217 | hardcode_libdir_flag_spec_ld= |
| 7218 | hardcode_libdir_separator= |
| 7219 | hardcode_minus_L=no |
| 7220 | hardcode_shlibpath_var=unsupported |
| 7221 | inherit_rpath=no |
| 7222 | link_all_deplibs=unknown |
| 7223 | module_cmds= |
| 7224 | module_expsym_cmds= |
| 7225 | old_archive_from_new_cmds= |
| 7226 | old_archive_from_expsyms_cmds= |
| 7227 | thread_safe_flag_spec= |
| 7228 | whole_archive_flag_spec= |
| 7229 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7230 | # included in the symbol list |
| 7231 | include_expsyms= |
| 7232 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7233 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7234 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7235 | # as well as any symbol that contains `d'. |
| 7236 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 7237 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7238 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7239 | # the symbol is explicitly referenced. Since portable code cannot |
| 7240 | # rely on this symbol name, it's probably fine to never include it in |
| 7241 | # preloaded symbol tables. |
| 7242 | extract_expsyms_cmds= |
| 7243 | |
| 7244 | case $host_os in |
| 7245 | cygwin* | mingw* | pw32*) |
| 7246 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7247 | # When not using gcc, we currently assume that we are using |
| 7248 | # Microsoft Visual C++. |
| 7249 | if test "$GCC" != yes; then |
| 7250 | with_gnu_ld=no |
| 7251 | fi |
| 7252 | ;; |
| 7253 | interix*) |
| 7254 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 7255 | with_gnu_ld=yes |
| 7256 | ;; |
| 7257 | openbsd*) |
| 7258 | with_gnu_ld=no |
| 7259 | ;; |
| 7260 | esac |
| 7261 | |
| 7262 | ld_shlibs=yes |
| 7263 | if test "$with_gnu_ld" = yes; then |
| 7264 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7265 | wlarc='${wl}' |
| 7266 | |
| 7267 | # Set some defaults for GNU ld with shared library support. These |
| 7268 | # are reset later if shared libraries are not supported. Putting them |
| 7269 | # here allows them to be overridden if necessary. |
| 7270 | runpath_var=LD_RUN_PATH |
| 7271 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7272 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7273 | # ancient GNU ld didn't support --whole-archive et. al. |
| 7274 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 7275 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7276 | else |
| 7277 | whole_archive_flag_spec= |
| 7278 | fi |
| 7279 | supports_anon_versioning=no |
| 7280 | case `$LD -v 2>&1` in |
| 7281 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7282 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7283 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7284 | *\ 2.11.*) ;; # other 2.11 versions |
| 7285 | *) supports_anon_versioning=yes ;; |
| 7286 | esac |
| 7287 | |
| 7288 | # See if GNU ld supports shared libraries. |
| 7289 | case $host_os in |
| 7290 | aix3* | aix4* | aix5*) |
| 7291 | # On AIX/PPC, the GNU linker is very broken |
| 7292 | if test "$host_cpu" != ia64; then |
| 7293 | ld_shlibs=no |
| 7294 | cat <<_LT_EOF 1>&2 |
| 7295 | |
| 7296 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7297 | *** to be unable to reliably create shared libraries on AIX. |
| 7298 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7299 | *** really care for shared libraries, you may want to modify your PATH |
| 7300 | *** so that a non-GNU linker is found, and then restart. |
| 7301 | |
| 7302 | _LT_EOF |
| 7303 | fi |
| 7304 | ;; |
| 7305 | |
| 7306 | amigaos*) |
| 7307 | if test "$host_cpu" = m68k; then |
| 7308 | 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)' |
| 7309 | hardcode_libdir_flag_spec='-L$libdir' |
| 7310 | hardcode_minus_L=yes |
| 7311 | fi |
| 7312 | |
| 7313 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 7314 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 7315 | # to version 4, is to share data among multiple programs linked |
| 7316 | # with the same dynamic library. Since this doesn't match the |
| 7317 | # behavior of shared libraries on other platforms, we can't use |
| 7318 | # them. |
| 7319 | ld_shlibs=no |
| 7320 | ;; |
| 7321 | |
| 7322 | beos*) |
| 7323 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 7324 | allow_undefined_flag=unsupported |
| 7325 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 7326 | # support --undefined. This deserves some investigation. FIXME |
| 7327 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7328 | else |
| 7329 | ld_shlibs=no |
| 7330 | fi |
| 7331 | ;; |
| 7332 | |
| 7333 | cygwin* | mingw* | pw32*) |
| 7334 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 7335 | # as there is no search path for DLLs. |
| 7336 | hardcode_libdir_flag_spec='-L$libdir' |
| 7337 | allow_undefined_flag=unsupported |
| 7338 | always_export_symbols=no |
| 7339 | enable_shared_with_static_runtimes=yes |
| 7340 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 7341 | |
| 7342 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 7343 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 7344 | # If the export-symbols file already is a .def file (1st line |
| 7345 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7346 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7347 | cp $export_symbols $output_objdir/$soname.def; |
| 7348 | else |
| 7349 | echo EXPORTS > $output_objdir/$soname.def; |
| 7350 | cat $export_symbols >> $output_objdir/$soname.def; |
| 7351 | fi~ |
| 7352 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 7353 | else |
| 7354 | ld_shlibs=no |
| 7355 | fi |
| 7356 | ;; |
| 7357 | |
| 7358 | interix[3-9]*) |
| 7359 | hardcode_direct=no |
| 7360 | hardcode_shlibpath_var=no |
| 7361 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7362 | export_dynamic_flag_spec='${wl}-E' |
| 7363 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 7364 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 7365 | # default) and relocated if they conflict, which is a slow very memory |
| 7366 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 7367 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 7368 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 7369 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 7370 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 7371 | ;; |
| 7372 | |
| 7373 | gnu* | linux* | tpf* | k*bsd*-gnu) |
| 7374 | tmp_diet=no |
| 7375 | if test "$host_os" = linux-dietlibc; then |
| 7376 | case $cc_basename in |
| 7377 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 7378 | esac |
| 7379 | fi |
| 7380 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 7381 | && test "$tmp_diet" = no |
| 7382 | then |
| 7383 | tmp_addflag= |
| 7384 | case $cc_basename,$host_cpu in |
| 7385 | pgcc*) # Portland Group C compiler |
| 7386 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 7387 | tmp_addflag=' $pic_flag' |
| 7388 | ;; |
| 7389 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 7390 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 7391 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 7392 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 7393 | tmp_addflag=' -i_dynamic' ;; |
| 7394 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 7395 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 7396 | ifc* | ifort*) # Intel Fortran compiler |
| 7397 | tmp_addflag=' -nofor_main' ;; |
| 7398 | esac |
| 7399 | case `$CC -V 2>&1 | sed 5q` in |
| 7400 | *Sun\ C*) # Sun C 5.9 |
| 7401 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 7402 | compiler_needs_object=yes |
| 7403 | tmp_sharedflag='-G' ;; |
| 7404 | *Sun\ F*) # Sun Fortran 8.3 |
| 7405 | tmp_sharedflag='-G' ;; |
| 7406 | *) |
| 7407 | tmp_sharedflag='-shared' ;; |
| 7408 | esac |
| 7409 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7410 | |
| 7411 | if test "x$supports_anon_versioning" = xyes; then |
| 7412 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 7413 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7414 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7415 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 7416 | fi |
| 7417 | else |
| 7418 | ld_shlibs=no |
| 7419 | fi |
| 7420 | ;; |
| 7421 | |
| 7422 | netbsd*) |
| 7423 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 7424 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 7425 | wlarc= |
| 7426 | else |
| 7427 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7428 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7429 | fi |
| 7430 | ;; |
| 7431 | |
| 7432 | solaris*) |
| 7433 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 7434 | ld_shlibs=no |
| 7435 | cat <<_LT_EOF 1>&2 |
| 7436 | |
| 7437 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 7438 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 7439 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7440 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 7441 | *** your PATH or compiler configuration so that the native linker is |
| 7442 | *** used, and then restart. |
| 7443 | |
| 7444 | _LT_EOF |
| 7445 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 7446 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7447 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7448 | else |
| 7449 | ld_shlibs=no |
| 7450 | fi |
| 7451 | ;; |
| 7452 | |
| 7453 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 7454 | case `$LD -v 2>&1` in |
| 7455 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 7456 | ld_shlibs=no |
| 7457 | cat <<_LT_EOF 1>&2 |
| 7458 | |
| 7459 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 7460 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 7461 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7462 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 7463 | *** your PATH or compiler configuration so that the native linker is |
| 7464 | *** used, and then restart. |
| 7465 | |
| 7466 | _LT_EOF |
| 7467 | ;; |
| 7468 | *) |
| 7469 | # For security reasons, it is highly recommended that you always |
| 7470 | # use absolute paths for naming shared libraries, and exclude the |
| 7471 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 7472 | # requires that you compile everything twice, which is a pain. |
| 7473 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 7474 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7475 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7476 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7477 | else |
| 7478 | ld_shlibs=no |
| 7479 | fi |
| 7480 | ;; |
| 7481 | esac |
| 7482 | ;; |
| 7483 | |
| 7484 | sunos4*) |
| 7485 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7486 | wlarc= |
| 7487 | hardcode_direct=yes |
| 7488 | hardcode_shlibpath_var=no |
| 7489 | ;; |
| 7490 | |
| 7491 | *) |
| 7492 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 7493 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7494 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7495 | else |
| 7496 | ld_shlibs=no |
| 7497 | fi |
| 7498 | ;; |
| 7499 | esac |
| 7500 | |
| 7501 | if test "$ld_shlibs" = no; then |
| 7502 | runpath_var= |
| 7503 | hardcode_libdir_flag_spec= |
| 7504 | export_dynamic_flag_spec= |
| 7505 | whole_archive_flag_spec= |
| 7506 | fi |
| 7507 | else |
| 7508 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 7509 | case $host_os in |
| 7510 | aix3*) |
| 7511 | allow_undefined_flag=unsupported |
| 7512 | always_export_symbols=yes |
| 7513 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 7514 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 7515 | # are no directories specified by -L. |
| 7516 | hardcode_minus_L=yes |
| 7517 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 7518 | # Neither direct hardcoding nor static linking is supported with a |
| 7519 | # broken collect2. |
| 7520 | hardcode_direct=unsupported |
| 7521 | fi |
| 7522 | ;; |
| 7523 | |
| 7524 | aix4* | aix5*) |
| 7525 | if test "$host_cpu" = ia64; then |
| 7526 | # On IA64, the linker does run time linking by default, so we don't |
| 7527 | # have to do anything special. |
| 7528 | aix_use_runtimelinking=no |
| 7529 | exp_sym_flag='-Bexport' |
| 7530 | no_entry_flag="" |
| 7531 | else |
| 7532 | # If we're using GNU nm, then we don't want the "-C" option. |
| 7533 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 7534 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 7535 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 7536 | else |
| 7537 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 7538 | fi |
| 7539 | aix_use_runtimelinking=no |
| 7540 | |
| 7541 | # Test if we are trying to use run time linking or normal |
| 7542 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 7543 | # need to do runtime linking. |
| 7544 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 7545 | for ld_flag in $LDFLAGS; do |
| 7546 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 7547 | aix_use_runtimelinking=yes |
| 7548 | break |
| 7549 | fi |
| 7550 | done |
| 7551 | ;; |
| 7552 | esac |
| 7553 | |
| 7554 | exp_sym_flag='-bexport' |
| 7555 | no_entry_flag='-bnoentry' |
| 7556 | fi |
| 7557 | |
| 7558 | # When large executables or shared objects are built, AIX ld can |
| 7559 | # have problems creating the table of contents. If linking a library |
| 7560 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 7561 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 7562 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 7563 | |
| 7564 | archive_cmds='' |
| 7565 | hardcode_direct=yes |
| 7566 | hardcode_direct_absolute=yes |
| 7567 | hardcode_libdir_separator=':' |
| 7568 | link_all_deplibs=yes |
| 7569 | file_list_spec='${wl}-f,' |
| 7570 | |
| 7571 | if test "$GCC" = yes; then |
| 7572 | case $host_os in aix4.[012]|aix4.[012].*) |
| 7573 | # We only want to do this on AIX 4.2 and lower, the check |
| 7574 | # below for broken collect2 doesn't work under 4.3+ |
| 7575 | collect2name=`${CC} -print-prog-name=collect2` |
| 7576 | if test -f "$collect2name" && |
| 7577 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 7578 | then |
| 7579 | # We have reworked collect2 |
| 7580 | : |
| 7581 | else |
| 7582 | # We have old collect2 |
| 7583 | hardcode_direct=unsupported |
| 7584 | # It fails to find uninstalled libraries when the uninstalled |
| 7585 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 7586 | # to unsupported forces relinking |
| 7587 | hardcode_minus_L=yes |
| 7588 | hardcode_libdir_flag_spec='-L$libdir' |
| 7589 | hardcode_libdir_separator= |
| 7590 | fi |
| 7591 | ;; |
| 7592 | esac |
| 7593 | shared_flag='-shared' |
| 7594 | if test "$aix_use_runtimelinking" = yes; then |
| 7595 | shared_flag="$shared_flag "'${wl}-G' |
| 7596 | fi |
| 7597 | else |
| 7598 | # not using gcc |
| 7599 | if test "$host_cpu" = ia64; then |
| 7600 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 7601 | # chokes on -Wl,-G. The following line is correct: |
| 7602 | shared_flag='-G' |
| 7603 | else |
| 7604 | if test "$aix_use_runtimelinking" = yes; then |
| 7605 | shared_flag='${wl}-G' |
| 7606 | else |
| 7607 | shared_flag='${wl}-bM:SRE' |
| 7608 | fi |
| 7609 | fi |
| 7610 | fi |
| 7611 | |
| 7612 | # It seems that -bexpall does not export symbols beginning with |
| 7613 | # underscore (_), so it is better to generate a list of symbols to export. |
| 7614 | always_export_symbols=yes |
| 7615 | if test "$aix_use_runtimelinking" = yes; then |
| 7616 | # Warning - without using the other runtime loading flags (-brtl), |
| 7617 | # -berok will link without error, but may produce a broken library. |
| 7618 | allow_undefined_flag='-berok' |
| 7619 | # Determine the default libpath from the value encoded in an |
| 7620 | # empty executable. |
| 7621 | cat >conftest.$ac_ext <<_ACEOF |
| 7622 | /* confdefs.h. */ |
| 7623 | _ACEOF |
| 7624 | cat confdefs.h >>conftest.$ac_ext |
| 7625 | cat >>conftest.$ac_ext <<_ACEOF |
| 7626 | /* end confdefs.h. */ |
| 7627 | |
| 7628 | int |
| 7629 | main () |
| 7630 | { |
| 7631 | |
| 7632 | ; |
| 7633 | return 0; |
| 7634 | } |
| 7635 | _ACEOF |
| 7636 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7638 | (eval $ac_link) 2>conftest.er1 |
| 7639 | ac_status=$? |
| 7640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7641 | rm -f conftest.er1 |
| 7642 | cat conftest.err >&5 |
| 7643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7644 | (exit $ac_status); } && |
| 7645 | { ac_try='test -z "$ac_c_werror_flag" |
| 7646 | || test ! -s conftest.err' |
| 7647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7648 | (eval $ac_try) 2>&5 |
| 7649 | ac_status=$? |
| 7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7651 | (exit $ac_status); }; } && |
| 7652 | { ac_try='test -s conftest$ac_exeext' |
| 7653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7654 | (eval $ac_try) 2>&5 |
| 7655 | ac_status=$? |
| 7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7657 | (exit $ac_status); }; }; then |
| 7658 | |
| 7659 | lt_aix_libpath_sed=' |
| 7660 | /Import File Strings/,/^$/ { |
| 7661 | /^0/ { |
| 7662 | s/^0 *\(.*\)$/\1/ |
| 7663 | p |
| 7664 | } |
| 7665 | }' |
| 7666 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 7667 | # Check for a 64-bit object if we didn't find anything. |
| 7668 | if test -z "$aix_libpath"; then |
| 7669 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 7670 | fi |
| 7671 | else |
| 7672 | echo "$as_me: failed program was:" >&5 |
| 7673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7674 | |
| 7675 | fi |
| 7676 | rm -f conftest.err conftest.$ac_objext \ |
| 7677 | conftest$ac_exeext conftest.$ac_ext |
| 7678 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 7679 | |
| 7680 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7681 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 7682 | else |
| 7683 | if test "$host_cpu" = ia64; then |
| 7684 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 7685 | allow_undefined_flag="-z nodefs" |
| 7686 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 7687 | else |
| 7688 | # Determine the default libpath from the value encoded in an |
| 7689 | # empty executable. |
| 7690 | cat >conftest.$ac_ext <<_ACEOF |
| 7691 | /* confdefs.h. */ |
| 7692 | _ACEOF |
| 7693 | cat confdefs.h >>conftest.$ac_ext |
| 7694 | cat >>conftest.$ac_ext <<_ACEOF |
| 7695 | /* end confdefs.h. */ |
| 7696 | |
| 7697 | int |
| 7698 | main () |
| 7699 | { |
| 7700 | |
| 7701 | ; |
| 7702 | return 0; |
| 7703 | } |
| 7704 | _ACEOF |
| 7705 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7707 | (eval $ac_link) 2>conftest.er1 |
| 7708 | ac_status=$? |
| 7709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7710 | rm -f conftest.er1 |
| 7711 | cat conftest.err >&5 |
| 7712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7713 | (exit $ac_status); } && |
| 7714 | { ac_try='test -z "$ac_c_werror_flag" |
| 7715 | || test ! -s conftest.err' |
| 7716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7717 | (eval $ac_try) 2>&5 |
| 7718 | ac_status=$? |
| 7719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7720 | (exit $ac_status); }; } && |
| 7721 | { ac_try='test -s conftest$ac_exeext' |
| 7722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7723 | (eval $ac_try) 2>&5 |
| 7724 | ac_status=$? |
| 7725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7726 | (exit $ac_status); }; }; then |
| 7727 | |
| 7728 | lt_aix_libpath_sed=' |
| 7729 | /Import File Strings/,/^$/ { |
| 7730 | /^0/ { |
| 7731 | s/^0 *\(.*\)$/\1/ |
| 7732 | p |
| 7733 | } |
| 7734 | }' |
| 7735 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 7736 | # Check for a 64-bit object if we didn't find anything. |
| 7737 | if test -z "$aix_libpath"; then |
| 7738 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 7739 | fi |
| 7740 | else |
| 7741 | echo "$as_me: failed program was:" >&5 |
| 7742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7743 | |
| 7744 | fi |
| 7745 | rm -f conftest.err conftest.$ac_objext \ |
| 7746 | conftest$ac_exeext conftest.$ac_ext |
| 7747 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 7748 | |
| 7749 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7750 | # Warning - without using the other run time loading flags, |
| 7751 | # -berok will link without error, but may produce a broken library. |
| 7752 | no_undefined_flag=' ${wl}-bernotok' |
| 7753 | allow_undefined_flag=' ${wl}-berok' |
| 7754 | # Exported symbols can be pulled into shared objects from archives |
| 7755 | whole_archive_flag_spec='$convenience' |
| 7756 | archive_cmds_need_lc=yes |
| 7757 | # This is similar to how AIX traditionally builds its shared libraries. |
| 7758 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 7759 | fi |
| 7760 | fi |
| 7761 | ;; |
| 7762 | |
| 7763 | amigaos*) |
| 7764 | if test "$host_cpu" = m68k; then |
| 7765 | 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)' |
| 7766 | hardcode_libdir_flag_spec='-L$libdir' |
| 7767 | hardcode_minus_L=yes |
| 7768 | fi |
| 7769 | # see comment about different semantics on the GNU ld section |
| 7770 | ld_shlibs=no |
| 7771 | ;; |
| 7772 | |
| 7773 | bsdi[45]*) |
| 7774 | export_dynamic_flag_spec=-rdynamic |
| 7775 | ;; |
| 7776 | |
| 7777 | cygwin* | mingw* | pw32*) |
| 7778 | # When not using gcc, we currently assume that we are using |
| 7779 | # Microsoft Visual C++. |
| 7780 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 7781 | # no search path for DLLs. |
| 7782 | hardcode_libdir_flag_spec=' ' |
| 7783 | allow_undefined_flag=unsupported |
| 7784 | # Tell ltmain to make .lib files, not .a files. |
| 7785 | libext=lib |
| 7786 | # Tell ltmain to make .dll files, not .so files. |
| 7787 | shrext_cmds=".dll" |
| 7788 | # FIXME: Setting linknames here is a bad hack. |
| 7789 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 7790 | # The linker will automatically build a .lib file if we build a DLL. |
| 7791 | old_archive_from_new_cmds='true' |
| 7792 | # FIXME: Should let the user specify the lib program. |
| 7793 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 7794 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 7795 | enable_shared_with_static_runtimes=yes |
| 7796 | ;; |
| 7797 | |
| 7798 | darwin* | rhapsody*) |
| 7799 | case $host_os in |
| 7800 | rhapsody* | darwin1.[012]) |
| 7801 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 7802 | ;; |
| 7803 | *) # Darwin 1.3 on |
| 7804 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in |
| 7805 | 10.[012]) |
| 7806 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 7807 | ;; |
| 7808 | 10.*) |
| 7809 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 7810 | ;; |
| 7811 | esac |
| 7812 | ;; |
| 7813 | esac |
| 7814 | archive_cmds_need_lc=no |
| 7815 | hardcode_direct=no |
| 7816 | hardcode_automatic=yes |
| 7817 | hardcode_shlibpath_var=unsupported |
| 7818 | whole_archive_flag_spec='' |
| 7819 | link_all_deplibs=yes |
| 7820 | if test "$GCC" = yes ; then |
| 7821 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
| 7822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7823 | else |
| 7824 | lt_cv_apple_cc_single_mod=no |
| 7825 | if test -z "${LT_MULTI_MODULE}"; then |
| 7826 | # By default we will add the -single_module flag. You can override |
| 7827 | # by either setting the environment variable LT_MULTI_MODULE |
| 7828 | # non-empty at configure time, or by adding -multi-module to the |
| 7829 | # link flags. |
| 7830 | echo "int foo(void){return 1;}" > conftest.c |
| 7831 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7832 | -dynamiclib ${wl}-single_module conftest.c |
| 7833 | if test -f libconftest.dylib; then |
| 7834 | lt_cv_apple_cc_single_mod=yes |
| 7835 | rm libconftest.dylib |
| 7836 | fi |
| 7837 | rm conftest.$ac_ext |
| 7838 | fi |
| 7839 | fi |
| 7840 | |
| 7841 | output_verbose_link_cmd=echo |
| 7842 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then |
| 7843 | archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 7844 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7845 | else |
| 7846 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 7847 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7848 | fi |
| 7849 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 7850 | module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7851 | else |
| 7852 | case $cc_basename in |
| 7853 | xlc*) |
| 7854 | output_verbose_link_cmd=echo |
| 7855 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' |
| 7856 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 7857 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 7858 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7859 | module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7860 | ;; |
| 7861 | *) |
| 7862 | ld_shlibs=no |
| 7863 | ;; |
| 7864 | esac |
| 7865 | fi |
| 7866 | ;; |
| 7867 | |
| 7868 | dgux*) |
| 7869 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7870 | hardcode_libdir_flag_spec='-L$libdir' |
| 7871 | hardcode_shlibpath_var=no |
| 7872 | ;; |
| 7873 | |
| 7874 | freebsd1*) |
| 7875 | ld_shlibs=no |
| 7876 | ;; |
| 7877 | |
| 7878 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 7879 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 7880 | # does not break anything, and helps significantly (at the cost of a little |
| 7881 | # extra space). |
| 7882 | freebsd2.2*) |
| 7883 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 7884 | hardcode_libdir_flag_spec='-R$libdir' |
| 7885 | hardcode_direct=yes |
| 7886 | hardcode_shlibpath_var=no |
| 7887 | ;; |
| 7888 | |
| 7889 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 7890 | freebsd2*) |
| 7891 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7892 | hardcode_direct=yes |
| 7893 | hardcode_minus_L=yes |
| 7894 | hardcode_shlibpath_var=no |
| 7895 | ;; |
| 7896 | |
| 7897 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 7898 | freebsd* | dragonfly*) |
| 7899 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 7900 | hardcode_libdir_flag_spec='-R$libdir' |
| 7901 | hardcode_direct=yes |
| 7902 | hardcode_shlibpath_var=no |
| 7903 | ;; |
| 7904 | |
| 7905 | hpux9*) |
| 7906 | if test "$GCC" = yes; then |
| 7907 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 7908 | else |
| 7909 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 7910 | fi |
| 7911 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7912 | hardcode_libdir_separator=: |
| 7913 | hardcode_direct=yes |
| 7914 | |
| 7915 | # hardcode_minus_L: Not really in the search PATH, |
| 7916 | # but as the default location of the library. |
| 7917 | hardcode_minus_L=yes |
| 7918 | export_dynamic_flag_spec='${wl}-E' |
| 7919 | ;; |
| 7920 | |
| 7921 | hpux10*) |
| 7922 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7923 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7924 | else |
| 7925 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 7926 | fi |
| 7927 | if test "$with_gnu_ld" = no; then |
| 7928 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7929 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 7930 | hardcode_libdir_separator=: |
| 7931 | hardcode_direct=yes |
| 7932 | hardcode_direct_absolute=yes |
| 7933 | export_dynamic_flag_spec='${wl}-E' |
| 7934 | # hardcode_minus_L: Not really in the search PATH, |
| 7935 | # but as the default location of the library. |
| 7936 | hardcode_minus_L=yes |
| 7937 | fi |
| 7938 | ;; |
| 7939 | |
| 7940 | hpux11*) |
| 7941 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7942 | case $host_cpu in |
| 7943 | hppa*64*) |
| 7944 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7945 | ;; |
| 7946 | ia64*) |
| 7947 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 7948 | ;; |
| 7949 | *) |
| 7950 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7951 | ;; |
| 7952 | esac |
| 7953 | else |
| 7954 | case $host_cpu in |
| 7955 | hppa*64*) |
| 7956 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7957 | ;; |
| 7958 | ia64*) |
| 7959 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 7960 | ;; |
| 7961 | *) |
| 7962 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7963 | ;; |
| 7964 | esac |
| 7965 | fi |
| 7966 | if test "$with_gnu_ld" = no; then |
| 7967 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7968 | hardcode_libdir_separator=: |
| 7969 | |
| 7970 | case $host_cpu in |
| 7971 | hppa*64*|ia64*) |
| 7972 | hardcode_direct=no |
| 7973 | hardcode_shlibpath_var=no |
| 7974 | ;; |
| 7975 | *) |
| 7976 | hardcode_direct=yes |
| 7977 | hardcode_direct_absolute=yes |
| 7978 | export_dynamic_flag_spec='${wl}-E' |
| 7979 | |
| 7980 | # hardcode_minus_L: Not really in the search PATH, |
| 7981 | # but as the default location of the library. |
| 7982 | hardcode_minus_L=yes |
| 7983 | ;; |
| 7984 | esac |
| 7985 | fi |
| 7986 | ;; |
| 7987 | |
| 7988 | irix5* | irix6* | nonstopux*) |
| 7989 | if test "$GCC" = yes; then |
| 7990 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 7991 | # Try to use the -exported_symbol ld option, if it does not |
| 7992 | # work, assume that -exports_file does not work either and |
| 7993 | # implicitly export all symbols. |
| 7994 | save_LDFLAGS="$LDFLAGS" |
| 7995 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 7996 | cat >conftest.$ac_ext <<_ACEOF |
| 7997 | int foo(void) {} |
| 7998 | _ACEOF |
| 7999 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8001 | (eval $ac_link) 2>conftest.er1 |
| 8002 | ac_status=$? |
| 8003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8004 | rm -f conftest.er1 |
| 8005 | cat conftest.err >&5 |
| 8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8007 | (exit $ac_status); } && |
| 8008 | { ac_try='test -z "$ac_c_werror_flag" |
| 8009 | || test ! -s conftest.err' |
| 8010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8011 | (eval $ac_try) 2>&5 |
| 8012 | ac_status=$? |
| 8013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8014 | (exit $ac_status); }; } && |
| 8015 | { ac_try='test -s conftest$ac_exeext' |
| 8016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8017 | (eval $ac_try) 2>&5 |
| 8018 | ac_status=$? |
| 8019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8020 | (exit $ac_status); }; }; then |
| 8021 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 8022 | |
| 8023 | else |
| 8024 | echo "$as_me: failed program was:" >&5 |
| 8025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8026 | |
| 8027 | fi |
| 8028 | rm -f conftest.err conftest.$ac_objext \ |
| 8029 | conftest$ac_exeext conftest.$ac_ext |
| 8030 | LDFLAGS="$save_LDFLAGS" |
| 8031 | else |
| 8032 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8033 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
| 8034 | fi |
| 8035 | archive_cmds_need_lc='no' |
| 8036 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8037 | hardcode_libdir_separator=: |
| 8038 | inherit_rpath=yes |
| 8039 | link_all_deplibs=yes |
| 8040 | ;; |
| 8041 | |
| 8042 | netbsd*) |
| 8043 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 8044 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8045 | else |
| 8046 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8047 | fi |
| 8048 | hardcode_libdir_flag_spec='-R$libdir' |
| 8049 | hardcode_direct=yes |
| 8050 | hardcode_shlibpath_var=no |
| 8051 | ;; |
| 8052 | |
| 8053 | newsos6) |
| 8054 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8055 | hardcode_direct=yes |
| 8056 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8057 | hardcode_libdir_separator=: |
| 8058 | hardcode_shlibpath_var=no |
| 8059 | ;; |
| 8060 | |
| 8061 | *nto* | *qnx*) |
| 8062 | ;; |
| 8063 | |
| 8064 | openbsd*) |
| 8065 | hardcode_direct=yes |
| 8066 | hardcode_shlibpath_var=no |
| 8067 | hardcode_direct_absolute=yes |
| 8068 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8069 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8070 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 8071 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8072 | export_dynamic_flag_spec='${wl}-E' |
| 8073 | else |
| 8074 | case $host_os in |
| 8075 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8076 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8077 | hardcode_libdir_flag_spec='-R$libdir' |
| 8078 | ;; |
| 8079 | *) |
| 8080 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8081 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8082 | ;; |
| 8083 | esac |
| 8084 | fi |
| 8085 | ;; |
| 8086 | |
| 8087 | os2*) |
| 8088 | hardcode_libdir_flag_spec='-L$libdir' |
| 8089 | hardcode_minus_L=yes |
| 8090 | allow_undefined_flag=unsupported |
| 8091 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 8092 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 8093 | ;; |
| 8094 | |
| 8095 | osf3*) |
| 8096 | if test "$GCC" = yes; then |
| 8097 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8098 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 8099 | else |
| 8100 | allow_undefined_flag=' -expect_unresolved \*' |
| 8101 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8102 | fi |
| 8103 | archive_cmds_need_lc='no' |
| 8104 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8105 | hardcode_libdir_separator=: |
| 8106 | ;; |
| 8107 | |
| 8108 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8109 | if test "$GCC" = yes; then |
| 8110 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8111 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 8112 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8113 | else |
| 8114 | allow_undefined_flag=' -expect_unresolved \*' |
| 8115 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8116 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| 8117 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
| 8118 | |
| 8119 | # Both c and cxx compiler support -rpath directly |
| 8120 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8121 | fi |
| 8122 | archive_cmds_need_lc='no' |
| 8123 | hardcode_libdir_separator=: |
| 8124 | ;; |
| 8125 | |
| 8126 | solaris*) |
| 8127 | no_undefined_flag=' -z defs' |
| 8128 | if test "$GCC" = yes; then |
| 8129 | wlarc='${wl}' |
| 8130 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8131 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8132 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 8133 | else |
| 8134 | case `$CC -V 2>&1` in |
| 8135 | *"Compilers 5.0"*) |
| 8136 | wlarc='' |
| 8137 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8138 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8139 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 8140 | ;; |
| 8141 | *) |
| 8142 | wlarc='${wl}' |
| 8143 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8144 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8145 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 8146 | ;; |
| 8147 | esac |
| 8148 | fi |
| 8149 | hardcode_libdir_flag_spec='-R$libdir' |
| 8150 | hardcode_shlibpath_var=no |
| 8151 | case $host_os in |
| 8152 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 8153 | *) |
| 8154 | # The compiler driver will combine and reorder linker options, |
| 8155 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 8156 | # but is careful enough not to reorder. |
| 8157 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8158 | if test "$GCC" = yes; then |
| 8159 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 8160 | else |
| 8161 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 8162 | fi |
| 8163 | ;; |
| 8164 | esac |
| 8165 | link_all_deplibs=yes |
| 8166 | ;; |
| 8167 | |
| 8168 | sunos4*) |
| 8169 | if test "x$host_vendor" = xsequent; then |
| 8170 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8171 | # files that make .init and .fini sections work. |
| 8172 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8173 | else |
| 8174 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8175 | fi |
| 8176 | hardcode_libdir_flag_spec='-L$libdir' |
| 8177 | hardcode_direct=yes |
| 8178 | hardcode_minus_L=yes |
| 8179 | hardcode_shlibpath_var=no |
| 8180 | ;; |
| 8181 | |
| 8182 | sysv4) |
| 8183 | case $host_vendor in |
| 8184 | sni) |
| 8185 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8186 | hardcode_direct=yes # is this really true??? |
| 8187 | ;; |
| 8188 | siemens) |
| 8189 | ## LD is ld it makes a PLAMLIB |
| 8190 | ## CC just makes a GrossModule. |
| 8191 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8192 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8193 | hardcode_direct=no |
| 8194 | ;; |
| 8195 | motorola) |
| 8196 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8197 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8198 | ;; |
| 8199 | esac |
| 8200 | runpath_var='LD_RUN_PATH' |
| 8201 | hardcode_shlibpath_var=no |
| 8202 | ;; |
| 8203 | |
| 8204 | sysv4.3*) |
| 8205 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8206 | hardcode_shlibpath_var=no |
| 8207 | export_dynamic_flag_spec='-Bexport' |
| 8208 | ;; |
| 8209 | |
| 8210 | sysv4*MP*) |
| 8211 | if test -d /usr/nec; then |
| 8212 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8213 | hardcode_shlibpath_var=no |
| 8214 | runpath_var=LD_RUN_PATH |
| 8215 | hardcode_runpath_var=yes |
| 8216 | ld_shlibs=yes |
| 8217 | fi |
| 8218 | ;; |
| 8219 | |
| 8220 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 8221 | no_undefined_flag='${wl}-z,text' |
| 8222 | archive_cmds_need_lc=no |
| 8223 | hardcode_shlibpath_var=no |
| 8224 | runpath_var='LD_RUN_PATH' |
| 8225 | |
| 8226 | if test "$GCC" = yes; then |
| 8227 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8228 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8229 | else |
| 8230 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8231 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8232 | fi |
| 8233 | ;; |
| 8234 | |
| 8235 | sysv5* | sco3.2v5* | sco5v6*) |
| 8236 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 8237 | # link with -lc, and that would cause any symbols used from libc to |
| 8238 | # always be unresolved, which means just about no library would |
| 8239 | # ever link correctly. If we're not using GNU ld we use -z text |
| 8240 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 8241 | # as -z defs. |
| 8242 | no_undefined_flag='${wl}-z,text' |
| 8243 | allow_undefined_flag='${wl}-z,nodefs' |
| 8244 | archive_cmds_need_lc=no |
| 8245 | hardcode_shlibpath_var=no |
| 8246 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 8247 | hardcode_libdir_separator=':' |
| 8248 | link_all_deplibs=yes |
| 8249 | export_dynamic_flag_spec='${wl}-Bexport' |
| 8250 | runpath_var='LD_RUN_PATH' |
| 8251 | |
| 8252 | if test "$GCC" = yes; then |
| 8253 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8254 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8255 | else |
| 8256 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8257 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8258 | fi |
| 8259 | ;; |
| 8260 | |
| 8261 | uts4*) |
| 8262 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8263 | hardcode_libdir_flag_spec='-L$libdir' |
| 8264 | hardcode_shlibpath_var=no |
| 8265 | ;; |
| 8266 | |
| 8267 | *) |
| 8268 | ld_shlibs=no |
| 8269 | ;; |
| 8270 | esac |
| 8271 | |
| 8272 | if test x$host_vendor = xsni; then |
| 8273 | case $host in |
| 8274 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 8275 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 8276 | ;; |
| 8277 | esac |
| 8278 | fi |
| 8279 | fi |
| 8280 | |
| 8281 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 8282 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 8283 | test "$ld_shlibs" = no && can_build_shared=no |
| 8284 | |
| 8285 | with_gnu_ld=$with_gnu_ld |
| 8286 | |
| 8287 | |
| 8288 | |
| 8289 | |
| 8290 | |
| 8291 | |
| 8292 | |
| 8293 | |
| 8294 | |
| 8295 | |
| 8296 | |
| 8297 | |
| 8298 | |
| 8299 | |
| 8300 | |
| 8301 | # |
| 8302 | # Do we need to explicitly link libc? |
| 8303 | # |
| 8304 | case "x$archive_cmds_need_lc" in |
| 8305 | x|xyes) |
| 8306 | # Assume -lc should be added |
| 8307 | archive_cmds_need_lc=yes |
| 8308 | |
| 8309 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8310 | case $archive_cmds in |
| 8311 | *'~'*) |
| 8312 | # FIXME: we may have to deal with multi-command sequences. |
| 8313 | ;; |
| 8314 | '$CC '*) |
| 8315 | # Test whether the compiler implicitly links with -lc since on some |
| 8316 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8317 | # to ld, don't add -lc before -lgcc. |
| 8318 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 8319 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 8320 | $RM conftest* |
| 8321 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8322 | |
| 8323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8324 | (eval $ac_compile) 2>&5 |
| 8325 | ac_status=$? |
| 8326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8327 | (exit $ac_status); } 2>conftest.err; then |
| 8328 | soname=conftest |
| 8329 | lib=conftest |
| 8330 | libobjs=conftest.$ac_objext |
| 8331 | deplibs= |
| 8332 | wl=$lt_prog_compiler_wl |
| 8333 | pic_flag=$lt_prog_compiler_pic |
| 8334 | compiler_flags=-v |
| 8335 | linker_flags=-v |
| 8336 | verstring= |
| 8337 | output_objdir=. |
| 8338 | libname=conftest |
| 8339 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8340 | allow_undefined_flag= |
| 8341 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 8342 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 8343 | ac_status=$? |
| 8344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8345 | (exit $ac_status); } |
| 8346 | then |
| 8347 | archive_cmds_need_lc=no |
| 8348 | else |
| 8349 | archive_cmds_need_lc=yes |
| 8350 | fi |
| 8351 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8352 | else |
| 8353 | cat conftest.err 1>&5 |
| 8354 | fi |
| 8355 | $RM conftest* |
| 8356 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 8357 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 8358 | ;; |
| 8359 | esac |
| 8360 | fi |
| 8361 | ;; |
| 8362 | esac |
| 8363 | |
| 8364 | |
| 8365 | |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
| 8371 | |
| 8372 | |
| 8373 | |
| 8374 | |
| 8375 | |
| 8376 | |
| 8377 | |
| 8378 | |
| 8379 | |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | |
| 8386 | |
| 8387 | |
| 8388 | |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | |
| 8394 | |
| 8395 | |
| 8396 | |
| 8397 | |
| 8398 | |
| 8399 | |
| 8400 | |
| 8401 | |
| 8402 | |
| 8403 | |
| 8404 | |
| 8405 | |
| 8406 | |
| 8407 | |
| 8408 | |
| 8409 | |
| 8410 | |
| 8411 | |
| 8412 | |
| 8413 | |
| 8414 | |
| 8415 | |
| 8416 | |
| 8417 | |
| 8418 | |
| 8419 | |
| 8420 | |
| 8421 | |
| 8422 | |
| 8423 | |
| 8424 | |
| 8425 | |
| 8426 | |
| 8427 | |
| 8428 | |
| 8429 | |
| 8430 | |
| 8431 | |
| 8432 | |
| 8433 | |
| 8434 | |
| 8435 | |
| 8436 | |
| 8437 | |
| 8438 | |
| 8439 | |
| 8440 | |
| 8441 | |
| 8442 | |
| 8443 | |
| 8444 | |
| 8445 | |
| 8446 | |
| 8447 | |
| 8448 | |
| 8449 | |
| 8450 | |
| 8451 | |
| 8452 | |
| 8453 | |
| 8454 | |
| 8455 | |
| 8456 | |
| 8457 | |
| 8458 | |
| 8459 | |
| 8460 | |
| 8461 | |
| 8462 | |
| 8463 | |
| 8464 | |
| 8465 | |
| 8466 | |
| 8467 | |
| 8468 | |
| 8469 | |
| 8470 | |
| 8471 | |
| 8472 | |
| 8473 | |
| 8474 | |
| 8475 | |
| 8476 | |
| 8477 | |
| 8478 | |
| 8479 | |
| 8480 | |
| 8481 | |
| 8482 | |
| 8483 | |
| 8484 | |
| 8485 | |
| 8486 | |
| 8487 | |
| 8488 | |
| 8489 | |
| 8490 | |
| 8491 | |
| 8492 | |
| 8493 | |
| 8494 | |
| 8495 | |
| 8496 | |
| 8497 | |
| 8498 | |
| 8499 | |
| 8500 | |
| 8501 | |
| 8502 | |
| 8503 | |
| 8504 | |
| 8505 | |
| 8506 | |
| 8507 | |
| 8508 | |
| 8509 | |
| 8510 | |
| 8511 | |
| 8512 | |
| 8513 | |
| 8514 | |
| 8515 | |
| 8516 | |
| 8517 | |
| 8518 | |
| 8519 | |
| 8520 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8521 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 8522 | withGCC=$GCC |
| 8523 | if test "$withGCC" = yes; then |
| 8524 | case $host_os in |
| 8525 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 8526 | *) lt_awk_arg="/^libraries:/" ;; |
| 8527 | esac |
| 8528 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8529 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
| 8530 | # if the path contains ";" then we assume it to be the separator |
| 8531 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8532 | # assumed that no part of a normal pathname contains ";" but that should |
| 8533 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8534 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 8535 | else |
| 8536 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8537 | fi |
| 8538 | # Ok, now we have the path, separated by spaces, we can step through it |
| 8539 | # and add multilib dir if necessary. |
| 8540 | lt_tmp_lt_search_path_spec= |
| 8541 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 8542 | for lt_sys_path in $lt_search_path_spec; do |
| 8543 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 8544 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 8545 | else |
| 8546 | test -d "$lt_sys_path" && \ |
| 8547 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 8548 | fi |
| 8549 | done |
| 8550 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
| 8551 | BEGIN {RS=" "; FS="/|\n";} { |
| 8552 | lt_foo=""; |
| 8553 | lt_count=0; |
| 8554 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 8555 | if ($lt_i != "" && $lt_i != ".") { |
| 8556 | if ($lt_i == "..") { |
| 8557 | lt_count++; |
| 8558 | } else { |
| 8559 | if (lt_count == 0) { |
| 8560 | lt_foo="/" $lt_i lt_foo; |
| 8561 | } else { |
| 8562 | lt_count--; |
| 8563 | } |
| 8564 | } |
| 8565 | } |
| 8566 | } |
| 8567 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 8568 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 8569 | }'` |
| 8570 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
| 8571 | else |
| 8572 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8573 | fi |
| 8574 | library_names_spec= |
| 8575 | libname_spec='lib$name' |
| 8576 | soname_spec= |
| 8577 | shrext_cmds=".so" |
| 8578 | postinstall_cmds= |
| 8579 | postuninstall_cmds= |
| 8580 | finish_cmds= |
| 8581 | finish_eval= |
| 8582 | shlibpath_var= |
| 8583 | shlibpath_overrides_runpath=unknown |
| 8584 | version_type=none |
| 8585 | dynamic_linker="$host_os ld.so" |
| 8586 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8587 | need_lib_prefix=unknown |
| 8588 | hardcode_into_libs=no |
| 8589 | |
| 8590 | # when you set need_version to no, make sure it does not cause -set_version |
| 8591 | # flags to be left without arguments |
| 8592 | need_version=unknown |
| 8593 | |
| 8594 | case $host_os in |
| 8595 | aix3*) |
| 8596 | version_type=linux |
| 8597 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8598 | shlibpath_var=LIBPATH |
| 8599 | |
| 8600 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8601 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8602 | ;; |
| 8603 | |
| 8604 | aix4* | aix5*) |
| 8605 | version_type=linux |
| 8606 | need_lib_prefix=no |
| 8607 | need_version=no |
| 8608 | hardcode_into_libs=yes |
| 8609 | if test "$host_cpu" = ia64; then |
| 8610 | # AIX 5 supports IA64 |
| 8611 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8612 | shlibpath_var=LD_LIBRARY_PATH |
| 8613 | else |
| 8614 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8615 | # for dependence libraries. The import file would start with |
| 8616 | # the line `#! .'. This would cause the generated library to |
| 8617 | # depend on `.', always an invalid library. This was fixed in |
| 8618 | # development snapshots of GCC prior to 3.0. |
| 8619 | case $host_os in |
| 8620 | aix4 | aix4.[01] | aix4.[01].*) |
| 8621 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8622 | echo ' yes ' |
| 8623 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 8624 | : |
| 8625 | else |
| 8626 | can_build_shared=no |
| 8627 | fi |
| 8628 | ;; |
| 8629 | esac |
| 8630 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8631 | # soname into executable. Probably we can add versioning support to |
| 8632 | # collect2, so additional links can be useful in future. |
| 8633 | if test "$aix_use_runtimelinking" = yes; then |
| 8634 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8635 | # instead of lib<name>.a to let people know that these are not |
| 8636 | # typical AIX shared libraries. |
| 8637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8638 | else |
| 8639 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8640 | # and later when we are not doing run time linking. |
| 8641 | library_names_spec='${libname}${release}.a $libname.a' |
| 8642 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8643 | fi |
| 8644 | shlibpath_var=LIBPATH |
| 8645 | fi |
| 8646 | ;; |
| 8647 | |
| 8648 | amigaos*) |
| 8649 | if test "$host_cpu" = m68k; then |
| 8650 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8651 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8652 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 8653 | else |
| 8654 | dynamic_linker=no |
| 8655 | fi |
| 8656 | ;; |
| 8657 | |
| 8658 | beos*) |
| 8659 | library_names_spec='${libname}${shared_ext}' |
| 8660 | dynamic_linker="$host_os ld.so" |
| 8661 | shlibpath_var=LIBRARY_PATH |
| 8662 | ;; |
| 8663 | |
| 8664 | bsdi[45]*) |
| 8665 | version_type=linux |
| 8666 | need_version=no |
| 8667 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8668 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8669 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8670 | shlibpath_var=LD_LIBRARY_PATH |
| 8671 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8672 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8673 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8674 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8675 | # libtool to hard-code these into programs |
| 8676 | ;; |
| 8677 | |
| 8678 | cygwin* | mingw* | pw32*) |
| 8679 | version_type=windows |
| 8680 | shrext_cmds=".dll" |
| 8681 | need_version=no |
| 8682 | need_lib_prefix=no |
| 8683 | |
| 8684 | case $withGCC,$host_os in |
| 8685 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8686 | library_names_spec='$libname.dll.a' |
| 8687 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8688 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8689 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 8690 | dldir=$destdir/`dirname \$dlpath`~ |
| 8691 | test -d \$dldir || mkdir -p \$dldir~ |
| 8692 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8693 | chmod a+x \$dldir/$dlname~ |
| 8694 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 8695 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 8696 | fi' |
| 8697 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8698 | dlpath=$dir/\$dldll~ |
| 8699 | $RM \$dlpath' |
| 8700 | shlibpath_overrides_runpath=yes |
| 8701 | |
| 8702 | case $host_os in |
| 8703 | cygwin*) |
| 8704 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8705 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8706 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8707 | ;; |
| 8708 | mingw*) |
| 8709 | # MinGW DLLs use traditional 'lib' prefix |
| 8710 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8711 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8712 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 8713 | # It is most probably a Windows format PATH printed by |
| 8714 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8715 | # path with ; separators, and with drive letters. We can handle the |
| 8716 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8717 | # especially as we might pass files found there to a mingw objdump, |
| 8718 | # which wouldn't understand a cygwinified path. Ahh. |
| 8719 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8720 | else |
| 8721 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8722 | fi |
| 8723 | ;; |
| 8724 | pw32*) |
| 8725 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 8726 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8727 | ;; |
| 8728 | esac |
| 8729 | ;; |
| 8730 | |
| 8731 | *) |
| 8732 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8733 | ;; |
| 8734 | esac |
| 8735 | dynamic_linker='Win32 ld.exe' |
| 8736 | # FIXME: first we should search . and the directory the executable is in |
| 8737 | shlibpath_var=PATH |
| 8738 | ;; |
| 8739 | |
| 8740 | darwin* | rhapsody*) |
| 8741 | dynamic_linker="$host_os dyld" |
| 8742 | version_type=darwin |
| 8743 | need_lib_prefix=no |
| 8744 | need_version=no |
| 8745 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8746 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8747 | shlibpath_overrides_runpath=yes |
| 8748 | shlibpath_var=DYLD_LIBRARY_PATH |
| 8749 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 8750 | |
| 8751 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 8752 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8753 | ;; |
| 8754 | |
| 8755 | dgux*) |
| 8756 | version_type=linux |
| 8757 | need_lib_prefix=no |
| 8758 | need_version=no |
| 8759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8760 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8761 | shlibpath_var=LD_LIBRARY_PATH |
| 8762 | ;; |
| 8763 | |
| 8764 | freebsd1*) |
| 8765 | dynamic_linker=no |
| 8766 | ;; |
| 8767 | |
| 8768 | freebsd* | dragonfly*) |
| 8769 | # DragonFly does not have aout. When/if they implement a new |
| 8770 | # versioning mechanism, adjust this. |
| 8771 | if test -x /usr/bin/objformat; then |
| 8772 | objformat=`/usr/bin/objformat` |
| 8773 | else |
| 8774 | case $host_os in |
| 8775 | freebsd[123]*) objformat=aout ;; |
| 8776 | *) objformat=elf ;; |
| 8777 | esac |
| 8778 | fi |
| 8779 | version_type=freebsd-$objformat |
| 8780 | case $version_type in |
| 8781 | freebsd-elf*) |
| 8782 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8783 | need_version=no |
| 8784 | need_lib_prefix=no |
| 8785 | ;; |
| 8786 | freebsd-*) |
| 8787 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8788 | need_version=yes |
| 8789 | ;; |
| 8790 | esac |
| 8791 | shlibpath_var=LD_LIBRARY_PATH |
| 8792 | case $host_os in |
| 8793 | freebsd2*) |
| 8794 | shlibpath_overrides_runpath=yes |
| 8795 | ;; |
| 8796 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 8797 | shlibpath_overrides_runpath=yes |
| 8798 | hardcode_into_libs=yes |
| 8799 | ;; |
| 8800 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8801 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 8802 | shlibpath_overrides_runpath=no |
| 8803 | hardcode_into_libs=yes |
| 8804 | ;; |
| 8805 | *) # from 4.6 on, and DragonFly |
| 8806 | shlibpath_overrides_runpath=yes |
| 8807 | hardcode_into_libs=yes |
| 8808 | ;; |
| 8809 | esac |
| 8810 | ;; |
| 8811 | |
| 8812 | gnu*) |
| 8813 | version_type=linux |
| 8814 | need_lib_prefix=no |
| 8815 | need_version=no |
| 8816 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8817 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8818 | shlibpath_var=LD_LIBRARY_PATH |
| 8819 | hardcode_into_libs=yes |
| 8820 | ;; |
| 8821 | |
| 8822 | hpux9* | hpux10* | hpux11*) |
| 8823 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8824 | # link against other versions. |
| 8825 | version_type=sunos |
| 8826 | need_lib_prefix=no |
| 8827 | need_version=no |
| 8828 | case $host_cpu in |
| 8829 | ia64*) |
| 8830 | shrext_cmds='.so' |
| 8831 | hardcode_into_libs=yes |
| 8832 | dynamic_linker="$host_os dld.so" |
| 8833 | shlibpath_var=LD_LIBRARY_PATH |
| 8834 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8836 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8837 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8838 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8839 | else |
| 8840 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8841 | fi |
| 8842 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8843 | ;; |
| 8844 | hppa*64*) |
| 8845 | shrext_cmds='.sl' |
| 8846 | hardcode_into_libs=yes |
| 8847 | dynamic_linker="$host_os dld.sl" |
| 8848 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8849 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8851 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8852 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8853 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8854 | ;; |
| 8855 | *) |
| 8856 | shrext_cmds='.sl' |
| 8857 | dynamic_linker="$host_os dld.sl" |
| 8858 | shlibpath_var=SHLIB_PATH |
| 8859 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8861 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8862 | ;; |
| 8863 | esac |
| 8864 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8865 | postinstall_cmds='chmod 555 $lib' |
| 8866 | ;; |
| 8867 | |
| 8868 | interix[3-9]*) |
| 8869 | version_type=linux |
| 8870 | need_lib_prefix=no |
| 8871 | need_version=no |
| 8872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8873 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8874 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8875 | shlibpath_var=LD_LIBRARY_PATH |
| 8876 | shlibpath_overrides_runpath=no |
| 8877 | hardcode_into_libs=yes |
| 8878 | ;; |
| 8879 | |
| 8880 | irix5* | irix6* | nonstopux*) |
| 8881 | case $host_os in |
| 8882 | nonstopux*) version_type=nonstopux ;; |
| 8883 | *) |
| 8884 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8885 | version_type=linux |
| 8886 | else |
| 8887 | version_type=irix |
| 8888 | fi ;; |
| 8889 | esac |
| 8890 | need_lib_prefix=no |
| 8891 | need_version=no |
| 8892 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8894 | case $host_os in |
| 8895 | irix5* | nonstopux*) |
| 8896 | libsuff= shlibsuff= |
| 8897 | ;; |
| 8898 | *) |
| 8899 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8900 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8901 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8902 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8903 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8904 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8905 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8906 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8907 | esac |
| 8908 | ;; |
| 8909 | esac |
| 8910 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8911 | shlibpath_overrides_runpath=no |
| 8912 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8913 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8914 | hardcode_into_libs=yes |
| 8915 | ;; |
| 8916 | |
| 8917 | # No shared lib support for Linux oldld, aout, or coff. |
| 8918 | linux*oldld* | linux*aout* | linux*coff*) |
| 8919 | dynamic_linker=no |
| 8920 | ;; |
| 8921 | |
| 8922 | # This must be Linux ELF. |
| 8923 | linux* | k*bsd*-gnu) |
| 8924 | version_type=linux |
| 8925 | need_lib_prefix=no |
| 8926 | need_version=no |
| 8927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8928 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8929 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8930 | shlibpath_var=LD_LIBRARY_PATH |
| 8931 | shlibpath_overrides_runpath=no |
| 8932 | # Some binutils ld are patched to set DT_RUNPATH |
| 8933 | save_LDFLAGS=$LDFLAGS |
| 8934 | save_libdir=$libdir |
| 8935 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 8936 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 8937 | cat >conftest.$ac_ext <<_ACEOF |
| 8938 | /* confdefs.h. */ |
| 8939 | _ACEOF |
| 8940 | cat confdefs.h >>conftest.$ac_ext |
| 8941 | cat >>conftest.$ac_ext <<_ACEOF |
| 8942 | /* end confdefs.h. */ |
| 8943 | |
| 8944 | int |
| 8945 | main () |
| 8946 | { |
| 8947 | |
| 8948 | ; |
| 8949 | return 0; |
| 8950 | } |
| 8951 | _ACEOF |
| 8952 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8954 | (eval $ac_link) 2>conftest.er1 |
| 8955 | ac_status=$? |
| 8956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8957 | rm -f conftest.er1 |
| 8958 | cat conftest.err >&5 |
| 8959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8960 | (exit $ac_status); } && |
| 8961 | { ac_try='test -z "$ac_c_werror_flag" |
| 8962 | || test ! -s conftest.err' |
| 8963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8964 | (eval $ac_try) 2>&5 |
| 8965 | ac_status=$? |
| 8966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8967 | (exit $ac_status); }; } && |
| 8968 | { ac_try='test -s conftest$ac_exeext' |
| 8969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8970 | (eval $ac_try) 2>&5 |
| 8971 | ac_status=$? |
| 8972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8973 | (exit $ac_status); }; }; then |
| 8974 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then |
| 8975 | shlibpath_overrides_runpath=yes |
| 8976 | fi |
| 8977 | |
| 8978 | else |
| 8979 | echo "$as_me: failed program was:" >&5 |
| 8980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8981 | |
| 8982 | fi |
| 8983 | rm -f conftest.err conftest.$ac_objext \ |
| 8984 | conftest$ac_exeext conftest.$ac_ext |
| 8985 | LDFLAGS=$save_LDFLAGS |
| 8986 | libdir=$save_libdir |
| 8987 | |
| 8988 | # This implies no fast_install, which is unacceptable. |
| 8989 | # Some rework will be needed to allow for fast_install |
| 8990 | # before this can be enabled. |
| 8991 | hardcode_into_libs=yes |
| 8992 | |
| 8993 | # Append ld.so.conf contents to the search path |
| 8994 | if test -f /etc/ld.so.conf; then |
| 8995 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 8996 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8997 | fi |
| 8998 | |
| 8999 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9000 | # powerpc, because MkLinux only supported shared libraries with the |
| 9001 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9002 | # most powerpc-linux boxes support dynamic linking these days and |
| 9003 | # people can always --disable-shared, the test was removed, and we |
| 9004 | # assume the GNU/Linux dynamic linker is in use. |
| 9005 | dynamic_linker='GNU/Linux ld.so' |
| 9006 | ;; |
| 9007 | |
| 9008 | netbsd*) |
| 9009 | version_type=sunos |
| 9010 | need_lib_prefix=no |
| 9011 | need_version=no |
| 9012 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9014 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9015 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9016 | else |
| 9017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9018 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9019 | dynamic_linker='NetBSD ld.elf_so' |
| 9020 | fi |
| 9021 | shlibpath_var=LD_LIBRARY_PATH |
| 9022 | shlibpath_overrides_runpath=yes |
| 9023 | hardcode_into_libs=yes |
| 9024 | ;; |
| 9025 | |
| 9026 | newsos6) |
| 9027 | version_type=linux |
| 9028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9029 | shlibpath_var=LD_LIBRARY_PATH |
| 9030 | shlibpath_overrides_runpath=yes |
| 9031 | ;; |
| 9032 | |
| 9033 | *nto* | *qnx*) |
| 9034 | version_type=qnx |
| 9035 | need_lib_prefix=no |
| 9036 | need_version=no |
| 9037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9038 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9039 | shlibpath_var=LD_LIBRARY_PATH |
| 9040 | shlibpath_overrides_runpath=no |
| 9041 | hardcode_into_libs=yes |
| 9042 | dynamic_linker='ldqnx.so' |
| 9043 | ;; |
| 9044 | |
| 9045 | openbsd*) |
| 9046 | version_type=sunos |
| 9047 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 9048 | need_lib_prefix=no |
| 9049 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9050 | case $host_os in |
| 9051 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9052 | *) need_version=no ;; |
| 9053 | esac |
| 9054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9055 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9056 | shlibpath_var=LD_LIBRARY_PATH |
| 9057 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9058 | case $host_os in |
| 9059 | openbsd2.[89] | openbsd2.[89].*) |
| 9060 | shlibpath_overrides_runpath=no |
| 9061 | ;; |
| 9062 | *) |
| 9063 | shlibpath_overrides_runpath=yes |
| 9064 | ;; |
| 9065 | esac |
| 9066 | else |
| 9067 | shlibpath_overrides_runpath=yes |
| 9068 | fi |
| 9069 | ;; |
| 9070 | |
| 9071 | os2*) |
| 9072 | libname_spec='$name' |
| 9073 | shrext_cmds=".dll" |
| 9074 | need_lib_prefix=no |
| 9075 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9076 | dynamic_linker='OS/2 ld.exe' |
| 9077 | shlibpath_var=LIBPATH |
| 9078 | ;; |
| 9079 | |
| 9080 | osf3* | osf4* | osf5*) |
| 9081 | version_type=osf |
| 9082 | need_lib_prefix=no |
| 9083 | need_version=no |
| 9084 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9086 | shlibpath_var=LD_LIBRARY_PATH |
| 9087 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9088 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9089 | ;; |
| 9090 | |
| 9091 | rdos*) |
| 9092 | dynamic_linker=no |
| 9093 | ;; |
| 9094 | |
| 9095 | solaris*) |
| 9096 | version_type=linux |
| 9097 | need_lib_prefix=no |
| 9098 | need_version=no |
| 9099 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9100 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9101 | shlibpath_var=LD_LIBRARY_PATH |
| 9102 | shlibpath_overrides_runpath=yes |
| 9103 | hardcode_into_libs=yes |
| 9104 | # ldd complains unless libraries are executable |
| 9105 | postinstall_cmds='chmod +x $lib' |
| 9106 | ;; |
| 9107 | |
| 9108 | sunos4*) |
| 9109 | version_type=sunos |
| 9110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9111 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9112 | shlibpath_var=LD_LIBRARY_PATH |
| 9113 | shlibpath_overrides_runpath=yes |
| 9114 | if test "$with_gnu_ld" = yes; then |
| 9115 | need_lib_prefix=no |
| 9116 | fi |
| 9117 | need_version=yes |
| 9118 | ;; |
| 9119 | |
| 9120 | sysv4 | sysv4.3*) |
| 9121 | version_type=linux |
| 9122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9123 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9124 | shlibpath_var=LD_LIBRARY_PATH |
| 9125 | case $host_vendor in |
| 9126 | sni) |
| 9127 | shlibpath_overrides_runpath=no |
| 9128 | need_lib_prefix=no |
| 9129 | runpath_var=LD_RUN_PATH |
| 9130 | ;; |
| 9131 | siemens) |
| 9132 | need_lib_prefix=no |
| 9133 | ;; |
| 9134 | motorola) |
| 9135 | need_lib_prefix=no |
| 9136 | need_version=no |
| 9137 | shlibpath_overrides_runpath=no |
| 9138 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9139 | ;; |
| 9140 | esac |
| 9141 | ;; |
| 9142 | |
| 9143 | sysv4*MP*) |
| 9144 | if test -d /usr/nec ;then |
| 9145 | version_type=linux |
| 9146 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9147 | soname_spec='$libname${shared_ext}.$major' |
| 9148 | shlibpath_var=LD_LIBRARY_PATH |
| 9149 | fi |
| 9150 | ;; |
| 9151 | |
| 9152 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9153 | version_type=freebsd-elf |
| 9154 | need_lib_prefix=no |
| 9155 | need_version=no |
| 9156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9157 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9158 | shlibpath_var=LD_LIBRARY_PATH |
| 9159 | shlibpath_overrides_runpath=yes |
| 9160 | hardcode_into_libs=yes |
| 9161 | if test "$with_gnu_ld" = yes; then |
| 9162 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9163 | else |
| 9164 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9165 | case $host_os in |
| 9166 | sco3.2v5*) |
| 9167 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9168 | ;; |
| 9169 | esac |
| 9170 | fi |
| 9171 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9172 | ;; |
| 9173 | |
| 9174 | tpf*) |
| 9175 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 9176 | version_type=linux |
| 9177 | need_lib_prefix=no |
| 9178 | need_version=no |
| 9179 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9180 | shlibpath_var=LD_LIBRARY_PATH |
| 9181 | shlibpath_overrides_runpath=no |
| 9182 | hardcode_into_libs=yes |
| 9183 | ;; |
| 9184 | |
| 9185 | uts4*) |
| 9186 | version_type=linux |
| 9187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9188 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9189 | shlibpath_var=LD_LIBRARY_PATH |
| 9190 | ;; |
| 9191 | |
| 9192 | *) |
| 9193 | dynamic_linker=no |
| 9194 | ;; |
| 9195 | esac |
| 9196 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9197 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 9198 | test "$dynamic_linker" = no && can_build_shared=no |
| 9199 | |
| 9200 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9201 | if test "$GCC" = yes; then |
| 9202 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9203 | fi |
| 9204 | |
| 9205 | |
| 9206 | |
| 9207 | |
| 9208 | |
| 9209 | |
| 9210 | |
| 9211 | |
| 9212 | |
| 9213 | |
| 9214 | |
| 9215 | |
| 9216 | |
| 9217 | |
| 9218 | |
| 9219 | |
| 9220 | |
| 9221 | |
| 9222 | |
| 9223 | |
| 9224 | |
| 9225 | |
| 9226 | |
| 9227 | |
| 9228 | |
| 9229 | |
| 9230 | |
| 9231 | |
| 9232 | |
| 9233 | |
| 9234 | |
| 9235 | |
| 9236 | |
| 9237 | |
| 9238 | |
| 9239 | |
| 9240 | |
| 9241 | |
| 9242 | |
| 9243 | |
| 9244 | |
| 9245 | |
| 9246 | |
| 9247 | |
| 9248 | |
| 9249 | |
| 9250 | |
| 9251 | |
| 9252 | |
| 9253 | |
| 9254 | |
| 9255 | |
| 9256 | |
| 9257 | |
| 9258 | |
| 9259 | |
| 9260 | |
| 9261 | |
| 9262 | |
| 9263 | |
| 9264 | |
| 9265 | |
| 9266 | |
| 9267 | |
| 9268 | |
| 9269 | |
| 9270 | |
| 9271 | |
| 9272 | |
| 9273 | |
| 9274 | |
| 9275 | |
| 9276 | |
| 9277 | |
| 9278 | |
| 9279 | |
| 9280 | |
| 9281 | |
| 9282 | |
| 9283 | |
| 9284 | |
| 9285 | |
| 9286 | |
| 9287 | |
| 9288 | |
| 9289 | |
| 9290 | |
| 9291 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 9292 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 9293 | hardcode_action= |
| 9294 | if test -n "$hardcode_libdir_flag_spec" || |
| 9295 | test -n "$runpath_var" || |
| 9296 | test "X$hardcode_automatic" = "Xyes" ; then |
| 9297 | |
| 9298 | # We can hardcode non-existent directories. |
| 9299 | if test "$hardcode_direct" != no && |
| 9300 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 9301 | # have to relink, otherwise we might link with an installed library |
| 9302 | # when we should be linking with a yet-to-be-installed one |
| 9303 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 9304 | test "$hardcode_minus_L" != no; then |
| 9305 | # Linking always hardcodes the temporary library directory. |
| 9306 | hardcode_action=relink |
| 9307 | else |
| 9308 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 9309 | hardcode_action=immediate |
| 9310 | fi |
| 9311 | else |
| 9312 | # We cannot hardcode anything, or else we can only hardcode existing |
| 9313 | # directories. |
| 9314 | hardcode_action=unsupported |
| 9315 | fi |
| 9316 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 9317 | echo "${ECHO_T}$hardcode_action" >&6 |
| 9318 | |
| 9319 | if test "$hardcode_action" = relink || |
| 9320 | test "$inherit_rpath" = yes; then |
| 9321 | # Fast installation is not supported |
| 9322 | enable_fast_install=no |
| 9323 | elif test "$shlibpath_overrides_runpath" = yes || |
| 9324 | test "$enable_shared" = no; then |
| 9325 | # Fast installation is not necessary |
| 9326 | enable_fast_install=needless |
| 9327 | fi |
| 9328 | |
| 9329 | |
| 9330 | |
| 9331 | |
| 9332 | |
| 9333 | |
| 9334 | if test "x$enable_dlopen" != xyes; then |
| 9335 | enable_dlopen=unknown |
| 9336 | enable_dlopen_self=unknown |
| 9337 | enable_dlopen_self_static=unknown |
| 9338 | else |
| 9339 | lt_cv_dlopen=no |
| 9340 | lt_cv_dlopen_libs= |
| 9341 | |
| 9342 | case $host_os in |
| 9343 | beos*) |
| 9344 | lt_cv_dlopen="load_add_on" |
| 9345 | lt_cv_dlopen_libs= |
| 9346 | lt_cv_dlopen_self=yes |
| 9347 | ;; |
| 9348 | |
| 9349 | mingw* | pw32*) |
| 9350 | lt_cv_dlopen="LoadLibrary" |
| 9351 | lt_cv_dlopen_libs= |
| 9352 | ;; |
| 9353 | |
| 9354 | cygwin*) |
| 9355 | lt_cv_dlopen="dlopen" |
| 9356 | lt_cv_dlopen_libs= |
| 9357 | ;; |
| 9358 | |
| 9359 | darwin*) |
| 9360 | # if libdl is installed we need to link against it |
| 9361 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9362 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9363 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9365 | else |
| 9366 | ac_check_lib_save_LIBS=$LIBS |
| 9367 | LIBS="-ldl $LIBS" |
| 9368 | cat >conftest.$ac_ext <<_ACEOF |
| 9369 | /* confdefs.h. */ |
| 9370 | _ACEOF |
| 9371 | cat confdefs.h >>conftest.$ac_ext |
| 9372 | cat >>conftest.$ac_ext <<_ACEOF |
| 9373 | /* end confdefs.h. */ |
| 9374 | |
| 9375 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9376 | #ifdef __cplusplus |
| 9377 | extern "C" |
| 9378 | #endif |
| 9379 | /* We use char because int might match the return type of a gcc2 |
| 9380 | builtin and then its argument prototype would still apply. */ |
| 9381 | char dlopen (); |
| 9382 | int |
| 9383 | main () |
| 9384 | { |
| 9385 | dlopen (); |
| 9386 | ; |
| 9387 | return 0; |
| 9388 | } |
| 9389 | _ACEOF |
| 9390 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9392 | (eval $ac_link) 2>conftest.er1 |
| 9393 | ac_status=$? |
| 9394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9395 | rm -f conftest.er1 |
| 9396 | cat conftest.err >&5 |
| 9397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9398 | (exit $ac_status); } && |
| 9399 | { ac_try='test -z "$ac_c_werror_flag" |
| 9400 | || test ! -s conftest.err' |
| 9401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9402 | (eval $ac_try) 2>&5 |
| 9403 | ac_status=$? |
| 9404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9405 | (exit $ac_status); }; } && |
| 9406 | { ac_try='test -s conftest$ac_exeext' |
| 9407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9408 | (eval $ac_try) 2>&5 |
| 9409 | ac_status=$? |
| 9410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9411 | (exit $ac_status); }; }; then |
| 9412 | ac_cv_lib_dl_dlopen=yes |
| 9413 | else |
| 9414 | echo "$as_me: failed program was:" >&5 |
| 9415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9416 | |
| 9417 | ac_cv_lib_dl_dlopen=no |
| 9418 | fi |
| 9419 | rm -f conftest.err conftest.$ac_objext \ |
| 9420 | conftest$ac_exeext conftest.$ac_ext |
| 9421 | LIBS=$ac_check_lib_save_LIBS |
| 9422 | fi |
| 9423 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9424 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9425 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9426 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9427 | else |
| 9428 | |
| 9429 | lt_cv_dlopen="dyld" |
| 9430 | lt_cv_dlopen_libs= |
| 9431 | lt_cv_dlopen_self=yes |
| 9432 | |
| 9433 | fi |
| 9434 | |
| 9435 | ;; |
| 9436 | |
| 9437 | *) |
| 9438 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9439 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 9440 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9442 | else |
| 9443 | cat >conftest.$ac_ext <<_ACEOF |
| 9444 | /* confdefs.h. */ |
| 9445 | _ACEOF |
| 9446 | cat confdefs.h >>conftest.$ac_ext |
| 9447 | cat >>conftest.$ac_ext <<_ACEOF |
| 9448 | /* end confdefs.h. */ |
| 9449 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9450 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9451 | #define shl_load innocuous_shl_load |
| 9452 | |
| 9453 | /* System header to define __stub macros and hopefully few prototypes, |
| 9454 | which can conflict with char shl_load (); below. |
| 9455 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9456 | <limits.h> exists even on freestanding compilers. */ |
| 9457 | |
| 9458 | #ifdef __STDC__ |
| 9459 | # include <limits.h> |
| 9460 | #else |
| 9461 | # include <assert.h> |
| 9462 | #endif |
| 9463 | |
| 9464 | #undef shl_load |
| 9465 | |
| 9466 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9467 | #ifdef __cplusplus |
| 9468 | extern "C" |
| 9469 | { |
| 9470 | #endif |
| 9471 | /* We use char because int might match the return type of a gcc2 |
| 9472 | builtin and then its argument prototype would still apply. */ |
| 9473 | char shl_load (); |
| 9474 | /* The GNU C library defines this for functions which it implements |
| 9475 | to always fail with ENOSYS. Some functions are actually named |
| 9476 | something starting with __ and the normal name is an alias. */ |
| 9477 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 9478 | choke me |
| 9479 | #else |
| 9480 | char (*f) () = shl_load; |
| 9481 | #endif |
| 9482 | #ifdef __cplusplus |
| 9483 | } |
| 9484 | #endif |
| 9485 | |
| 9486 | int |
| 9487 | main () |
| 9488 | { |
| 9489 | return f != shl_load; |
| 9490 | ; |
| 9491 | return 0; |
| 9492 | } |
| 9493 | _ACEOF |
| 9494 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9496 | (eval $ac_link) 2>conftest.er1 |
| 9497 | ac_status=$? |
| 9498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9499 | rm -f conftest.er1 |
| 9500 | cat conftest.err >&5 |
| 9501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9502 | (exit $ac_status); } && |
| 9503 | { ac_try='test -z "$ac_c_werror_flag" |
| 9504 | || test ! -s conftest.err' |
| 9505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9506 | (eval $ac_try) 2>&5 |
| 9507 | ac_status=$? |
| 9508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9509 | (exit $ac_status); }; } && |
| 9510 | { ac_try='test -s conftest$ac_exeext' |
| 9511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9512 | (eval $ac_try) 2>&5 |
| 9513 | ac_status=$? |
| 9514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9515 | (exit $ac_status); }; }; then |
| 9516 | ac_cv_func_shl_load=yes |
| 9517 | else |
| 9518 | echo "$as_me: failed program was:" >&5 |
| 9519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9520 | |
| 9521 | ac_cv_func_shl_load=no |
| 9522 | fi |
| 9523 | rm -f conftest.err conftest.$ac_objext \ |
| 9524 | conftest$ac_exeext conftest.$ac_ext |
| 9525 | fi |
| 9526 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9527 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 9528 | if test $ac_cv_func_shl_load = yes; then |
| 9529 | lt_cv_dlopen="shl_load" |
| 9530 | else |
| 9531 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9532 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9533 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9535 | else |
| 9536 | ac_check_lib_save_LIBS=$LIBS |
| 9537 | LIBS="-ldld $LIBS" |
| 9538 | cat >conftest.$ac_ext <<_ACEOF |
| 9539 | /* confdefs.h. */ |
| 9540 | _ACEOF |
| 9541 | cat confdefs.h >>conftest.$ac_ext |
| 9542 | cat >>conftest.$ac_ext <<_ACEOF |
| 9543 | /* end confdefs.h. */ |
| 9544 | |
| 9545 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9546 | #ifdef __cplusplus |
| 9547 | extern "C" |
| 9548 | #endif |
| 9549 | /* We use char because int might match the return type of a gcc2 |
| 9550 | builtin and then its argument prototype would still apply. */ |
| 9551 | char shl_load (); |
| 9552 | int |
| 9553 | main () |
| 9554 | { |
| 9555 | shl_load (); |
| 9556 | ; |
| 9557 | return 0; |
| 9558 | } |
| 9559 | _ACEOF |
| 9560 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9562 | (eval $ac_link) 2>conftest.er1 |
| 9563 | ac_status=$? |
| 9564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9565 | rm -f conftest.er1 |
| 9566 | cat conftest.err >&5 |
| 9567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9568 | (exit $ac_status); } && |
| 9569 | { ac_try='test -z "$ac_c_werror_flag" |
| 9570 | || test ! -s conftest.err' |
| 9571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9572 | (eval $ac_try) 2>&5 |
| 9573 | ac_status=$? |
| 9574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9575 | (exit $ac_status); }; } && |
| 9576 | { ac_try='test -s conftest$ac_exeext' |
| 9577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9578 | (eval $ac_try) 2>&5 |
| 9579 | ac_status=$? |
| 9580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9581 | (exit $ac_status); }; }; then |
| 9582 | ac_cv_lib_dld_shl_load=yes |
| 9583 | else |
| 9584 | echo "$as_me: failed program was:" >&5 |
| 9585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9586 | |
| 9587 | ac_cv_lib_dld_shl_load=no |
| 9588 | fi |
| 9589 | rm -f conftest.err conftest.$ac_objext \ |
| 9590 | conftest$ac_exeext conftest.$ac_ext |
| 9591 | LIBS=$ac_check_lib_save_LIBS |
| 9592 | fi |
| 9593 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9594 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9595 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9596 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 9597 | else |
| 9598 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 9599 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 9600 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 9601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9602 | else |
| 9603 | cat >conftest.$ac_ext <<_ACEOF |
| 9604 | /* confdefs.h. */ |
| 9605 | _ACEOF |
| 9606 | cat confdefs.h >>conftest.$ac_ext |
| 9607 | cat >>conftest.$ac_ext <<_ACEOF |
| 9608 | /* end confdefs.h. */ |
| 9609 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 9610 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9611 | #define dlopen innocuous_dlopen |
| 9612 | |
| 9613 | /* System header to define __stub macros and hopefully few prototypes, |
| 9614 | which can conflict with char dlopen (); below. |
| 9615 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9616 | <limits.h> exists even on freestanding compilers. */ |
| 9617 | |
| 9618 | #ifdef __STDC__ |
| 9619 | # include <limits.h> |
| 9620 | #else |
| 9621 | # include <assert.h> |
| 9622 | #endif |
| 9623 | |
| 9624 | #undef dlopen |
| 9625 | |
| 9626 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9627 | #ifdef __cplusplus |
| 9628 | extern "C" |
| 9629 | { |
| 9630 | #endif |
| 9631 | /* We use char because int might match the return type of a gcc2 |
| 9632 | builtin and then its argument prototype would still apply. */ |
| 9633 | char dlopen (); |
| 9634 | /* The GNU C library defines this for functions which it implements |
| 9635 | to always fail with ENOSYS. Some functions are actually named |
| 9636 | something starting with __ and the normal name is an alias. */ |
| 9637 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 9638 | choke me |
| 9639 | #else |
| 9640 | char (*f) () = dlopen; |
| 9641 | #endif |
| 9642 | #ifdef __cplusplus |
| 9643 | } |
| 9644 | #endif |
| 9645 | |
| 9646 | int |
| 9647 | main () |
| 9648 | { |
| 9649 | return f != dlopen; |
| 9650 | ; |
| 9651 | return 0; |
| 9652 | } |
| 9653 | _ACEOF |
| 9654 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9656 | (eval $ac_link) 2>conftest.er1 |
| 9657 | ac_status=$? |
| 9658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9659 | rm -f conftest.er1 |
| 9660 | cat conftest.err >&5 |
| 9661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9662 | (exit $ac_status); } && |
| 9663 | { ac_try='test -z "$ac_c_werror_flag" |
| 9664 | || test ! -s conftest.err' |
| 9665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9666 | (eval $ac_try) 2>&5 |
| 9667 | ac_status=$? |
| 9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9669 | (exit $ac_status); }; } && |
| 9670 | { ac_try='test -s conftest$ac_exeext' |
| 9671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9672 | (eval $ac_try) 2>&5 |
| 9673 | ac_status=$? |
| 9674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9675 | (exit $ac_status); }; }; then |
| 9676 | ac_cv_func_dlopen=yes |
| 9677 | else |
| 9678 | echo "$as_me: failed program was:" >&5 |
| 9679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9680 | |
| 9681 | ac_cv_func_dlopen=no |
| 9682 | fi |
| 9683 | rm -f conftest.err conftest.$ac_objext \ |
| 9684 | conftest$ac_exeext conftest.$ac_ext |
| 9685 | fi |
| 9686 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 9687 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 9688 | if test $ac_cv_func_dlopen = yes; then |
| 9689 | lt_cv_dlopen="dlopen" |
| 9690 | else |
| 9691 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9692 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9693 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9695 | else |
| 9696 | ac_check_lib_save_LIBS=$LIBS |
| 9697 | LIBS="-ldl $LIBS" |
| 9698 | cat >conftest.$ac_ext <<_ACEOF |
| 9699 | /* confdefs.h. */ |
| 9700 | _ACEOF |
| 9701 | cat confdefs.h >>conftest.$ac_ext |
| 9702 | cat >>conftest.$ac_ext <<_ACEOF |
| 9703 | /* end confdefs.h. */ |
| 9704 | |
| 9705 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9706 | #ifdef __cplusplus |
| 9707 | extern "C" |
| 9708 | #endif |
| 9709 | /* We use char because int might match the return type of a gcc2 |
| 9710 | builtin and then its argument prototype would still apply. */ |
| 9711 | char dlopen (); |
| 9712 | int |
| 9713 | main () |
| 9714 | { |
| 9715 | dlopen (); |
| 9716 | ; |
| 9717 | return 0; |
| 9718 | } |
| 9719 | _ACEOF |
| 9720 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9722 | (eval $ac_link) 2>conftest.er1 |
| 9723 | ac_status=$? |
| 9724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9725 | rm -f conftest.er1 |
| 9726 | cat conftest.err >&5 |
| 9727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9728 | (exit $ac_status); } && |
| 9729 | { ac_try='test -z "$ac_c_werror_flag" |
| 9730 | || test ! -s conftest.err' |
| 9731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9732 | (eval $ac_try) 2>&5 |
| 9733 | ac_status=$? |
| 9734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9735 | (exit $ac_status); }; } && |
| 9736 | { ac_try='test -s conftest$ac_exeext' |
| 9737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9738 | (eval $ac_try) 2>&5 |
| 9739 | ac_status=$? |
| 9740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9741 | (exit $ac_status); }; }; then |
| 9742 | ac_cv_lib_dl_dlopen=yes |
| 9743 | else |
| 9744 | echo "$as_me: failed program was:" >&5 |
| 9745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9746 | |
| 9747 | ac_cv_lib_dl_dlopen=no |
| 9748 | fi |
| 9749 | rm -f conftest.err conftest.$ac_objext \ |
| 9750 | conftest$ac_exeext conftest.$ac_ext |
| 9751 | LIBS=$ac_check_lib_save_LIBS |
| 9752 | fi |
| 9753 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9754 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9755 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9756 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9757 | else |
| 9758 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9759 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 9760 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9762 | else |
| 9763 | ac_check_lib_save_LIBS=$LIBS |
| 9764 | LIBS="-lsvld $LIBS" |
| 9765 | cat >conftest.$ac_ext <<_ACEOF |
| 9766 | /* confdefs.h. */ |
| 9767 | _ACEOF |
| 9768 | cat confdefs.h >>conftest.$ac_ext |
| 9769 | cat >>conftest.$ac_ext <<_ACEOF |
| 9770 | /* end confdefs.h. */ |
| 9771 | |
| 9772 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9773 | #ifdef __cplusplus |
| 9774 | extern "C" |
| 9775 | #endif |
| 9776 | /* We use char because int might match the return type of a gcc2 |
| 9777 | builtin and then its argument prototype would still apply. */ |
| 9778 | char dlopen (); |
| 9779 | int |
| 9780 | main () |
| 9781 | { |
| 9782 | dlopen (); |
| 9783 | ; |
| 9784 | return 0; |
| 9785 | } |
| 9786 | _ACEOF |
| 9787 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9789 | (eval $ac_link) 2>conftest.er1 |
| 9790 | ac_status=$? |
| 9791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9792 | rm -f conftest.er1 |
| 9793 | cat conftest.err >&5 |
| 9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9795 | (exit $ac_status); } && |
| 9796 | { ac_try='test -z "$ac_c_werror_flag" |
| 9797 | || test ! -s conftest.err' |
| 9798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9799 | (eval $ac_try) 2>&5 |
| 9800 | ac_status=$? |
| 9801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9802 | (exit $ac_status); }; } && |
| 9803 | { ac_try='test -s conftest$ac_exeext' |
| 9804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9805 | (eval $ac_try) 2>&5 |
| 9806 | ac_status=$? |
| 9807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9808 | (exit $ac_status); }; }; then |
| 9809 | ac_cv_lib_svld_dlopen=yes |
| 9810 | else |
| 9811 | echo "$as_me: failed program was:" >&5 |
| 9812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9813 | |
| 9814 | ac_cv_lib_svld_dlopen=no |
| 9815 | fi |
| 9816 | rm -f conftest.err conftest.$ac_objext \ |
| 9817 | conftest$ac_exeext conftest.$ac_ext |
| 9818 | LIBS=$ac_check_lib_save_LIBS |
| 9819 | fi |
| 9820 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9821 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 9822 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 9823 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 9824 | else |
| 9825 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9826 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 9827 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 9828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9829 | else |
| 9830 | ac_check_lib_save_LIBS=$LIBS |
| 9831 | LIBS="-ldld $LIBS" |
| 9832 | cat >conftest.$ac_ext <<_ACEOF |
| 9833 | /* confdefs.h. */ |
| 9834 | _ACEOF |
| 9835 | cat confdefs.h >>conftest.$ac_ext |
| 9836 | cat >>conftest.$ac_ext <<_ACEOF |
| 9837 | /* end confdefs.h. */ |
| 9838 | |
| 9839 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9840 | #ifdef __cplusplus |
| 9841 | extern "C" |
| 9842 | #endif |
| 9843 | /* We use char because int might match the return type of a gcc2 |
| 9844 | builtin and then its argument prototype would still apply. */ |
| 9845 | char dld_link (); |
| 9846 | int |
| 9847 | main () |
| 9848 | { |
| 9849 | dld_link (); |
| 9850 | ; |
| 9851 | return 0; |
| 9852 | } |
| 9853 | _ACEOF |
| 9854 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9856 | (eval $ac_link) 2>conftest.er1 |
| 9857 | ac_status=$? |
| 9858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9859 | rm -f conftest.er1 |
| 9860 | cat conftest.err >&5 |
| 9861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9862 | (exit $ac_status); } && |
| 9863 | { ac_try='test -z "$ac_c_werror_flag" |
| 9864 | || test ! -s conftest.err' |
| 9865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9866 | (eval $ac_try) 2>&5 |
| 9867 | ac_status=$? |
| 9868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9869 | (exit $ac_status); }; } && |
| 9870 | { ac_try='test -s conftest$ac_exeext' |
| 9871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9872 | (eval $ac_try) 2>&5 |
| 9873 | ac_status=$? |
| 9874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9875 | (exit $ac_status); }; }; then |
| 9876 | ac_cv_lib_dld_dld_link=yes |
| 9877 | else |
| 9878 | echo "$as_me: failed program was:" >&5 |
| 9879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9880 | |
| 9881 | ac_cv_lib_dld_dld_link=no |
| 9882 | fi |
| 9883 | rm -f conftest.err conftest.$ac_objext \ |
| 9884 | conftest$ac_exeext conftest.$ac_ext |
| 9885 | LIBS=$ac_check_lib_save_LIBS |
| 9886 | fi |
| 9887 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9888 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 9889 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 9890 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 9891 | fi |
| 9892 | |
| 9893 | |
| 9894 | fi |
| 9895 | |
| 9896 | |
| 9897 | fi |
| 9898 | |
| 9899 | |
| 9900 | fi |
| 9901 | |
| 9902 | |
| 9903 | fi |
| 9904 | |
| 9905 | |
| 9906 | fi |
| 9907 | |
| 9908 | ;; |
| 9909 | esac |
| 9910 | |
| 9911 | if test "x$lt_cv_dlopen" != xno; then |
| 9912 | enable_dlopen=yes |
| 9913 | else |
| 9914 | enable_dlopen=no |
| 9915 | fi |
| 9916 | |
| 9917 | case $lt_cv_dlopen in |
| 9918 | dlopen) |
| 9919 | save_CPPFLAGS="$CPPFLAGS" |
| 9920 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 9921 | |
| 9922 | save_LDFLAGS="$LDFLAGS" |
| 9923 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 9924 | |
| 9925 | save_LIBS="$LIBS" |
| 9926 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 9927 | |
| 9928 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 9929 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 9930 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 9931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9932 | else |
| 9933 | if test "$cross_compiling" = yes; then : |
| 9934 | lt_cv_dlopen_self=cross |
| 9935 | else |
| 9936 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 9937 | lt_status=$lt_dlunknown |
| 9938 | cat > conftest.$ac_ext <<_LT_EOF |
| 9939 | #line 9939 "configure" |
| 9940 | #include "confdefs.h" |
| 9941 | |
| 9942 | #if HAVE_DLFCN_H |
| 9943 | #include <dlfcn.h> |
| 9944 | #endif |
| 9945 | |
| 9946 | #include <stdio.h> |
| 9947 | |
| 9948 | #ifdef RTLD_GLOBAL |
| 9949 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9950 | #else |
| 9951 | # ifdef DL_GLOBAL |
| 9952 | # define LT_DLGLOBAL DL_GLOBAL |
| 9953 | # else |
| 9954 | # define LT_DLGLOBAL 0 |
| 9955 | # endif |
| 9956 | #endif |
| 9957 | |
| 9958 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9959 | find out it does not work in some platform. */ |
| 9960 | #ifndef LT_DLLAZY_OR_NOW |
| 9961 | # ifdef RTLD_LAZY |
| 9962 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9963 | # else |
| 9964 | # ifdef DL_LAZY |
| 9965 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9966 | # else |
| 9967 | # ifdef RTLD_NOW |
| 9968 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9969 | # else |
| 9970 | # ifdef DL_NOW |
| 9971 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9972 | # else |
| 9973 | # define LT_DLLAZY_OR_NOW 0 |
| 9974 | # endif |
| 9975 | # endif |
| 9976 | # endif |
| 9977 | # endif |
| 9978 | #endif |
| 9979 | |
| 9980 | #ifdef __cplusplus |
| 9981 | extern "C" void exit (int); |
| 9982 | #endif |
| 9983 | |
| 9984 | void fnord() { int i=42;} |
| 9985 | int main () |
| 9986 | { |
| 9987 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9988 | int status = $lt_dlunknown; |
| 9989 | |
| 9990 | if (self) |
| 9991 | { |
| 9992 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9993 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9994 | /* dlclose (self); */ |
| 9995 | } |
| 9996 | else |
| 9997 | puts (dlerror ()); |
| 9998 | |
| 9999 | exit (status); |
| 10000 | } |
| 10001 | _LT_EOF |
| 10002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10003 | (eval $ac_link) 2>&5 |
| 10004 | ac_status=$? |
| 10005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10006 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 10007 | (./conftest; exit; ) >&5 2>/dev/null |
| 10008 | lt_status=$? |
| 10009 | case x$lt_status in |
| 10010 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 10011 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 10012 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 10013 | esac |
| 10014 | else : |
| 10015 | # compilation failed |
| 10016 | lt_cv_dlopen_self=no |
| 10017 | fi |
| 10018 | fi |
| 10019 | rm -fr conftest* |
| 10020 | |
| 10021 | |
| 10022 | fi |
| 10023 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 10024 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 10025 | |
| 10026 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 10027 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 10028 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 10029 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 10030 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 10031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10032 | else |
| 10033 | if test "$cross_compiling" = yes; then : |
| 10034 | lt_cv_dlopen_self_static=cross |
| 10035 | else |
| 10036 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10037 | lt_status=$lt_dlunknown |
| 10038 | cat > conftest.$ac_ext <<_LT_EOF |
| 10039 | #line 10039 "configure" |
| 10040 | #include "confdefs.h" |
| 10041 | |
| 10042 | #if HAVE_DLFCN_H |
| 10043 | #include <dlfcn.h> |
| 10044 | #endif |
| 10045 | |
| 10046 | #include <stdio.h> |
| 10047 | |
| 10048 | #ifdef RTLD_GLOBAL |
| 10049 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10050 | #else |
| 10051 | # ifdef DL_GLOBAL |
| 10052 | # define LT_DLGLOBAL DL_GLOBAL |
| 10053 | # else |
| 10054 | # define LT_DLGLOBAL 0 |
| 10055 | # endif |
| 10056 | #endif |
| 10057 | |
| 10058 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10059 | find out it does not work in some platform. */ |
| 10060 | #ifndef LT_DLLAZY_OR_NOW |
| 10061 | # ifdef RTLD_LAZY |
| 10062 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10063 | # else |
| 10064 | # ifdef DL_LAZY |
| 10065 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10066 | # else |
| 10067 | # ifdef RTLD_NOW |
| 10068 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10069 | # else |
| 10070 | # ifdef DL_NOW |
| 10071 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10072 | # else |
| 10073 | # define LT_DLLAZY_OR_NOW 0 |
| 10074 | # endif |
| 10075 | # endif |
| 10076 | # endif |
| 10077 | # endif |
| 10078 | #endif |
| 10079 | |
| 10080 | #ifdef __cplusplus |
| 10081 | extern "C" void exit (int); |
| 10082 | #endif |
| 10083 | |
| 10084 | void fnord() { int i=42;} |
| 10085 | int main () |
| 10086 | { |
| 10087 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10088 | int status = $lt_dlunknown; |
| 10089 | |
| 10090 | if (self) |
| 10091 | { |
| 10092 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10093 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10094 | /* dlclose (self); */ |
| 10095 | } |
| 10096 | else |
| 10097 | puts (dlerror ()); |
| 10098 | |
| 10099 | exit (status); |
| 10100 | } |
| 10101 | _LT_EOF |
| 10102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10103 | (eval $ac_link) 2>&5 |
| 10104 | ac_status=$? |
| 10105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10106 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 10107 | (./conftest; exit; ) >&5 2>/dev/null |
| 10108 | lt_status=$? |
| 10109 | case x$lt_status in |
| 10110 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10111 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10112 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 10113 | esac |
| 10114 | else : |
| 10115 | # compilation failed |
| 10116 | lt_cv_dlopen_self_static=no |
| 10117 | fi |
| 10118 | fi |
| 10119 | rm -fr conftest* |
| 10120 | |
| 10121 | |
| 10122 | fi |
| 10123 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 10124 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 10125 | fi |
| 10126 | |
| 10127 | CPPFLAGS="$save_CPPFLAGS" |
| 10128 | LDFLAGS="$save_LDFLAGS" |
| 10129 | LIBS="$save_LIBS" |
| 10130 | ;; |
| 10131 | esac |
| 10132 | |
| 10133 | case $lt_cv_dlopen_self in |
| 10134 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 10135 | *) enable_dlopen_self=unknown ;; |
| 10136 | esac |
| 10137 | |
| 10138 | case $lt_cv_dlopen_self_static in |
| 10139 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 10140 | *) enable_dlopen_self_static=unknown ;; |
| 10141 | esac |
| 10142 | fi |
| 10143 | |
| 10144 | |
| 10145 | |
| 10146 | |
| 10147 | |
| 10148 | |
| 10149 | |
| 10150 | |
| 10151 | |
| 10152 | |
| 10153 | |
| 10154 | |
| 10155 | |
| 10156 | |
| 10157 | |
| 10158 | |
| 10159 | |
| 10160 | striplib= |
| 10161 | old_striplib= |
| 10162 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 10163 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 10164 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 10165 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 10166 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 10167 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10168 | echo "${ECHO_T}yes" >&6 |
| 10169 | else |
| 10170 | # FIXME - insert some real tests, host_os isn't really good enough |
| 10171 | case $host_os in |
| 10172 | darwin*) |
| 10173 | if test -n "$STRIP" ; then |
| 10174 | striplib="$STRIP -x" |
| 10175 | old_striplib="$STRIP -S" |
| 10176 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10177 | echo "${ECHO_T}yes" >&6 |
| 10178 | else |
| 10179 | echo "$as_me:$LINENO: result: no" >&5 |
| 10180 | echo "${ECHO_T}no" >&6 |
| 10181 | fi |
| 10182 | ;; |
| 10183 | *) |
| 10184 | echo "$as_me:$LINENO: result: no" >&5 |
| 10185 | echo "${ECHO_T}no" >&6 |
| 10186 | ;; |
| 10187 | esac |
| 10188 | fi |
| 10189 | |
| 10190 | |
| 10191 | |
| 10192 | |
| 10193 | |
| 10194 | |
| 10195 | |
| 10196 | |
| 10197 | |
| 10198 | |
| 10199 | |
| 10200 | |
| 10201 | # Report which library types will actually be built |
| 10202 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 10203 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 10204 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 10205 | echo "${ECHO_T}$can_build_shared" >&6 |
| 10206 | |
| 10207 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 10208 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 10209 | test "$can_build_shared" = "no" && enable_shared=no |
| 10210 | |
| 10211 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 10212 | # are all built from PIC. |
| 10213 | case $host_os in |
| 10214 | aix3*) |
| 10215 | test "$enable_shared" = yes && enable_static=no |
| 10216 | if test -n "$RANLIB"; then |
| 10217 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 10218 | postinstall_cmds='$RANLIB $lib' |
| 10219 | fi |
| 10220 | ;; |
| 10221 | |
| 10222 | aix4* | aix5*) |
| 10223 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 10224 | test "$enable_shared" = yes && enable_static=no |
| 10225 | fi |
| 10226 | ;; |
| 10227 | esac |
| 10228 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 10229 | echo "${ECHO_T}$enable_shared" >&6 |
| 10230 | |
| 10231 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 10232 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 10233 | # Make sure either enable_shared or enable_static is yes. |
| 10234 | test "$enable_shared" = yes || enable_static=yes |
| 10235 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 10236 | echo "${ECHO_T}$enable_static" >&6 |
| 10237 | |
| 10238 | |
| 10239 | |
| 10240 | |
| 10241 | fi |
| 10242 | ac_ext=c |
| 10243 | ac_cpp='$CPP $CPPFLAGS' |
| 10244 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10245 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10246 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10247 | |
| 10248 | CC="$lt_save_CC" |
| 10249 | |
| 10250 | |
| 10251 | |
| 10252 | |
| 10253 | |
| 10254 | |
| 10255 | |
| 10256 | |
| 10257 | |
| 10258 | |
| 10259 | |
| 10260 | |
| 10261 | |
| 10262 | ac_config_commands="$ac_config_commands libtool" |
| 10263 | |
| 10264 | |
| 10265 | |
| 10266 | |
| 10267 | # Only expand once: |
| 10268 | |
| 10269 | |
| 10270 | |
| 10271 | # Check whether --enable-targets or --disable-targets was given. |
| 10272 | if test "${enable_targets+set}" = set; then |
| 10273 | enableval="$enable_targets" |
| 10274 | case "${enableval}" in |
| 10275 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
| 10276 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} |
| 10277 | { (exit 1); exit 1; }; } |
| 10278 | ;; |
| 10279 | no) enable_targets= ;; |
| 10280 | *) enable_targets=$enableval ;; |
| 10281 | esac |
| 10282 | fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
| 10283 | if test "${enable_commonbfdlib+set}" = set; then |
| 10284 | enableval="$enable_commonbfdlib" |
| 10285 | case "${enableval}" in |
| 10286 | yes) commonbfdlib=true ;; |
| 10287 | no) commonbfdlib=false ;; |
| 10288 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 |
| 10289 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} |
| 10290 | { (exit 1); exit 1; }; } ;; |
| 10291 | esac |
| 10292 | fi; |
| 10293 | |
| 10294 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
| 10295 | |
| 10296 | # Check whether --enable-werror or --disable-werror was given. |
| 10297 | if test "${enable_werror+set}" = set; then |
| 10298 | enableval="$enable_werror" |
| 10299 | case "${enableval}" in |
| 10300 | yes | y) ERROR_ON_WARNING="yes" ;; |
| 10301 | no | n) ERROR_ON_WARNING="no" ;; |
| 10302 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
| 10303 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} |
| 10304 | { (exit 1); exit 1; }; } ;; |
| 10305 | esac |
| 10306 | fi; |
| 10307 | |
| 10308 | # Enable -Wno-format by default when using gcc on mingw |
| 10309 | case "${host}" in |
| 10310 | *-*-mingw32*) |
| 10311 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then |
| 10312 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" |
| 10313 | fi |
| 10314 | ;; |
| 10315 | *) ;; |
| 10316 | esac |
| 10317 | |
| 10318 | # Enable -Werror by default when using gcc |
| 10319 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then |
| 10320 | ERROR_ON_WARNING=yes |
| 10321 | fi |
| 10322 | |
| 10323 | NO_WERROR= |
| 10324 | if test "${ERROR_ON_WARNING}" = yes ; then |
| 10325 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
| 10326 | NO_WERROR="-Wno-error" |
| 10327 | fi |
| 10328 | |
| 10329 | if test "${GCC}" = yes ; then |
| 10330 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
| 10331 | fi |
| 10332 | |
| 10333 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
| 10334 | if test "${enable_build_warnings+set}" = set; then |
| 10335 | enableval="$enable_build_warnings" |
| 10336 | case "${enableval}" in |
| 10337 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
| 10338 | no) if test "${GCC}" = yes ; then |
| 10339 | WARN_CFLAGS="-w" |
| 10340 | fi;; |
| 10341 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 10342 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; |
| 10343 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 10344 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; |
| 10345 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 10346 | esac |
| 10347 | fi; |
| 10348 | |
| 10349 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
| 10350 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 |
| 10351 | fi |
| 10352 | |
| 10353 | |
| 10354 | |
| 10355 | |
| 10356 | |
| 10357 | ac_config_headers="$ac_config_headers config.h:config.in" |
| 10358 | |
| 10359 | |
| 10360 | if test -z "$target" ; then |
| 10361 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 |
| 10362 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} |
| 10363 | { (exit 1); exit 1; }; } |
| 10364 | fi |
| 10365 | if test -z "$host" ; then |
| 10366 | { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5 |
| 10367 | echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;} |
| 10368 | { (exit 1); exit 1; }; } |
| 10369 | fi |
| 10370 | |
| 10371 | for ac_prog in 'bison -y' byacc |
| 10372 | do |
| 10373 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10374 | set dummy $ac_prog; ac_word=$2 |
| 10375 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10377 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 10378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10379 | else |
| 10380 | if test -n "$YACC"; then |
| 10381 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 10382 | else |
| 10383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10384 | for as_dir in $PATH |
| 10385 | do |
| 10386 | IFS=$as_save_IFS |
| 10387 | test -z "$as_dir" && as_dir=. |
| 10388 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10389 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10390 | ac_cv_prog_YACC="$ac_prog" |
| 10391 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10392 | break 2 |
| 10393 | fi |
| 10394 | done |
| 10395 | done |
| 10396 | |
| 10397 | fi |
| 10398 | fi |
| 10399 | YACC=$ac_cv_prog_YACC |
| 10400 | if test -n "$YACC"; then |
| 10401 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 10402 | echo "${ECHO_T}$YACC" >&6 |
| 10403 | else |
| 10404 | echo "$as_me:$LINENO: result: no" >&5 |
| 10405 | echo "${ECHO_T}no" >&6 |
| 10406 | fi |
| 10407 | |
| 10408 | test -n "$YACC" && break |
| 10409 | done |
| 10410 | test -n "$YACC" || YACC="yacc" |
| 10411 | |
| 10412 | for ac_prog in flex lex |
| 10413 | do |
| 10414 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10415 | set dummy $ac_prog; ac_word=$2 |
| 10416 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10418 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 10419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10420 | else |
| 10421 | if test -n "$LEX"; then |
| 10422 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 10423 | else |
| 10424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10425 | for as_dir in $PATH |
| 10426 | do |
| 10427 | IFS=$as_save_IFS |
| 10428 | test -z "$as_dir" && as_dir=. |
| 10429 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10430 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10431 | ac_cv_prog_LEX="$ac_prog" |
| 10432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10433 | break 2 |
| 10434 | fi |
| 10435 | done |
| 10436 | done |
| 10437 | |
| 10438 | fi |
| 10439 | fi |
| 10440 | LEX=$ac_cv_prog_LEX |
| 10441 | if test -n "$LEX"; then |
| 10442 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 10443 | echo "${ECHO_T}$LEX" >&6 |
| 10444 | else |
| 10445 | echo "$as_me:$LINENO: result: no" >&5 |
| 10446 | echo "${ECHO_T}no" >&6 |
| 10447 | fi |
| 10448 | |
| 10449 | test -n "$LEX" && break |
| 10450 | done |
| 10451 | test -n "$LEX" || LEX=":" |
| 10452 | |
| 10453 | if test -z "$LEXLIB" |
| 10454 | then |
| 10455 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 10456 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 10457 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 10458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10459 | else |
| 10460 | ac_check_lib_save_LIBS=$LIBS |
| 10461 | LIBS="-lfl $LIBS" |
| 10462 | cat >conftest.$ac_ext <<_ACEOF |
| 10463 | /* confdefs.h. */ |
| 10464 | _ACEOF |
| 10465 | cat confdefs.h >>conftest.$ac_ext |
| 10466 | cat >>conftest.$ac_ext <<_ACEOF |
| 10467 | /* end confdefs.h. */ |
| 10468 | |
| 10469 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10470 | #ifdef __cplusplus |
| 10471 | extern "C" |
| 10472 | #endif |
| 10473 | /* We use char because int might match the return type of a gcc2 |
| 10474 | builtin and then its argument prototype would still apply. */ |
| 10475 | char yywrap (); |
| 10476 | int |
| 10477 | main () |
| 10478 | { |
| 10479 | yywrap (); |
| 10480 | ; |
| 10481 | return 0; |
| 10482 | } |
| 10483 | _ACEOF |
| 10484 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10486 | (eval $ac_link) 2>conftest.er1 |
| 10487 | ac_status=$? |
| 10488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10489 | rm -f conftest.er1 |
| 10490 | cat conftest.err >&5 |
| 10491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10492 | (exit $ac_status); } && |
| 10493 | { ac_try='test -z "$ac_c_werror_flag" |
| 10494 | || test ! -s conftest.err' |
| 10495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10496 | (eval $ac_try) 2>&5 |
| 10497 | ac_status=$? |
| 10498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10499 | (exit $ac_status); }; } && |
| 10500 | { ac_try='test -s conftest$ac_exeext' |
| 10501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10502 | (eval $ac_try) 2>&5 |
| 10503 | ac_status=$? |
| 10504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10505 | (exit $ac_status); }; }; then |
| 10506 | ac_cv_lib_fl_yywrap=yes |
| 10507 | else |
| 10508 | echo "$as_me: failed program was:" >&5 |
| 10509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10510 | |
| 10511 | ac_cv_lib_fl_yywrap=no |
| 10512 | fi |
| 10513 | rm -f conftest.err conftest.$ac_objext \ |
| 10514 | conftest$ac_exeext conftest.$ac_ext |
| 10515 | LIBS=$ac_check_lib_save_LIBS |
| 10516 | fi |
| 10517 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 10518 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 10519 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 10520 | LEXLIB="-lfl" |
| 10521 | else |
| 10522 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 10523 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 10524 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 10525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10526 | else |
| 10527 | ac_check_lib_save_LIBS=$LIBS |
| 10528 | LIBS="-ll $LIBS" |
| 10529 | cat >conftest.$ac_ext <<_ACEOF |
| 10530 | /* confdefs.h. */ |
| 10531 | _ACEOF |
| 10532 | cat confdefs.h >>conftest.$ac_ext |
| 10533 | cat >>conftest.$ac_ext <<_ACEOF |
| 10534 | /* end confdefs.h. */ |
| 10535 | |
| 10536 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10537 | #ifdef __cplusplus |
| 10538 | extern "C" |
| 10539 | #endif |
| 10540 | /* We use char because int might match the return type of a gcc2 |
| 10541 | builtin and then its argument prototype would still apply. */ |
| 10542 | char yywrap (); |
| 10543 | int |
| 10544 | main () |
| 10545 | { |
| 10546 | yywrap (); |
| 10547 | ; |
| 10548 | return 0; |
| 10549 | } |
| 10550 | _ACEOF |
| 10551 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10553 | (eval $ac_link) 2>conftest.er1 |
| 10554 | ac_status=$? |
| 10555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10556 | rm -f conftest.er1 |
| 10557 | cat conftest.err >&5 |
| 10558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10559 | (exit $ac_status); } && |
| 10560 | { ac_try='test -z "$ac_c_werror_flag" |
| 10561 | || test ! -s conftest.err' |
| 10562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10563 | (eval $ac_try) 2>&5 |
| 10564 | ac_status=$? |
| 10565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10566 | (exit $ac_status); }; } && |
| 10567 | { ac_try='test -s conftest$ac_exeext' |
| 10568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10569 | (eval $ac_try) 2>&5 |
| 10570 | ac_status=$? |
| 10571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10572 | (exit $ac_status); }; }; then |
| 10573 | ac_cv_lib_l_yywrap=yes |
| 10574 | else |
| 10575 | echo "$as_me: failed program was:" >&5 |
| 10576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10577 | |
| 10578 | ac_cv_lib_l_yywrap=no |
| 10579 | fi |
| 10580 | rm -f conftest.err conftest.$ac_objext \ |
| 10581 | conftest$ac_exeext conftest.$ac_ext |
| 10582 | LIBS=$ac_check_lib_save_LIBS |
| 10583 | fi |
| 10584 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 10585 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 10586 | if test $ac_cv_lib_l_yywrap = yes; then |
| 10587 | LEXLIB="-ll" |
| 10588 | fi |
| 10589 | |
| 10590 | fi |
| 10591 | |
| 10592 | fi |
| 10593 | |
| 10594 | if test "x$LEX" != "x:"; then |
| 10595 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 10596 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 10597 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 10598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10599 | else |
| 10600 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 10601 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 10602 | cat >conftest.l <<_ACEOF |
| 10603 | %% |
| 10604 | %% |
| 10605 | _ACEOF |
| 10606 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 10607 | (eval $LEX conftest.l) 2>&5 |
| 10608 | ac_status=$? |
| 10609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10610 | (exit $ac_status); } |
| 10611 | if test -f lex.yy.c; then |
| 10612 | ac_cv_prog_lex_root=lex.yy |
| 10613 | elif test -f lexyy.c; then |
| 10614 | ac_cv_prog_lex_root=lexyy |
| 10615 | else |
| 10616 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 10617 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 10618 | { (exit 1); exit 1; }; } |
| 10619 | fi |
| 10620 | fi |
| 10621 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 10622 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 10623 | rm -f conftest.l |
| 10624 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 10625 | |
| 10626 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 10627 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 10628 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 10629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10630 | else |
| 10631 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 10632 | # default is implementation-dependent. Figure out which it is, since |
| 10633 | # not all implementations provide the %pointer and %array declarations. |
| 10634 | ac_cv_prog_lex_yytext_pointer=no |
| 10635 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 10636 | ac_save_LIBS=$LIBS |
| 10637 | LIBS="$LIBS $LEXLIB" |
| 10638 | cat >conftest.$ac_ext <<_ACEOF |
| 10639 | `cat $LEX_OUTPUT_ROOT.c` |
| 10640 | _ACEOF |
| 10641 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10643 | (eval $ac_link) 2>conftest.er1 |
| 10644 | ac_status=$? |
| 10645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10646 | rm -f conftest.er1 |
| 10647 | cat conftest.err >&5 |
| 10648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10649 | (exit $ac_status); } && |
| 10650 | { ac_try='test -z "$ac_c_werror_flag" |
| 10651 | || test ! -s conftest.err' |
| 10652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10653 | (eval $ac_try) 2>&5 |
| 10654 | ac_status=$? |
| 10655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10656 | (exit $ac_status); }; } && |
| 10657 | { ac_try='test -s conftest$ac_exeext' |
| 10658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10659 | (eval $ac_try) 2>&5 |
| 10660 | ac_status=$? |
| 10661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10662 | (exit $ac_status); }; }; then |
| 10663 | ac_cv_prog_lex_yytext_pointer=yes |
| 10664 | else |
| 10665 | echo "$as_me: failed program was:" >&5 |
| 10666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10667 | |
| 10668 | fi |
| 10669 | rm -f conftest.err conftest.$ac_objext \ |
| 10670 | conftest$ac_exeext conftest.$ac_ext |
| 10671 | LIBS=$ac_save_LIBS |
| 10672 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 10673 | |
| 10674 | fi |
| 10675 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 10676 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 10677 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 10678 | |
| 10679 | cat >>confdefs.h <<\_ACEOF |
| 10680 | #define YYTEXT_POINTER 1 |
| 10681 | _ACEOF |
| 10682 | |
| 10683 | fi |
| 10684 | |
| 10685 | fi |
| 10686 | if test "$LEX" = :; then |
| 10687 | LEX=${am_missing_run}flex |
| 10688 | fi |
| 10689 | |
| 10690 | ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk" |
| 10691 | # If we haven't got the data from the intl directory, |
| 10692 | # assume NLS is disabled. |
| 10693 | USE_NLS=no |
| 10694 | LIBINTL= |
| 10695 | LIBINTL_DEP= |
| 10696 | INCINTL= |
| 10697 | XGETTEXT= |
| 10698 | GMSGFMT= |
| 10699 | POSUB= |
| 10700 | |
| 10701 | if test -f ../intl/config.intl; then |
| 10702 | . ../intl/config.intl |
| 10703 | fi |
| 10704 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 10705 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
| 10706 | if test x"$USE_NLS" != xyes; then |
| 10707 | echo "$as_me:$LINENO: result: no" >&5 |
| 10708 | echo "${ECHO_T}no" >&6 |
| 10709 | else |
| 10710 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10711 | echo "${ECHO_T}yes" >&6 |
| 10712 | |
| 10713 | cat >>confdefs.h <<\_ACEOF |
| 10714 | #define ENABLE_NLS 1 |
| 10715 | _ACEOF |
| 10716 | |
| 10717 | |
| 10718 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
| 10719 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 |
| 10720 | # Look for .po and .gmo files in the source directory. |
| 10721 | CATALOGS= |
| 10722 | XLINGUAS= |
| 10723 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do |
| 10724 | # If there aren't any .gmo files the shell will give us the |
| 10725 | # literal string "../path/to/srcdir/po/*.gmo" which has to be |
| 10726 | # weeded out. |
| 10727 | case "$cat" in *\**) |
| 10728 | continue;; |
| 10729 | esac |
| 10730 | # The quadruple backslash is collapsed to a double backslash |
| 10731 | # by the backticks, then collapsed again by the double quotes, |
| 10732 | # leaving us with one backslash in the sed expression (right |
| 10733 | # before the dot that mustn't act as a wildcard). |
| 10734 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` |
| 10735 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` |
| 10736 | # The user is allowed to set LINGUAS to a list of languages to |
| 10737 | # install catalogs for. If it's empty that means "all of them." |
| 10738 | if test "x$LINGUAS" = x; then |
| 10739 | CATALOGS="$CATALOGS $cat" |
| 10740 | XLINGUAS="$XLINGUAS $lang" |
| 10741 | else |
| 10742 | case "$LINGUAS" in *$lang*) |
| 10743 | CATALOGS="$CATALOGS $cat" |
| 10744 | XLINGUAS="$XLINGUAS $lang" |
| 10745 | ;; |
| 10746 | esac |
| 10747 | fi |
| 10748 | done |
| 10749 | LINGUAS="$XLINGUAS" |
| 10750 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
| 10751 | echo "${ECHO_T}$LINGUAS" >&6 |
| 10752 | |
| 10753 | |
| 10754 | DATADIRNAME=share |
| 10755 | |
| 10756 | INSTOBJEXT=.mo |
| 10757 | |
| 10758 | GENCAT=gencat |
| 10759 | |
| 10760 | CATOBJEXT=.gmo |
| 10761 | |
| 10762 | fi |
| 10763 | |
| 10764 | MKINSTALLDIRS= |
| 10765 | if test -n "$ac_aux_dir"; then |
| 10766 | case "$ac_aux_dir" in |
| 10767 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 10768 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 10769 | esac |
| 10770 | fi |
| 10771 | if test -z "$MKINSTALLDIRS"; then |
| 10772 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 10773 | fi |
| 10774 | |
| 10775 | |
| 10776 | |
| 10777 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 10778 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
| 10779 | # Check whether --enable-nls or --disable-nls was given. |
| 10780 | if test "${enable_nls+set}" = set; then |
| 10781 | enableval="$enable_nls" |
| 10782 | USE_NLS=$enableval |
| 10783 | else |
| 10784 | USE_NLS=yes |
| 10785 | fi; |
| 10786 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10787 | echo "${ECHO_T}$USE_NLS" >&6 |
| 10788 | |
| 10789 | |
| 10790 | |
| 10791 | |
| 10792 | |
| 10793 | |
| 10794 | # Prepare PATH_SEPARATOR. |
| 10795 | # The user is always right. |
| 10796 | if test "${PATH_SEPARATOR+set}" != set; then |
| 10797 | echo "#! /bin/sh" >conf$$.sh |
| 10798 | echo "exit 0" >>conf$$.sh |
| 10799 | chmod +x conf$$.sh |
| 10800 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 10801 | PATH_SEPARATOR=';' |
| 10802 | else |
| 10803 | PATH_SEPARATOR=: |
| 10804 | fi |
| 10805 | rm -f conf$$.sh |
| 10806 | fi |
| 10807 | |
| 10808 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 10809 | # as systems may use methods other than mode bits to determine executability. |
| 10810 | cat >conf$$.file <<_ASEOF |
| 10811 | #! /bin/sh |
| 10812 | exit 0 |
| 10813 | _ASEOF |
| 10814 | chmod +x conf$$.file |
| 10815 | if test -x conf$$.file >/dev/null 2>&1; then |
| 10816 | ac_executable_p="test -x" |
| 10817 | else |
| 10818 | ac_executable_p="test -f" |
| 10819 | fi |
| 10820 | rm -f conf$$.file |
| 10821 | |
| 10822 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 10823 | set dummy msgfmt; ac_word=$2 |
| 10824 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10826 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 10827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10828 | else |
| 10829 | case "$MSGFMT" in |
| 10830 | [\\/]* | ?:[\\/]*) |
| 10831 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 10832 | ;; |
| 10833 | *) |
| 10834 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 10835 | for ac_dir in $PATH; do |
| 10836 | IFS="$ac_save_IFS" |
| 10837 | test -z "$ac_dir" && ac_dir=. |
| 10838 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10839 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 10840 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 10841 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 10842 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 10843 | break 2 |
| 10844 | fi |
| 10845 | fi |
| 10846 | done |
| 10847 | done |
| 10848 | IFS="$ac_save_IFS" |
| 10849 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 10850 | ;; |
| 10851 | esac |
| 10852 | fi |
| 10853 | MSGFMT="$ac_cv_path_MSGFMT" |
| 10854 | if test "$MSGFMT" != ":"; then |
| 10855 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 10856 | echo "${ECHO_T}$MSGFMT" >&6 |
| 10857 | else |
| 10858 | echo "$as_me:$LINENO: result: no" >&5 |
| 10859 | echo "${ECHO_T}no" >&6 |
| 10860 | fi |
| 10861 | |
| 10862 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 10863 | set dummy gmsgfmt; ac_word=$2 |
| 10864 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10866 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 10867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10868 | else |
| 10869 | case $GMSGFMT in |
| 10870 | [\\/]* | ?:[\\/]*) |
| 10871 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 10872 | ;; |
| 10873 | *) |
| 10874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10875 | for as_dir in $PATH |
| 10876 | do |
| 10877 | IFS=$as_save_IFS |
| 10878 | test -z "$as_dir" && as_dir=. |
| 10879 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10881 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 10882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10883 | break 2 |
| 10884 | fi |
| 10885 | done |
| 10886 | done |
| 10887 | |
| 10888 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 10889 | ;; |
| 10890 | esac |
| 10891 | fi |
| 10892 | GMSGFMT=$ac_cv_path_GMSGFMT |
| 10893 | |
| 10894 | if test -n "$GMSGFMT"; then |
| 10895 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 10896 | echo "${ECHO_T}$GMSGFMT" >&6 |
| 10897 | else |
| 10898 | echo "$as_me:$LINENO: result: no" >&5 |
| 10899 | echo "${ECHO_T}no" >&6 |
| 10900 | fi |
| 10901 | |
| 10902 | |
| 10903 | |
| 10904 | # Prepare PATH_SEPARATOR. |
| 10905 | # The user is always right. |
| 10906 | if test "${PATH_SEPARATOR+set}" != set; then |
| 10907 | echo "#! /bin/sh" >conf$$.sh |
| 10908 | echo "exit 0" >>conf$$.sh |
| 10909 | chmod +x conf$$.sh |
| 10910 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 10911 | PATH_SEPARATOR=';' |
| 10912 | else |
| 10913 | PATH_SEPARATOR=: |
| 10914 | fi |
| 10915 | rm -f conf$$.sh |
| 10916 | fi |
| 10917 | |
| 10918 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 10919 | # as systems may use methods other than mode bits to determine executability. |
| 10920 | cat >conf$$.file <<_ASEOF |
| 10921 | #! /bin/sh |
| 10922 | exit 0 |
| 10923 | _ASEOF |
| 10924 | chmod +x conf$$.file |
| 10925 | if test -x conf$$.file >/dev/null 2>&1; then |
| 10926 | ac_executable_p="test -x" |
| 10927 | else |
| 10928 | ac_executable_p="test -f" |
| 10929 | fi |
| 10930 | rm -f conf$$.file |
| 10931 | |
| 10932 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 10933 | set dummy xgettext; ac_word=$2 |
| 10934 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10936 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 10937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10938 | else |
| 10939 | case "$XGETTEXT" in |
| 10940 | [\\/]* | ?:[\\/]*) |
| 10941 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 10942 | ;; |
| 10943 | *) |
| 10944 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 10945 | for ac_dir in $PATH; do |
| 10946 | IFS="$ac_save_IFS" |
| 10947 | test -z "$ac_dir" && ac_dir=. |
| 10948 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10949 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 10950 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 10951 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 10952 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 10953 | break 2 |
| 10954 | fi |
| 10955 | fi |
| 10956 | done |
| 10957 | done |
| 10958 | IFS="$ac_save_IFS" |
| 10959 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 10960 | ;; |
| 10961 | esac |
| 10962 | fi |
| 10963 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 10964 | if test "$XGETTEXT" != ":"; then |
| 10965 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 10966 | echo "${ECHO_T}$XGETTEXT" >&6 |
| 10967 | else |
| 10968 | echo "$as_me:$LINENO: result: no" >&5 |
| 10969 | echo "${ECHO_T}no" >&6 |
| 10970 | fi |
| 10971 | |
| 10972 | rm -f messages.po |
| 10973 | |
| 10974 | |
| 10975 | # Prepare PATH_SEPARATOR. |
| 10976 | # The user is always right. |
| 10977 | if test "${PATH_SEPARATOR+set}" != set; then |
| 10978 | echo "#! /bin/sh" >conf$$.sh |
| 10979 | echo "exit 0" >>conf$$.sh |
| 10980 | chmod +x conf$$.sh |
| 10981 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 10982 | PATH_SEPARATOR=';' |
| 10983 | else |
| 10984 | PATH_SEPARATOR=: |
| 10985 | fi |
| 10986 | rm -f conf$$.sh |
| 10987 | fi |
| 10988 | |
| 10989 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 10990 | # as systems may use methods other than mode bits to determine executability. |
| 10991 | cat >conf$$.file <<_ASEOF |
| 10992 | #! /bin/sh |
| 10993 | exit 0 |
| 10994 | _ASEOF |
| 10995 | chmod +x conf$$.file |
| 10996 | if test -x conf$$.file >/dev/null 2>&1; then |
| 10997 | ac_executable_p="test -x" |
| 10998 | else |
| 10999 | ac_executable_p="test -f" |
| 11000 | fi |
| 11001 | rm -f conf$$.file |
| 11002 | |
| 11003 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 11004 | set dummy msgmerge; ac_word=$2 |
| 11005 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11006 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11007 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 11008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11009 | else |
| 11010 | case "$MSGMERGE" in |
| 11011 | [\\/]* | ?:[\\/]*) |
| 11012 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 11013 | ;; |
| 11014 | *) |
| 11015 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 11016 | for ac_dir in $PATH; do |
| 11017 | IFS="$ac_save_IFS" |
| 11018 | test -z "$ac_dir" && ac_dir=. |
| 11019 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11020 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 11021 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 11022 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 11023 | break 2 |
| 11024 | fi |
| 11025 | fi |
| 11026 | done |
| 11027 | done |
| 11028 | IFS="$ac_save_IFS" |
| 11029 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 11030 | ;; |
| 11031 | esac |
| 11032 | fi |
| 11033 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 11034 | if test "$MSGMERGE" != ":"; then |
| 11035 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 11036 | echo "${ECHO_T}$MSGMERGE" >&6 |
| 11037 | else |
| 11038 | echo "$as_me:$LINENO: result: no" >&5 |
| 11039 | echo "${ECHO_T}no" >&6 |
| 11040 | fi |
| 11041 | |
| 11042 | |
| 11043 | if test "$GMSGFMT" != ":"; then |
| 11044 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 11045 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 11046 | : ; |
| 11047 | else |
| 11048 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 11049 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 11050 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 |
| 11051 | GMSGFMT=":" |
| 11052 | fi |
| 11053 | fi |
| 11054 | |
| 11055 | if test "$XGETTEXT" != ":"; then |
| 11056 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 11057 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 11058 | : ; |
| 11059 | else |
| 11060 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 11061 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 |
| 11062 | XGETTEXT=":" |
| 11063 | fi |
| 11064 | rm -f messages.po |
| 11065 | fi |
| 11066 | |
| 11067 | ac_config_commands="$ac_config_commands default-1" |
| 11068 | |
| 11069 | |
| 11070 | |
| 11071 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 11072 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 11073 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 11074 | if test "${enable_maintainer_mode+set}" = set; then |
| 11075 | enableval="$enable_maintainer_mode" |
| 11076 | USE_MAINTAINER_MODE=$enableval |
| 11077 | else |
| 11078 | USE_MAINTAINER_MODE=no |
| 11079 | fi; |
| 11080 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 11081 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 11082 | |
| 11083 | |
| 11084 | if test $USE_MAINTAINER_MODE = yes; then |
| 11085 | MAINTAINER_MODE_TRUE= |
| 11086 | MAINTAINER_MODE_FALSE='#' |
| 11087 | else |
| 11088 | MAINTAINER_MODE_TRUE='#' |
| 11089 | MAINTAINER_MODE_FALSE= |
| 11090 | fi |
| 11091 | |
| 11092 | MAINT=$MAINTAINER_MODE_TRUE |
| 11093 | |
| 11094 | |
| 11095 | |
| 11096 | |
| 11097 | if false; then |
| 11098 | GENINSRC_NEVER_TRUE= |
| 11099 | GENINSRC_NEVER_FALSE='#' |
| 11100 | else |
| 11101 | GENINSRC_NEVER_TRUE='#' |
| 11102 | GENINSRC_NEVER_FALSE= |
| 11103 | fi |
| 11104 | |
| 11105 | |
| 11106 | if test -n "$EXEEXT"; then |
| 11107 | |
| 11108 | cat >>confdefs.h <<\_ACEOF |
| 11109 | #define HAVE_EXECUTABLE_SUFFIX 1 |
| 11110 | _ACEOF |
| 11111 | |
| 11112 | fi |
| 11113 | |
| 11114 | cat >>confdefs.h <<_ACEOF |
| 11115 | #define EXECUTABLE_SUFFIX "${EXEEXT}" |
| 11116 | _ACEOF |
| 11117 | |
| 11118 | |
| 11119 | # host-specific stuff: |
| 11120 | |
| 11121 | HDEFINES= |
| 11122 | |
| 11123 | . ${srcdir}/../bfd/configure.host |
| 11124 | |
| 11125 | |
| 11126 | AR=${AR-ar} |
| 11127 | |
| 11128 | if test -n "$ac_tool_prefix"; then |
| 11129 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 11130 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 11131 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11132 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11133 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11135 | else |
| 11136 | if test -n "$RANLIB"; then |
| 11137 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11138 | else |
| 11139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11140 | for as_dir in $PATH |
| 11141 | do |
| 11142 | IFS=$as_save_IFS |
| 11143 | test -z "$as_dir" && as_dir=. |
| 11144 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11145 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11146 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11147 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11148 | break 2 |
| 11149 | fi |
| 11150 | done |
| 11151 | done |
| 11152 | |
| 11153 | fi |
| 11154 | fi |
| 11155 | RANLIB=$ac_cv_prog_RANLIB |
| 11156 | if test -n "$RANLIB"; then |
| 11157 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11158 | echo "${ECHO_T}$RANLIB" >&6 |
| 11159 | else |
| 11160 | echo "$as_me:$LINENO: result: no" >&5 |
| 11161 | echo "${ECHO_T}no" >&6 |
| 11162 | fi |
| 11163 | |
| 11164 | fi |
| 11165 | if test -z "$ac_cv_prog_RANLIB"; then |
| 11166 | ac_ct_RANLIB=$RANLIB |
| 11167 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11168 | set dummy ranlib; ac_word=$2 |
| 11169 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11171 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11173 | else |
| 11174 | if test -n "$ac_ct_RANLIB"; then |
| 11175 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 11176 | else |
| 11177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11178 | for as_dir in $PATH |
| 11179 | do |
| 11180 | IFS=$as_save_IFS |
| 11181 | test -z "$as_dir" && as_dir=. |
| 11182 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11184 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11186 | break 2 |
| 11187 | fi |
| 11188 | done |
| 11189 | done |
| 11190 | |
| 11191 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 11192 | fi |
| 11193 | fi |
| 11194 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11195 | if test -n "$ac_ct_RANLIB"; then |
| 11196 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11197 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 11198 | else |
| 11199 | echo "$as_me:$LINENO: result: no" >&5 |
| 11200 | echo "${ECHO_T}no" >&6 |
| 11201 | fi |
| 11202 | |
| 11203 | RANLIB=$ac_ct_RANLIB |
| 11204 | else |
| 11205 | RANLIB="$ac_cv_prog_RANLIB" |
| 11206 | fi |
| 11207 | |
| 11208 | # Find a good install program. We prefer a C program (faster), |
| 11209 | # so one script is as good as another. But avoid the broken or |
| 11210 | # incompatible versions: |
| 11211 | # SysV /etc/install, /usr/sbin/install |
| 11212 | # SunOS /usr/etc/install |
| 11213 | # IRIX /sbin/install |
| 11214 | # AIX /bin/install |
| 11215 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 11216 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 11217 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 11218 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 11219 | # OS/2's system install, which has a completely different semantic |
| 11220 | # ./install, which can be erroneously created by make from ./install.sh. |
| 11221 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 11222 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 11223 | if test -z "$INSTALL"; then |
| 11224 | if test "${ac_cv_path_install+set}" = set; then |
| 11225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11226 | else |
| 11227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11228 | for as_dir in $PATH |
| 11229 | do |
| 11230 | IFS=$as_save_IFS |
| 11231 | test -z "$as_dir" && as_dir=. |
| 11232 | # Account for people who put trailing slashes in PATH elements. |
| 11233 | case $as_dir/ in |
| 11234 | ./ | .// | /cC/* | \ |
| 11235 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 11236 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 11237 | /usr/ucb/* ) ;; |
| 11238 | *) |
| 11239 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 11240 | # Don't use installbsd from OSF since it installs stuff as root |
| 11241 | # by default. |
| 11242 | for ac_prog in ginstall scoinst install; do |
| 11243 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11244 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 11245 | if test $ac_prog = install && |
| 11246 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 11247 | # AIX install. It has an incompatible calling convention. |
| 11248 | : |
| 11249 | elif test $ac_prog = install && |
| 11250 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 11251 | # program-specific install script used by HP pwplus--don't use. |
| 11252 | : |
| 11253 | else |
| 11254 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 11255 | break 3 |
| 11256 | fi |
| 11257 | fi |
| 11258 | done |
| 11259 | done |
| 11260 | ;; |
| 11261 | esac |
| 11262 | done |
| 11263 | |
| 11264 | |
| 11265 | fi |
| 11266 | if test "${ac_cv_path_install+set}" = set; then |
| 11267 | INSTALL=$ac_cv_path_install |
| 11268 | else |
| 11269 | # As a last resort, use the slow shell script. We don't cache a |
| 11270 | # path for INSTALL within a source directory, because that will |
| 11271 | # break other packages using the cache if that directory is |
| 11272 | # removed, or if the path is relative. |
| 11273 | INSTALL=$ac_install_sh |
| 11274 | fi |
| 11275 | fi |
| 11276 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 11277 | echo "${ECHO_T}$INSTALL" >&6 |
| 11278 | |
| 11279 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 11280 | # It thinks the first close brace ends the variable substitution. |
| 11281 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 11282 | |
| 11283 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 11284 | |
| 11285 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 11286 | |
| 11287 | |
| 11288 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
| 11289 | if test -z "$CC_FOR_BUILD"; then |
| 11290 | if test "x$cross_compiling" = "xno"; then |
| 11291 | CC_FOR_BUILD='$(CC)' |
| 11292 | else |
| 11293 | CC_FOR_BUILD=gcc |
| 11294 | fi |
| 11295 | fi |
| 11296 | |
| 11297 | # Also set EXEEXT_FOR_BUILD. |
| 11298 | if test "x$cross_compiling" = "xno"; then |
| 11299 | EXEEXT_FOR_BUILD='$(EXEEXT)' |
| 11300 | else |
| 11301 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 |
| 11302 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 |
| 11303 | if test "${bfd_cv_build_exeext+set}" = set; then |
| 11304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11305 | else |
| 11306 | rm -f conftest* |
| 11307 | echo 'int main () { return 0; }' > conftest.c |
| 11308 | bfd_cv_build_exeext= |
| 11309 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 |
| 11310 | for file in conftest.*; do |
| 11311 | case $file in |
| 11312 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; |
| 11313 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 11314 | esac |
| 11315 | done |
| 11316 | rm -f conftest* |
| 11317 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no |
| 11318 | fi |
| 11319 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 |
| 11320 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 |
| 11321 | EXEEXT_FOR_BUILD="" |
| 11322 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} |
| 11323 | fi |
| 11324 | |
| 11325 | |
| 11326 | DEMANGLER_NAME=c++filt |
| 11327 | case "${host}" in |
| 11328 | *-*-go32* | *-*-msdos*) |
| 11329 | DEMANGLER_NAME=cxxfilt |
| 11330 | esac |
| 11331 | |
| 11332 | |
| 11333 | |
| 11334 | |
| 11335 | |
| 11336 | |
| 11337 | |
| 11338 | |
| 11339 | |
| 11340 | |
| 11341 | for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h |
| 11342 | do |
| 11343 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11344 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11345 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11346 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11347 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11349 | fi |
| 11350 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11351 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11352 | else |
| 11353 | # Is the header compilable? |
| 11354 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11355 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11356 | cat >conftest.$ac_ext <<_ACEOF |
| 11357 | /* confdefs.h. */ |
| 11358 | _ACEOF |
| 11359 | cat confdefs.h >>conftest.$ac_ext |
| 11360 | cat >>conftest.$ac_ext <<_ACEOF |
| 11361 | /* end confdefs.h. */ |
| 11362 | $ac_includes_default |
| 11363 | #include <$ac_header> |
| 11364 | _ACEOF |
| 11365 | rm -f conftest.$ac_objext |
| 11366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11367 | (eval $ac_compile) 2>conftest.er1 |
| 11368 | ac_status=$? |
| 11369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11370 | rm -f conftest.er1 |
| 11371 | cat conftest.err >&5 |
| 11372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11373 | (exit $ac_status); } && |
| 11374 | { ac_try='test -z "$ac_c_werror_flag" |
| 11375 | || test ! -s conftest.err' |
| 11376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11377 | (eval $ac_try) 2>&5 |
| 11378 | ac_status=$? |
| 11379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11380 | (exit $ac_status); }; } && |
| 11381 | { ac_try='test -s conftest.$ac_objext' |
| 11382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11383 | (eval $ac_try) 2>&5 |
| 11384 | ac_status=$? |
| 11385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11386 | (exit $ac_status); }; }; then |
| 11387 | ac_header_compiler=yes |
| 11388 | else |
| 11389 | echo "$as_me: failed program was:" >&5 |
| 11390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11391 | |
| 11392 | ac_header_compiler=no |
| 11393 | fi |
| 11394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11395 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11396 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11397 | |
| 11398 | # Is the header present? |
| 11399 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11400 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11401 | cat >conftest.$ac_ext <<_ACEOF |
| 11402 | /* confdefs.h. */ |
| 11403 | _ACEOF |
| 11404 | cat confdefs.h >>conftest.$ac_ext |
| 11405 | cat >>conftest.$ac_ext <<_ACEOF |
| 11406 | /* end confdefs.h. */ |
| 11407 | #include <$ac_header> |
| 11408 | _ACEOF |
| 11409 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11410 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11411 | ac_status=$? |
| 11412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11413 | rm -f conftest.er1 |
| 11414 | cat conftest.err >&5 |
| 11415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11416 | (exit $ac_status); } >/dev/null; then |
| 11417 | if test -s conftest.err; then |
| 11418 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11419 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11420 | else |
| 11421 | ac_cpp_err= |
| 11422 | fi |
| 11423 | else |
| 11424 | ac_cpp_err=yes |
| 11425 | fi |
| 11426 | if test -z "$ac_cpp_err"; then |
| 11427 | ac_header_preproc=yes |
| 11428 | else |
| 11429 | echo "$as_me: failed program was:" >&5 |
| 11430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11431 | |
| 11432 | ac_header_preproc=no |
| 11433 | fi |
| 11434 | rm -f conftest.err conftest.$ac_ext |
| 11435 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11436 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11437 | |
| 11438 | # So? What about this header? |
| 11439 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11440 | yes:no: ) |
| 11441 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11442 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11444 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11445 | ac_header_preproc=yes |
| 11446 | ;; |
| 11447 | no:yes:* ) |
| 11448 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11449 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11450 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11451 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11452 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11453 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11454 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11455 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11456 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11457 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11458 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11459 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11460 | ( |
| 11461 | cat <<\_ASBOX |
| 11462 | ## ------------------------------------------ ## |
| 11463 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 11464 | ## ------------------------------------------ ## |
| 11465 | _ASBOX |
| 11466 | ) | |
| 11467 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11468 | ;; |
| 11469 | esac |
| 11470 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11471 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11472 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11474 | else |
| 11475 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11476 | fi |
| 11477 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11478 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11479 | |
| 11480 | fi |
| 11481 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11482 | cat >>confdefs.h <<_ACEOF |
| 11483 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11484 | _ACEOF |
| 11485 | |
| 11486 | fi |
| 11487 | |
| 11488 | done |
| 11489 | |
| 11490 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 11491 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 11492 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 11493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11494 | else |
| 11495 | cat >conftest.$ac_ext <<_ACEOF |
| 11496 | /* confdefs.h. */ |
| 11497 | _ACEOF |
| 11498 | cat confdefs.h >>conftest.$ac_ext |
| 11499 | cat >>conftest.$ac_ext <<_ACEOF |
| 11500 | /* end confdefs.h. */ |
| 11501 | #include <sys/types.h> |
| 11502 | #include <sys/wait.h> |
| 11503 | #ifndef WEXITSTATUS |
| 11504 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 11505 | #endif |
| 11506 | #ifndef WIFEXITED |
| 11507 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 11508 | #endif |
| 11509 | |
| 11510 | int |
| 11511 | main () |
| 11512 | { |
| 11513 | int s; |
| 11514 | wait (&s); |
| 11515 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 11516 | ; |
| 11517 | return 0; |
| 11518 | } |
| 11519 | _ACEOF |
| 11520 | rm -f conftest.$ac_objext |
| 11521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11522 | (eval $ac_compile) 2>conftest.er1 |
| 11523 | ac_status=$? |
| 11524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11525 | rm -f conftest.er1 |
| 11526 | cat conftest.err >&5 |
| 11527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11528 | (exit $ac_status); } && |
| 11529 | { ac_try='test -z "$ac_c_werror_flag" |
| 11530 | || test ! -s conftest.err' |
| 11531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11532 | (eval $ac_try) 2>&5 |
| 11533 | ac_status=$? |
| 11534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11535 | (exit $ac_status); }; } && |
| 11536 | { ac_try='test -s conftest.$ac_objext' |
| 11537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11538 | (eval $ac_try) 2>&5 |
| 11539 | ac_status=$? |
| 11540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11541 | (exit $ac_status); }; }; then |
| 11542 | ac_cv_header_sys_wait_h=yes |
| 11543 | else |
| 11544 | echo "$as_me: failed program was:" >&5 |
| 11545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11546 | |
| 11547 | ac_cv_header_sys_wait_h=no |
| 11548 | fi |
| 11549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11550 | fi |
| 11551 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 11552 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 11553 | if test $ac_cv_header_sys_wait_h = yes; then |
| 11554 | |
| 11555 | cat >>confdefs.h <<\_ACEOF |
| 11556 | #define HAVE_SYS_WAIT_H 1 |
| 11557 | _ACEOF |
| 11558 | |
| 11559 | fi |
| 11560 | |
| 11561 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 11562 | # for constant arguments. Useless! |
| 11563 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 11564 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 11565 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 11566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11567 | else |
| 11568 | cat >conftest.$ac_ext <<_ACEOF |
| 11569 | /* confdefs.h. */ |
| 11570 | _ACEOF |
| 11571 | cat confdefs.h >>conftest.$ac_ext |
| 11572 | cat >>conftest.$ac_ext <<_ACEOF |
| 11573 | /* end confdefs.h. */ |
| 11574 | #include <alloca.h> |
| 11575 | int |
| 11576 | main () |
| 11577 | { |
| 11578 | char *p = (char *) alloca (2 * sizeof (int)); |
| 11579 | ; |
| 11580 | return 0; |
| 11581 | } |
| 11582 | _ACEOF |
| 11583 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11585 | (eval $ac_link) 2>conftest.er1 |
| 11586 | ac_status=$? |
| 11587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11588 | rm -f conftest.er1 |
| 11589 | cat conftest.err >&5 |
| 11590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11591 | (exit $ac_status); } && |
| 11592 | { ac_try='test -z "$ac_c_werror_flag" |
| 11593 | || test ! -s conftest.err' |
| 11594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11595 | (eval $ac_try) 2>&5 |
| 11596 | ac_status=$? |
| 11597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11598 | (exit $ac_status); }; } && |
| 11599 | { ac_try='test -s conftest$ac_exeext' |
| 11600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11601 | (eval $ac_try) 2>&5 |
| 11602 | ac_status=$? |
| 11603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11604 | (exit $ac_status); }; }; then |
| 11605 | ac_cv_working_alloca_h=yes |
| 11606 | else |
| 11607 | echo "$as_me: failed program was:" >&5 |
| 11608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11609 | |
| 11610 | ac_cv_working_alloca_h=no |
| 11611 | fi |
| 11612 | rm -f conftest.err conftest.$ac_objext \ |
| 11613 | conftest$ac_exeext conftest.$ac_ext |
| 11614 | fi |
| 11615 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 11616 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 11617 | if test $ac_cv_working_alloca_h = yes; then |
| 11618 | |
| 11619 | cat >>confdefs.h <<\_ACEOF |
| 11620 | #define HAVE_ALLOCA_H 1 |
| 11621 | _ACEOF |
| 11622 | |
| 11623 | fi |
| 11624 | |
| 11625 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 11626 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 11627 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 11628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11629 | else |
| 11630 | cat >conftest.$ac_ext <<_ACEOF |
| 11631 | /* confdefs.h. */ |
| 11632 | _ACEOF |
| 11633 | cat confdefs.h >>conftest.$ac_ext |
| 11634 | cat >>conftest.$ac_ext <<_ACEOF |
| 11635 | /* end confdefs.h. */ |
| 11636 | #ifdef __GNUC__ |
| 11637 | # define alloca __builtin_alloca |
| 11638 | #else |
| 11639 | # ifdef _MSC_VER |
| 11640 | # include <malloc.h> |
| 11641 | # define alloca _alloca |
| 11642 | # else |
| 11643 | # if HAVE_ALLOCA_H |
| 11644 | # include <alloca.h> |
| 11645 | # else |
| 11646 | # ifdef _AIX |
| 11647 | #pragma alloca |
| 11648 | # else |
| 11649 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 11650 | char *alloca (); |
| 11651 | # endif |
| 11652 | # endif |
| 11653 | # endif |
| 11654 | # endif |
| 11655 | #endif |
| 11656 | |
| 11657 | int |
| 11658 | main () |
| 11659 | { |
| 11660 | char *p = (char *) alloca (1); |
| 11661 | ; |
| 11662 | return 0; |
| 11663 | } |
| 11664 | _ACEOF |
| 11665 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11667 | (eval $ac_link) 2>conftest.er1 |
| 11668 | ac_status=$? |
| 11669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11670 | rm -f conftest.er1 |
| 11671 | cat conftest.err >&5 |
| 11672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11673 | (exit $ac_status); } && |
| 11674 | { ac_try='test -z "$ac_c_werror_flag" |
| 11675 | || test ! -s conftest.err' |
| 11676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11677 | (eval $ac_try) 2>&5 |
| 11678 | ac_status=$? |
| 11679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11680 | (exit $ac_status); }; } && |
| 11681 | { ac_try='test -s conftest$ac_exeext' |
| 11682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11683 | (eval $ac_try) 2>&5 |
| 11684 | ac_status=$? |
| 11685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11686 | (exit $ac_status); }; }; then |
| 11687 | ac_cv_func_alloca_works=yes |
| 11688 | else |
| 11689 | echo "$as_me: failed program was:" >&5 |
| 11690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11691 | |
| 11692 | ac_cv_func_alloca_works=no |
| 11693 | fi |
| 11694 | rm -f conftest.err conftest.$ac_objext \ |
| 11695 | conftest$ac_exeext conftest.$ac_ext |
| 11696 | fi |
| 11697 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 11698 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 11699 | |
| 11700 | if test $ac_cv_func_alloca_works = yes; then |
| 11701 | |
| 11702 | cat >>confdefs.h <<\_ACEOF |
| 11703 | #define HAVE_ALLOCA 1 |
| 11704 | _ACEOF |
| 11705 | |
| 11706 | else |
| 11707 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 11708 | # that cause trouble. Some versions do not even contain alloca or |
| 11709 | # contain a buggy version. If you still want to use their alloca, |
| 11710 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 11711 | |
| 11712 | ALLOCA=alloca.$ac_objext |
| 11713 | |
| 11714 | cat >>confdefs.h <<\_ACEOF |
| 11715 | #define C_ALLOCA 1 |
| 11716 | _ACEOF |
| 11717 | |
| 11718 | |
| 11719 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 11720 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 11721 | if test "${ac_cv_os_cray+set}" = set; then |
| 11722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11723 | else |
| 11724 | cat >conftest.$ac_ext <<_ACEOF |
| 11725 | /* confdefs.h. */ |
| 11726 | _ACEOF |
| 11727 | cat confdefs.h >>conftest.$ac_ext |
| 11728 | cat >>conftest.$ac_ext <<_ACEOF |
| 11729 | /* end confdefs.h. */ |
| 11730 | #if defined(CRAY) && ! defined(CRAY2) |
| 11731 | webecray |
| 11732 | #else |
| 11733 | wenotbecray |
| 11734 | #endif |
| 11735 | |
| 11736 | _ACEOF |
| 11737 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11738 | $EGREP "webecray" >/dev/null 2>&1; then |
| 11739 | ac_cv_os_cray=yes |
| 11740 | else |
| 11741 | ac_cv_os_cray=no |
| 11742 | fi |
| 11743 | rm -f conftest* |
| 11744 | |
| 11745 | fi |
| 11746 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 11747 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 11748 | if test $ac_cv_os_cray = yes; then |
| 11749 | for ac_func in _getb67 GETB67 getb67; do |
| 11750 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11751 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11752 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11753 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11755 | else |
| 11756 | cat >conftest.$ac_ext <<_ACEOF |
| 11757 | /* confdefs.h. */ |
| 11758 | _ACEOF |
| 11759 | cat confdefs.h >>conftest.$ac_ext |
| 11760 | cat >>conftest.$ac_ext <<_ACEOF |
| 11761 | /* end confdefs.h. */ |
| 11762 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11763 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11764 | #define $ac_func innocuous_$ac_func |
| 11765 | |
| 11766 | /* System header to define __stub macros and hopefully few prototypes, |
| 11767 | which can conflict with char $ac_func (); below. |
| 11768 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11769 | <limits.h> exists even on freestanding compilers. */ |
| 11770 | |
| 11771 | #ifdef __STDC__ |
| 11772 | # include <limits.h> |
| 11773 | #else |
| 11774 | # include <assert.h> |
| 11775 | #endif |
| 11776 | |
| 11777 | #undef $ac_func |
| 11778 | |
| 11779 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11780 | #ifdef __cplusplus |
| 11781 | extern "C" |
| 11782 | { |
| 11783 | #endif |
| 11784 | /* We use char because int might match the return type of a gcc2 |
| 11785 | builtin and then its argument prototype would still apply. */ |
| 11786 | char $ac_func (); |
| 11787 | /* The GNU C library defines this for functions which it implements |
| 11788 | to always fail with ENOSYS. Some functions are actually named |
| 11789 | something starting with __ and the normal name is an alias. */ |
| 11790 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11791 | choke me |
| 11792 | #else |
| 11793 | char (*f) () = $ac_func; |
| 11794 | #endif |
| 11795 | #ifdef __cplusplus |
| 11796 | } |
| 11797 | #endif |
| 11798 | |
| 11799 | int |
| 11800 | main () |
| 11801 | { |
| 11802 | return f != $ac_func; |
| 11803 | ; |
| 11804 | return 0; |
| 11805 | } |
| 11806 | _ACEOF |
| 11807 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11809 | (eval $ac_link) 2>conftest.er1 |
| 11810 | ac_status=$? |
| 11811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11812 | rm -f conftest.er1 |
| 11813 | cat conftest.err >&5 |
| 11814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11815 | (exit $ac_status); } && |
| 11816 | { ac_try='test -z "$ac_c_werror_flag" |
| 11817 | || test ! -s conftest.err' |
| 11818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11819 | (eval $ac_try) 2>&5 |
| 11820 | ac_status=$? |
| 11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11822 | (exit $ac_status); }; } && |
| 11823 | { ac_try='test -s conftest$ac_exeext' |
| 11824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11825 | (eval $ac_try) 2>&5 |
| 11826 | ac_status=$? |
| 11827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11828 | (exit $ac_status); }; }; then |
| 11829 | eval "$as_ac_var=yes" |
| 11830 | else |
| 11831 | echo "$as_me: failed program was:" >&5 |
| 11832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11833 | |
| 11834 | eval "$as_ac_var=no" |
| 11835 | fi |
| 11836 | rm -f conftest.err conftest.$ac_objext \ |
| 11837 | conftest$ac_exeext conftest.$ac_ext |
| 11838 | fi |
| 11839 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11840 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11841 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11842 | |
| 11843 | cat >>confdefs.h <<_ACEOF |
| 11844 | #define CRAY_STACKSEG_END $ac_func |
| 11845 | _ACEOF |
| 11846 | |
| 11847 | break |
| 11848 | fi |
| 11849 | |
| 11850 | done |
| 11851 | fi |
| 11852 | |
| 11853 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 11854 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 11855 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 11856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11857 | else |
| 11858 | if test "$cross_compiling" = yes; then |
| 11859 | ac_cv_c_stack_direction=0 |
| 11860 | else |
| 11861 | cat >conftest.$ac_ext <<_ACEOF |
| 11862 | /* confdefs.h. */ |
| 11863 | _ACEOF |
| 11864 | cat confdefs.h >>conftest.$ac_ext |
| 11865 | cat >>conftest.$ac_ext <<_ACEOF |
| 11866 | /* end confdefs.h. */ |
| 11867 | int |
| 11868 | find_stack_direction () |
| 11869 | { |
| 11870 | static char *addr = 0; |
| 11871 | auto char dummy; |
| 11872 | if (addr == 0) |
| 11873 | { |
| 11874 | addr = &dummy; |
| 11875 | return find_stack_direction (); |
| 11876 | } |
| 11877 | else |
| 11878 | return (&dummy > addr) ? 1 : -1; |
| 11879 | } |
| 11880 | |
| 11881 | int |
| 11882 | main () |
| 11883 | { |
| 11884 | exit (find_stack_direction () < 0); |
| 11885 | } |
| 11886 | _ACEOF |
| 11887 | rm -f conftest$ac_exeext |
| 11888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11889 | (eval $ac_link) 2>&5 |
| 11890 | ac_status=$? |
| 11891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11892 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11894 | (eval $ac_try) 2>&5 |
| 11895 | ac_status=$? |
| 11896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11897 | (exit $ac_status); }; }; then |
| 11898 | ac_cv_c_stack_direction=1 |
| 11899 | else |
| 11900 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11901 | echo "$as_me: failed program was:" >&5 |
| 11902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11903 | |
| 11904 | ( exit $ac_status ) |
| 11905 | ac_cv_c_stack_direction=-1 |
| 11906 | fi |
| 11907 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11908 | fi |
| 11909 | fi |
| 11910 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 11911 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 11912 | |
| 11913 | cat >>confdefs.h <<_ACEOF |
| 11914 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 11915 | _ACEOF |
| 11916 | |
| 11917 | |
| 11918 | fi |
| 11919 | |
| 11920 | |
| 11921 | |
| 11922 | |
| 11923 | |
| 11924 | |
| 11925 | for ac_func in sbrk utimes setmode getc_unlocked strcoll |
| 11926 | do |
| 11927 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11928 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11929 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11930 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11932 | else |
| 11933 | cat >conftest.$ac_ext <<_ACEOF |
| 11934 | /* confdefs.h. */ |
| 11935 | _ACEOF |
| 11936 | cat confdefs.h >>conftest.$ac_ext |
| 11937 | cat >>conftest.$ac_ext <<_ACEOF |
| 11938 | /* end confdefs.h. */ |
| 11939 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11940 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11941 | #define $ac_func innocuous_$ac_func |
| 11942 | |
| 11943 | /* System header to define __stub macros and hopefully few prototypes, |
| 11944 | which can conflict with char $ac_func (); below. |
| 11945 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11946 | <limits.h> exists even on freestanding compilers. */ |
| 11947 | |
| 11948 | #ifdef __STDC__ |
| 11949 | # include <limits.h> |
| 11950 | #else |
| 11951 | # include <assert.h> |
| 11952 | #endif |
| 11953 | |
| 11954 | #undef $ac_func |
| 11955 | |
| 11956 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11957 | #ifdef __cplusplus |
| 11958 | extern "C" |
| 11959 | { |
| 11960 | #endif |
| 11961 | /* We use char because int might match the return type of a gcc2 |
| 11962 | builtin and then its argument prototype would still apply. */ |
| 11963 | char $ac_func (); |
| 11964 | /* The GNU C library defines this for functions which it implements |
| 11965 | to always fail with ENOSYS. Some functions are actually named |
| 11966 | something starting with __ and the normal name is an alias. */ |
| 11967 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11968 | choke me |
| 11969 | #else |
| 11970 | char (*f) () = $ac_func; |
| 11971 | #endif |
| 11972 | #ifdef __cplusplus |
| 11973 | } |
| 11974 | #endif |
| 11975 | |
| 11976 | int |
| 11977 | main () |
| 11978 | { |
| 11979 | return f != $ac_func; |
| 11980 | ; |
| 11981 | return 0; |
| 11982 | } |
| 11983 | _ACEOF |
| 11984 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11986 | (eval $ac_link) 2>conftest.er1 |
| 11987 | ac_status=$? |
| 11988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11989 | rm -f conftest.er1 |
| 11990 | cat conftest.err >&5 |
| 11991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11992 | (exit $ac_status); } && |
| 11993 | { ac_try='test -z "$ac_c_werror_flag" |
| 11994 | || test ! -s conftest.err' |
| 11995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11996 | (eval $ac_try) 2>&5 |
| 11997 | ac_status=$? |
| 11998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11999 | (exit $ac_status); }; } && |
| 12000 | { ac_try='test -s conftest$ac_exeext' |
| 12001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12002 | (eval $ac_try) 2>&5 |
| 12003 | ac_status=$? |
| 12004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12005 | (exit $ac_status); }; }; then |
| 12006 | eval "$as_ac_var=yes" |
| 12007 | else |
| 12008 | echo "$as_me: failed program was:" >&5 |
| 12009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12010 | |
| 12011 | eval "$as_ac_var=no" |
| 12012 | fi |
| 12013 | rm -f conftest.err conftest.$ac_objext \ |
| 12014 | conftest$ac_exeext conftest.$ac_ext |
| 12015 | fi |
| 12016 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12017 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12018 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12019 | cat >>confdefs.h <<_ACEOF |
| 12020 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12021 | _ACEOF |
| 12022 | |
| 12023 | fi |
| 12024 | done |
| 12025 | |
| 12026 | echo "$as_me:$LINENO: checking for mkstemp" >&5 |
| 12027 | echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 |
| 12028 | if test "${ac_cv_func_mkstemp+set}" = set; then |
| 12029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12030 | else |
| 12031 | cat >conftest.$ac_ext <<_ACEOF |
| 12032 | /* confdefs.h. */ |
| 12033 | _ACEOF |
| 12034 | cat confdefs.h >>conftest.$ac_ext |
| 12035 | cat >>conftest.$ac_ext <<_ACEOF |
| 12036 | /* end confdefs.h. */ |
| 12037 | /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp. |
| 12038 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12039 | #define mkstemp innocuous_mkstemp |
| 12040 | |
| 12041 | /* System header to define __stub macros and hopefully few prototypes, |
| 12042 | which can conflict with char mkstemp (); below. |
| 12043 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12044 | <limits.h> exists even on freestanding compilers. */ |
| 12045 | |
| 12046 | #ifdef __STDC__ |
| 12047 | # include <limits.h> |
| 12048 | #else |
| 12049 | # include <assert.h> |
| 12050 | #endif |
| 12051 | |
| 12052 | #undef mkstemp |
| 12053 | |
| 12054 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12055 | #ifdef __cplusplus |
| 12056 | extern "C" |
| 12057 | { |
| 12058 | #endif |
| 12059 | /* We use char because int might match the return type of a gcc2 |
| 12060 | builtin and then its argument prototype would still apply. */ |
| 12061 | char mkstemp (); |
| 12062 | /* The GNU C library defines this for functions which it implements |
| 12063 | to always fail with ENOSYS. Some functions are actually named |
| 12064 | something starting with __ and the normal name is an alias. */ |
| 12065 | #if defined (__stub_mkstemp) || defined (__stub___mkstemp) |
| 12066 | choke me |
| 12067 | #else |
| 12068 | char (*f) () = mkstemp; |
| 12069 | #endif |
| 12070 | #ifdef __cplusplus |
| 12071 | } |
| 12072 | #endif |
| 12073 | |
| 12074 | int |
| 12075 | main () |
| 12076 | { |
| 12077 | return f != mkstemp; |
| 12078 | ; |
| 12079 | return 0; |
| 12080 | } |
| 12081 | _ACEOF |
| 12082 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12084 | (eval $ac_link) 2>conftest.er1 |
| 12085 | ac_status=$? |
| 12086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12087 | rm -f conftest.er1 |
| 12088 | cat conftest.err >&5 |
| 12089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12090 | (exit $ac_status); } && |
| 12091 | { ac_try='test -z "$ac_c_werror_flag" |
| 12092 | || test ! -s conftest.err' |
| 12093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12094 | (eval $ac_try) 2>&5 |
| 12095 | ac_status=$? |
| 12096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12097 | (exit $ac_status); }; } && |
| 12098 | { ac_try='test -s conftest$ac_exeext' |
| 12099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12100 | (eval $ac_try) 2>&5 |
| 12101 | ac_status=$? |
| 12102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12103 | (exit $ac_status); }; }; then |
| 12104 | ac_cv_func_mkstemp=yes |
| 12105 | else |
| 12106 | echo "$as_me: failed program was:" >&5 |
| 12107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12108 | |
| 12109 | ac_cv_func_mkstemp=no |
| 12110 | fi |
| 12111 | rm -f conftest.err conftest.$ac_objext \ |
| 12112 | conftest$ac_exeext conftest.$ac_ext |
| 12113 | fi |
| 12114 | echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5 |
| 12115 | echo "${ECHO_T}$ac_cv_func_mkstemp" >&6 |
| 12116 | if test $ac_cv_func_mkstemp = yes; then |
| 12117 | |
| 12118 | cat >>confdefs.h <<\_ACEOF |
| 12119 | #define HAVE_MKSTEMP 1 |
| 12120 | _ACEOF |
| 12121 | |
| 12122 | fi |
| 12123 | |
| 12124 | echo "$as_me:$LINENO: checking for mkdtemp" >&5 |
| 12125 | echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6 |
| 12126 | if test "${ac_cv_func_mkdtemp+set}" = set; then |
| 12127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12128 | else |
| 12129 | cat >conftest.$ac_ext <<_ACEOF |
| 12130 | /* confdefs.h. */ |
| 12131 | _ACEOF |
| 12132 | cat confdefs.h >>conftest.$ac_ext |
| 12133 | cat >>conftest.$ac_ext <<_ACEOF |
| 12134 | /* end confdefs.h. */ |
| 12135 | /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp. |
| 12136 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12137 | #define mkdtemp innocuous_mkdtemp |
| 12138 | |
| 12139 | /* System header to define __stub macros and hopefully few prototypes, |
| 12140 | which can conflict with char mkdtemp (); below. |
| 12141 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12142 | <limits.h> exists even on freestanding compilers. */ |
| 12143 | |
| 12144 | #ifdef __STDC__ |
| 12145 | # include <limits.h> |
| 12146 | #else |
| 12147 | # include <assert.h> |
| 12148 | #endif |
| 12149 | |
| 12150 | #undef mkdtemp |
| 12151 | |
| 12152 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12153 | #ifdef __cplusplus |
| 12154 | extern "C" |
| 12155 | { |
| 12156 | #endif |
| 12157 | /* We use char because int might match the return type of a gcc2 |
| 12158 | builtin and then its argument prototype would still apply. */ |
| 12159 | char mkdtemp (); |
| 12160 | /* The GNU C library defines this for functions which it implements |
| 12161 | to always fail with ENOSYS. Some functions are actually named |
| 12162 | something starting with __ and the normal name is an alias. */ |
| 12163 | #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp) |
| 12164 | choke me |
| 12165 | #else |
| 12166 | char (*f) () = mkdtemp; |
| 12167 | #endif |
| 12168 | #ifdef __cplusplus |
| 12169 | } |
| 12170 | #endif |
| 12171 | |
| 12172 | int |
| 12173 | main () |
| 12174 | { |
| 12175 | return f != mkdtemp; |
| 12176 | ; |
| 12177 | return 0; |
| 12178 | } |
| 12179 | _ACEOF |
| 12180 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12182 | (eval $ac_link) 2>conftest.er1 |
| 12183 | ac_status=$? |
| 12184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12185 | rm -f conftest.er1 |
| 12186 | cat conftest.err >&5 |
| 12187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12188 | (exit $ac_status); } && |
| 12189 | { ac_try='test -z "$ac_c_werror_flag" |
| 12190 | || test ! -s conftest.err' |
| 12191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12192 | (eval $ac_try) 2>&5 |
| 12193 | ac_status=$? |
| 12194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12195 | (exit $ac_status); }; } && |
| 12196 | { ac_try='test -s conftest$ac_exeext' |
| 12197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12198 | (eval $ac_try) 2>&5 |
| 12199 | ac_status=$? |
| 12200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12201 | (exit $ac_status); }; }; then |
| 12202 | ac_cv_func_mkdtemp=yes |
| 12203 | else |
| 12204 | echo "$as_me: failed program was:" >&5 |
| 12205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12206 | |
| 12207 | ac_cv_func_mkdtemp=no |
| 12208 | fi |
| 12209 | rm -f conftest.err conftest.$ac_objext \ |
| 12210 | conftest$ac_exeext conftest.$ac_ext |
| 12211 | fi |
| 12212 | echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5 |
| 12213 | echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6 |
| 12214 | if test $ac_cv_func_mkdtemp = yes; then |
| 12215 | |
| 12216 | cat >>confdefs.h <<\_ACEOF |
| 12217 | #define HAVE_MKDTEMP 1 |
| 12218 | _ACEOF |
| 12219 | |
| 12220 | fi |
| 12221 | |
| 12222 | |
| 12223 | # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE |
| 12224 | # needs to be defined for it |
| 12225 | echo "$as_me:$LINENO: checking for fopen64" >&5 |
| 12226 | echo $ECHO_N "checking for fopen64... $ECHO_C" >&6 |
| 12227 | if test "${bu_cv_have_fopen64+set}" = set; then |
| 12228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12229 | else |
| 12230 | cat >conftest.$ac_ext <<_ACEOF |
| 12231 | /* confdefs.h. */ |
| 12232 | _ACEOF |
| 12233 | cat confdefs.h >>conftest.$ac_ext |
| 12234 | cat >>conftest.$ac_ext <<_ACEOF |
| 12235 | /* end confdefs.h. */ |
| 12236 | #include <stdio.h> |
| 12237 | int |
| 12238 | main () |
| 12239 | { |
| 12240 | FILE *f = fopen64 ("/tmp/foo","r"); |
| 12241 | ; |
| 12242 | return 0; |
| 12243 | } |
| 12244 | _ACEOF |
| 12245 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12247 | (eval $ac_link) 2>conftest.er1 |
| 12248 | ac_status=$? |
| 12249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12250 | rm -f conftest.er1 |
| 12251 | cat conftest.err >&5 |
| 12252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12253 | (exit $ac_status); } && |
| 12254 | { ac_try='test -z "$ac_c_werror_flag" |
| 12255 | || test ! -s conftest.err' |
| 12256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12257 | (eval $ac_try) 2>&5 |
| 12258 | ac_status=$? |
| 12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12260 | (exit $ac_status); }; } && |
| 12261 | { ac_try='test -s conftest$ac_exeext' |
| 12262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12263 | (eval $ac_try) 2>&5 |
| 12264 | ac_status=$? |
| 12265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12266 | (exit $ac_status); }; }; then |
| 12267 | bu_cv_have_fopen64=yes |
| 12268 | else |
| 12269 | echo "$as_me: failed program was:" >&5 |
| 12270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12271 | |
| 12272 | saved_CPPFLAGS=$CPPFLAGS |
| 12273 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
| 12274 | cat >conftest.$ac_ext <<_ACEOF |
| 12275 | /* confdefs.h. */ |
| 12276 | _ACEOF |
| 12277 | cat confdefs.h >>conftest.$ac_ext |
| 12278 | cat >>conftest.$ac_ext <<_ACEOF |
| 12279 | /* end confdefs.h. */ |
| 12280 | #include <stdio.h> |
| 12281 | int |
| 12282 | main () |
| 12283 | { |
| 12284 | FILE *f = fopen64 ("/tmp/foo","r"); |
| 12285 | ; |
| 12286 | return 0; |
| 12287 | } |
| 12288 | _ACEOF |
| 12289 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12291 | (eval $ac_link) 2>conftest.er1 |
| 12292 | ac_status=$? |
| 12293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12294 | rm -f conftest.er1 |
| 12295 | cat conftest.err >&5 |
| 12296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12297 | (exit $ac_status); } && |
| 12298 | { ac_try='test -z "$ac_c_werror_flag" |
| 12299 | || test ! -s conftest.err' |
| 12300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12301 | (eval $ac_try) 2>&5 |
| 12302 | ac_status=$? |
| 12303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12304 | (exit $ac_status); }; } && |
| 12305 | { ac_try='test -s conftest$ac_exeext' |
| 12306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12307 | (eval $ac_try) 2>&5 |
| 12308 | ac_status=$? |
| 12309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12310 | (exit $ac_status); }; }; then |
| 12311 | bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE" |
| 12312 | else |
| 12313 | echo "$as_me: failed program was:" >&5 |
| 12314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12315 | |
| 12316 | bu_cv_have_fopen64=no |
| 12317 | fi |
| 12318 | rm -f conftest.err conftest.$ac_objext \ |
| 12319 | conftest$ac_exeext conftest.$ac_ext |
| 12320 | CPPFLAGS=$saved_CPPFLAGS |
| 12321 | fi |
| 12322 | rm -f conftest.err conftest.$ac_objext \ |
| 12323 | conftest$ac_exeext conftest.$ac_ext |
| 12324 | fi |
| 12325 | |
| 12326 | echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5 |
| 12327 | echo "${ECHO_T}$bu_cv_have_fopen64" >&6 |
| 12328 | if test "$bu_cv_have_fopen64" != no; then |
| 12329 | |
| 12330 | cat >>confdefs.h <<\_ACEOF |
| 12331 | #define HAVE_FOPEN64 1 |
| 12332 | _ACEOF |
| 12333 | |
| 12334 | fi |
| 12335 | echo "$as_me:$LINENO: checking for stat64" >&5 |
| 12336 | echo $ECHO_N "checking for stat64... $ECHO_C" >&6 |
| 12337 | if test "${bu_cv_have_stat64+set}" = set; then |
| 12338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12339 | else |
| 12340 | cat >conftest.$ac_ext <<_ACEOF |
| 12341 | /* confdefs.h. */ |
| 12342 | _ACEOF |
| 12343 | cat confdefs.h >>conftest.$ac_ext |
| 12344 | cat >>conftest.$ac_ext <<_ACEOF |
| 12345 | /* end confdefs.h. */ |
| 12346 | #include <sys/stat.h> |
| 12347 | int |
| 12348 | main () |
| 12349 | { |
| 12350 | struct stat64 st; stat64 ("/tmp/foo", &st); |
| 12351 | ; |
| 12352 | return 0; |
| 12353 | } |
| 12354 | _ACEOF |
| 12355 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12357 | (eval $ac_link) 2>conftest.er1 |
| 12358 | ac_status=$? |
| 12359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12360 | rm -f conftest.er1 |
| 12361 | cat conftest.err >&5 |
| 12362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12363 | (exit $ac_status); } && |
| 12364 | { ac_try='test -z "$ac_c_werror_flag" |
| 12365 | || test ! -s conftest.err' |
| 12366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12367 | (eval $ac_try) 2>&5 |
| 12368 | ac_status=$? |
| 12369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12370 | (exit $ac_status); }; } && |
| 12371 | { ac_try='test -s conftest$ac_exeext' |
| 12372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12373 | (eval $ac_try) 2>&5 |
| 12374 | ac_status=$? |
| 12375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12376 | (exit $ac_status); }; }; then |
| 12377 | bu_cv_have_stat64=yes |
| 12378 | else |
| 12379 | echo "$as_me: failed program was:" >&5 |
| 12380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12381 | |
| 12382 | saved_CPPFLAGS=$CPPFLAGS |
| 12383 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
| 12384 | cat >conftest.$ac_ext <<_ACEOF |
| 12385 | /* confdefs.h. */ |
| 12386 | _ACEOF |
| 12387 | cat confdefs.h >>conftest.$ac_ext |
| 12388 | cat >>conftest.$ac_ext <<_ACEOF |
| 12389 | /* end confdefs.h. */ |
| 12390 | #include <sys/stat.h> |
| 12391 | int |
| 12392 | main () |
| 12393 | { |
| 12394 | struct stat64 st; stat64 ("/tmp/foo", &st); |
| 12395 | ; |
| 12396 | return 0; |
| 12397 | } |
| 12398 | _ACEOF |
| 12399 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12401 | (eval $ac_link) 2>conftest.er1 |
| 12402 | ac_status=$? |
| 12403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12404 | rm -f conftest.er1 |
| 12405 | cat conftest.err >&5 |
| 12406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12407 | (exit $ac_status); } && |
| 12408 | { ac_try='test -z "$ac_c_werror_flag" |
| 12409 | || test ! -s conftest.err' |
| 12410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12411 | (eval $ac_try) 2>&5 |
| 12412 | ac_status=$? |
| 12413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12414 | (exit $ac_status); }; } && |
| 12415 | { ac_try='test -s conftest$ac_exeext' |
| 12416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12417 | (eval $ac_try) 2>&5 |
| 12418 | ac_status=$? |
| 12419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12420 | (exit $ac_status); }; }; then |
| 12421 | bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE" |
| 12422 | else |
| 12423 | echo "$as_me: failed program was:" >&5 |
| 12424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12425 | |
| 12426 | bu_cv_have_stat64=no |
| 12427 | fi |
| 12428 | rm -f conftest.err conftest.$ac_objext \ |
| 12429 | conftest$ac_exeext conftest.$ac_ext |
| 12430 | CPPFLAGS=$saved_CPPFLAGS |
| 12431 | fi |
| 12432 | rm -f conftest.err conftest.$ac_objext \ |
| 12433 | conftest$ac_exeext conftest.$ac_ext |
| 12434 | fi |
| 12435 | |
| 12436 | echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5 |
| 12437 | echo "${ECHO_T}$bu_cv_have_stat64" >&6 |
| 12438 | if test "$bu_cv_have_stat64" != no; then |
| 12439 | |
| 12440 | cat >>confdefs.h <<\_ACEOF |
| 12441 | #define HAVE_STAT64 1 |
| 12442 | _ACEOF |
| 12443 | |
| 12444 | fi |
| 12445 | if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \ |
| 12446 | || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then |
| 12447 | |
| 12448 | cat >>confdefs.h <<\_ACEOF |
| 12449 | #define _LARGEFILE64_SOURCE 1 |
| 12450 | _ACEOF |
| 12451 | |
| 12452 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
| 12453 | fi |
| 12454 | |
| 12455 | # Some systems have frexp only in -lm, not in -lc. |
| 12456 | echo "$as_me:$LINENO: checking for library containing frexp" >&5 |
| 12457 | echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6 |
| 12458 | if test "${ac_cv_search_frexp+set}" = set; then |
| 12459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12460 | else |
| 12461 | ac_func_search_save_LIBS=$LIBS |
| 12462 | ac_cv_search_frexp=no |
| 12463 | cat >conftest.$ac_ext <<_ACEOF |
| 12464 | /* confdefs.h. */ |
| 12465 | _ACEOF |
| 12466 | cat confdefs.h >>conftest.$ac_ext |
| 12467 | cat >>conftest.$ac_ext <<_ACEOF |
| 12468 | /* end confdefs.h. */ |
| 12469 | |
| 12470 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12471 | #ifdef __cplusplus |
| 12472 | extern "C" |
| 12473 | #endif |
| 12474 | /* We use char because int might match the return type of a gcc2 |
| 12475 | builtin and then its argument prototype would still apply. */ |
| 12476 | char frexp (); |
| 12477 | int |
| 12478 | main () |
| 12479 | { |
| 12480 | frexp (); |
| 12481 | ; |
| 12482 | return 0; |
| 12483 | } |
| 12484 | _ACEOF |
| 12485 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12487 | (eval $ac_link) 2>conftest.er1 |
| 12488 | ac_status=$? |
| 12489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12490 | rm -f conftest.er1 |
| 12491 | cat conftest.err >&5 |
| 12492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12493 | (exit $ac_status); } && |
| 12494 | { ac_try='test -z "$ac_c_werror_flag" |
| 12495 | || test ! -s conftest.err' |
| 12496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12497 | (eval $ac_try) 2>&5 |
| 12498 | ac_status=$? |
| 12499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12500 | (exit $ac_status); }; } && |
| 12501 | { ac_try='test -s conftest$ac_exeext' |
| 12502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12503 | (eval $ac_try) 2>&5 |
| 12504 | ac_status=$? |
| 12505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12506 | (exit $ac_status); }; }; then |
| 12507 | ac_cv_search_frexp="none required" |
| 12508 | else |
| 12509 | echo "$as_me: failed program was:" >&5 |
| 12510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12511 | |
| 12512 | fi |
| 12513 | rm -f conftest.err conftest.$ac_objext \ |
| 12514 | conftest$ac_exeext conftest.$ac_ext |
| 12515 | if test "$ac_cv_search_frexp" = no; then |
| 12516 | for ac_lib in m; do |
| 12517 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12518 | cat >conftest.$ac_ext <<_ACEOF |
| 12519 | /* confdefs.h. */ |
| 12520 | _ACEOF |
| 12521 | cat confdefs.h >>conftest.$ac_ext |
| 12522 | cat >>conftest.$ac_ext <<_ACEOF |
| 12523 | /* end confdefs.h. */ |
| 12524 | |
| 12525 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12526 | #ifdef __cplusplus |
| 12527 | extern "C" |
| 12528 | #endif |
| 12529 | /* We use char because int might match the return type of a gcc2 |
| 12530 | builtin and then its argument prototype would still apply. */ |
| 12531 | char frexp (); |
| 12532 | int |
| 12533 | main () |
| 12534 | { |
| 12535 | frexp (); |
| 12536 | ; |
| 12537 | return 0; |
| 12538 | } |
| 12539 | _ACEOF |
| 12540 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12542 | (eval $ac_link) 2>conftest.er1 |
| 12543 | ac_status=$? |
| 12544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12545 | rm -f conftest.er1 |
| 12546 | cat conftest.err >&5 |
| 12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12548 | (exit $ac_status); } && |
| 12549 | { ac_try='test -z "$ac_c_werror_flag" |
| 12550 | || test ! -s conftest.err' |
| 12551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12552 | (eval $ac_try) 2>&5 |
| 12553 | ac_status=$? |
| 12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12555 | (exit $ac_status); }; } && |
| 12556 | { ac_try='test -s conftest$ac_exeext' |
| 12557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12558 | (eval $ac_try) 2>&5 |
| 12559 | ac_status=$? |
| 12560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12561 | (exit $ac_status); }; }; then |
| 12562 | ac_cv_search_frexp="-l$ac_lib" |
| 12563 | break |
| 12564 | else |
| 12565 | echo "$as_me: failed program was:" >&5 |
| 12566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12567 | |
| 12568 | fi |
| 12569 | rm -f conftest.err conftest.$ac_objext \ |
| 12570 | conftest$ac_exeext conftest.$ac_ext |
| 12571 | done |
| 12572 | fi |
| 12573 | LIBS=$ac_func_search_save_LIBS |
| 12574 | fi |
| 12575 | echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5 |
| 12576 | echo "${ECHO_T}$ac_cv_search_frexp" >&6 |
| 12577 | if test "$ac_cv_search_frexp" != no; then |
| 12578 | test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS" |
| 12579 | |
| 12580 | fi |
| 12581 | |
| 12582 | |
| 12583 | echo "$as_me:$LINENO: checking for time_t in time.h" >&5 |
| 12584 | echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6 |
| 12585 | if test "${bu_cv_decl_time_t_time_h+set}" = set; then |
| 12586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12587 | else |
| 12588 | cat >conftest.$ac_ext <<_ACEOF |
| 12589 | /* confdefs.h. */ |
| 12590 | _ACEOF |
| 12591 | cat confdefs.h >>conftest.$ac_ext |
| 12592 | cat >>conftest.$ac_ext <<_ACEOF |
| 12593 | /* end confdefs.h. */ |
| 12594 | #include <time.h> |
| 12595 | int |
| 12596 | main () |
| 12597 | { |
| 12598 | time_t i; |
| 12599 | ; |
| 12600 | return 0; |
| 12601 | } |
| 12602 | _ACEOF |
| 12603 | rm -f conftest.$ac_objext |
| 12604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12605 | (eval $ac_compile) 2>conftest.er1 |
| 12606 | ac_status=$? |
| 12607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12608 | rm -f conftest.er1 |
| 12609 | cat conftest.err >&5 |
| 12610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12611 | (exit $ac_status); } && |
| 12612 | { ac_try='test -z "$ac_c_werror_flag" |
| 12613 | || test ! -s conftest.err' |
| 12614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12615 | (eval $ac_try) 2>&5 |
| 12616 | ac_status=$? |
| 12617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12618 | (exit $ac_status); }; } && |
| 12619 | { ac_try='test -s conftest.$ac_objext' |
| 12620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12621 | (eval $ac_try) 2>&5 |
| 12622 | ac_status=$? |
| 12623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12624 | (exit $ac_status); }; }; then |
| 12625 | bu_cv_decl_time_t_time_h=yes |
| 12626 | else |
| 12627 | echo "$as_me: failed program was:" >&5 |
| 12628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12629 | |
| 12630 | bu_cv_decl_time_t_time_h=no |
| 12631 | fi |
| 12632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12633 | fi |
| 12634 | |
| 12635 | echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5 |
| 12636 | echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6 |
| 12637 | if test $bu_cv_decl_time_t_time_h = yes; then |
| 12638 | |
| 12639 | cat >>confdefs.h <<\_ACEOF |
| 12640 | #define HAVE_TIME_T_IN_TIME_H 1 |
| 12641 | _ACEOF |
| 12642 | |
| 12643 | fi |
| 12644 | |
| 12645 | echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5 |
| 12646 | echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6 |
| 12647 | if test "${bu_cv_decl_time_t_types_h+set}" = set; then |
| 12648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12649 | else |
| 12650 | cat >conftest.$ac_ext <<_ACEOF |
| 12651 | /* confdefs.h. */ |
| 12652 | _ACEOF |
| 12653 | cat confdefs.h >>conftest.$ac_ext |
| 12654 | cat >>conftest.$ac_ext <<_ACEOF |
| 12655 | /* end confdefs.h. */ |
| 12656 | #include <sys/types.h> |
| 12657 | int |
| 12658 | main () |
| 12659 | { |
| 12660 | time_t i; |
| 12661 | ; |
| 12662 | return 0; |
| 12663 | } |
| 12664 | _ACEOF |
| 12665 | rm -f conftest.$ac_objext |
| 12666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12667 | (eval $ac_compile) 2>conftest.er1 |
| 12668 | ac_status=$? |
| 12669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12670 | rm -f conftest.er1 |
| 12671 | cat conftest.err >&5 |
| 12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12673 | (exit $ac_status); } && |
| 12674 | { ac_try='test -z "$ac_c_werror_flag" |
| 12675 | || test ! -s conftest.err' |
| 12676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12677 | (eval $ac_try) 2>&5 |
| 12678 | ac_status=$? |
| 12679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12680 | (exit $ac_status); }; } && |
| 12681 | { ac_try='test -s conftest.$ac_objext' |
| 12682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12683 | (eval $ac_try) 2>&5 |
| 12684 | ac_status=$? |
| 12685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12686 | (exit $ac_status); }; }; then |
| 12687 | bu_cv_decl_time_t_types_h=yes |
| 12688 | else |
| 12689 | echo "$as_me: failed program was:" >&5 |
| 12690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12691 | |
| 12692 | bu_cv_decl_time_t_types_h=no |
| 12693 | fi |
| 12694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12695 | fi |
| 12696 | |
| 12697 | echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5 |
| 12698 | echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6 |
| 12699 | if test $bu_cv_decl_time_t_types_h = yes; then |
| 12700 | |
| 12701 | cat >>confdefs.h <<\_ACEOF |
| 12702 | #define HAVE_TIME_T_IN_TYPES_H 1 |
| 12703 | _ACEOF |
| 12704 | |
| 12705 | fi |
| 12706 | |
| 12707 | echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 |
| 12708 | echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 |
| 12709 | if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then |
| 12710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12711 | else |
| 12712 | cat >conftest.$ac_ext <<_ACEOF |
| 12713 | /* confdefs.h. */ |
| 12714 | _ACEOF |
| 12715 | cat confdefs.h >>conftest.$ac_ext |
| 12716 | cat >>conftest.$ac_ext <<_ACEOF |
| 12717 | /* end confdefs.h. */ |
| 12718 | #include <unistd.h> |
| 12719 | int |
| 12720 | main () |
| 12721 | { |
| 12722 | extern int getopt (int, char *const*, const char *); |
| 12723 | ; |
| 12724 | return 0; |
| 12725 | } |
| 12726 | _ACEOF |
| 12727 | rm -f conftest.$ac_objext |
| 12728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12729 | (eval $ac_compile) 2>conftest.er1 |
| 12730 | ac_status=$? |
| 12731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12732 | rm -f conftest.er1 |
| 12733 | cat conftest.err >&5 |
| 12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12735 | (exit $ac_status); } && |
| 12736 | { ac_try='test -z "$ac_c_werror_flag" |
| 12737 | || test ! -s conftest.err' |
| 12738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12739 | (eval $ac_try) 2>&5 |
| 12740 | ac_status=$? |
| 12741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12742 | (exit $ac_status); }; } && |
| 12743 | { ac_try='test -s conftest.$ac_objext' |
| 12744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12745 | (eval $ac_try) 2>&5 |
| 12746 | ac_status=$? |
| 12747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12748 | (exit $ac_status); }; }; then |
| 12749 | bu_cv_decl_getopt_unistd_h=yes |
| 12750 | else |
| 12751 | echo "$as_me: failed program was:" >&5 |
| 12752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12753 | |
| 12754 | bu_cv_decl_getopt_unistd_h=no |
| 12755 | fi |
| 12756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12757 | fi |
| 12758 | |
| 12759 | echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5 |
| 12760 | echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6 |
| 12761 | if test $bu_cv_decl_getopt_unistd_h = yes; then |
| 12762 | |
| 12763 | cat >>confdefs.h <<\_ACEOF |
| 12764 | #define HAVE_DECL_GETOPT 1 |
| 12765 | _ACEOF |
| 12766 | |
| 12767 | fi |
| 12768 | |
| 12769 | # Under Next 3.2 <utime.h> apparently does not define struct utimbuf |
| 12770 | # by default. |
| 12771 | echo "$as_me:$LINENO: checking for utime.h" >&5 |
| 12772 | echo $ECHO_N "checking for utime.h... $ECHO_C" >&6 |
| 12773 | if test "${bu_cv_header_utime_h+set}" = set; then |
| 12774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12775 | else |
| 12776 | cat >conftest.$ac_ext <<_ACEOF |
| 12777 | /* confdefs.h. */ |
| 12778 | _ACEOF |
| 12779 | cat confdefs.h >>conftest.$ac_ext |
| 12780 | cat >>conftest.$ac_ext <<_ACEOF |
| 12781 | /* end confdefs.h. */ |
| 12782 | #include <sys/types.h> |
| 12783 | #ifdef HAVE_TIME_H |
| 12784 | #include <time.h> |
| 12785 | #endif |
| 12786 | #include <utime.h> |
| 12787 | int |
| 12788 | main () |
| 12789 | { |
| 12790 | struct utimbuf s; |
| 12791 | ; |
| 12792 | return 0; |
| 12793 | } |
| 12794 | _ACEOF |
| 12795 | rm -f conftest.$ac_objext |
| 12796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12797 | (eval $ac_compile) 2>conftest.er1 |
| 12798 | ac_status=$? |
| 12799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12800 | rm -f conftest.er1 |
| 12801 | cat conftest.err >&5 |
| 12802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12803 | (exit $ac_status); } && |
| 12804 | { ac_try='test -z "$ac_c_werror_flag" |
| 12805 | || test ! -s conftest.err' |
| 12806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12807 | (eval $ac_try) 2>&5 |
| 12808 | ac_status=$? |
| 12809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12810 | (exit $ac_status); }; } && |
| 12811 | { ac_try='test -s conftest.$ac_objext' |
| 12812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12813 | (eval $ac_try) 2>&5 |
| 12814 | ac_status=$? |
| 12815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12816 | (exit $ac_status); }; }; then |
| 12817 | bu_cv_header_utime_h=yes |
| 12818 | else |
| 12819 | echo "$as_me: failed program was:" >&5 |
| 12820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12821 | |
| 12822 | bu_cv_header_utime_h=no |
| 12823 | fi |
| 12824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12825 | fi |
| 12826 | |
| 12827 | echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5 |
| 12828 | echo "${ECHO_T}$bu_cv_header_utime_h" >&6 |
| 12829 | if test $bu_cv_header_utime_h = yes; then |
| 12830 | |
| 12831 | cat >>confdefs.h <<\_ACEOF |
| 12832 | #define HAVE_GOOD_UTIME_H 1 |
| 12833 | _ACEOF |
| 12834 | |
| 12835 | fi |
| 12836 | |
| 12837 | echo "$as_me:$LINENO: checking whether fprintf is declared" >&5 |
| 12838 | echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6 |
| 12839 | if test "${ac_cv_have_decl_fprintf+set}" = set; then |
| 12840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12841 | else |
| 12842 | cat >conftest.$ac_ext <<_ACEOF |
| 12843 | /* confdefs.h. */ |
| 12844 | _ACEOF |
| 12845 | cat confdefs.h >>conftest.$ac_ext |
| 12846 | cat >>conftest.$ac_ext <<_ACEOF |
| 12847 | /* end confdefs.h. */ |
| 12848 | $ac_includes_default |
| 12849 | int |
| 12850 | main () |
| 12851 | { |
| 12852 | #ifndef fprintf |
| 12853 | char *p = (char *) fprintf; |
| 12854 | #endif |
| 12855 | |
| 12856 | ; |
| 12857 | return 0; |
| 12858 | } |
| 12859 | _ACEOF |
| 12860 | rm -f conftest.$ac_objext |
| 12861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12862 | (eval $ac_compile) 2>conftest.er1 |
| 12863 | ac_status=$? |
| 12864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12865 | rm -f conftest.er1 |
| 12866 | cat conftest.err >&5 |
| 12867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12868 | (exit $ac_status); } && |
| 12869 | { ac_try='test -z "$ac_c_werror_flag" |
| 12870 | || test ! -s conftest.err' |
| 12871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12872 | (eval $ac_try) 2>&5 |
| 12873 | ac_status=$? |
| 12874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12875 | (exit $ac_status); }; } && |
| 12876 | { ac_try='test -s conftest.$ac_objext' |
| 12877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12878 | (eval $ac_try) 2>&5 |
| 12879 | ac_status=$? |
| 12880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12881 | (exit $ac_status); }; }; then |
| 12882 | ac_cv_have_decl_fprintf=yes |
| 12883 | else |
| 12884 | echo "$as_me: failed program was:" >&5 |
| 12885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12886 | |
| 12887 | ac_cv_have_decl_fprintf=no |
| 12888 | fi |
| 12889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12890 | fi |
| 12891 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5 |
| 12892 | echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6 |
| 12893 | if test $ac_cv_have_decl_fprintf = yes; then |
| 12894 | |
| 12895 | cat >>confdefs.h <<_ACEOF |
| 12896 | #define HAVE_DECL_FPRINTF 1 |
| 12897 | _ACEOF |
| 12898 | |
| 12899 | |
| 12900 | else |
| 12901 | cat >>confdefs.h <<_ACEOF |
| 12902 | #define HAVE_DECL_FPRINTF 0 |
| 12903 | _ACEOF |
| 12904 | |
| 12905 | |
| 12906 | fi |
| 12907 | echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5 |
| 12908 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 |
| 12909 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then |
| 12910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12911 | else |
| 12912 | cat >conftest.$ac_ext <<_ACEOF |
| 12913 | /* confdefs.h. */ |
| 12914 | _ACEOF |
| 12915 | cat confdefs.h >>conftest.$ac_ext |
| 12916 | cat >>conftest.$ac_ext <<_ACEOF |
| 12917 | /* end confdefs.h. */ |
| 12918 | $ac_includes_default |
| 12919 | int |
| 12920 | main () |
| 12921 | { |
| 12922 | #ifndef stpcpy |
| 12923 | char *p = (char *) stpcpy; |
| 12924 | #endif |
| 12925 | |
| 12926 | ; |
| 12927 | return 0; |
| 12928 | } |
| 12929 | _ACEOF |
| 12930 | rm -f conftest.$ac_objext |
| 12931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12932 | (eval $ac_compile) 2>conftest.er1 |
| 12933 | ac_status=$? |
| 12934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12935 | rm -f conftest.er1 |
| 12936 | cat conftest.err >&5 |
| 12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12938 | (exit $ac_status); } && |
| 12939 | { ac_try='test -z "$ac_c_werror_flag" |
| 12940 | || test ! -s conftest.err' |
| 12941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12942 | (eval $ac_try) 2>&5 |
| 12943 | ac_status=$? |
| 12944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12945 | (exit $ac_status); }; } && |
| 12946 | { ac_try='test -s conftest.$ac_objext' |
| 12947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12948 | (eval $ac_try) 2>&5 |
| 12949 | ac_status=$? |
| 12950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12951 | (exit $ac_status); }; }; then |
| 12952 | ac_cv_have_decl_stpcpy=yes |
| 12953 | else |
| 12954 | echo "$as_me: failed program was:" >&5 |
| 12955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12956 | |
| 12957 | ac_cv_have_decl_stpcpy=no |
| 12958 | fi |
| 12959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12960 | fi |
| 12961 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5 |
| 12962 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 |
| 12963 | if test $ac_cv_have_decl_stpcpy = yes; then |
| 12964 | |
| 12965 | cat >>confdefs.h <<_ACEOF |
| 12966 | #define HAVE_DECL_STPCPY 1 |
| 12967 | _ACEOF |
| 12968 | |
| 12969 | |
| 12970 | else |
| 12971 | cat >>confdefs.h <<_ACEOF |
| 12972 | #define HAVE_DECL_STPCPY 0 |
| 12973 | _ACEOF |
| 12974 | |
| 12975 | |
| 12976 | fi |
| 12977 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
| 12978 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 |
| 12979 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
| 12980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12981 | else |
| 12982 | cat >conftest.$ac_ext <<_ACEOF |
| 12983 | /* confdefs.h. */ |
| 12984 | _ACEOF |
| 12985 | cat confdefs.h >>conftest.$ac_ext |
| 12986 | cat >>conftest.$ac_ext <<_ACEOF |
| 12987 | /* end confdefs.h. */ |
| 12988 | $ac_includes_default |
| 12989 | int |
| 12990 | main () |
| 12991 | { |
| 12992 | #ifndef strstr |
| 12993 | char *p = (char *) strstr; |
| 12994 | #endif |
| 12995 | |
| 12996 | ; |
| 12997 | return 0; |
| 12998 | } |
| 12999 | _ACEOF |
| 13000 | rm -f conftest.$ac_objext |
| 13001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13002 | (eval $ac_compile) 2>conftest.er1 |
| 13003 | ac_status=$? |
| 13004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13005 | rm -f conftest.er1 |
| 13006 | cat conftest.err >&5 |
| 13007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13008 | (exit $ac_status); } && |
| 13009 | { ac_try='test -z "$ac_c_werror_flag" |
| 13010 | || test ! -s conftest.err' |
| 13011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13012 | (eval $ac_try) 2>&5 |
| 13013 | ac_status=$? |
| 13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13015 | (exit $ac_status); }; } && |
| 13016 | { ac_try='test -s conftest.$ac_objext' |
| 13017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13018 | (eval $ac_try) 2>&5 |
| 13019 | ac_status=$? |
| 13020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13021 | (exit $ac_status); }; }; then |
| 13022 | ac_cv_have_decl_strstr=yes |
| 13023 | else |
| 13024 | echo "$as_me: failed program was:" >&5 |
| 13025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13026 | |
| 13027 | ac_cv_have_decl_strstr=no |
| 13028 | fi |
| 13029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13030 | fi |
| 13031 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
| 13032 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 |
| 13033 | if test $ac_cv_have_decl_strstr = yes; then |
| 13034 | |
| 13035 | cat >>confdefs.h <<_ACEOF |
| 13036 | #define HAVE_DECL_STRSTR 1 |
| 13037 | _ACEOF |
| 13038 | |
| 13039 | |
| 13040 | else |
| 13041 | cat >>confdefs.h <<_ACEOF |
| 13042 | #define HAVE_DECL_STRSTR 0 |
| 13043 | _ACEOF |
| 13044 | |
| 13045 | |
| 13046 | fi |
| 13047 | echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 |
| 13048 | echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6 |
| 13049 | if test "${ac_cv_have_decl_sbrk+set}" = set; then |
| 13050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13051 | else |
| 13052 | cat >conftest.$ac_ext <<_ACEOF |
| 13053 | /* confdefs.h. */ |
| 13054 | _ACEOF |
| 13055 | cat confdefs.h >>conftest.$ac_ext |
| 13056 | cat >>conftest.$ac_ext <<_ACEOF |
| 13057 | /* end confdefs.h. */ |
| 13058 | $ac_includes_default |
| 13059 | int |
| 13060 | main () |
| 13061 | { |
| 13062 | #ifndef sbrk |
| 13063 | char *p = (char *) sbrk; |
| 13064 | #endif |
| 13065 | |
| 13066 | ; |
| 13067 | return 0; |
| 13068 | } |
| 13069 | _ACEOF |
| 13070 | rm -f conftest.$ac_objext |
| 13071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13072 | (eval $ac_compile) 2>conftest.er1 |
| 13073 | ac_status=$? |
| 13074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13075 | rm -f conftest.er1 |
| 13076 | cat conftest.err >&5 |
| 13077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13078 | (exit $ac_status); } && |
| 13079 | { ac_try='test -z "$ac_c_werror_flag" |
| 13080 | || test ! -s conftest.err' |
| 13081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13082 | (eval $ac_try) 2>&5 |
| 13083 | ac_status=$? |
| 13084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13085 | (exit $ac_status); }; } && |
| 13086 | { ac_try='test -s conftest.$ac_objext' |
| 13087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13088 | (eval $ac_try) 2>&5 |
| 13089 | ac_status=$? |
| 13090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13091 | (exit $ac_status); }; }; then |
| 13092 | ac_cv_have_decl_sbrk=yes |
| 13093 | else |
| 13094 | echo "$as_me: failed program was:" >&5 |
| 13095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13096 | |
| 13097 | ac_cv_have_decl_sbrk=no |
| 13098 | fi |
| 13099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13100 | fi |
| 13101 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 |
| 13102 | echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6 |
| 13103 | if test $ac_cv_have_decl_sbrk = yes; then |
| 13104 | |
| 13105 | cat >>confdefs.h <<_ACEOF |
| 13106 | #define HAVE_DECL_SBRK 1 |
| 13107 | _ACEOF |
| 13108 | |
| 13109 | |
| 13110 | else |
| 13111 | cat >>confdefs.h <<_ACEOF |
| 13112 | #define HAVE_DECL_SBRK 0 |
| 13113 | _ACEOF |
| 13114 | |
| 13115 | |
| 13116 | fi |
| 13117 | echo "$as_me:$LINENO: checking whether getenv is declared" >&5 |
| 13118 | echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 |
| 13119 | if test "${ac_cv_have_decl_getenv+set}" = set; then |
| 13120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13121 | else |
| 13122 | cat >conftest.$ac_ext <<_ACEOF |
| 13123 | /* confdefs.h. */ |
| 13124 | _ACEOF |
| 13125 | cat confdefs.h >>conftest.$ac_ext |
| 13126 | cat >>conftest.$ac_ext <<_ACEOF |
| 13127 | /* end confdefs.h. */ |
| 13128 | $ac_includes_default |
| 13129 | int |
| 13130 | main () |
| 13131 | { |
| 13132 | #ifndef getenv |
| 13133 | char *p = (char *) getenv; |
| 13134 | #endif |
| 13135 | |
| 13136 | ; |
| 13137 | return 0; |
| 13138 | } |
| 13139 | _ACEOF |
| 13140 | rm -f conftest.$ac_objext |
| 13141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13142 | (eval $ac_compile) 2>conftest.er1 |
| 13143 | ac_status=$? |
| 13144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13145 | rm -f conftest.er1 |
| 13146 | cat conftest.err >&5 |
| 13147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13148 | (exit $ac_status); } && |
| 13149 | { ac_try='test -z "$ac_c_werror_flag" |
| 13150 | || test ! -s conftest.err' |
| 13151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13152 | (eval $ac_try) 2>&5 |
| 13153 | ac_status=$? |
| 13154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13155 | (exit $ac_status); }; } && |
| 13156 | { ac_try='test -s conftest.$ac_objext' |
| 13157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13158 | (eval $ac_try) 2>&5 |
| 13159 | ac_status=$? |
| 13160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13161 | (exit $ac_status); }; }; then |
| 13162 | ac_cv_have_decl_getenv=yes |
| 13163 | else |
| 13164 | echo "$as_me: failed program was:" >&5 |
| 13165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13166 | |
| 13167 | ac_cv_have_decl_getenv=no |
| 13168 | fi |
| 13169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13170 | fi |
| 13171 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 |
| 13172 | echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 |
| 13173 | if test $ac_cv_have_decl_getenv = yes; then |
| 13174 | |
| 13175 | cat >>confdefs.h <<_ACEOF |
| 13176 | #define HAVE_DECL_GETENV 1 |
| 13177 | _ACEOF |
| 13178 | |
| 13179 | |
| 13180 | else |
| 13181 | cat >>confdefs.h <<_ACEOF |
| 13182 | #define HAVE_DECL_GETENV 0 |
| 13183 | _ACEOF |
| 13184 | |
| 13185 | |
| 13186 | fi |
| 13187 | echo "$as_me:$LINENO: checking whether environ is declared" >&5 |
| 13188 | echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6 |
| 13189 | if test "${ac_cv_have_decl_environ+set}" = set; then |
| 13190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13191 | else |
| 13192 | cat >conftest.$ac_ext <<_ACEOF |
| 13193 | /* confdefs.h. */ |
| 13194 | _ACEOF |
| 13195 | cat confdefs.h >>conftest.$ac_ext |
| 13196 | cat >>conftest.$ac_ext <<_ACEOF |
| 13197 | /* end confdefs.h. */ |
| 13198 | $ac_includes_default |
| 13199 | int |
| 13200 | main () |
| 13201 | { |
| 13202 | #ifndef environ |
| 13203 | char *p = (char *) environ; |
| 13204 | #endif |
| 13205 | |
| 13206 | ; |
| 13207 | return 0; |
| 13208 | } |
| 13209 | _ACEOF |
| 13210 | rm -f conftest.$ac_objext |
| 13211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13212 | (eval $ac_compile) 2>conftest.er1 |
| 13213 | ac_status=$? |
| 13214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13215 | rm -f conftest.er1 |
| 13216 | cat conftest.err >&5 |
| 13217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13218 | (exit $ac_status); } && |
| 13219 | { ac_try='test -z "$ac_c_werror_flag" |
| 13220 | || test ! -s conftest.err' |
| 13221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13222 | (eval $ac_try) 2>&5 |
| 13223 | ac_status=$? |
| 13224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13225 | (exit $ac_status); }; } && |
| 13226 | { ac_try='test -s conftest.$ac_objext' |
| 13227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13228 | (eval $ac_try) 2>&5 |
| 13229 | ac_status=$? |
| 13230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13231 | (exit $ac_status); }; }; then |
| 13232 | ac_cv_have_decl_environ=yes |
| 13233 | else |
| 13234 | echo "$as_me: failed program was:" >&5 |
| 13235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13236 | |
| 13237 | ac_cv_have_decl_environ=no |
| 13238 | fi |
| 13239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13240 | fi |
| 13241 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5 |
| 13242 | echo "${ECHO_T}$ac_cv_have_decl_environ" >&6 |
| 13243 | if test $ac_cv_have_decl_environ = yes; then |
| 13244 | |
| 13245 | cat >>confdefs.h <<_ACEOF |
| 13246 | #define HAVE_DECL_ENVIRON 1 |
| 13247 | _ACEOF |
| 13248 | |
| 13249 | |
| 13250 | else |
| 13251 | cat >>confdefs.h <<_ACEOF |
| 13252 | #define HAVE_DECL_ENVIRON 0 |
| 13253 | _ACEOF |
| 13254 | |
| 13255 | |
| 13256 | fi |
| 13257 | echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 13258 | echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 |
| 13259 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 13260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13261 | else |
| 13262 | cat >conftest.$ac_ext <<_ACEOF |
| 13263 | /* confdefs.h. */ |
| 13264 | _ACEOF |
| 13265 | cat confdefs.h >>conftest.$ac_ext |
| 13266 | cat >>conftest.$ac_ext <<_ACEOF |
| 13267 | /* end confdefs.h. */ |
| 13268 | $ac_includes_default |
| 13269 | int |
| 13270 | main () |
| 13271 | { |
| 13272 | #ifndef getc_unlocked |
| 13273 | char *p = (char *) getc_unlocked; |
| 13274 | #endif |
| 13275 | |
| 13276 | ; |
| 13277 | return 0; |
| 13278 | } |
| 13279 | _ACEOF |
| 13280 | rm -f conftest.$ac_objext |
| 13281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13282 | (eval $ac_compile) 2>conftest.er1 |
| 13283 | ac_status=$? |
| 13284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13285 | rm -f conftest.er1 |
| 13286 | cat conftest.err >&5 |
| 13287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13288 | (exit $ac_status); } && |
| 13289 | { ac_try='test -z "$ac_c_werror_flag" |
| 13290 | || test ! -s conftest.err' |
| 13291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13292 | (eval $ac_try) 2>&5 |
| 13293 | ac_status=$? |
| 13294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13295 | (exit $ac_status); }; } && |
| 13296 | { ac_try='test -s conftest.$ac_objext' |
| 13297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13298 | (eval $ac_try) 2>&5 |
| 13299 | ac_status=$? |
| 13300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13301 | (exit $ac_status); }; }; then |
| 13302 | ac_cv_have_decl_getc_unlocked=yes |
| 13303 | else |
| 13304 | echo "$as_me: failed program was:" >&5 |
| 13305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13306 | |
| 13307 | ac_cv_have_decl_getc_unlocked=no |
| 13308 | fi |
| 13309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13310 | fi |
| 13311 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 13312 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 |
| 13313 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 13314 | |
| 13315 | cat >>confdefs.h <<_ACEOF |
| 13316 | #define HAVE_DECL_GETC_UNLOCKED 1 |
| 13317 | _ACEOF |
| 13318 | |
| 13319 | |
| 13320 | else |
| 13321 | cat >>confdefs.h <<_ACEOF |
| 13322 | #define HAVE_DECL_GETC_UNLOCKED 0 |
| 13323 | _ACEOF |
| 13324 | |
| 13325 | |
| 13326 | fi |
| 13327 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
| 13328 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 |
| 13329 | if test "${ac_cv_have_decl_snprintf+set}" = set; then |
| 13330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13331 | else |
| 13332 | cat >conftest.$ac_ext <<_ACEOF |
| 13333 | /* confdefs.h. */ |
| 13334 | _ACEOF |
| 13335 | cat confdefs.h >>conftest.$ac_ext |
| 13336 | cat >>conftest.$ac_ext <<_ACEOF |
| 13337 | /* end confdefs.h. */ |
| 13338 | $ac_includes_default |
| 13339 | int |
| 13340 | main () |
| 13341 | { |
| 13342 | #ifndef snprintf |
| 13343 | char *p = (char *) snprintf; |
| 13344 | #endif |
| 13345 | |
| 13346 | ; |
| 13347 | return 0; |
| 13348 | } |
| 13349 | _ACEOF |
| 13350 | rm -f conftest.$ac_objext |
| 13351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13352 | (eval $ac_compile) 2>conftest.er1 |
| 13353 | ac_status=$? |
| 13354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13355 | rm -f conftest.er1 |
| 13356 | cat conftest.err >&5 |
| 13357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13358 | (exit $ac_status); } && |
| 13359 | { ac_try='test -z "$ac_c_werror_flag" |
| 13360 | || test ! -s conftest.err' |
| 13361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13362 | (eval $ac_try) 2>&5 |
| 13363 | ac_status=$? |
| 13364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13365 | (exit $ac_status); }; } && |
| 13366 | { ac_try='test -s conftest.$ac_objext' |
| 13367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13368 | (eval $ac_try) 2>&5 |
| 13369 | ac_status=$? |
| 13370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13371 | (exit $ac_status); }; }; then |
| 13372 | ac_cv_have_decl_snprintf=yes |
| 13373 | else |
| 13374 | echo "$as_me: failed program was:" >&5 |
| 13375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13376 | |
| 13377 | ac_cv_have_decl_snprintf=no |
| 13378 | fi |
| 13379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13380 | fi |
| 13381 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
| 13382 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 |
| 13383 | if test $ac_cv_have_decl_snprintf = yes; then |
| 13384 | |
| 13385 | cat >>confdefs.h <<_ACEOF |
| 13386 | #define HAVE_DECL_SNPRINTF 1 |
| 13387 | _ACEOF |
| 13388 | |
| 13389 | |
| 13390 | else |
| 13391 | cat >>confdefs.h <<_ACEOF |
| 13392 | #define HAVE_DECL_SNPRINTF 0 |
| 13393 | _ACEOF |
| 13394 | |
| 13395 | |
| 13396 | fi |
| 13397 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
| 13398 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 |
| 13399 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
| 13400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13401 | else |
| 13402 | cat >conftest.$ac_ext <<_ACEOF |
| 13403 | /* confdefs.h. */ |
| 13404 | _ACEOF |
| 13405 | cat confdefs.h >>conftest.$ac_ext |
| 13406 | cat >>conftest.$ac_ext <<_ACEOF |
| 13407 | /* end confdefs.h. */ |
| 13408 | $ac_includes_default |
| 13409 | int |
| 13410 | main () |
| 13411 | { |
| 13412 | #ifndef vsnprintf |
| 13413 | char *p = (char *) vsnprintf; |
| 13414 | #endif |
| 13415 | |
| 13416 | ; |
| 13417 | return 0; |
| 13418 | } |
| 13419 | _ACEOF |
| 13420 | rm -f conftest.$ac_objext |
| 13421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13422 | (eval $ac_compile) 2>conftest.er1 |
| 13423 | ac_status=$? |
| 13424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13425 | rm -f conftest.er1 |
| 13426 | cat conftest.err >&5 |
| 13427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13428 | (exit $ac_status); } && |
| 13429 | { ac_try='test -z "$ac_c_werror_flag" |
| 13430 | || test ! -s conftest.err' |
| 13431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13432 | (eval $ac_try) 2>&5 |
| 13433 | ac_status=$? |
| 13434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13435 | (exit $ac_status); }; } && |
| 13436 | { ac_try='test -s conftest.$ac_objext' |
| 13437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13438 | (eval $ac_try) 2>&5 |
| 13439 | ac_status=$? |
| 13440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13441 | (exit $ac_status); }; }; then |
| 13442 | ac_cv_have_decl_vsnprintf=yes |
| 13443 | else |
| 13444 | echo "$as_me: failed program was:" >&5 |
| 13445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13446 | |
| 13447 | ac_cv_have_decl_vsnprintf=no |
| 13448 | fi |
| 13449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13450 | fi |
| 13451 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
| 13452 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 |
| 13453 | if test $ac_cv_have_decl_vsnprintf = yes; then |
| 13454 | |
| 13455 | cat >>confdefs.h <<_ACEOF |
| 13456 | #define HAVE_DECL_VSNPRINTF 1 |
| 13457 | _ACEOF |
| 13458 | |
| 13459 | |
| 13460 | else |
| 13461 | cat >>confdefs.h <<_ACEOF |
| 13462 | #define HAVE_DECL_VSNPRINTF 0 |
| 13463 | _ACEOF |
| 13464 | |
| 13465 | |
| 13466 | fi |
| 13467 | |
| 13468 | |
| 13469 | |
| 13470 | |
| 13471 | case "${host}" in |
| 13472 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
| 13473 | |
| 13474 | cat >>confdefs.h <<\_ACEOF |
| 13475 | #define USE_BINARY_FOPEN 1 |
| 13476 | _ACEOF |
| 13477 | ;; |
| 13478 | esac |
| 13479 | |
| 13480 | # target-specific stuff: |
| 13481 | |
| 13482 | # Canonicalize the secondary target names. |
| 13483 | if test -n "$enable_targets"; then |
| 13484 | for targ in `echo $enable_targets | sed 's/,/ /g'` |
| 13485 | do |
| 13486 | result=`$ac_config_sub $targ 2>/dev/null` |
| 13487 | if test -n "$result"; then |
| 13488 | canon_targets="$canon_targets $result" |
| 13489 | else |
| 13490 | # Allow targets that config.sub doesn't recognize, like "all". |
| 13491 | canon_targets="$canon_targets $targ" |
| 13492 | fi |
| 13493 | done |
| 13494 | fi |
| 13495 | |
| 13496 | if test "${ac_cv_header_iconv_h+set}" = set; then |
| 13497 | echo "$as_me:$LINENO: checking for iconv.h" >&5 |
| 13498 | echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6 |
| 13499 | if test "${ac_cv_header_iconv_h+set}" = set; then |
| 13500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13501 | fi |
| 13502 | echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5 |
| 13503 | echo "${ECHO_T}$ac_cv_header_iconv_h" >&6 |
| 13504 | else |
| 13505 | # Is the header compilable? |
| 13506 | echo "$as_me:$LINENO: checking iconv.h usability" >&5 |
| 13507 | echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6 |
| 13508 | cat >conftest.$ac_ext <<_ACEOF |
| 13509 | /* confdefs.h. */ |
| 13510 | _ACEOF |
| 13511 | cat confdefs.h >>conftest.$ac_ext |
| 13512 | cat >>conftest.$ac_ext <<_ACEOF |
| 13513 | /* end confdefs.h. */ |
| 13514 | $ac_includes_default |
| 13515 | #include <iconv.h> |
| 13516 | _ACEOF |
| 13517 | rm -f conftest.$ac_objext |
| 13518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13519 | (eval $ac_compile) 2>conftest.er1 |
| 13520 | ac_status=$? |
| 13521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13522 | rm -f conftest.er1 |
| 13523 | cat conftest.err >&5 |
| 13524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13525 | (exit $ac_status); } && |
| 13526 | { ac_try='test -z "$ac_c_werror_flag" |
| 13527 | || test ! -s conftest.err' |
| 13528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13529 | (eval $ac_try) 2>&5 |
| 13530 | ac_status=$? |
| 13531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13532 | (exit $ac_status); }; } && |
| 13533 | { ac_try='test -s conftest.$ac_objext' |
| 13534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13535 | (eval $ac_try) 2>&5 |
| 13536 | ac_status=$? |
| 13537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13538 | (exit $ac_status); }; }; then |
| 13539 | ac_header_compiler=yes |
| 13540 | else |
| 13541 | echo "$as_me: failed program was:" >&5 |
| 13542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13543 | |
| 13544 | ac_header_compiler=no |
| 13545 | fi |
| 13546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13547 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13548 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13549 | |
| 13550 | # Is the header present? |
| 13551 | echo "$as_me:$LINENO: checking iconv.h presence" >&5 |
| 13552 | echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6 |
| 13553 | cat >conftest.$ac_ext <<_ACEOF |
| 13554 | /* confdefs.h. */ |
| 13555 | _ACEOF |
| 13556 | cat confdefs.h >>conftest.$ac_ext |
| 13557 | cat >>conftest.$ac_ext <<_ACEOF |
| 13558 | /* end confdefs.h. */ |
| 13559 | #include <iconv.h> |
| 13560 | _ACEOF |
| 13561 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13562 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13563 | ac_status=$? |
| 13564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13565 | rm -f conftest.er1 |
| 13566 | cat conftest.err >&5 |
| 13567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13568 | (exit $ac_status); } >/dev/null; then |
| 13569 | if test -s conftest.err; then |
| 13570 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13571 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13572 | else |
| 13573 | ac_cpp_err= |
| 13574 | fi |
| 13575 | else |
| 13576 | ac_cpp_err=yes |
| 13577 | fi |
| 13578 | if test -z "$ac_cpp_err"; then |
| 13579 | ac_header_preproc=yes |
| 13580 | else |
| 13581 | echo "$as_me: failed program was:" >&5 |
| 13582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13583 | |
| 13584 | ac_header_preproc=no |
| 13585 | fi |
| 13586 | rm -f conftest.err conftest.$ac_ext |
| 13587 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13588 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13589 | |
| 13590 | # So? What about this header? |
| 13591 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13592 | yes:no: ) |
| 13593 | { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13594 | echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13595 | { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5 |
| 13596 | echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;} |
| 13597 | ac_header_preproc=yes |
| 13598 | ;; |
| 13599 | no:yes:* ) |
| 13600 | { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5 |
| 13601 | echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;} |
| 13602 | { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5 |
| 13603 | echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;} |
| 13604 | { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5 |
| 13605 | echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;} |
| 13606 | { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13607 | echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13608 | { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5 |
| 13609 | echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;} |
| 13610 | { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5 |
| 13611 | echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;} |
| 13612 | ( |
| 13613 | cat <<\_ASBOX |
| 13614 | ## ------------------------------------------ ## |
| 13615 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 13616 | ## ------------------------------------------ ## |
| 13617 | _ASBOX |
| 13618 | ) | |
| 13619 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13620 | ;; |
| 13621 | esac |
| 13622 | echo "$as_me:$LINENO: checking for iconv.h" >&5 |
| 13623 | echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6 |
| 13624 | if test "${ac_cv_header_iconv_h+set}" = set; then |
| 13625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13626 | else |
| 13627 | ac_cv_header_iconv_h=$ac_header_preproc |
| 13628 | fi |
| 13629 | echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5 |
| 13630 | echo "${ECHO_T}$ac_cv_header_iconv_h" >&6 |
| 13631 | |
| 13632 | fi |
| 13633 | |
| 13634 | |
| 13635 | |
| 13636 | if test "X$prefix" = "XNONE"; then |
| 13637 | acl_final_prefix="$ac_default_prefix" |
| 13638 | else |
| 13639 | acl_final_prefix="$prefix" |
| 13640 | fi |
| 13641 | if test "X$exec_prefix" = "XNONE"; then |
| 13642 | acl_final_exec_prefix='${prefix}' |
| 13643 | else |
| 13644 | acl_final_exec_prefix="$exec_prefix" |
| 13645 | fi |
| 13646 | acl_save_prefix="$prefix" |
| 13647 | prefix="$acl_final_prefix" |
| 13648 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 13649 | prefix="$acl_save_prefix" |
| 13650 | |
| 13651 | |
| 13652 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 13653 | if test "${with_gnu_ld+set}" = set; then |
| 13654 | withval="$with_gnu_ld" |
| 13655 | test "$withval" = no || with_gnu_ld=yes |
| 13656 | else |
| 13657 | with_gnu_ld=no |
| 13658 | fi; |
| 13659 | # Prepare PATH_SEPARATOR. |
| 13660 | # The user is always right. |
| 13661 | if test "${PATH_SEPARATOR+set}" != set; then |
| 13662 | echo "#! /bin/sh" >conf$$.sh |
| 13663 | echo "exit 0" >>conf$$.sh |
| 13664 | chmod +x conf$$.sh |
| 13665 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 13666 | PATH_SEPARATOR=';' |
| 13667 | else |
| 13668 | PATH_SEPARATOR=: |
| 13669 | fi |
| 13670 | rm -f conf$$.sh |
| 13671 | fi |
| 13672 | ac_prog=ld |
| 13673 | if test "$GCC" = yes; then |
| 13674 | # Check if gcc -print-prog-name=ld gives a path. |
| 13675 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 13676 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 13677 | case $host in |
| 13678 | *-*-mingw*) |
| 13679 | # gcc leaves a trailing carriage return which upsets mingw |
| 13680 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 13681 | *) |
| 13682 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 13683 | esac |
| 13684 | case $ac_prog in |
| 13685 | # Accept absolute paths. |
| 13686 | [\\/]* | [A-Za-z]:[\\/]*) |
| 13687 | re_direlt='/[^/][^/]*/\.\./' |
| 13688 | # Canonicalize the path of ld |
| 13689 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 13690 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 13691 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 13692 | done |
| 13693 | test -z "$LD" && LD="$ac_prog" |
| 13694 | ;; |
| 13695 | "") |
| 13696 | # If it fails, then pretend we aren't using GCC. |
| 13697 | ac_prog=ld |
| 13698 | ;; |
| 13699 | *) |
| 13700 | # If it is relative, then search for the first ld in PATH. |
| 13701 | with_gnu_ld=unknown |
| 13702 | ;; |
| 13703 | esac |
| 13704 | elif test "$with_gnu_ld" = yes; then |
| 13705 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 13706 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 13707 | else |
| 13708 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 13709 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 13710 | fi |
| 13711 | if test "${acl_cv_path_LD+set}" = set; then |
| 13712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13713 | else |
| 13714 | if test -z "$LD"; then |
| 13715 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 13716 | for ac_dir in $PATH; do |
| 13717 | test -z "$ac_dir" && ac_dir=. |
| 13718 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 13719 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 13720 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 13721 | # but apparently some GNU ld's only accept -v. |
| 13722 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 13723 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 13724 | test "$with_gnu_ld" != no && break |
| 13725 | else |
| 13726 | test "$with_gnu_ld" != yes && break |
| 13727 | fi |
| 13728 | fi |
| 13729 | done |
| 13730 | IFS="$ac_save_ifs" |
| 13731 | else |
| 13732 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 13733 | fi |
| 13734 | fi |
| 13735 | |
| 13736 | LD="$acl_cv_path_LD" |
| 13737 | if test -n "$LD"; then |
| 13738 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 13739 | echo "${ECHO_T}$LD" >&6 |
| 13740 | else |
| 13741 | echo "$as_me:$LINENO: result: no" >&5 |
| 13742 | echo "${ECHO_T}no" >&6 |
| 13743 | fi |
| 13744 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 13745 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 13746 | { (exit 1); exit 1; }; } |
| 13747 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 13748 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 13749 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 13750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13751 | else |
| 13752 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 13753 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 13754 | acl_cv_prog_gnu_ld=yes |
| 13755 | else |
| 13756 | acl_cv_prog_gnu_ld=no |
| 13757 | fi |
| 13758 | fi |
| 13759 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 13760 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 |
| 13761 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 13762 | |
| 13763 | |
| 13764 | |
| 13765 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 13766 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 |
| 13767 | if test "${acl_cv_rpath+set}" = set; then |
| 13768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13769 | else |
| 13770 | |
| 13771 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 13772 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 13773 | . ./conftest.sh |
| 13774 | rm -f ./conftest.sh |
| 13775 | acl_cv_rpath=done |
| 13776 | |
| 13777 | fi |
| 13778 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 13779 | echo "${ECHO_T}$acl_cv_rpath" >&6 |
| 13780 | wl="$acl_cv_wl" |
| 13781 | libext="$acl_cv_libext" |
| 13782 | shlibext="$acl_cv_shlibext" |
| 13783 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 13784 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 13785 | hardcode_direct="$acl_cv_hardcode_direct" |
| 13786 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 13787 | # Check whether --enable-rpath or --disable-rpath was given. |
| 13788 | if test "${enable_rpath+set}" = set; then |
| 13789 | enableval="$enable_rpath" |
| 13790 | : |
| 13791 | else |
| 13792 | enable_rpath=yes |
| 13793 | fi; |
| 13794 | |
| 13795 | |
| 13796 | |
| 13797 | |
| 13798 | |
| 13799 | |
| 13800 | |
| 13801 | use_additional=yes |
| 13802 | |
| 13803 | acl_save_prefix="$prefix" |
| 13804 | prefix="$acl_final_prefix" |
| 13805 | acl_save_exec_prefix="$exec_prefix" |
| 13806 | exec_prefix="$acl_final_exec_prefix" |
| 13807 | |
| 13808 | eval additional_includedir=\"$includedir\" |
| 13809 | eval additional_libdir=\"$libdir\" |
| 13810 | |
| 13811 | exec_prefix="$acl_save_exec_prefix" |
| 13812 | prefix="$acl_save_prefix" |
| 13813 | |
| 13814 | |
| 13815 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
| 13816 | if test "${with_libiconv_prefix+set}" = set; then |
| 13817 | withval="$with_libiconv_prefix" |
| 13818 | |
| 13819 | if test "X$withval" = "Xno"; then |
| 13820 | use_additional=no |
| 13821 | else |
| 13822 | if test "X$withval" = "X"; then |
| 13823 | |
| 13824 | acl_save_prefix="$prefix" |
| 13825 | prefix="$acl_final_prefix" |
| 13826 | acl_save_exec_prefix="$exec_prefix" |
| 13827 | exec_prefix="$acl_final_exec_prefix" |
| 13828 | |
| 13829 | eval additional_includedir=\"$includedir\" |
| 13830 | eval additional_libdir=\"$libdir\" |
| 13831 | |
| 13832 | exec_prefix="$acl_save_exec_prefix" |
| 13833 | prefix="$acl_save_prefix" |
| 13834 | |
| 13835 | else |
| 13836 | additional_includedir="$withval/include" |
| 13837 | additional_libdir="$withval/lib" |
| 13838 | fi |
| 13839 | fi |
| 13840 | |
| 13841 | fi; |
| 13842 | LIBICONV= |
| 13843 | LTLIBICONV= |
| 13844 | INCICONV= |
| 13845 | rpathdirs= |
| 13846 | ltrpathdirs= |
| 13847 | names_already_handled= |
| 13848 | names_next_round='iconv ' |
| 13849 | while test -n "$names_next_round"; do |
| 13850 | names_this_round="$names_next_round" |
| 13851 | names_next_round= |
| 13852 | for name in $names_this_round; do |
| 13853 | already_handled= |
| 13854 | for n in $names_already_handled; do |
| 13855 | if test "$n" = "$name"; then |
| 13856 | already_handled=yes |
| 13857 | break |
| 13858 | fi |
| 13859 | done |
| 13860 | if test -z "$already_handled"; then |
| 13861 | names_already_handled="$names_already_handled $name" |
| 13862 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 13863 | eval value=\"\$HAVE_LIB$uppername\" |
| 13864 | if test -n "$value"; then |
| 13865 | if test "$value" = yes; then |
| 13866 | eval value=\"\$LIB$uppername\" |
| 13867 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 13868 | eval value=\"\$LTLIB$uppername\" |
| 13869 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 13870 | else |
| 13871 | : |
| 13872 | fi |
| 13873 | else |
| 13874 | found_dir= |
| 13875 | found_la= |
| 13876 | found_so= |
| 13877 | found_a= |
| 13878 | if test $use_additional = yes; then |
| 13879 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 13880 | found_dir="$additional_libdir" |
| 13881 | found_so="$additional_libdir/lib$name.$shlibext" |
| 13882 | if test -f "$additional_libdir/lib$name.la"; then |
| 13883 | found_la="$additional_libdir/lib$name.la" |
| 13884 | fi |
| 13885 | else |
| 13886 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 13887 | found_dir="$additional_libdir" |
| 13888 | found_a="$additional_libdir/lib$name.$libext" |
| 13889 | if test -f "$additional_libdir/lib$name.la"; then |
| 13890 | found_la="$additional_libdir/lib$name.la" |
| 13891 | fi |
| 13892 | fi |
| 13893 | fi |
| 13894 | fi |
| 13895 | if test "X$found_dir" = "X"; then |
| 13896 | for x in $LDFLAGS $LTLIBICONV; do |
| 13897 | |
| 13898 | acl_save_prefix="$prefix" |
| 13899 | prefix="$acl_final_prefix" |
| 13900 | acl_save_exec_prefix="$exec_prefix" |
| 13901 | exec_prefix="$acl_final_exec_prefix" |
| 13902 | eval x=\"$x\" |
| 13903 | exec_prefix="$acl_save_exec_prefix" |
| 13904 | prefix="$acl_save_prefix" |
| 13905 | |
| 13906 | case "$x" in |
| 13907 | -L*) |
| 13908 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 13909 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 13910 | found_dir="$dir" |
| 13911 | found_so="$dir/lib$name.$shlibext" |
| 13912 | if test -f "$dir/lib$name.la"; then |
| 13913 | found_la="$dir/lib$name.la" |
| 13914 | fi |
| 13915 | else |
| 13916 | if test -f "$dir/lib$name.$libext"; then |
| 13917 | found_dir="$dir" |
| 13918 | found_a="$dir/lib$name.$libext" |
| 13919 | if test -f "$dir/lib$name.la"; then |
| 13920 | found_la="$dir/lib$name.la" |
| 13921 | fi |
| 13922 | fi |
| 13923 | fi |
| 13924 | ;; |
| 13925 | esac |
| 13926 | if test "X$found_dir" != "X"; then |
| 13927 | break |
| 13928 | fi |
| 13929 | done |
| 13930 | fi |
| 13931 | if test "X$found_dir" != "X"; then |
| 13932 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 13933 | if test "X$found_so" != "X"; then |
| 13934 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 13935 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 13936 | else |
| 13937 | haveit= |
| 13938 | for x in $ltrpathdirs; do |
| 13939 | if test "X$x" = "X$found_dir"; then |
| 13940 | haveit=yes |
| 13941 | break |
| 13942 | fi |
| 13943 | done |
| 13944 | if test -z "$haveit"; then |
| 13945 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 13946 | fi |
| 13947 | if test "$hardcode_direct" = yes; then |
| 13948 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 13949 | else |
| 13950 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 13951 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 13952 | haveit= |
| 13953 | for x in $rpathdirs; do |
| 13954 | if test "X$x" = "X$found_dir"; then |
| 13955 | haveit=yes |
| 13956 | break |
| 13957 | fi |
| 13958 | done |
| 13959 | if test -z "$haveit"; then |
| 13960 | rpathdirs="$rpathdirs $found_dir" |
| 13961 | fi |
| 13962 | else |
| 13963 | haveit= |
| 13964 | for x in $LDFLAGS $LIBICONV; do |
| 13965 | |
| 13966 | acl_save_prefix="$prefix" |
| 13967 | prefix="$acl_final_prefix" |
| 13968 | acl_save_exec_prefix="$exec_prefix" |
| 13969 | exec_prefix="$acl_final_exec_prefix" |
| 13970 | eval x=\"$x\" |
| 13971 | exec_prefix="$acl_save_exec_prefix" |
| 13972 | prefix="$acl_save_prefix" |
| 13973 | |
| 13974 | if test "X$x" = "X-L$found_dir"; then |
| 13975 | haveit=yes |
| 13976 | break |
| 13977 | fi |
| 13978 | done |
| 13979 | if test -z "$haveit"; then |
| 13980 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 13981 | fi |
| 13982 | if test "$hardcode_minus_L" != no; then |
| 13983 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 13984 | else |
| 13985 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 13986 | fi |
| 13987 | fi |
| 13988 | fi |
| 13989 | fi |
| 13990 | else |
| 13991 | if test "X$found_a" != "X"; then |
| 13992 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 13993 | else |
| 13994 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 13995 | fi |
| 13996 | fi |
| 13997 | additional_includedir= |
| 13998 | case "$found_dir" in |
| 13999 | */lib | */lib/) |
| 14000 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 14001 | additional_includedir="$basedir/include" |
| 14002 | ;; |
| 14003 | esac |
| 14004 | if test "X$additional_includedir" != "X"; then |
| 14005 | if test "X$additional_includedir" != "X/usr/include"; then |
| 14006 | haveit= |
| 14007 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 14008 | if test -n "$GCC"; then |
| 14009 | case $host_os in |
| 14010 | linux*) haveit=yes;; |
| 14011 | esac |
| 14012 | fi |
| 14013 | fi |
| 14014 | if test -z "$haveit"; then |
| 14015 | for x in $CPPFLAGS $INCICONV; do |
| 14016 | |
| 14017 | acl_save_prefix="$prefix" |
| 14018 | prefix="$acl_final_prefix" |
| 14019 | acl_save_exec_prefix="$exec_prefix" |
| 14020 | exec_prefix="$acl_final_exec_prefix" |
| 14021 | eval x=\"$x\" |
| 14022 | exec_prefix="$acl_save_exec_prefix" |
| 14023 | prefix="$acl_save_prefix" |
| 14024 | |
| 14025 | if test "X$x" = "X-I$additional_includedir"; then |
| 14026 | haveit=yes |
| 14027 | break |
| 14028 | fi |
| 14029 | done |
| 14030 | if test -z "$haveit"; then |
| 14031 | if test -d "$additional_includedir"; then |
| 14032 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 14033 | fi |
| 14034 | fi |
| 14035 | fi |
| 14036 | fi |
| 14037 | fi |
| 14038 | if test -n "$found_la"; then |
| 14039 | save_libdir="$libdir" |
| 14040 | case "$found_la" in |
| 14041 | */* | *\\*) . "$found_la" ;; |
| 14042 | *) . "./$found_la" ;; |
| 14043 | esac |
| 14044 | libdir="$save_libdir" |
| 14045 | for dep in $dependency_libs; do |
| 14046 | case "$dep" in |
| 14047 | -L*) |
| 14048 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 14049 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 14050 | haveit= |
| 14051 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 14052 | if test -n "$GCC"; then |
| 14053 | case $host_os in |
| 14054 | linux*) haveit=yes;; |
| 14055 | esac |
| 14056 | fi |
| 14057 | fi |
| 14058 | if test -z "$haveit"; then |
| 14059 | haveit= |
| 14060 | for x in $LDFLAGS $LIBICONV; do |
| 14061 | |
| 14062 | acl_save_prefix="$prefix" |
| 14063 | prefix="$acl_final_prefix" |
| 14064 | acl_save_exec_prefix="$exec_prefix" |
| 14065 | exec_prefix="$acl_final_exec_prefix" |
| 14066 | eval x=\"$x\" |
| 14067 | exec_prefix="$acl_save_exec_prefix" |
| 14068 | prefix="$acl_save_prefix" |
| 14069 | |
| 14070 | if test "X$x" = "X-L$additional_libdir"; then |
| 14071 | haveit=yes |
| 14072 | break |
| 14073 | fi |
| 14074 | done |
| 14075 | if test -z "$haveit"; then |
| 14076 | if test -d "$additional_libdir"; then |
| 14077 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 14078 | fi |
| 14079 | fi |
| 14080 | haveit= |
| 14081 | for x in $LDFLAGS $LTLIBICONV; do |
| 14082 | |
| 14083 | acl_save_prefix="$prefix" |
| 14084 | prefix="$acl_final_prefix" |
| 14085 | acl_save_exec_prefix="$exec_prefix" |
| 14086 | exec_prefix="$acl_final_exec_prefix" |
| 14087 | eval x=\"$x\" |
| 14088 | exec_prefix="$acl_save_exec_prefix" |
| 14089 | prefix="$acl_save_prefix" |
| 14090 | |
| 14091 | if test "X$x" = "X-L$additional_libdir"; then |
| 14092 | haveit=yes |
| 14093 | break |
| 14094 | fi |
| 14095 | done |
| 14096 | if test -z "$haveit"; then |
| 14097 | if test -d "$additional_libdir"; then |
| 14098 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 14099 | fi |
| 14100 | fi |
| 14101 | fi |
| 14102 | fi |
| 14103 | ;; |
| 14104 | -R*) |
| 14105 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 14106 | if test "$enable_rpath" != no; then |
| 14107 | haveit= |
| 14108 | for x in $rpathdirs; do |
| 14109 | if test "X$x" = "X$dir"; then |
| 14110 | haveit=yes |
| 14111 | break |
| 14112 | fi |
| 14113 | done |
| 14114 | if test -z "$haveit"; then |
| 14115 | rpathdirs="$rpathdirs $dir" |
| 14116 | fi |
| 14117 | haveit= |
| 14118 | for x in $ltrpathdirs; do |
| 14119 | if test "X$x" = "X$dir"; then |
| 14120 | haveit=yes |
| 14121 | break |
| 14122 | fi |
| 14123 | done |
| 14124 | if test -z "$haveit"; then |
| 14125 | ltrpathdirs="$ltrpathdirs $dir" |
| 14126 | fi |
| 14127 | fi |
| 14128 | ;; |
| 14129 | -l*) |
| 14130 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 14131 | ;; |
| 14132 | *.la) |
| 14133 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 14134 | ;; |
| 14135 | *) |
| 14136 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 14137 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 14138 | ;; |
| 14139 | esac |
| 14140 | done |
| 14141 | fi |
| 14142 | else |
| 14143 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 14144 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 14145 | fi |
| 14146 | fi |
| 14147 | fi |
| 14148 | done |
| 14149 | done |
| 14150 | if test "X$rpathdirs" != "X"; then |
| 14151 | if test -n "$hardcode_libdir_separator"; then |
| 14152 | alldirs= |
| 14153 | for found_dir in $rpathdirs; do |
| 14154 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 14155 | done |
| 14156 | acl_save_libdir="$libdir" |
| 14157 | libdir="$alldirs" |
| 14158 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 14159 | libdir="$acl_save_libdir" |
| 14160 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 14161 | else |
| 14162 | for found_dir in $rpathdirs; do |
| 14163 | acl_save_libdir="$libdir" |
| 14164 | libdir="$found_dir" |
| 14165 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 14166 | libdir="$acl_save_libdir" |
| 14167 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 14168 | done |
| 14169 | fi |
| 14170 | fi |
| 14171 | if test "X$ltrpathdirs" != "X"; then |
| 14172 | for found_dir in $ltrpathdirs; do |
| 14173 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 14174 | done |
| 14175 | fi |
| 14176 | |
| 14177 | |
| 14178 | |
| 14179 | |
| 14180 | |
| 14181 | |
| 14182 | |
| 14183 | am_save_CPPFLAGS="$CPPFLAGS" |
| 14184 | |
| 14185 | for element in $INCICONV; do |
| 14186 | haveit= |
| 14187 | for x in $CPPFLAGS; do |
| 14188 | |
| 14189 | acl_save_prefix="$prefix" |
| 14190 | prefix="$acl_final_prefix" |
| 14191 | acl_save_exec_prefix="$exec_prefix" |
| 14192 | exec_prefix="$acl_final_exec_prefix" |
| 14193 | eval x=\"$x\" |
| 14194 | exec_prefix="$acl_save_exec_prefix" |
| 14195 | prefix="$acl_save_prefix" |
| 14196 | |
| 14197 | if test "X$x" = "X$element"; then |
| 14198 | haveit=yes |
| 14199 | break |
| 14200 | fi |
| 14201 | done |
| 14202 | if test -z "$haveit"; then |
| 14203 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 14204 | fi |
| 14205 | done |
| 14206 | |
| 14207 | |
| 14208 | echo "$as_me:$LINENO: checking for iconv" >&5 |
| 14209 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
| 14210 | if test "${am_cv_func_iconv+set}" = set; then |
| 14211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14212 | else |
| 14213 | |
| 14214 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 14215 | am_cv_lib_iconv=no |
| 14216 | cat >conftest.$ac_ext <<_ACEOF |
| 14217 | /* confdefs.h. */ |
| 14218 | _ACEOF |
| 14219 | cat confdefs.h >>conftest.$ac_ext |
| 14220 | cat >>conftest.$ac_ext <<_ACEOF |
| 14221 | /* end confdefs.h. */ |
| 14222 | #include <stdlib.h> |
| 14223 | #include <iconv.h> |
| 14224 | int |
| 14225 | main () |
| 14226 | { |
| 14227 | iconv_t cd = iconv_open("",""); |
| 14228 | iconv(cd,NULL,NULL,NULL,NULL); |
| 14229 | iconv_close(cd); |
| 14230 | ; |
| 14231 | return 0; |
| 14232 | } |
| 14233 | _ACEOF |
| 14234 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14236 | (eval $ac_link) 2>conftest.er1 |
| 14237 | ac_status=$? |
| 14238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14239 | rm -f conftest.er1 |
| 14240 | cat conftest.err >&5 |
| 14241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14242 | (exit $ac_status); } && |
| 14243 | { ac_try='test -z "$ac_c_werror_flag" |
| 14244 | || test ! -s conftest.err' |
| 14245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14246 | (eval $ac_try) 2>&5 |
| 14247 | ac_status=$? |
| 14248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14249 | (exit $ac_status); }; } && |
| 14250 | { ac_try='test -s conftest$ac_exeext' |
| 14251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14252 | (eval $ac_try) 2>&5 |
| 14253 | ac_status=$? |
| 14254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14255 | (exit $ac_status); }; }; then |
| 14256 | am_cv_func_iconv=yes |
| 14257 | else |
| 14258 | echo "$as_me: failed program was:" >&5 |
| 14259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14260 | |
| 14261 | fi |
| 14262 | rm -f conftest.err conftest.$ac_objext \ |
| 14263 | conftest$ac_exeext conftest.$ac_ext |
| 14264 | if test "$am_cv_func_iconv" != yes; then |
| 14265 | am_save_LIBS="$LIBS" |
| 14266 | LIBS="$LIBS $LIBICONV" |
| 14267 | cat >conftest.$ac_ext <<_ACEOF |
| 14268 | /* confdefs.h. */ |
| 14269 | _ACEOF |
| 14270 | cat confdefs.h >>conftest.$ac_ext |
| 14271 | cat >>conftest.$ac_ext <<_ACEOF |
| 14272 | /* end confdefs.h. */ |
| 14273 | #include <stdlib.h> |
| 14274 | #include <iconv.h> |
| 14275 | int |
| 14276 | main () |
| 14277 | { |
| 14278 | iconv_t cd = iconv_open("",""); |
| 14279 | iconv(cd,NULL,NULL,NULL,NULL); |
| 14280 | iconv_close(cd); |
| 14281 | ; |
| 14282 | return 0; |
| 14283 | } |
| 14284 | _ACEOF |
| 14285 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14287 | (eval $ac_link) 2>conftest.er1 |
| 14288 | ac_status=$? |
| 14289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14290 | rm -f conftest.er1 |
| 14291 | cat conftest.err >&5 |
| 14292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14293 | (exit $ac_status); } && |
| 14294 | { ac_try='test -z "$ac_c_werror_flag" |
| 14295 | || test ! -s conftest.err' |
| 14296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14297 | (eval $ac_try) 2>&5 |
| 14298 | ac_status=$? |
| 14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14300 | (exit $ac_status); }; } && |
| 14301 | { ac_try='test -s conftest$ac_exeext' |
| 14302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14303 | (eval $ac_try) 2>&5 |
| 14304 | ac_status=$? |
| 14305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14306 | (exit $ac_status); }; }; then |
| 14307 | am_cv_lib_iconv=yes |
| 14308 | am_cv_func_iconv=yes |
| 14309 | else |
| 14310 | echo "$as_me: failed program was:" >&5 |
| 14311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14312 | |
| 14313 | fi |
| 14314 | rm -f conftest.err conftest.$ac_objext \ |
| 14315 | conftest$ac_exeext conftest.$ac_ext |
| 14316 | LIBS="$am_save_LIBS" |
| 14317 | fi |
| 14318 | |
| 14319 | fi |
| 14320 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 14321 | echo "${ECHO_T}$am_cv_func_iconv" >&6 |
| 14322 | if test "$am_cv_func_iconv" = yes; then |
| 14323 | |
| 14324 | cat >>confdefs.h <<\_ACEOF |
| 14325 | #define HAVE_ICONV 1 |
| 14326 | _ACEOF |
| 14327 | |
| 14328 | fi |
| 14329 | if test "$am_cv_lib_iconv" = yes; then |
| 14330 | echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 14331 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 |
| 14332 | echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 14333 | echo "${ECHO_T}$LIBICONV" >&6 |
| 14334 | else |
| 14335 | CPPFLAGS="$am_save_CPPFLAGS" |
| 14336 | LIBICONV= |
| 14337 | LTLIBICONV= |
| 14338 | fi |
| 14339 | |
| 14340 | |
| 14341 | |
| 14342 | if test "$am_cv_func_iconv" = yes; then |
| 14343 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 14344 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
| 14345 | if test "${am_cv_proto_iconv+set}" = set; then |
| 14346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14347 | else |
| 14348 | |
| 14349 | cat >conftest.$ac_ext <<_ACEOF |
| 14350 | /* confdefs.h. */ |
| 14351 | _ACEOF |
| 14352 | cat confdefs.h >>conftest.$ac_ext |
| 14353 | cat >>conftest.$ac_ext <<_ACEOF |
| 14354 | /* end confdefs.h. */ |
| 14355 | |
| 14356 | #include <stdlib.h> |
| 14357 | #include <iconv.h> |
| 14358 | extern |
| 14359 | #ifdef __cplusplus |
| 14360 | "C" |
| 14361 | #endif |
| 14362 | #if defined(__STDC__) || defined(__cplusplus) |
| 14363 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 14364 | #else |
| 14365 | size_t iconv(); |
| 14366 | #endif |
| 14367 | |
| 14368 | int |
| 14369 | main () |
| 14370 | { |
| 14371 | |
| 14372 | ; |
| 14373 | return 0; |
| 14374 | } |
| 14375 | _ACEOF |
| 14376 | rm -f conftest.$ac_objext |
| 14377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14378 | (eval $ac_compile) 2>conftest.er1 |
| 14379 | ac_status=$? |
| 14380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14381 | rm -f conftest.er1 |
| 14382 | cat conftest.err >&5 |
| 14383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14384 | (exit $ac_status); } && |
| 14385 | { ac_try='test -z "$ac_c_werror_flag" |
| 14386 | || test ! -s conftest.err' |
| 14387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14388 | (eval $ac_try) 2>&5 |
| 14389 | ac_status=$? |
| 14390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14391 | (exit $ac_status); }; } && |
| 14392 | { ac_try='test -s conftest.$ac_objext' |
| 14393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14394 | (eval $ac_try) 2>&5 |
| 14395 | ac_status=$? |
| 14396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14397 | (exit $ac_status); }; }; then |
| 14398 | am_cv_proto_iconv_arg1="" |
| 14399 | else |
| 14400 | echo "$as_me: failed program was:" >&5 |
| 14401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14402 | |
| 14403 | am_cv_proto_iconv_arg1="const" |
| 14404 | fi |
| 14405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14406 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
| 14407 | fi |
| 14408 | |
| 14409 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
| 14410 | echo "$as_me:$LINENO: result: ${ac_t:- |
| 14411 | }$am_cv_proto_iconv" >&5 |
| 14412 | echo "${ECHO_T}${ac_t:- |
| 14413 | }$am_cv_proto_iconv" >&6 |
| 14414 | |
| 14415 | cat >>confdefs.h <<_ACEOF |
| 14416 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
| 14417 | _ACEOF |
| 14418 | |
| 14419 | fi |
| 14420 | |
| 14421 | |
| 14422 | all_targets=false |
| 14423 | BUILD_NLMCONV= |
| 14424 | NLMCONV_DEFS= |
| 14425 | BUILD_SRCONV= |
| 14426 | BUILD_DLLTOOL= |
| 14427 | DLLTOOL_DEFS= |
| 14428 | DLLTOOL_DEFAULT= |
| 14429 | BUILD_WINDRES= |
| 14430 | BUILD_WINDMC= |
| 14431 | BUILD_DLLWRAP= |
| 14432 | BUILD_MISC= |
| 14433 | BUILD_INSTALL_MISC= |
| 14434 | OBJDUMP_DEFS= |
| 14435 | |
| 14436 | for targ in $target $canon_targets |
| 14437 | do |
| 14438 | if test "x$targ" = "xall"; then |
| 14439 | all_targets=true |
| 14440 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' |
| 14441 | BUILD_SRCONV='$(SRCONV_PROG)' |
| 14442 | NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC" |
| 14443 | BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)' |
| 14444 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
| 14445 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
| 14446 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
| 14447 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14448 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" |
| 14449 | fi |
| 14450 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" |
| 14451 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' |
| 14452 | else |
| 14453 | case $targ in |
| 14454 | i[3-7]86*-*-netware*) |
| 14455 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' |
| 14456 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386" |
| 14457 | ;; |
| 14458 | alpha*-*-netware*) |
| 14459 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' |
| 14460 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA" |
| 14461 | ;; |
| 14462 | powerpc*-*-netware*) |
| 14463 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' |
| 14464 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC" |
| 14465 | ;; |
| 14466 | sparc*-*-netware*) |
| 14467 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' |
| 14468 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC" |
| 14469 | ;; |
| 14470 | esac |
| 14471 | case $targ in |
| 14472 | *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;; |
| 14473 | esac |
| 14474 | case $targ in |
| 14475 | arm-epoc-pe*) |
| 14476 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
| 14477 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14478 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC" |
| 14479 | fi |
| 14480 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM" |
| 14481 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
| 14482 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
| 14483 | ;; |
| 14484 | arm-wince-pe* | arm-*-wince) |
| 14485 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
| 14486 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14487 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE" |
| 14488 | fi |
| 14489 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM" |
| 14490 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
| 14491 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
| 14492 | ;; |
| 14493 | arm-*-pe*) |
| 14494 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
| 14495 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14496 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM" |
| 14497 | fi |
| 14498 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" |
| 14499 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
| 14500 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
| 14501 | ;; |
| 14502 | thumb-*-pe*) |
| 14503 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
| 14504 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14505 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM" |
| 14506 | fi |
| 14507 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" |
| 14508 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
| 14509 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
| 14510 | ;; |
| 14511 | x86_64-*-mingw*) |
| 14512 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
| 14513 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14514 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64" |
| 14515 | fi |
| 14516 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64" |
| 14517 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
| 14518 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
| 14519 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' |
| 14520 | ;; |
| 14521 | i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*) |
| 14522 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
| 14523 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14524 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" |
| 14525 | fi |
| 14526 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" |
| 14527 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
| 14528 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
| 14529 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' |
| 14530 | ;; |
| 14531 | i[3-7]86-*-interix) |
| 14532 | BUILD_DLLTOOL='$(DLLTOOL_PROG)' |
| 14533 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14534 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" |
| 14535 | fi |
| 14536 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" |
| 14537 | ;; |
| 14538 | powerpc*-aix5.[01]) |
| 14539 | ;; |
| 14540 | powerpc*-aix5.*) |
| 14541 | OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT" |
| 14542 | ;; |
| 14543 | powerpc*-*-pe* | powerpc*-*-cygwin*) |
| 14544 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
| 14545 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14546 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC" |
| 14547 | fi |
| 14548 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC" |
| 14549 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
| 14550 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
| 14551 | ;; |
| 14552 | powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*) |
| 14553 | BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu" |
| 14554 | ;; |
| 14555 | sh*-*-pe) |
| 14556 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
| 14557 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14558 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH" |
| 14559 | fi |
| 14560 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH" |
| 14561 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
| 14562 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
| 14563 | ;; |
| 14564 | spu-*-*) |
| 14565 | BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)' |
| 14566 | ;; |
| 14567 | mips*-*-pe) |
| 14568 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
| 14569 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14570 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS" |
| 14571 | fi |
| 14572 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS" |
| 14573 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
| 14574 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
| 14575 | ;; |
| 14576 | mcore-*-pe) |
| 14577 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
| 14578 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14579 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE" |
| 14580 | fi |
| 14581 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE" |
| 14582 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
| 14583 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
| 14584 | ;; |
| 14585 | mcore-*-elf) |
| 14586 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
| 14587 | if test -z "$DLLTOOL_DEFAULT"; then |
| 14588 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF" |
| 14589 | fi |
| 14590 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF" |
| 14591 | ;; |
| 14592 | mep-*) |
| 14593 | OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0" |
| 14594 | ;; |
| 14595 | esac |
| 14596 | fi |
| 14597 | done |
| 14598 | |
| 14599 | DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT" |
| 14600 | |
| 14601 | if test "${with_windres+set}" = set; then |
| 14602 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
| 14603 | fi |
| 14604 | |
| 14605 | if test "${with_windmc+set}" = set; then |
| 14606 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
| 14607 | fi |
| 14608 | |
| 14609 | |
| 14610 | |
| 14611 | |
| 14612 | |
| 14613 | |
| 14614 | |
| 14615 | |
| 14616 | |
| 14617 | |
| 14618 | |
| 14619 | |
| 14620 | |
| 14621 | |
| 14622 | cat >>confdefs.h <<_ACEOF |
| 14623 | #define TARGET "${target}" |
| 14624 | _ACEOF |
| 14625 | |
| 14626 | |
| 14627 | targ=$target |
| 14628 | . $srcdir/../bfd/config.bfd |
| 14629 | if test "x$targ_underscore" = "xyes"; then |
| 14630 | UNDERSCORE=1 |
| 14631 | else |
| 14632 | UNDERSCORE=0 |
| 14633 | fi |
| 14634 | |
| 14635 | cat >>confdefs.h <<_ACEOF |
| 14636 | #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE |
| 14637 | _ACEOF |
| 14638 | |
| 14639 | |
| 14640 | # Emulation |
| 14641 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
| 14642 | do |
| 14643 | # Canonicalize the secondary target names. |
| 14644 | result=`$ac_config_sub $targ_alias 2>/dev/null` |
| 14645 | if test -n "$result"; then |
| 14646 | targ=$result |
| 14647 | else |
| 14648 | targ=$targ_alias |
| 14649 | fi |
| 14650 | |
| 14651 | . ${srcdir}/configure.tgt |
| 14652 | |
| 14653 | EMULATION=$targ_emul |
| 14654 | EMULATION_VECTOR=$targ_emul_vector |
| 14655 | done |
| 14656 | |
| 14657 | |
| 14658 | |
| 14659 | |
| 14660 | # Required for html and install-html |
| 14661 | |
| 14662 | |
| 14663 | |
| 14664 | |
| 14665 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" |
| 14666 | cat >confcache <<\_ACEOF |
| 14667 | # This file is a shell script that caches the results of configure |
| 14668 | # tests run on this system so they can be shared between configure |
| 14669 | # scripts and configure runs, see configure's option --config-cache. |
| 14670 | # It is not useful on other systems. If it contains results you don't |
| 14671 | # want to keep, you may remove or edit it. |
| 14672 | # |
| 14673 | # config.status only pays attention to the cache file if you give it |
| 14674 | # the --recheck option to rerun configure. |
| 14675 | # |
| 14676 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 14677 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 14678 | # following values. |
| 14679 | |
| 14680 | _ACEOF |
| 14681 | |
| 14682 | # The following way of writing the cache mishandles newlines in values, |
| 14683 | # but we know of no workaround that is simple, portable, and efficient. |
| 14684 | # So, don't put newlines in cache variables' values. |
| 14685 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 14686 | # and sets the high bit in the cache file unless we assign to the vars. |
| 14687 | { |
| 14688 | (set) 2>&1 | |
| 14689 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 14690 | *ac_space=\ *) |
| 14691 | # `set' does not quote correctly, so add quotes (double-quote |
| 14692 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 14693 | sed -n \ |
| 14694 | "s/'/'\\\\''/g; |
| 14695 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 14696 | ;; |
| 14697 | *) |
| 14698 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 14699 | sed -n \ |
| 14700 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 14701 | ;; |
| 14702 | esac; |
| 14703 | } | |
| 14704 | sed ' |
| 14705 | t clear |
| 14706 | : clear |
| 14707 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 14708 | t end |
| 14709 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 14710 | : end' >>confcache |
| 14711 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 14712 | if test -w $cache_file; then |
| 14713 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 14714 | cat confcache >$cache_file |
| 14715 | else |
| 14716 | echo "not updating unwritable cache $cache_file" |
| 14717 | fi |
| 14718 | fi |
| 14719 | rm -f confcache |
| 14720 | |
| 14721 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 14722 | # Let make expand exec_prefix. |
| 14723 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 14724 | |
| 14725 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 14726 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 14727 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14728 | # (actually we leave an empty line to preserve line numbers). |
| 14729 | if test "x$srcdir" = x.; then |
| 14730 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 14731 | s/:*\$(srcdir):*/:/; |
| 14732 | s/:*\${srcdir}:*/:/; |
| 14733 | s/:*@srcdir@:*/:/; |
| 14734 | s/^\([^=]*=[ ]*\):*/\1/; |
| 14735 | s/:*$//; |
| 14736 | s/^[^=]*=[ ]*$//; |
| 14737 | }' |
| 14738 | fi |
| 14739 | |
| 14740 | DEFS=-DHAVE_CONFIG_H |
| 14741 | |
| 14742 | ac_libobjs= |
| 14743 | ac_ltlibobjs= |
| 14744 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 14745 | # 1. Remove the extension, and $U if already installed. |
| 14746 | ac_i=`echo "$ac_i" | |
| 14747 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 14748 | # 2. Add them. |
| 14749 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 14750 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 14751 | done |
| 14752 | LIBOBJS=$ac_libobjs |
| 14753 | |
| 14754 | LTLIBOBJS=$ac_ltlibobjs |
| 14755 | |
| 14756 | |
| 14757 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 14758 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 14759 | Usually this means the macro was only invoked conditionally." >&5 |
| 14760 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 14761 | Usually this means the macro was only invoked conditionally." >&2;} |
| 14762 | { (exit 1); exit 1; }; } |
| 14763 | fi |
| 14764 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 14765 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 14766 | Usually this means the macro was only invoked conditionally." >&5 |
| 14767 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 14768 | Usually this means the macro was only invoked conditionally." >&2;} |
| 14769 | { (exit 1); exit 1; }; } |
| 14770 | fi |
| 14771 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 14772 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 14773 | Usually this means the macro was only invoked conditionally." >&5 |
| 14774 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 14775 | Usually this means the macro was only invoked conditionally." >&2;} |
| 14776 | { (exit 1); exit 1; }; } |
| 14777 | fi |
| 14778 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
| 14779 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined. |
| 14780 | Usually this means the macro was only invoked conditionally." >&5 |
| 14781 | echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined. |
| 14782 | Usually this means the macro was only invoked conditionally." >&2;} |
| 14783 | { (exit 1); exit 1; }; } |
| 14784 | fi |
| 14785 | |
| 14786 | : ${CONFIG_STATUS=./config.status} |
| 14787 | ac_clean_files_save=$ac_clean_files |
| 14788 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 14789 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 14790 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 14791 | cat >$CONFIG_STATUS <<_ACEOF |
| 14792 | #! $SHELL |
| 14793 | # Generated by $as_me. |
| 14794 | # Run this file to recreate the current configuration. |
| 14795 | # Compiler output produced by configure, useful for debugging |
| 14796 | # configure, is in config.log if it exists. |
| 14797 | |
| 14798 | debug=false |
| 14799 | ac_cs_recheck=false |
| 14800 | ac_cs_silent=false |
| 14801 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 14802 | _ACEOF |
| 14803 | |
| 14804 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14805 | ## --------------------- ## |
| 14806 | ## M4sh Initialization. ## |
| 14807 | ## --------------------- ## |
| 14808 | |
| 14809 | # Be Bourne compatible |
| 14810 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14811 | emulate sh |
| 14812 | NULLCMD=: |
| 14813 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 14814 | # is contrary to our usage. Disable this feature. |
| 14815 | alias -g '${1+"$@"}'='"$@"' |
| 14816 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 14817 | set -o posix |
| 14818 | fi |
| 14819 | DUALCASE=1; export DUALCASE # for MKS sh |
| 14820 | |
| 14821 | # Support unset when possible. |
| 14822 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 14823 | as_unset=unset |
| 14824 | else |
| 14825 | as_unset=false |
| 14826 | fi |
| 14827 | |
| 14828 | |
| 14829 | # Work around bugs in pre-3.0 UWIN ksh. |
| 14830 | $as_unset ENV MAIL MAILPATH |
| 14831 | PS1='$ ' |
| 14832 | PS2='> ' |
| 14833 | PS4='+ ' |
| 14834 | |
| 14835 | # NLS nuisances. |
| 14836 | for as_var in \ |
| 14837 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 14838 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 14839 | LC_TELEPHONE LC_TIME |
| 14840 | do |
| 14841 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 14842 | eval $as_var=C; export $as_var |
| 14843 | else |
| 14844 | $as_unset $as_var |
| 14845 | fi |
| 14846 | done |
| 14847 | |
| 14848 | # Required to use basename. |
| 14849 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 14850 | as_expr=expr |
| 14851 | else |
| 14852 | as_expr=false |
| 14853 | fi |
| 14854 | |
| 14855 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 14856 | as_basename=basename |
| 14857 | else |
| 14858 | as_basename=false |
| 14859 | fi |
| 14860 | |
| 14861 | |
| 14862 | # Name of the executable. |
| 14863 | as_me=`$as_basename "$0" || |
| 14864 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14865 | X"$0" : 'X\(//\)$' \| \ |
| 14866 | X"$0" : 'X\(/\)$' \| \ |
| 14867 | . : '\(.\)' 2>/dev/null || |
| 14868 | echo X/"$0" | |
| 14869 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 14870 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 14871 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 14872 | s/.*/./; q'` |
| 14873 | |
| 14874 | |
| 14875 | # PATH needs CR, and LINENO needs CR and PATH. |
| 14876 | # Avoid depending upon Character Ranges. |
| 14877 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14878 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14879 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14880 | as_cr_digits='0123456789' |
| 14881 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 14882 | |
| 14883 | # The user is always right. |
| 14884 | if test "${PATH_SEPARATOR+set}" != set; then |
| 14885 | echo "#! /bin/sh" >conf$$.sh |
| 14886 | echo "exit 0" >>conf$$.sh |
| 14887 | chmod +x conf$$.sh |
| 14888 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 14889 | PATH_SEPARATOR=';' |
| 14890 | else |
| 14891 | PATH_SEPARATOR=: |
| 14892 | fi |
| 14893 | rm -f conf$$.sh |
| 14894 | fi |
| 14895 | |
| 14896 | |
| 14897 | as_lineno_1=$LINENO |
| 14898 | as_lineno_2=$LINENO |
| 14899 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 14900 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 14901 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 14902 | # Find who we are. Look in the path if we contain no path at all |
| 14903 | # relative or not. |
| 14904 | case $0 in |
| 14905 | *[\\/]* ) as_myself=$0 ;; |
| 14906 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14907 | for as_dir in $PATH |
| 14908 | do |
| 14909 | IFS=$as_save_IFS |
| 14910 | test -z "$as_dir" && as_dir=. |
| 14911 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14912 | done |
| 14913 | |
| 14914 | ;; |
| 14915 | esac |
| 14916 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14917 | # in which case we are not to be found in the path. |
| 14918 | if test "x$as_myself" = x; then |
| 14919 | as_myself=$0 |
| 14920 | fi |
| 14921 | if test ! -f "$as_myself"; then |
| 14922 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 14923 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 14924 | { (exit 1); exit 1; }; } |
| 14925 | fi |
| 14926 | case $CONFIG_SHELL in |
| 14927 | '') |
| 14928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14929 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 14930 | do |
| 14931 | IFS=$as_save_IFS |
| 14932 | test -z "$as_dir" && as_dir=. |
| 14933 | for as_base in sh bash ksh sh5; do |
| 14934 | case $as_dir in |
| 14935 | /*) |
| 14936 | if ("$as_dir/$as_base" -c ' |
| 14937 | as_lineno_1=$LINENO |
| 14938 | as_lineno_2=$LINENO |
| 14939 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 14940 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 14941 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 14942 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 14943 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 14944 | CONFIG_SHELL=$as_dir/$as_base |
| 14945 | export CONFIG_SHELL |
| 14946 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 14947 | fi;; |
| 14948 | esac |
| 14949 | done |
| 14950 | done |
| 14951 | ;; |
| 14952 | esac |
| 14953 | |
| 14954 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 14955 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 14956 | # line-number line before each line; the second 'sed' does the real |
| 14957 | # work. The second script uses 'N' to pair each line-number line |
| 14958 | # with the numbered line, and appends trailing '-' during |
| 14959 | # substitution so that $LINENO is not a special case at line end. |
| 14960 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 14961 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 14962 | sed '=' <$as_myself | |
| 14963 | sed ' |
| 14964 | N |
| 14965 | s,$,-, |
| 14966 | : loop |
| 14967 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 14968 | t loop |
| 14969 | s,-$,, |
| 14970 | s,^['$as_cr_digits']*\n,, |
| 14971 | ' >$as_me.lineno && |
| 14972 | chmod +x $as_me.lineno || |
| 14973 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 14974 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 14975 | { (exit 1); exit 1; }; } |
| 14976 | |
| 14977 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 14978 | # (the dirname of $[0] is not the place where we might find the |
| 14979 | # original and so on. Autoconf is especially sensible to this). |
| 14980 | . ./$as_me.lineno |
| 14981 | # Exit status is that of the last command. |
| 14982 | exit |
| 14983 | } |
| 14984 | |
| 14985 | |
| 14986 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 14987 | *c*,-n*) ECHO_N= ECHO_C=' |
| 14988 | ' ECHO_T=' ' ;; |
| 14989 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 14990 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 14991 | esac |
| 14992 | |
| 14993 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 14994 | as_expr=expr |
| 14995 | else |
| 14996 | as_expr=false |
| 14997 | fi |
| 14998 | |
| 14999 | rm -f conf$$ conf$$.exe conf$$.file |
| 15000 | echo >conf$$.file |
| 15001 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15002 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 15003 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 15004 | if test -f conf$$.exe; then |
| 15005 | # Don't use ln at all; we don't have any links |
| 15006 | as_ln_s='cp -p' |
| 15007 | else |
| 15008 | as_ln_s='ln -s' |
| 15009 | fi |
| 15010 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15011 | as_ln_s=ln |
| 15012 | else |
| 15013 | as_ln_s='cp -p' |
| 15014 | fi |
| 15015 | rm -f conf$$ conf$$.exe conf$$.file |
| 15016 | |
| 15017 | if mkdir -p . 2>/dev/null; then |
| 15018 | as_mkdir_p=: |
| 15019 | else |
| 15020 | test -d ./-p && rmdir ./-p |
| 15021 | as_mkdir_p=false |
| 15022 | fi |
| 15023 | |
| 15024 | as_executable_p="test -f" |
| 15025 | |
| 15026 | # Sed expression to map a string onto a valid CPP name. |
| 15027 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15028 | |
| 15029 | # Sed expression to map a string onto a valid variable name. |
| 15030 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15031 | |
| 15032 | |
| 15033 | # IFS |
| 15034 | # We need space, tab and new line, in precisely that order. |
| 15035 | as_nl=' |
| 15036 | ' |
| 15037 | IFS=" $as_nl" |
| 15038 | |
| 15039 | # CDPATH. |
| 15040 | $as_unset CDPATH |
| 15041 | |
| 15042 | exec 6>&1 |
| 15043 | |
| 15044 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 15045 | # report actual input values of CONFIG_FILES etc. instead of their |
| 15046 | # values after options handling. Logging --version etc. is OK. |
| 15047 | exec 5>>config.log |
| 15048 | { |
| 15049 | echo |
| 15050 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15051 | ## Running $as_me. ## |
| 15052 | _ASBOX |
| 15053 | } >&5 |
| 15054 | cat >&5 <<_CSEOF |
| 15055 | |
| 15056 | This file was extended by $as_me, which was |
| 15057 | generated by GNU Autoconf 2.59. Invocation command line was |
| 15058 | |
| 15059 | CONFIG_FILES = $CONFIG_FILES |
| 15060 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15061 | CONFIG_LINKS = $CONFIG_LINKS |
| 15062 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15063 | $ $0 $@ |
| 15064 | |
| 15065 | _CSEOF |
| 15066 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 15067 | echo >&5 |
| 15068 | _ACEOF |
| 15069 | |
| 15070 | # Files that config.status was made for. |
| 15071 | if test -n "$ac_config_files"; then |
| 15072 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 15073 | fi |
| 15074 | |
| 15075 | if test -n "$ac_config_headers"; then |
| 15076 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 15077 | fi |
| 15078 | |
| 15079 | if test -n "$ac_config_links"; then |
| 15080 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 15081 | fi |
| 15082 | |
| 15083 | if test -n "$ac_config_commands"; then |
| 15084 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 15085 | fi |
| 15086 | |
| 15087 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15088 | |
| 15089 | ac_cs_usage="\ |
| 15090 | \`$as_me' instantiates files from templates according to the |
| 15091 | current configuration. |
| 15092 | |
| 15093 | Usage: $0 [OPTIONS] [FILE]... |
| 15094 | |
| 15095 | -h, --help print this help, then exit |
| 15096 | -V, --version print version number, then exit |
| 15097 | -q, --quiet do not print progress messages |
| 15098 | -d, --debug don't remove temporary files |
| 15099 | --recheck update $as_me by reconfiguring in the same conditions |
| 15100 | --file=FILE[:TEMPLATE] |
| 15101 | instantiate the configuration file FILE |
| 15102 | --header=FILE[:TEMPLATE] |
| 15103 | instantiate the configuration header FILE |
| 15104 | |
| 15105 | Configuration files: |
| 15106 | $config_files |
| 15107 | |
| 15108 | Configuration headers: |
| 15109 | $config_headers |
| 15110 | |
| 15111 | Configuration commands: |
| 15112 | $config_commands |
| 15113 | |
| 15114 | Report bugs to <bug-autoconf@gnu.org>." |
| 15115 | _ACEOF |
| 15116 | |
| 15117 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15118 | ac_cs_version="\\ |
| 15119 | config.status |
| 15120 | configured by $0, generated by GNU Autoconf 2.59, |
| 15121 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 15122 | |
| 15123 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 15124 | This config.status script is free software; the Free Software Foundation |
| 15125 | gives unlimited permission to copy, distribute and modify it." |
| 15126 | srcdir=$srcdir |
| 15127 | INSTALL="$INSTALL" |
| 15128 | _ACEOF |
| 15129 | |
| 15130 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15131 | # If no file are specified by the user, then we need to provide default |
| 15132 | # value. By we need to know if files were specified by the user. |
| 15133 | ac_need_defaults=: |
| 15134 | while test $# != 0 |
| 15135 | do |
| 15136 | case $1 in |
| 15137 | --*=*) |
| 15138 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 15139 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 15140 | ac_shift=: |
| 15141 | ;; |
| 15142 | -*) |
| 15143 | ac_option=$1 |
| 15144 | ac_optarg=$2 |
| 15145 | ac_shift=shift |
| 15146 | ;; |
| 15147 | *) # This is not an option, so the user has probably given explicit |
| 15148 | # arguments. |
| 15149 | ac_option=$1 |
| 15150 | ac_need_defaults=false;; |
| 15151 | esac |
| 15152 | |
| 15153 | case $ac_option in |
| 15154 | # Handling of the options. |
| 15155 | _ACEOF |
| 15156 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15157 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15158 | ac_cs_recheck=: ;; |
| 15159 | --version | --vers* | -V ) |
| 15160 | echo "$ac_cs_version"; exit 0 ;; |
| 15161 | --he | --h) |
| 15162 | # Conflict between --help and --header |
| 15163 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 15164 | Try \`$0 --help' for more information." >&5 |
| 15165 | echo "$as_me: error: ambiguous option: $1 |
| 15166 | Try \`$0 --help' for more information." >&2;} |
| 15167 | { (exit 1); exit 1; }; };; |
| 15168 | --help | --hel | -h ) |
| 15169 | echo "$ac_cs_usage"; exit 0 ;; |
| 15170 | --debug | --d* | -d ) |
| 15171 | debug=: ;; |
| 15172 | --file | --fil | --fi | --f ) |
| 15173 | $ac_shift |
| 15174 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15175 | ac_need_defaults=false;; |
| 15176 | --header | --heade | --head | --hea ) |
| 15177 | $ac_shift |
| 15178 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 15179 | ac_need_defaults=false;; |
| 15180 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15181 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15182 | ac_cs_silent=: ;; |
| 15183 | |
| 15184 | # This is an error. |
| 15185 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 15186 | Try \`$0 --help' for more information." >&5 |
| 15187 | echo "$as_me: error: unrecognized option: $1 |
| 15188 | Try \`$0 --help' for more information." >&2;} |
| 15189 | { (exit 1); exit 1; }; } ;; |
| 15190 | |
| 15191 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 15192 | |
| 15193 | esac |
| 15194 | shift |
| 15195 | done |
| 15196 | |
| 15197 | ac_configure_extra_args= |
| 15198 | |
| 15199 | if $ac_cs_silent; then |
| 15200 | exec 6>/dev/null |
| 15201 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15202 | fi |
| 15203 | |
| 15204 | _ACEOF |
| 15205 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15206 | if \$ac_cs_recheck; then |
| 15207 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15208 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15209 | fi |
| 15210 | |
| 15211 | _ACEOF |
| 15212 | |
| 15213 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15214 | # |
| 15215 | # INIT-COMMANDS section. |
| 15216 | # |
| 15217 | |
| 15218 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 15219 | |
| 15220 | |
| 15221 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 15222 | # if CDPATH is set. |
| 15223 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15224 | |
| 15225 | sed_quote_subst='$sed_quote_subst' |
| 15226 | double_quote_subst='$double_quote_subst' |
| 15227 | delay_variable_subst='$delay_variable_subst' |
| 15228 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 15229 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 15230 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 15231 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15232 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 15233 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 15234 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 15235 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 15236 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 15237 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 15238 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 15239 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 15240 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 15241 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 15242 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15243 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15244 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15245 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 15246 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 15247 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 15248 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 15249 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15250 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15251 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 15252 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15253 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15254 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15255 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15256 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 15257 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 15258 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 15259 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 15260 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15261 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 15262 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15263 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15264 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15265 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 15266 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 15267 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 15268 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 15269 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 15270 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 15271 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
| 15272 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 15273 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15274 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 15275 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 15276 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15277 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 15278 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 15279 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15280 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 15281 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 15282 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15283 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15284 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15285 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 15286 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 15287 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15288 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15289 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 15290 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15291 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15292 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15293 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15294 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15295 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15296 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 15297 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15298 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15299 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15300 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 15301 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 15302 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 15303 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 15304 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 15305 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15306 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 15307 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 15308 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15309 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 15310 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 15311 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15312 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 15313 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 15314 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15315 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15316 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 15317 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 15318 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 15319 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 15320 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15321 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15322 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 15323 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15324 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15325 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15326 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15327 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15328 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15329 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 15330 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15331 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15332 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15333 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 15334 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 15335 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 15336 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15337 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 15338 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 15339 | |
| 15340 | LTCC='$LTCC' |
| 15341 | LTCFLAGS='$LTCFLAGS' |
| 15342 | compiler='$compiler_DEFAULT' |
| 15343 | |
| 15344 | # Quote evaled strings. |
| 15345 | for var in SED \ |
| 15346 | GREP \ |
| 15347 | EGREP \ |
| 15348 | FGREP \ |
| 15349 | LD \ |
| 15350 | NM \ |
| 15351 | LN_S \ |
| 15352 | lt_SP2NL \ |
| 15353 | lt_NL2SP \ |
| 15354 | reload_flag \ |
| 15355 | deplibs_check_method \ |
| 15356 | file_magic_cmd \ |
| 15357 | AR \ |
| 15358 | AR_FLAGS \ |
| 15359 | STRIP \ |
| 15360 | RANLIB \ |
| 15361 | CC \ |
| 15362 | CFLAGS \ |
| 15363 | compiler \ |
| 15364 | lt_cv_sys_global_symbol_pipe \ |
| 15365 | lt_cv_sys_global_symbol_to_cdecl \ |
| 15366 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 15367 | SHELL \ |
| 15368 | ECHO \ |
| 15369 | lt_prog_compiler_no_builtin_flag \ |
| 15370 | lt_prog_compiler_wl \ |
| 15371 | lt_prog_compiler_pic \ |
| 15372 | lt_prog_compiler_static \ |
| 15373 | lt_cv_prog_compiler_c_o \ |
| 15374 | need_locks \ |
| 15375 | shrext_cmds \ |
| 15376 | export_dynamic_flag_spec \ |
| 15377 | whole_archive_flag_spec \ |
| 15378 | compiler_needs_object \ |
| 15379 | with_gnu_ld \ |
| 15380 | allow_undefined_flag \ |
| 15381 | no_undefined_flag \ |
| 15382 | hardcode_libdir_flag_spec \ |
| 15383 | hardcode_libdir_flag_spec_ld \ |
| 15384 | hardcode_libdir_separator \ |
| 15385 | fix_srcfile_path \ |
| 15386 | exclude_expsyms \ |
| 15387 | include_expsyms \ |
| 15388 | file_list_spec \ |
| 15389 | variables_saved_for_relink \ |
| 15390 | libname_spec \ |
| 15391 | library_names_spec \ |
| 15392 | soname_spec \ |
| 15393 | finish_eval \ |
| 15394 | old_striplib \ |
| 15395 | striplib; do |
| 15396 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 15397 | *[\\\\\\\`\\"\\\$]*) |
| 15398 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 15399 | ;; |
| 15400 | *) |
| 15401 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 15402 | ;; |
| 15403 | esac |
| 15404 | done |
| 15405 | |
| 15406 | # Double-quote double-evaled strings. |
| 15407 | for var in reload_cmds \ |
| 15408 | old_postinstall_cmds \ |
| 15409 | old_postuninstall_cmds \ |
| 15410 | old_archive_cmds \ |
| 15411 | extract_expsyms_cmds \ |
| 15412 | old_archive_from_new_cmds \ |
| 15413 | old_archive_from_expsyms_cmds \ |
| 15414 | archive_cmds \ |
| 15415 | archive_expsym_cmds \ |
| 15416 | module_cmds \ |
| 15417 | module_expsym_cmds \ |
| 15418 | export_symbols_cmds \ |
| 15419 | prelink_cmds \ |
| 15420 | postinstall_cmds \ |
| 15421 | postuninstall_cmds \ |
| 15422 | finish_cmds \ |
| 15423 | sys_lib_search_path_spec \ |
| 15424 | sys_lib_dlsearch_path_spec; do |
| 15425 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 15426 | *[\\\\\\\`\\"\\\$]*) |
| 15427 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 15428 | ;; |
| 15429 | *) |
| 15430 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 15431 | ;; |
| 15432 | esac |
| 15433 | done |
| 15434 | |
| 15435 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 15436 | case \$lt_ECHO in |
| 15437 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 15438 | ;; |
| 15439 | esac |
| 15440 | |
| 15441 | ac_aux_dir='$ac_aux_dir' |
| 15442 | xsi_shell='$xsi_shell' |
| 15443 | lt_shell_append='$lt_shell_append' |
| 15444 | |
| 15445 | # See if we are running on zsh, and set the options which allow our |
| 15446 | # commands through without removal of \ escapes INIT. |
| 15447 | if test -n "\${ZSH_VERSION+set}" ; then |
| 15448 | setopt NO_GLOB_SUBST |
| 15449 | fi |
| 15450 | |
| 15451 | |
| 15452 | PACKAGE='$PACKAGE' |
| 15453 | VERSION='$VERSION' |
| 15454 | TIMESTAMP='$TIMESTAMP' |
| 15455 | RM='$RM' |
| 15456 | ofile='$ofile' |
| 15457 | |
| 15458 | |
| 15459 | |
| 15460 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 15461 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
| 15462 | # from automake. |
| 15463 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
| 15464 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 15465 | LINGUAS="${LINGUAS-%UNSET%}" |
| 15466 | |
| 15467 | |
| 15468 | _ACEOF |
| 15469 | |
| 15470 | |
| 15471 | |
| 15472 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15473 | for ac_config_target in $ac_config_targets |
| 15474 | do |
| 15475 | case "$ac_config_target" in |
| 15476 | # Handling of arguments. |
| 15477 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 15478 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 15479 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; |
| 15480 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 15481 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 15482 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 15483 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
| 15484 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15485 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15486 | { (exit 1); exit 1; }; };; |
| 15487 | esac |
| 15488 | done |
| 15489 | |
| 15490 | # If the user did not use the arguments to specify the items to instantiate, |
| 15491 | # then the envvar interface is used. Set only those that are not. |
| 15492 | # We use the long form for the default assignment because of an extremely |
| 15493 | # bizarre bug on SunOS 4.1.3. |
| 15494 | if $ac_need_defaults; then |
| 15495 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15496 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 15497 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15498 | fi |
| 15499 | |
| 15500 | # Have a temporary directory for convenience. Make it in the build tree |
| 15501 | # simply because there is no reason to put it here, and in addition, |
| 15502 | # creating and moving files from /tmp can sometimes cause problems. |
| 15503 | # Create a temporary directory, and hook for its removal unless debugging. |
| 15504 | $debug || |
| 15505 | { |
| 15506 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 15507 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15508 | } |
| 15509 | |
| 15510 | # Create a (secure) tmp directory for tmp files. |
| 15511 | |
| 15512 | { |
| 15513 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 15514 | test -n "$tmp" && test -d "$tmp" |
| 15515 | } || |
| 15516 | { |
| 15517 | tmp=./confstat$$-$RANDOM |
| 15518 | (umask 077 && mkdir $tmp) |
| 15519 | } || |
| 15520 | { |
| 15521 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15522 | { (exit 1); exit 1; } |
| 15523 | } |
| 15524 | |
| 15525 | _ACEOF |
| 15526 | |
| 15527 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15528 | |
| 15529 | # |
| 15530 | # CONFIG_FILES section. |
| 15531 | # |
| 15532 | |
| 15533 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15534 | # This happens for instance when ./config.status config.h |
| 15535 | if test -n "\$CONFIG_FILES"; then |
| 15536 | # Protect against being on the right side of a sed subst in config.status. |
| 15537 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 15538 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 15539 | s,@SHELL@,$SHELL,;t t |
| 15540 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 15541 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 15542 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 15543 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 15544 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 15545 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 15546 | s,@exec_prefix@,$exec_prefix,;t t |
| 15547 | s,@prefix@,$prefix,;t t |
| 15548 | s,@program_transform_name@,$program_transform_name,;t t |
| 15549 | s,@bindir@,$bindir,;t t |
| 15550 | s,@sbindir@,$sbindir,;t t |
| 15551 | s,@libexecdir@,$libexecdir,;t t |
| 15552 | s,@datadir@,$datadir,;t t |
| 15553 | s,@sysconfdir@,$sysconfdir,;t t |
| 15554 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 15555 | s,@localstatedir@,$localstatedir,;t t |
| 15556 | s,@libdir@,$libdir,;t t |
| 15557 | s,@includedir@,$includedir,;t t |
| 15558 | s,@oldincludedir@,$oldincludedir,;t t |
| 15559 | s,@infodir@,$infodir,;t t |
| 15560 | s,@mandir@,$mandir,;t t |
| 15561 | s,@build_alias@,$build_alias,;t t |
| 15562 | s,@host_alias@,$host_alias,;t t |
| 15563 | s,@target_alias@,$target_alias,;t t |
| 15564 | s,@DEFS@,$DEFS,;t t |
| 15565 | s,@ECHO_C@,$ECHO_C,;t t |
| 15566 | s,@ECHO_N@,$ECHO_N,;t t |
| 15567 | s,@ECHO_T@,$ECHO_T,;t t |
| 15568 | s,@LIBS@,$LIBS,;t t |
| 15569 | s,@build@,$build,;t t |
| 15570 | s,@build_cpu@,$build_cpu,;t t |
| 15571 | s,@build_vendor@,$build_vendor,;t t |
| 15572 | s,@build_os@,$build_os,;t t |
| 15573 | s,@host@,$host,;t t |
| 15574 | s,@host_cpu@,$host_cpu,;t t |
| 15575 | s,@host_vendor@,$host_vendor,;t t |
| 15576 | s,@host_os@,$host_os,;t t |
| 15577 | s,@target@,$target,;t t |
| 15578 | s,@target_cpu@,$target_cpu,;t t |
| 15579 | s,@target_vendor@,$target_vendor,;t t |
| 15580 | s,@target_os@,$target_os,;t t |
| 15581 | s,@CC@,$CC,;t t |
| 15582 | s,@CFLAGS@,$CFLAGS,;t t |
| 15583 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 15584 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 15585 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 15586 | s,@EXEEXT@,$EXEEXT,;t t |
| 15587 | s,@OBJEXT@,$OBJEXT,;t t |
| 15588 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 15589 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 15590 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 15591 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
| 15592 | s,@PACKAGE@,$PACKAGE,;t t |
| 15593 | s,@VERSION@,$VERSION,;t t |
| 15594 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 15595 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 15596 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 15597 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 15598 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 15599 | s,@install_sh@,$install_sh,;t t |
| 15600 | s,@STRIP@,$STRIP,;t t |
| 15601 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 15602 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 15603 | s,@mkdir_p@,$mkdir_p,;t t |
| 15604 | s,@AWK@,$AWK,;t t |
| 15605 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 15606 | s,@am__leading_dot@,$am__leading_dot,;t t |
| 15607 | s,@AMTAR@,$AMTAR,;t t |
| 15608 | s,@am__tar@,$am__tar,;t t |
| 15609 | s,@am__untar@,$am__untar,;t t |
| 15610 | s,@DEPDIR@,$DEPDIR,;t t |
| 15611 | s,@am__include@,$am__include,;t t |
| 15612 | s,@am__quote@,$am__quote,;t t |
| 15613 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 15614 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 15615 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 15616 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 15617 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
| 15618 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
| 15619 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 15620 | s,@SED@,$SED,;t t |
| 15621 | s,@EGREP@,$EGREP,;t t |
| 15622 | s,@FGREP@,$FGREP,;t t |
| 15623 | s,@GREP@,$GREP,;t t |
| 15624 | s,@LD@,$LD,;t t |
| 15625 | s,@DUMPBIN@,$DUMPBIN,;t t |
| 15626 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t |
| 15627 | s,@NM@,$NM,;t t |
| 15628 | s,@LN_S@,$LN_S,;t t |
| 15629 | s,@AR@,$AR,;t t |
| 15630 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 15631 | s,@RANLIB@,$RANLIB,;t t |
| 15632 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 15633 | s,@lt_ECHO@,$lt_ECHO,;t t |
| 15634 | s,@CPP@,$CPP,;t t |
| 15635 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
| 15636 | s,@NO_WERROR@,$NO_WERROR,;t t |
| 15637 | s,@YACC@,$YACC,;t t |
| 15638 | s,@LEX@,$LEX,;t t |
| 15639 | s,@LEXLIB@,$LEXLIB,;t t |
| 15640 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 15641 | s,@USE_NLS@,$USE_NLS,;t t |
| 15642 | s,@LIBINTL@,$LIBINTL,;t t |
| 15643 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t |
| 15644 | s,@INCINTL@,$INCINTL,;t t |
| 15645 | s,@XGETTEXT@,$XGETTEXT,;t t |
| 15646 | s,@GMSGFMT@,$GMSGFMT,;t t |
| 15647 | s,@POSUB@,$POSUB,;t t |
| 15648 | s,@CATALOGS@,$CATALOGS,;t t |
| 15649 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
| 15650 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
| 15651 | s,@GENCAT@,$GENCAT,;t t |
| 15652 | s,@CATOBJEXT@,$CATOBJEXT,;t t |
| 15653 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
| 15654 | s,@MSGFMT@,$MSGFMT,;t t |
| 15655 | s,@MSGMERGE@,$MSGMERGE,;t t |
| 15656 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 15657 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 15658 | s,@MAINT@,$MAINT,;t t |
| 15659 | s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t |
| 15660 | s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t |
| 15661 | s,@HDEFINES@,$HDEFINES,;t t |
| 15662 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t |
| 15663 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t |
| 15664 | s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t |
| 15665 | s,@ALLOCA@,$ALLOCA,;t t |
| 15666 | s,@LIBICONV@,$LIBICONV,;t t |
| 15667 | s,@LTLIBICONV@,$LTLIBICONV,;t t |
| 15668 | s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t |
| 15669 | s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t |
| 15670 | s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t |
| 15671 | s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t |
| 15672 | s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t |
| 15673 | s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t |
| 15674 | s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t |
| 15675 | s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t |
| 15676 | s,@BUILD_MISC@,$BUILD_MISC,;t t |
| 15677 | s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t |
| 15678 | s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t |
| 15679 | s,@EMULATION@,$EMULATION,;t t |
| 15680 | s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t |
| 15681 | s,@datarootdir@,$datarootdir,;t t |
| 15682 | s,@docdir@,$docdir,;t t |
| 15683 | s,@htmldir@,$htmldir,;t t |
| 15684 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 15685 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 15686 | CEOF |
| 15687 | |
| 15688 | _ACEOF |
| 15689 | |
| 15690 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15691 | # Split the substitutions into bite-sized pieces for seds with |
| 15692 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 15693 | ac_max_sed_lines=48 |
| 15694 | ac_sed_frag=1 # Number of current file. |
| 15695 | ac_beg=1 # First line for current file. |
| 15696 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 15697 | ac_more_lines=: |
| 15698 | ac_sed_cmds= |
| 15699 | while $ac_more_lines; do |
| 15700 | if test $ac_beg -gt 1; then |
| 15701 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 15702 | else |
| 15703 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 15704 | fi |
| 15705 | if test ! -s $tmp/subs.frag; then |
| 15706 | ac_more_lines=false |
| 15707 | else |
| 15708 | # The purpose of the label and of the branching condition is to |
| 15709 | # speed up the sed processing (if there are no `@' at all, there |
| 15710 | # is no need to browse any of the substitutions). |
| 15711 | # These are the two extra sed commands mentioned above. |
| 15712 | (echo ':t |
| 15713 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 15714 | if test -z "$ac_sed_cmds"; then |
| 15715 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 15716 | else |
| 15717 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 15718 | fi |
| 15719 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 15720 | ac_beg=$ac_end |
| 15721 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 15722 | fi |
| 15723 | done |
| 15724 | if test -z "$ac_sed_cmds"; then |
| 15725 | ac_sed_cmds=cat |
| 15726 | fi |
| 15727 | fi # test -n "$CONFIG_FILES" |
| 15728 | |
| 15729 | _ACEOF |
| 15730 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15731 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 15732 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 15733 | case $ac_file in |
| 15734 | - | *:- | *:-:* ) # input from stdin |
| 15735 | cat >$tmp/stdin |
| 15736 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 15737 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 15738 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 15739 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 15740 | * ) ac_file_in=$ac_file.in ;; |
| 15741 | esac |
| 15742 | |
| 15743 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 15744 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 15745 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15746 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 15747 | X"$ac_file" : 'X\(//\)$' \| \ |
| 15748 | X"$ac_file" : 'X\(/\)' \| \ |
| 15749 | . : '\(.\)' 2>/dev/null || |
| 15750 | echo X"$ac_file" | |
| 15751 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 15752 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 15753 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 15754 | /^X\(\/\).*/{ s//\1/; q; } |
| 15755 | s/.*/./; q'` |
| 15756 | { if $as_mkdir_p; then |
| 15757 | mkdir -p "$ac_dir" |
| 15758 | else |
| 15759 | as_dir="$ac_dir" |
| 15760 | as_dirs= |
| 15761 | while test ! -d "$as_dir"; do |
| 15762 | as_dirs="$as_dir $as_dirs" |
| 15763 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 15764 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15765 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 15766 | X"$as_dir" : 'X\(//\)$' \| \ |
| 15767 | X"$as_dir" : 'X\(/\)' \| \ |
| 15768 | . : '\(.\)' 2>/dev/null || |
| 15769 | echo X"$as_dir" | |
| 15770 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 15771 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 15772 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 15773 | /^X\(\/\).*/{ s//\1/; q; } |
| 15774 | s/.*/./; q'` |
| 15775 | done |
| 15776 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 15777 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 15778 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 15779 | { (exit 1); exit 1; }; }; } |
| 15780 | |
| 15781 | ac_builddir=. |
| 15782 | |
| 15783 | if test "$ac_dir" != .; then |
| 15784 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 15785 | # A "../" for each directory in $ac_dir_suffix. |
| 15786 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 15787 | else |
| 15788 | ac_dir_suffix= ac_top_builddir= |
| 15789 | fi |
| 15790 | |
| 15791 | case $srcdir in |
| 15792 | .) # No --srcdir option. We are building in place. |
| 15793 | ac_srcdir=. |
| 15794 | if test -z "$ac_top_builddir"; then |
| 15795 | ac_top_srcdir=. |
| 15796 | else |
| 15797 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 15798 | fi ;; |
| 15799 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 15800 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 15801 | ac_top_srcdir=$srcdir ;; |
| 15802 | *) # Relative path. |
| 15803 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 15804 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 15805 | esac |
| 15806 | |
| 15807 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 15808 | # the directories may not exist. |
| 15809 | case `pwd` in |
| 15810 | .) ac_abs_builddir="$ac_dir";; |
| 15811 | *) |
| 15812 | case "$ac_dir" in |
| 15813 | .) ac_abs_builddir=`pwd`;; |
| 15814 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 15815 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 15816 | esac;; |
| 15817 | esac |
| 15818 | case $ac_abs_builddir in |
| 15819 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 15820 | *) |
| 15821 | case ${ac_top_builddir}. in |
| 15822 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 15823 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 15824 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 15825 | esac;; |
| 15826 | esac |
| 15827 | case $ac_abs_builddir in |
| 15828 | .) ac_abs_srcdir=$ac_srcdir;; |
| 15829 | *) |
| 15830 | case $ac_srcdir in |
| 15831 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 15832 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 15833 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 15834 | esac;; |
| 15835 | esac |
| 15836 | case $ac_abs_builddir in |
| 15837 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 15838 | *) |
| 15839 | case $ac_top_srcdir in |
| 15840 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 15841 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 15842 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 15843 | esac;; |
| 15844 | esac |
| 15845 | |
| 15846 | |
| 15847 | case $INSTALL in |
| 15848 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 15849 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 15850 | esac |
| 15851 | |
| 15852 | if test x"$ac_file" != x-; then |
| 15853 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 15854 | echo "$as_me: creating $ac_file" >&6;} |
| 15855 | rm -f "$ac_file" |
| 15856 | fi |
| 15857 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 15858 | # use $as_me), people would be surprised to read: |
| 15859 | # /* config.h. Generated by config.status. */ |
| 15860 | if test x"$ac_file" = x-; then |
| 15861 | configure_input= |
| 15862 | else |
| 15863 | configure_input="$ac_file. " |
| 15864 | fi |
| 15865 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 15866 | sed 's,.*/,,'` by configure." |
| 15867 | |
| 15868 | # First look for the input files in the build tree, otherwise in the |
| 15869 | # src tree. |
| 15870 | ac_file_inputs=`IFS=: |
| 15871 | for f in $ac_file_in; do |
| 15872 | case $f in |
| 15873 | -) echo $tmp/stdin ;; |
| 15874 | [\\/$]*) |
| 15875 | # Absolute (can't be DOS-style, as IFS=:) |
| 15876 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 15877 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 15878 | { (exit 1); exit 1; }; } |
| 15879 | echo "$f";; |
| 15880 | *) # Relative |
| 15881 | if test -f "$f"; then |
| 15882 | # Build tree |
| 15883 | echo "$f" |
| 15884 | elif test -f "$srcdir/$f"; then |
| 15885 | # Source tree |
| 15886 | echo "$srcdir/$f" |
| 15887 | else |
| 15888 | # /dev/null tree |
| 15889 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 15890 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 15891 | { (exit 1); exit 1; }; } |
| 15892 | fi;; |
| 15893 | esac |
| 15894 | done` || { (exit 1); exit 1; } |
| 15895 | _ACEOF |
| 15896 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15897 | sed "$ac_vpsub |
| 15898 | $extrasub |
| 15899 | _ACEOF |
| 15900 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15901 | :t |
| 15902 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 15903 | s,@configure_input@,$configure_input,;t t |
| 15904 | s,@srcdir@,$ac_srcdir,;t t |
| 15905 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 15906 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 15907 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 15908 | s,@builddir@,$ac_builddir,;t t |
| 15909 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 15910 | s,@top_builddir@,$ac_top_builddir,;t t |
| 15911 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 15912 | s,@INSTALL@,$ac_INSTALL,;t t |
| 15913 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 15914 | rm -f $tmp/stdin |
| 15915 | if test x"$ac_file" != x-; then |
| 15916 | mv $tmp/out $ac_file |
| 15917 | else |
| 15918 | cat $tmp/out |
| 15919 | rm -f $tmp/out |
| 15920 | fi |
| 15921 | |
| 15922 | done |
| 15923 | _ACEOF |
| 15924 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15925 | |
| 15926 | # |
| 15927 | # CONFIG_HEADER section. |
| 15928 | # |
| 15929 | |
| 15930 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 15931 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 15932 | # |
| 15933 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 15934 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 15935 | ac_dB='[ ].*$,\1#\2' |
| 15936 | ac_dC=' ' |
| 15937 | ac_dD=',;t' |
| 15938 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 15939 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 15940 | ac_uB='$,\1#\2define\3' |
| 15941 | ac_uC=' ' |
| 15942 | ac_uD=',;t' |
| 15943 | |
| 15944 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 15945 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 15946 | case $ac_file in |
| 15947 | - | *:- | *:-:* ) # input from stdin |
| 15948 | cat >$tmp/stdin |
| 15949 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 15950 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 15951 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 15952 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 15953 | * ) ac_file_in=$ac_file.in ;; |
| 15954 | esac |
| 15955 | |
| 15956 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 15957 | echo "$as_me: creating $ac_file" >&6;} |
| 15958 | |
| 15959 | # First look for the input files in the build tree, otherwise in the |
| 15960 | # src tree. |
| 15961 | ac_file_inputs=`IFS=: |
| 15962 | for f in $ac_file_in; do |
| 15963 | case $f in |
| 15964 | -) echo $tmp/stdin ;; |
| 15965 | [\\/$]*) |
| 15966 | # Absolute (can't be DOS-style, as IFS=:) |
| 15967 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 15968 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 15969 | { (exit 1); exit 1; }; } |
| 15970 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 15971 | echo "$f";; |
| 15972 | *) # Relative |
| 15973 | if test -f "$f"; then |
| 15974 | # Build tree |
| 15975 | echo "$f" |
| 15976 | elif test -f "$srcdir/$f"; then |
| 15977 | # Source tree |
| 15978 | echo "$srcdir/$f" |
| 15979 | else |
| 15980 | # /dev/null tree |
| 15981 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 15982 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 15983 | { (exit 1); exit 1; }; } |
| 15984 | fi;; |
| 15985 | esac |
| 15986 | done` || { (exit 1); exit 1; } |
| 15987 | # Remove the trailing spaces. |
| 15988 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 15989 | |
| 15990 | _ACEOF |
| 15991 | |
| 15992 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 15993 | # `conftest.undefs', that substitutes the proper values into |
| 15994 | # config.h.in to produce config.h. The first handles `#define' |
| 15995 | # templates, and the second `#undef' templates. |
| 15996 | # And first: Protect against being on the right side of a sed subst in |
| 15997 | # config.status. Protect against being in an unquoted here document |
| 15998 | # in config.status. |
| 15999 | rm -f conftest.defines conftest.undefs |
| 16000 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16001 | # Putting comments in sed scripts is not portable. |
| 16002 | # |
| 16003 | # `end' is used to avoid that the second main sed command (meant for |
| 16004 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16005 | # See the Autoconf documentation for `clear'. |
| 16006 | cat >confdef2sed.sed <<\_ACEOF |
| 16007 | s/[\\&,]/\\&/g |
| 16008 | s,[\\$`],\\&,g |
| 16009 | t clear |
| 16010 | : clear |
| 16011 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16012 | t end |
| 16013 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16014 | : end |
| 16015 | _ACEOF |
| 16016 | # If some macros were called several times there might be several times |
| 16017 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16018 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16019 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16020 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16021 | rm -f confdef2sed.sed |
| 16022 | |
| 16023 | # This sed command replaces #undef with comments. This is necessary, for |
| 16024 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16025 | # on some systems where configure will not decide to define it. |
| 16026 | cat >>conftest.undefs <<\_ACEOF |
| 16027 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16028 | _ACEOF |
| 16029 | |
| 16030 | # Break up conftest.defines because some shells have a limit on the size |
| 16031 | # of here documents, and old seds have small limits too (100 cmds). |
| 16032 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16033 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16034 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16035 | echo ' :' >>$CONFIG_STATUS |
| 16036 | rm -f conftest.tail |
| 16037 | while grep . conftest.defines >/dev/null |
| 16038 | do |
| 16039 | # Write a limited-size here document to $tmp/defines.sed. |
| 16040 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16041 | # Speed up: don't consider the non `#define' lines. |
| 16042 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16043 | # Work around the forget-to-reset-the-flag bug. |
| 16044 | echo 't clr' >>$CONFIG_STATUS |
| 16045 | echo ': clr' >>$CONFIG_STATUS |
| 16046 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 16047 | echo 'CEOF |
| 16048 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16049 | rm -f $tmp/in |
| 16050 | mv $tmp/out $tmp/in |
| 16051 | ' >>$CONFIG_STATUS |
| 16052 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16053 | rm -f conftest.defines |
| 16054 | mv conftest.tail conftest.defines |
| 16055 | done |
| 16056 | rm -f conftest.defines |
| 16057 | echo ' fi # grep' >>$CONFIG_STATUS |
| 16058 | echo >>$CONFIG_STATUS |
| 16059 | |
| 16060 | # Break up conftest.undefs because some shells have a limit on the size |
| 16061 | # of here documents, and old seds have small limits too (100 cmds). |
| 16062 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16063 | rm -f conftest.tail |
| 16064 | while grep . conftest.undefs >/dev/null |
| 16065 | do |
| 16066 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16067 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16068 | # Speed up: don't consider the non `#undef' |
| 16069 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16070 | # Work around the forget-to-reset-the-flag bug. |
| 16071 | echo 't clr' >>$CONFIG_STATUS |
| 16072 | echo ': clr' >>$CONFIG_STATUS |
| 16073 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16074 | echo 'CEOF |
| 16075 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16076 | rm -f $tmp/in |
| 16077 | mv $tmp/out $tmp/in |
| 16078 | ' >>$CONFIG_STATUS |
| 16079 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16080 | rm -f conftest.undefs |
| 16081 | mv conftest.tail conftest.undefs |
| 16082 | done |
| 16083 | rm -f conftest.undefs |
| 16084 | |
| 16085 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16086 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16087 | # use $as_me), people would be surprised to read: |
| 16088 | # /* config.h. Generated by config.status. */ |
| 16089 | if test x"$ac_file" = x-; then |
| 16090 | echo "/* Generated by configure. */" >$tmp/config.h |
| 16091 | else |
| 16092 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 16093 | fi |
| 16094 | cat $tmp/in >>$tmp/config.h |
| 16095 | rm -f $tmp/in |
| 16096 | if test x"$ac_file" != x-; then |
| 16097 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 16098 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16099 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16100 | else |
| 16101 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16102 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16103 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16104 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16105 | X"$ac_file" : 'X\(/\)' \| \ |
| 16106 | . : '\(.\)' 2>/dev/null || |
| 16107 | echo X"$ac_file" | |
| 16108 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16109 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16110 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16111 | /^X\(\/\).*/{ s//\1/; q; } |
| 16112 | s/.*/./; q'` |
| 16113 | { if $as_mkdir_p; then |
| 16114 | mkdir -p "$ac_dir" |
| 16115 | else |
| 16116 | as_dir="$ac_dir" |
| 16117 | as_dirs= |
| 16118 | while test ! -d "$as_dir"; do |
| 16119 | as_dirs="$as_dir $as_dirs" |
| 16120 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16121 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16122 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16123 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16124 | X"$as_dir" : 'X\(/\)' \| \ |
| 16125 | . : '\(.\)' 2>/dev/null || |
| 16126 | echo X"$as_dir" | |
| 16127 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16128 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16129 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16130 | /^X\(\/\).*/{ s//\1/; q; } |
| 16131 | s/.*/./; q'` |
| 16132 | done |
| 16133 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16134 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16135 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16136 | { (exit 1); exit 1; }; }; } |
| 16137 | |
| 16138 | rm -f $ac_file |
| 16139 | mv $tmp/config.h $ac_file |
| 16140 | fi |
| 16141 | else |
| 16142 | cat $tmp/config.h |
| 16143 | rm -f $tmp/config.h |
| 16144 | fi |
| 16145 | # Compute $ac_file's index in $config_headers. |
| 16146 | _am_stamp_count=1 |
| 16147 | for _am_header in $config_headers :; do |
| 16148 | case $_am_header in |
| 16149 | $ac_file | $ac_file:* ) |
| 16150 | break ;; |
| 16151 | * ) |
| 16152 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 16153 | esac |
| 16154 | done |
| 16155 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
| 16156 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16157 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 16158 | X$ac_file : 'X\(//\)$' \| \ |
| 16159 | X$ac_file : 'X\(/\)' \| \ |
| 16160 | . : '\(.\)' 2>/dev/null || |
| 16161 | echo X$ac_file | |
| 16162 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16163 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16164 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16165 | /^X\(\/\).*/{ s//\1/; q; } |
| 16166 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 16167 | done |
| 16168 | _ACEOF |
| 16169 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16170 | |
| 16171 | # |
| 16172 | # CONFIG_COMMANDS section. |
| 16173 | # |
| 16174 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 16175 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 16176 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16177 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 16178 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16179 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 16180 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 16181 | X"$ac_dest" : 'X\(/\)' \| \ |
| 16182 | . : '\(.\)' 2>/dev/null || |
| 16183 | echo X"$ac_dest" | |
| 16184 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16185 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16186 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16187 | /^X\(\/\).*/{ s//\1/; q; } |
| 16188 | s/.*/./; q'` |
| 16189 | { if $as_mkdir_p; then |
| 16190 | mkdir -p "$ac_dir" |
| 16191 | else |
| 16192 | as_dir="$ac_dir" |
| 16193 | as_dirs= |
| 16194 | while test ! -d "$as_dir"; do |
| 16195 | as_dirs="$as_dir $as_dirs" |
| 16196 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16197 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16198 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16199 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16200 | X"$as_dir" : 'X\(/\)' \| \ |
| 16201 | . : '\(.\)' 2>/dev/null || |
| 16202 | echo X"$as_dir" | |
| 16203 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16204 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16205 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16206 | /^X\(\/\).*/{ s//\1/; q; } |
| 16207 | s/.*/./; q'` |
| 16208 | done |
| 16209 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16210 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16211 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16212 | { (exit 1); exit 1; }; }; } |
| 16213 | |
| 16214 | ac_builddir=. |
| 16215 | |
| 16216 | if test "$ac_dir" != .; then |
| 16217 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16218 | # A "../" for each directory in $ac_dir_suffix. |
| 16219 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16220 | else |
| 16221 | ac_dir_suffix= ac_top_builddir= |
| 16222 | fi |
| 16223 | |
| 16224 | case $srcdir in |
| 16225 | .) # No --srcdir option. We are building in place. |
| 16226 | ac_srcdir=. |
| 16227 | if test -z "$ac_top_builddir"; then |
| 16228 | ac_top_srcdir=. |
| 16229 | else |
| 16230 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16231 | fi ;; |
| 16232 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16233 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16234 | ac_top_srcdir=$srcdir ;; |
| 16235 | *) # Relative path. |
| 16236 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16237 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16238 | esac |
| 16239 | |
| 16240 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 16241 | # the directories may not exist. |
| 16242 | case `pwd` in |
| 16243 | .) ac_abs_builddir="$ac_dir";; |
| 16244 | *) |
| 16245 | case "$ac_dir" in |
| 16246 | .) ac_abs_builddir=`pwd`;; |
| 16247 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 16248 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 16249 | esac;; |
| 16250 | esac |
| 16251 | case $ac_abs_builddir in |
| 16252 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16253 | *) |
| 16254 | case ${ac_top_builddir}. in |
| 16255 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 16256 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16257 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 16258 | esac;; |
| 16259 | esac |
| 16260 | case $ac_abs_builddir in |
| 16261 | .) ac_abs_srcdir=$ac_srcdir;; |
| 16262 | *) |
| 16263 | case $ac_srcdir in |
| 16264 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 16265 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 16266 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 16267 | esac;; |
| 16268 | esac |
| 16269 | case $ac_abs_builddir in |
| 16270 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16271 | *) |
| 16272 | case $ac_top_srcdir in |
| 16273 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 16274 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16275 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 16276 | esac;; |
| 16277 | esac |
| 16278 | |
| 16279 | |
| 16280 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 16281 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 16282 | case $ac_dest in |
| 16283 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 16284 | # Strip MF so we end up with the name of the file. |
| 16285 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 16286 | # Check whether this is an Automake generated Makefile or not. |
| 16287 | # We used to match only the files named `Makefile.in', but |
| 16288 | # some people rename them; so instead we look at the file content. |
| 16289 | # Grep'ing the first line is not enough: some people post-process |
| 16290 | # each Makefile.in and add a new line on top of each file to say so. |
| 16291 | # So let's grep whole file. |
| 16292 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 16293 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 16294 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16295 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 16296 | X"$mf" : 'X\(//\)$' \| \ |
| 16297 | X"$mf" : 'X\(/\)' \| \ |
| 16298 | . : '\(.\)' 2>/dev/null || |
| 16299 | echo X"$mf" | |
| 16300 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16301 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16302 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16303 | /^X\(\/\).*/{ s//\1/; q; } |
| 16304 | s/.*/./; q'` |
| 16305 | else |
| 16306 | continue |
| 16307 | fi |
| 16308 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 16309 | # from the Makefile without running `make'. |
| 16310 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 16311 | test -z "$DEPDIR" && continue |
| 16312 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 16313 | test -z "am__include" && continue |
| 16314 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 16315 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 16316 | U=`sed -n 's/^U = //p' < "$mf"` |
| 16317 | # Find all dependency output files, they are included files with |
| 16318 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 16319 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 16320 | # expansion. |
| 16321 | for file in `sed -n " |
| 16322 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 16323 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 16324 | # Make sure the directory exists. |
| 16325 | test -f "$dirpart/$file" && continue |
| 16326 | fdir=`(dirname "$file") 2>/dev/null || |
| 16327 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16328 | X"$file" : 'X\(//\)[^/]' \| \ |
| 16329 | X"$file" : 'X\(//\)$' \| \ |
| 16330 | X"$file" : 'X\(/\)' \| \ |
| 16331 | . : '\(.\)' 2>/dev/null || |
| 16332 | echo X"$file" | |
| 16333 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16334 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16335 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16336 | /^X\(\/\).*/{ s//\1/; q; } |
| 16337 | s/.*/./; q'` |
| 16338 | { if $as_mkdir_p; then |
| 16339 | mkdir -p $dirpart/$fdir |
| 16340 | else |
| 16341 | as_dir=$dirpart/$fdir |
| 16342 | as_dirs= |
| 16343 | while test ! -d "$as_dir"; do |
| 16344 | as_dirs="$as_dir $as_dirs" |
| 16345 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16346 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16347 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16348 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16349 | X"$as_dir" : 'X\(/\)' \| \ |
| 16350 | . : '\(.\)' 2>/dev/null || |
| 16351 | echo X"$as_dir" | |
| 16352 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16353 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16354 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16355 | /^X\(\/\).*/{ s//\1/; q; } |
| 16356 | s/.*/./; q'` |
| 16357 | done |
| 16358 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16359 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 16360 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 16361 | { (exit 1); exit 1; }; }; } |
| 16362 | |
| 16363 | # echo "creating $dirpart/$file" |
| 16364 | echo '# dummy' > "$dirpart/$file" |
| 16365 | done |
| 16366 | done |
| 16367 | ;; |
| 16368 | libtool ) |
| 16369 | |
| 16370 | # See if we are running on zsh, and set the options which allow our |
| 16371 | # commands through without removal of \ escapes. |
| 16372 | if test -n "${ZSH_VERSION+set}" ; then |
| 16373 | setopt NO_GLOB_SUBST |
| 16374 | fi |
| 16375 | |
| 16376 | cfgfile="${ofile}T" |
| 16377 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 16378 | $RM "$cfgfile" |
| 16379 | |
| 16380 | cat <<_LT_EOF >> "$cfgfile" |
| 16381 | #! $SHELL |
| 16382 | |
| 16383 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 16384 | # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION |
| 16385 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16386 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 16387 | # |
| 16388 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 16389 | # 2006, 2007 Free Software Foundation, Inc. |
| 16390 | # |
| 16391 | # This file is part of GNU Libtool: |
| 16392 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 16393 | # |
| 16394 | # This program is free software; you can redistribute it and/or modify |
| 16395 | # it under the terms of the GNU General Public License as published by |
| 16396 | # the Free Software Foundation; either version 2 of the License, or |
| 16397 | # (at your option) any later version. |
| 16398 | # |
| 16399 | # This program is distributed in the hope that it will be useful, but |
| 16400 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16401 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16402 | # General Public License for more details. |
| 16403 | # |
| 16404 | # You should have received a copy of the GNU General Public License |
| 16405 | # along with this program; if not, a copy can be downloaded from |
| 16406 | # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free |
| 16407 | # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
| 16408 | # MA 02110-1301, USA. |
| 16409 | # |
| 16410 | # As a special exception to the GNU General Public License, if you |
| 16411 | # distribute this file as part of a program that contains a |
| 16412 | # configuration script generated by Autoconf, you may include it under |
| 16413 | # the same distribution terms that you use for the rest of that program. |
| 16414 | |
| 16415 | |
| 16416 | # The names of the tagged configurations supported by this script. |
| 16417 | available_tags="" |
| 16418 | |
| 16419 | # ### BEGIN LIBTOOL CONFIG |
| 16420 | |
| 16421 | # Which release of libtool.m4 was used? |
| 16422 | macro_version=$macro_version |
| 16423 | macro_revision=$macro_revision |
| 16424 | |
| 16425 | # Whether or not to build shared libraries. |
| 16426 | build_libtool_libs=$enable_shared |
| 16427 | |
| 16428 | # Whether or not to build static libraries. |
| 16429 | build_old_libs=$enable_static |
| 16430 | |
| 16431 | # What type of objects to build. |
| 16432 | pic_mode=$pic_mode |
| 16433 | |
| 16434 | # Whether or not to optimize for fast installation. |
| 16435 | fast_install=$enable_fast_install |
| 16436 | |
| 16437 | # The host system. |
| 16438 | host_alias=$host_alias |
| 16439 | host=$host |
| 16440 | host_os=$host_os |
| 16441 | |
| 16442 | # The build system. |
| 16443 | build_alias=$build_alias |
| 16444 | build=$build |
| 16445 | build_os=$build_os |
| 16446 | |
| 16447 | # A sed program that does not truncate output. |
| 16448 | SED=$lt_SED |
| 16449 | |
| 16450 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 16451 | Xsed="\$SED -e 1s/^X//" |
| 16452 | |
| 16453 | # A grep program that handles long lines. |
| 16454 | GREP=$lt_GREP |
| 16455 | |
| 16456 | # An ERE matcher. |
| 16457 | EGREP=$lt_EGREP |
| 16458 | |
| 16459 | # A literal string matcher. |
| 16460 | FGREP=$lt_FGREP |
| 16461 | |
| 16462 | # A BSD- or MS-compatible name lister. |
| 16463 | NM=$lt_NM |
| 16464 | |
| 16465 | # Whether we need soft or hard links. |
| 16466 | LN_S=$lt_LN_S |
| 16467 | |
| 16468 | # What is the maximum length of a command? |
| 16469 | max_cmd_len=$max_cmd_len |
| 16470 | |
| 16471 | # Object file suffix (normally "o"). |
| 16472 | objext=$ac_objext |
| 16473 | |
| 16474 | # Executable file suffix (normally ""). |
| 16475 | exeext=$exeext |
| 16476 | |
| 16477 | # whether the shell understands "unset". |
| 16478 | lt_unset=$lt_unset |
| 16479 | |
| 16480 | # turn spaces into newlines. |
| 16481 | SP2NL=$lt_lt_SP2NL |
| 16482 | |
| 16483 | # turn newlines into spaces. |
| 16484 | NL2SP=$lt_lt_NL2SP |
| 16485 | |
| 16486 | # How to create reloadable object files. |
| 16487 | reload_flag=$lt_reload_flag |
| 16488 | reload_cmds=$lt_reload_cmds |
| 16489 | |
| 16490 | # Method to check whether dependent libraries are shared objects. |
| 16491 | deplibs_check_method=$lt_deplibs_check_method |
| 16492 | |
| 16493 | # Command to use when deplibs_check_method == "file_magic". |
| 16494 | file_magic_cmd=$lt_file_magic_cmd |
| 16495 | |
| 16496 | # The archiver. |
| 16497 | AR=$lt_AR |
| 16498 | AR_FLAGS=$lt_AR_FLAGS |
| 16499 | |
| 16500 | # A symbol stripping program. |
| 16501 | STRIP=$lt_STRIP |
| 16502 | |
| 16503 | # Commands used to install an old-style archive. |
| 16504 | RANLIB=$lt_RANLIB |
| 16505 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16506 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16507 | |
| 16508 | # A C compiler. |
| 16509 | LTCC=$lt_CC |
| 16510 | |
| 16511 | # LTCC compiler flags. |
| 16512 | LTCFLAGS=$lt_CFLAGS |
| 16513 | |
| 16514 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16515 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16516 | |
| 16517 | # Transform the output of nm in a proper C declaration. |
| 16518 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16519 | |
| 16520 | # Transform the output of nm in a C name address pair. |
| 16521 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16522 | |
| 16523 | # The name of the directory that contains temporary libtool files. |
| 16524 | objdir=$objdir |
| 16525 | |
| 16526 | # Shell to use when invoking shell scripts. |
| 16527 | SHELL=$lt_SHELL |
| 16528 | |
| 16529 | # An echo program that does not interpret backslashes. |
| 16530 | ECHO=$lt_ECHO |
| 16531 | |
| 16532 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 16533 | MAGIC_CMD=$MAGIC_CMD |
| 16534 | |
| 16535 | # Must we lock files when doing compilation? |
| 16536 | need_locks=$lt_need_locks |
| 16537 | |
| 16538 | # Old archive suffix (normally "a"). |
| 16539 | libext=$libext |
| 16540 | |
| 16541 | # Shared library suffix (normally ".so"). |
| 16542 | shrext_cmds=$lt_shrext_cmds |
| 16543 | |
| 16544 | # The commands to extract the exported symbol list from a shared archive. |
| 16545 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16546 | |
| 16547 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16548 | # restored at link time. |
| 16549 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 16550 | |
| 16551 | # Do we need the "lib" prefix for modules? |
| 16552 | need_lib_prefix=$need_lib_prefix |
| 16553 | |
| 16554 | # Do we need a version for libraries? |
| 16555 | need_version=$need_version |
| 16556 | |
| 16557 | # Library versioning type. |
| 16558 | version_type=$version_type |
| 16559 | |
| 16560 | # Shared library runtime path variable. |
| 16561 | runpath_var=$runpath_var |
| 16562 | |
| 16563 | # Shared library path variable. |
| 16564 | shlibpath_var=$shlibpath_var |
| 16565 | |
| 16566 | # Is shlibpath searched before the hard-coded library search path? |
| 16567 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16568 | |
| 16569 | # Format of library name prefix. |
| 16570 | libname_spec=$lt_libname_spec |
| 16571 | |
| 16572 | # List of archive names. First name is the real one, the rest are links. |
| 16573 | # The last name is the one that the linker finds with -lNAME |
| 16574 | library_names_spec=$lt_library_names_spec |
| 16575 | |
| 16576 | # The coded name of the library, if different from the real name. |
| 16577 | soname_spec=$lt_soname_spec |
| 16578 | |
| 16579 | # Command to use after installation of a shared archive. |
| 16580 | postinstall_cmds=$lt_postinstall_cmds |
| 16581 | |
| 16582 | # Command to use after uninstallation of a shared archive. |
| 16583 | postuninstall_cmds=$lt_postuninstall_cmds |
| 16584 | |
| 16585 | # Commands used to finish a libtool library installation in a directory. |
| 16586 | finish_cmds=$lt_finish_cmds |
| 16587 | |
| 16588 | # As "finish_cmds", except a single script fragment to be evaled but |
| 16589 | # not shown. |
| 16590 | finish_eval=$lt_finish_eval |
| 16591 | |
| 16592 | # Whether we should hardcode library paths into libraries. |
| 16593 | hardcode_into_libs=$hardcode_into_libs |
| 16594 | |
| 16595 | # Compile-time system search path for libraries. |
| 16596 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16597 | |
| 16598 | # Run-time system search path for libraries. |
| 16599 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16600 | |
| 16601 | # Whether dlopen is supported. |
| 16602 | dlopen_support=$enable_dlopen |
| 16603 | |
| 16604 | # Whether dlopen of programs is supported. |
| 16605 | dlopen_self=$enable_dlopen_self |
| 16606 | |
| 16607 | # Whether dlopen of statically linked programs is supported. |
| 16608 | dlopen_self_static=$enable_dlopen_self_static |
| 16609 | |
| 16610 | # Commands to strip libraries. |
| 16611 | old_striplib=$lt_old_striplib |
| 16612 | striplib=$lt_striplib |
| 16613 | |
| 16614 | |
| 16615 | # The linker used to build libraries. |
| 16616 | LD=$lt_LD |
| 16617 | |
| 16618 | # Commands used to build an old-style archive. |
| 16619 | old_archive_cmds=$lt_old_archive_cmds |
| 16620 | |
| 16621 | # A language specific compiler. |
| 16622 | CC=$lt_compiler |
| 16623 | |
| 16624 | # Is the compiler the GNU compiler? |
| 16625 | with_gcc=$GCC |
| 16626 | |
| 16627 | # Compiler flag to turn off builtin functions. |
| 16628 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 16629 | |
| 16630 | # How to pass a linker flag through the compiler. |
| 16631 | wl=$lt_lt_prog_compiler_wl |
| 16632 | |
| 16633 | # Additional compiler flags for building library objects. |
| 16634 | pic_flag=$lt_lt_prog_compiler_pic |
| 16635 | |
| 16636 | # Compiler flag to prevent dynamic linking. |
| 16637 | link_static_flag=$lt_lt_prog_compiler_static |
| 16638 | |
| 16639 | # Does compiler simultaneously support -c and -o options? |
| 16640 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 16641 | |
| 16642 | # Whether or not to add -lc for building shared libraries. |
| 16643 | build_libtool_need_lc=$archive_cmds_need_lc |
| 16644 | |
| 16645 | # Whether or not to disallow shared libs when runtime libs are static. |
| 16646 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 16647 | |
| 16648 | # Compiler flag to allow reflexive dlopens. |
| 16649 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 16650 | |
| 16651 | # Compiler flag to generate shared objects directly from archives. |
| 16652 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 16653 | |
| 16654 | # Whether the compiler copes with passing no objects directly. |
| 16655 | compiler_needs_object=$lt_compiler_needs_object |
| 16656 | |
| 16657 | # Create an old-style archive from a shared archive. |
| 16658 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 16659 | |
| 16660 | # Create a temporary old-style archive to link instead of a shared archive. |
| 16661 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 16662 | |
| 16663 | # Commands used to build a shared archive. |
| 16664 | archive_cmds=$lt_archive_cmds |
| 16665 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 16666 | |
| 16667 | # Commands used to build a loadable module if different from building |
| 16668 | # a shared archive. |
| 16669 | module_cmds=$lt_module_cmds |
| 16670 | module_expsym_cmds=$lt_module_expsym_cmds |
| 16671 | |
| 16672 | # Whether we are building with GNU ld or not. |
| 16673 | with_gnu_ld=$lt_with_gnu_ld |
| 16674 | |
| 16675 | # Flag that allows shared libraries with undefined symbols to be built. |
| 16676 | allow_undefined_flag=$lt_allow_undefined_flag |
| 16677 | |
| 16678 | # Flag that enforces no undefined symbols. |
| 16679 | no_undefined_flag=$lt_no_undefined_flag |
| 16680 | |
| 16681 | # Flag to hardcode \$libdir into a binary during linking. |
| 16682 | # This must work even if \$libdir does not exist |
| 16683 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 16684 | |
| 16685 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 16686 | # during linking. This must work even if \$libdir does not exist. |
| 16687 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 16688 | |
| 16689 | # Whether we need a single "-rpath" flag with a separated argument. |
| 16690 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 16691 | |
| 16692 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16693 | # DIR into the resulting binary. |
| 16694 | hardcode_direct=$hardcode_direct |
| 16695 | |
| 16696 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16697 | # DIR into the resulting binary and the resulting library dependency is |
| 16698 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 16699 | # library is relocated. |
| 16700 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 16701 | |
| 16702 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 16703 | # into the resulting binary. |
| 16704 | hardcode_minus_L=$hardcode_minus_L |
| 16705 | |
| 16706 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 16707 | # into the resulting binary. |
| 16708 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 16709 | |
| 16710 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 16711 | # into the library and all subsequent libraries and executables linked |
| 16712 | # against it. |
| 16713 | hardcode_automatic=$hardcode_automatic |
| 16714 | |
| 16715 | # Set to yes if linker adds runtime paths of dependent libraries |
| 16716 | # to runtime path list. |
| 16717 | inherit_rpath=$inherit_rpath |
| 16718 | |
| 16719 | # Whether libtool must link a program against all its dependency libraries. |
| 16720 | link_all_deplibs=$link_all_deplibs |
| 16721 | |
| 16722 | # Fix the shell variable \$srcfile for the compiler. |
| 16723 | fix_srcfile_path=$lt_fix_srcfile_path |
| 16724 | |
| 16725 | # Set to "yes" if exported symbols are required. |
| 16726 | always_export_symbols=$always_export_symbols |
| 16727 | |
| 16728 | # The commands to list exported symbols. |
| 16729 | export_symbols_cmds=$lt_export_symbols_cmds |
| 16730 | |
| 16731 | # Symbols that should not be listed in the preloaded symbols. |
| 16732 | exclude_expsyms=$lt_exclude_expsyms |
| 16733 | |
| 16734 | # Symbols that must always be exported. |
| 16735 | include_expsyms=$lt_include_expsyms |
| 16736 | |
| 16737 | # Commands necessary for linking programs (against libraries) with templates. |
| 16738 | prelink_cmds=$lt_prelink_cmds |
| 16739 | |
| 16740 | # Specify filename containing input files. |
| 16741 | file_list_spec=$lt_file_list_spec |
| 16742 | |
| 16743 | # How to hardcode a shared library path into an executable. |
| 16744 | hardcode_action=$hardcode_action |
| 16745 | |
| 16746 | # ### END LIBTOOL CONFIG |
| 16747 | |
| 16748 | _LT_EOF |
| 16749 | |
| 16750 | case $host_os in |
| 16751 | aix3*) |
| 16752 | cat <<\_LT_EOF >> "$cfgfile" |
| 16753 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 16754 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 16755 | # vanish in a puff of smoke. |
| 16756 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 16757 | COLLECT_NAMES= |
| 16758 | export COLLECT_NAMES |
| 16759 | fi |
| 16760 | _LT_EOF |
| 16761 | ;; |
| 16762 | esac |
| 16763 | |
| 16764 | |
| 16765 | ltmain="$ac_aux_dir/ltmain.sh" |
| 16766 | |
| 16767 | |
| 16768 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 16769 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 16770 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 16771 | # is reportedly fixed, but why not run on old versions too? |
| 16772 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 16773 | || (rm -f "$cfgfile"; exit 1) |
| 16774 | |
| 16775 | case $xsi_shell in |
| 16776 | yes) |
| 16777 | cat << \_LT_EOF >> "$cfgfile" |
| 16778 | # func_dirname file append nondir_replacement |
| 16779 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 16780 | # otherwise set result to NONDIR_REPLACEMENT. |
| 16781 | func_dirname () |
| 16782 | { |
| 16783 | case ${1} in |
| 16784 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 16785 | * ) func_dirname_result="${3}" ;; |
| 16786 | esac |
| 16787 | } |
| 16788 | |
| 16789 | # func_basename file |
| 16790 | func_basename () |
| 16791 | { |
| 16792 | func_basename_result="${1##*/}" |
| 16793 | } |
| 16794 | |
| 16795 | # func_stripname prefix suffix name |
| 16796 | # strip PREFIX and SUFFIX off of NAME. |
| 16797 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 16798 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 16799 | # dot (in which case that matches only a dot). |
| 16800 | func_stripname () |
| 16801 | { |
| 16802 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 16803 | # positional parameters, so assign one to ordinary parameter first. |
| 16804 | func_stripname_result=${3} |
| 16805 | func_stripname_result=${func_stripname_result#"${1}"} |
| 16806 | func_stripname_result=${func_stripname_result%"${2}"} |
| 16807 | } |
| 16808 | |
| 16809 | # func_opt_split |
| 16810 | func_opt_split () |
| 16811 | { |
| 16812 | func_opt_split_opt=${1%%=*} |
| 16813 | func_opt_split_arg=${1#*=} |
| 16814 | } |
| 16815 | |
| 16816 | # func_lo2o object |
| 16817 | func_lo2o () |
| 16818 | { |
| 16819 | case ${1} in |
| 16820 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 16821 | *) func_lo2o_result=${1} ;; |
| 16822 | esac |
| 16823 | } |
| 16824 | _LT_EOF |
| 16825 | ;; |
| 16826 | *) # Bourne compatible functions. |
| 16827 | cat << \_LT_EOF >> "$cfgfile" |
| 16828 | # func_dirname file append nondir_replacement |
| 16829 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 16830 | # otherwise set result to NONDIR_REPLACEMENT. |
| 16831 | func_dirname () |
| 16832 | { |
| 16833 | # Extract subdirectory from the argument. |
| 16834 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 16835 | if test "X$func_dirname_result" = "X${1}"; then |
| 16836 | func_dirname_result="${3}" |
| 16837 | else |
| 16838 | func_dirname_result="$func_dirname_result${2}" |
| 16839 | fi |
| 16840 | } |
| 16841 | |
| 16842 | # func_basename file |
| 16843 | func_basename () |
| 16844 | { |
| 16845 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 16846 | } |
| 16847 | |
| 16848 | # func_stripname prefix suffix name |
| 16849 | # strip PREFIX and SUFFIX off of NAME. |
| 16850 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 16851 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 16852 | # dot (in which case that matches only a dot). |
| 16853 | # func_strip_suffix prefix name |
| 16854 | func_stripname () |
| 16855 | { |
| 16856 | case ${2} in |
| 16857 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 16858 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 16859 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 16860 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 16861 | esac |
| 16862 | } |
| 16863 | |
| 16864 | # sed scripts: |
| 16865 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 16866 | my_sed_long_arg='1s/^-[^=]*=//' |
| 16867 | |
| 16868 | # func_opt_split |
| 16869 | func_opt_split () |
| 16870 | { |
| 16871 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 16872 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 16873 | } |
| 16874 | |
| 16875 | # func_lo2o object |
| 16876 | func_lo2o () |
| 16877 | { |
| 16878 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 16879 | } |
| 16880 | _LT_EOF |
| 16881 | esac |
| 16882 | |
| 16883 | case $lt_shell_append in |
| 16884 | yes) |
| 16885 | cat << \_LT_EOF >> "$cfgfile" |
| 16886 | |
| 16887 | # func_append var value |
| 16888 | # Append VALUE to the end of shell variable VAR. |
| 16889 | func_append () |
| 16890 | { |
| 16891 | eval "$1+=\$2" |
| 16892 | } |
| 16893 | _LT_EOF |
| 16894 | ;; |
| 16895 | *) |
| 16896 | cat << \_LT_EOF >> "$cfgfile" |
| 16897 | |
| 16898 | # func_append var value |
| 16899 | # Append VALUE to the end of shell variable VAR. |
| 16900 | func_append () |
| 16901 | { |
| 16902 | eval "$1=\$$1\$2" |
| 16903 | } |
| 16904 | _LT_EOF |
| 16905 | ;; |
| 16906 | esac |
| 16907 | |
| 16908 | |
| 16909 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 16910 | || (rm -f "$cfgfile"; exit 1) |
| 16911 | |
| 16912 | mv -f "$cfgfile" "$ofile" || |
| 16913 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 16914 | chmod +x "$ofile" |
| 16915 | |
| 16916 | ;; |
| 16917 | default-1 ) |
| 16918 | for ac_file in $CONFIG_FILES; do |
| 16919 | # Support "outfile[:infile[:infile...]]" |
| 16920 | case "$ac_file" in |
| 16921 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 16922 | esac |
| 16923 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 16924 | case "$ac_file" in */Makefile.in) |
| 16925 | # Adjust a relative srcdir. |
| 16926 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 16927 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 16928 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 16929 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 16930 | # In autoconf-2.50 it is called $srcdir. |
| 16931 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 16932 | case "$ac_given_srcdir" in |
| 16933 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 16934 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 16935 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 16936 | esac |
| 16937 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 16938 | rm -f "$ac_dir/POTFILES" |
| 16939 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 16940 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 16941 | POMAKEFILEDEPS="POTFILES.in" |
| 16942 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
| 16943 | # on $ac_dir but don't depend on user-specified configuration |
| 16944 | # parameters. |
| 16945 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 16946 | # The LINGUAS file contains the set of available languages. |
| 16947 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
| 16948 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 16949 | fi |
| 16950 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 16951 | # Hide the ALL_LINGUAS assigment from automake. |
| 16952 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 16953 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 16954 | else |
| 16955 | # The set of available languages was given in configure.in. |
| 16956 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
| 16957 | fi |
| 16958 | case "$ac_given_srcdir" in |
| 16959 | .) srcdirpre= ;; |
| 16960 | *) srcdirpre='$(srcdir)/' ;; |
| 16961 | esac |
| 16962 | POFILES= |
| 16963 | GMOFILES= |
| 16964 | UPDATEPOFILES= |
| 16965 | DUMMYPOFILES= |
| 16966 | for lang in $ALL_LINGUAS; do |
| 16967 | POFILES="$POFILES $srcdirpre$lang.po" |
| 16968 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 16969 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 16970 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 16971 | done |
| 16972 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 16973 | # environment variable. |
| 16974 | INST_LINGUAS= |
| 16975 | if test -n "$ALL_LINGUAS"; then |
| 16976 | for presentlang in $ALL_LINGUAS; do |
| 16977 | useit=no |
| 16978 | if test "%UNSET%" != "$LINGUAS"; then |
| 16979 | desiredlanguages="$LINGUAS" |
| 16980 | else |
| 16981 | desiredlanguages="$ALL_LINGUAS" |
| 16982 | fi |
| 16983 | for desiredlang in $desiredlanguages; do |
| 16984 | # Use the presentlang catalog if desiredlang is |
| 16985 | # a. equal to presentlang, or |
| 16986 | # b. a variant of presentlang (because in this case, |
| 16987 | # presentlang can be used as a fallback for messages |
| 16988 | # which are not translated in the desiredlang catalog). |
| 16989 | case "$desiredlang" in |
| 16990 | "$presentlang"*) useit=yes;; |
| 16991 | esac |
| 16992 | done |
| 16993 | if test $useit = yes; then |
| 16994 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 16995 | fi |
| 16996 | done |
| 16997 | fi |
| 16998 | CATALOGS= |
| 16999 | if test -n "$INST_LINGUAS"; then |
| 17000 | for lang in $INST_LINGUAS; do |
| 17001 | CATALOGS="$CATALOGS $lang.gmo" |
| 17002 | done |
| 17003 | fi |
| 17004 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 17005 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 17006 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 17007 | if test -f "$f"; then |
| 17008 | case "$f" in |
| 17009 | *.orig | *.bak | *~) ;; |
| 17010 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 17011 | esac |
| 17012 | fi |
| 17013 | done |
| 17014 | fi |
| 17015 | ;; |
| 17016 | esac |
| 17017 | done ;; |
| 17018 | esac |
| 17019 | done |
| 17020 | _ACEOF |
| 17021 | |
| 17022 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17023 | |
| 17024 | { (exit 0); exit 0; } |
| 17025 | _ACEOF |
| 17026 | chmod +x $CONFIG_STATUS |
| 17027 | ac_clean_files=$ac_clean_files_save |
| 17028 | |
| 17029 | |
| 17030 | # configure is writing to config.log, and then calls config.status. |
| 17031 | # config.status does its own redirection, appending to config.log. |
| 17032 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17033 | # by configure, so config.status won't be able to write to it; its |
| 17034 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17035 | # effectively closing config.log, so it can be properly (re)opened and |
| 17036 | # appended to by config.status. When coming back to configure, we |
| 17037 | # need to make the FD available again. |
| 17038 | if test "$no_create" != yes; then |
| 17039 | ac_cs_success=: |
| 17040 | ac_config_status_args= |
| 17041 | test "$silent" = yes && |
| 17042 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17043 | exec 5>/dev/null |
| 17044 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 17045 | exec 5>>config.log |
| 17046 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17047 | # would make configure fail if this is the last instruction. |
| 17048 | $ac_cs_success || { (exit 1); exit 1; } |
| 17049 | fi |
| 17050 | |