Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Glenn Randers-Pehrson | 7b34df3 | 2006-02-24 06:30:16 -0600 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.57 for libpng 1.2.9beta3 |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 4 | # |
Glenn Randers-Pehrson | 7b34df3 | 2006-02-24 06:30:16 -0600 | [diff] [blame^] | 5 | # Report bugs to <png-mng-implement@lists.sourceforge.net>. |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 6 | # |
| 7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 8 | # Free Software Foundation, Inc. |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
| 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
Glenn Randers-Pehrson | 5b5dcf8 | 2004-07-17 22:45:44 -0500 | [diff] [blame] | 14 | |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
| 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 23 | set -o posix |
| 24 | fi |
Glenn Randers-Pehrson | 5b5dcf8 | 2004-07-17 22:45:44 -0500 | [diff] [blame] | 25 | |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 26 | # Support unset when possible. |
| 27 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
| 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
| 45 | do |
| 46 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
| 65 | |
| 66 | |
| 67 | # Name of the executable. |
| 68 | as_me=`$as_basename "$0" || |
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
| 79 | |
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
| 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
| 98 | rm -f conf$$.sh |
| 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
| 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
| 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
| 223 | as_mkdir_p=false |
| 224 | fi |
| 225 | |
| 226 | as_executable_p="test -f" |
| 227 | |
| 228 | # Sed expression to map a string onto a valid CPP name. |
| 229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 230 | |
| 231 | # Sed expression to map a string onto a valid variable name. |
| 232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 233 | |
| 234 | |
| 235 | # IFS |
| 236 | # We need space, tab and new line, in precisely that order. |
| 237 | as_nl=' |
| 238 | ' |
| 239 | IFS=" $as_nl" |
| 240 | |
| 241 | # CDPATH. |
| 242 | $as_unset CDPATH |
| 243 | |
| 244 | |
| 245 | # Find the correct PATH separator. Usually this is `:', but |
| 246 | # DJGPP uses `;' like DOS. |
| 247 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 248 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 249 | case X$UNAME in |
| 250 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 251 | *) lt_cv_sys_path_separator=':' ;; |
| 252 | esac |
| 253 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
| 254 | fi |
| 255 | |
| 256 | |
| 257 | # Check that we are running under the correct shell. |
| 258 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 259 | |
| 260 | case X$ECHO in |
| 261 | X*--fallback-echo) |
| 262 | # Remove one level of quotation (which was required for Make). |
| 263 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 264 | ;; |
| 265 | esac |
| 266 | |
| 267 | echo=${ECHO-echo} |
| 268 | if test "X$1" = X--no-reexec; then |
| 269 | # Discard the --no-reexec flag, and continue. |
| 270 | shift |
| 271 | elif test "X$1" = X--fallback-echo; then |
| 272 | # Avoid inline document here, it may be left over |
| 273 | : |
| 274 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
| 275 | # Yippee, $echo works! |
| 276 | : |
| 277 | else |
| 278 | # Restart under the correct shell. |
| 279 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 280 | fi |
| 281 | |
| 282 | if test "X$1" = X--fallback-echo; then |
| 283 | # used as fallback echo |
| 284 | shift |
| 285 | cat <<EOF |
| 286 | |
| 287 | EOF |
| 288 | exit 0 |
| 289 | fi |
| 290 | |
| 291 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 292 | # if CDPATH is set. |
| 293 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 294 | |
| 295 | if test -z "$ECHO"; then |
| 296 | if test "X${echo_test_string+set}" != Xset; then |
| 297 | # find a string as large as possible, as long as the shell can cope with it |
| 298 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 299 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 300 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 301 | echo_test_string="`eval $cmd`" && |
| 302 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 303 | then |
| 304 | break |
| 305 | fi |
| 306 | done |
| 307 | fi |
| 308 | |
| 309 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 310 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 311 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 312 | : |
| 313 | else |
| 314 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 315 | # backslashes. This makes it impossible to quote backslashes using |
| 316 | # echo "$something" | sed 's/\\/\\\\/g' |
| 317 | # |
| 318 | # So, first we look for a working echo in the user's PATH. |
| 319 | |
| 320 | IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 321 | for dir in $PATH /usr/ucb; do |
| 322 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 323 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 324 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 325 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 326 | echo="$dir/echo" |
| 327 | break |
| 328 | fi |
| 329 | done |
| 330 | IFS="$save_ifs" |
| 331 | |
| 332 | if test "X$echo" = Xecho; then |
| 333 | # We didn't find a better echo, so look for alternatives. |
| 334 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 335 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 336 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 337 | # This shell has a builtin print -r that does the trick. |
| 338 | echo='print -r' |
| 339 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 340 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 341 | # If we have ksh, try running configure again with it. |
| 342 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 343 | export ORIGINAL_CONFIG_SHELL |
| 344 | CONFIG_SHELL=/bin/ksh |
| 345 | export CONFIG_SHELL |
| 346 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 347 | else |
| 348 | # Try using printf. |
| 349 | echo='printf %s\n' |
| 350 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 351 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 352 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 353 | # Cool, printf works |
| 354 | : |
| 355 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 356 | test "X$echo_testing_string" = 'X\t' && |
| 357 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 358 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 359 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 360 | export CONFIG_SHELL |
| 361 | SHELL="$CONFIG_SHELL" |
| 362 | export SHELL |
| 363 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 364 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 365 | test "X$echo_testing_string" = 'X\t' && |
| 366 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 367 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 368 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 369 | else |
| 370 | # maybe with a smaller string... |
| 371 | prev=: |
| 372 | |
| 373 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 374 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 375 | then |
| 376 | break |
| 377 | fi |
| 378 | prev="$cmd" |
| 379 | done |
| 380 | |
| 381 | if test "$prev" != 'sed 50q "$0"'; then |
| 382 | echo_test_string=`eval $prev` |
| 383 | export echo_test_string |
| 384 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 385 | else |
| 386 | # Oops. We lost completely, so just stick with echo. |
| 387 | echo=echo |
| 388 | fi |
| 389 | fi |
| 390 | fi |
| 391 | fi |
| 392 | fi |
| 393 | fi |
| 394 | |
| 395 | # Copy echo and quote the copy suitably for passing to libtool from |
| 396 | # the Makefile, instead of quoting the original, which is used later. |
| 397 | ECHO=$echo |
| 398 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 399 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 400 | fi |
| 401 | |
| 402 | |
| 403 | |
| 404 | # Name of the host. |
| 405 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 406 | # so uname gets run too. |
| 407 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 408 | |
| 409 | exec 6>&1 |
| 410 | |
| 411 | # |
| 412 | # Initializations. |
| 413 | # |
| 414 | ac_default_prefix=/usr/local |
| 415 | ac_config_libobj_dir=. |
| 416 | cross_compiling=no |
| 417 | subdirs= |
| 418 | MFLAGS= |
| 419 | MAKEFLAGS= |
| 420 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 421 | |
| 422 | # Maximum number of lines to put in a shell here document. |
| 423 | # This variable seems obsolete. It should probably be removed, and |
| 424 | # only ac_max_sed_lines should be used. |
| 425 | : ${ac_max_here_lines=38} |
| 426 | |
| 427 | # Identity of this package. |
| 428 | PACKAGE_NAME='libpng' |
| 429 | PACKAGE_TARNAME='libpng' |
Glenn Randers-Pehrson | 7b34df3 | 2006-02-24 06:30:16 -0600 | [diff] [blame^] | 430 | PACKAGE_VERSION='1.2.9beta3' |
| 431 | PACKAGE_STRING='libpng 1.2.9beta3' |
| 432 | PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net' |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 433 | |
| 434 | ac_unique_file="pngget.c" |
| 435 | # Factoring default headers for most tests. |
| 436 | ac_includes_default="\ |
| 437 | #include <stdio.h> |
| 438 | #if HAVE_SYS_TYPES_H |
| 439 | # include <sys/types.h> |
| 440 | #endif |
| 441 | #if HAVE_SYS_STAT_H |
| 442 | # include <sys/stat.h> |
| 443 | #endif |
| 444 | #if STDC_HEADERS |
| 445 | # include <stdlib.h> |
| 446 | # include <stddef.h> |
| 447 | #else |
| 448 | # if HAVE_STDLIB_H |
| 449 | # include <stdlib.h> |
| 450 | # endif |
| 451 | #endif |
| 452 | #if HAVE_STRING_H |
| 453 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 454 | # include <memory.h> |
| 455 | # endif |
| 456 | # include <string.h> |
| 457 | #endif |
| 458 | #if HAVE_STRINGS_H |
| 459 | # include <strings.h> |
| 460 | #endif |
| 461 | #if HAVE_INTTYPES_H |
| 462 | # include <inttypes.h> |
| 463 | #else |
| 464 | # if HAVE_STDINT_H |
| 465 | # include <stdint.h> |
| 466 | # endif |
| 467 | #endif |
| 468 | #if HAVE_UNISTD_H |
| 469 | # include <unistd.h> |
| 470 | #endif" |
| 471 | |
| 472 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS POW_LIB PKGCONFIGDIR LIBPNG12_VERSION_INFO LIBPNG3_VERSION_INFO LTLIBOBJS' |
| 473 | ac_subst_files='' |
| 474 | |
| 475 | # Initialize some variables set by options. |
| 476 | ac_init_help= |
| 477 | ac_init_version=false |
| 478 | # The variables have the same names as the options, with |
| 479 | # dashes changed to underlines. |
| 480 | cache_file=/dev/null |
| 481 | exec_prefix=NONE |
| 482 | no_create= |
| 483 | no_recursion= |
| 484 | prefix=NONE |
| 485 | program_prefix=NONE |
| 486 | program_suffix=NONE |
| 487 | program_transform_name=s,x,x, |
| 488 | silent= |
| 489 | site= |
| 490 | srcdir= |
| 491 | verbose= |
| 492 | x_includes=NONE |
| 493 | x_libraries=NONE |
| 494 | |
| 495 | # Installation directory options. |
| 496 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 497 | # and all the variables that are supposed to be based on exec_prefix |
| 498 | # by default will actually change. |
| 499 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 500 | bindir='${exec_prefix}/bin' |
| 501 | sbindir='${exec_prefix}/sbin' |
| 502 | libexecdir='${exec_prefix}/libexec' |
| 503 | datadir='${prefix}/share' |
| 504 | sysconfdir='${prefix}/etc' |
| 505 | sharedstatedir='${prefix}/com' |
| 506 | localstatedir='${prefix}/var' |
| 507 | libdir='${exec_prefix}/lib' |
| 508 | includedir='${prefix}/include' |
| 509 | oldincludedir='/usr/include' |
| 510 | infodir='${prefix}/info' |
| 511 | mandir='${prefix}/man' |
| 512 | |
| 513 | ac_prev= |
| 514 | for ac_option |
| 515 | do |
| 516 | # If the previous option needs an argument, assign it. |
| 517 | if test -n "$ac_prev"; then |
| 518 | eval "$ac_prev=\$ac_option" |
| 519 | ac_prev= |
| 520 | continue |
| 521 | fi |
| 522 | |
| 523 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 524 | |
| 525 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 526 | |
| 527 | case $ac_option in |
| 528 | |
| 529 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 530 | ac_prev=bindir ;; |
| 531 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 532 | bindir=$ac_optarg ;; |
| 533 | |
| 534 | -build | --build | --buil | --bui | --bu) |
| 535 | ac_prev=build_alias ;; |
| 536 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 537 | build_alias=$ac_optarg ;; |
| 538 | |
| 539 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 540 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 541 | ac_prev=cache_file ;; |
| 542 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 543 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 544 | cache_file=$ac_optarg ;; |
| 545 | |
| 546 | --config-cache | -C) |
| 547 | cache_file=config.cache ;; |
| 548 | |
| 549 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 550 | ac_prev=datadir ;; |
| 551 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 552 | | --da=*) |
| 553 | datadir=$ac_optarg ;; |
| 554 | |
| 555 | -disable-* | --disable-*) |
| 556 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 557 | # Reject names that are not valid shell variable names. |
| 558 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 559 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 560 | { (exit 1); exit 1; }; } |
| 561 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 562 | eval "enable_$ac_feature=no" ;; |
| 563 | |
| 564 | -enable-* | --enable-*) |
| 565 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 566 | # Reject names that are not valid shell variable names. |
| 567 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 568 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 569 | { (exit 1); exit 1; }; } |
| 570 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 571 | case $ac_option in |
| 572 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 573 | *) ac_optarg=yes ;; |
| 574 | esac |
| 575 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 576 | |
| 577 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 578 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 579 | | --exec | --exe | --ex) |
| 580 | ac_prev=exec_prefix ;; |
| 581 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 582 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 583 | | --exec=* | --exe=* | --ex=*) |
| 584 | exec_prefix=$ac_optarg ;; |
| 585 | |
| 586 | -gas | --gas | --ga | --g) |
| 587 | # Obsolete; use --with-gas. |
| 588 | with_gas=yes ;; |
| 589 | |
| 590 | -help | --help | --hel | --he | -h) |
| 591 | ac_init_help=long ;; |
| 592 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 593 | ac_init_help=recursive ;; |
| 594 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 595 | ac_init_help=short ;; |
| 596 | |
| 597 | -host | --host | --hos | --ho) |
| 598 | ac_prev=host_alias ;; |
| 599 | -host=* | --host=* | --hos=* | --ho=*) |
| 600 | host_alias=$ac_optarg ;; |
| 601 | |
| 602 | -includedir | --includedir | --includedi | --included | --include \ |
| 603 | | --includ | --inclu | --incl | --inc) |
| 604 | ac_prev=includedir ;; |
| 605 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 606 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 607 | includedir=$ac_optarg ;; |
| 608 | |
| 609 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 610 | ac_prev=infodir ;; |
| 611 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 612 | infodir=$ac_optarg ;; |
| 613 | |
| 614 | -libdir | --libdir | --libdi | --libd) |
| 615 | ac_prev=libdir ;; |
| 616 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 617 | libdir=$ac_optarg ;; |
| 618 | |
| 619 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 620 | | --libexe | --libex | --libe) |
| 621 | ac_prev=libexecdir ;; |
| 622 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 623 | | --libexe=* | --libex=* | --libe=*) |
| 624 | libexecdir=$ac_optarg ;; |
| 625 | |
| 626 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 627 | | --localstate | --localstat | --localsta | --localst \ |
| 628 | | --locals | --local | --loca | --loc | --lo) |
| 629 | ac_prev=localstatedir ;; |
| 630 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 631 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 632 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 633 | localstatedir=$ac_optarg ;; |
| 634 | |
| 635 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 636 | ac_prev=mandir ;; |
| 637 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 638 | mandir=$ac_optarg ;; |
| 639 | |
| 640 | -nfp | --nfp | --nf) |
| 641 | # Obsolete; use --without-fp. |
| 642 | with_fp=no ;; |
| 643 | |
| 644 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 645 | | --no-cr | --no-c | -n) |
| 646 | no_create=yes ;; |
| 647 | |
| 648 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 649 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 650 | no_recursion=yes ;; |
| 651 | |
| 652 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 653 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 654 | | --oldin | --oldi | --old | --ol | --o) |
| 655 | ac_prev=oldincludedir ;; |
| 656 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 657 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 658 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 659 | oldincludedir=$ac_optarg ;; |
| 660 | |
| 661 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 662 | ac_prev=prefix ;; |
| 663 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 664 | prefix=$ac_optarg ;; |
| 665 | |
| 666 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 667 | | --program-pre | --program-pr | --program-p) |
| 668 | ac_prev=program_prefix ;; |
| 669 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 670 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 671 | program_prefix=$ac_optarg ;; |
| 672 | |
| 673 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 674 | | --program-suf | --program-su | --program-s) |
| 675 | ac_prev=program_suffix ;; |
| 676 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 677 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 678 | program_suffix=$ac_optarg ;; |
| 679 | |
| 680 | -program-transform-name | --program-transform-name \ |
| 681 | | --program-transform-nam | --program-transform-na \ |
| 682 | | --program-transform-n | --program-transform- \ |
| 683 | | --program-transform | --program-transfor \ |
| 684 | | --program-transfo | --program-transf \ |
| 685 | | --program-trans | --program-tran \ |
| 686 | | --progr-tra | --program-tr | --program-t) |
| 687 | ac_prev=program_transform_name ;; |
| 688 | -program-transform-name=* | --program-transform-name=* \ |
| 689 | | --program-transform-nam=* | --program-transform-na=* \ |
| 690 | | --program-transform-n=* | --program-transform-=* \ |
| 691 | | --program-transform=* | --program-transfor=* \ |
| 692 | | --program-transfo=* | --program-transf=* \ |
| 693 | | --program-trans=* | --program-tran=* \ |
| 694 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 695 | program_transform_name=$ac_optarg ;; |
| 696 | |
| 697 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 698 | | -silent | --silent | --silen | --sile | --sil) |
| 699 | silent=yes ;; |
| 700 | |
| 701 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 702 | ac_prev=sbindir ;; |
| 703 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 704 | | --sbi=* | --sb=*) |
| 705 | sbindir=$ac_optarg ;; |
| 706 | |
| 707 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 708 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 709 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 710 | | --sha | --sh) |
| 711 | ac_prev=sharedstatedir ;; |
| 712 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 713 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 714 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 715 | | --sha=* | --sh=*) |
| 716 | sharedstatedir=$ac_optarg ;; |
| 717 | |
| 718 | -site | --site | --sit) |
| 719 | ac_prev=site ;; |
| 720 | -site=* | --site=* | --sit=*) |
| 721 | site=$ac_optarg ;; |
| 722 | |
| 723 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 724 | ac_prev=srcdir ;; |
| 725 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 726 | srcdir=$ac_optarg ;; |
| 727 | |
| 728 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 729 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 730 | ac_prev=sysconfdir ;; |
| 731 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 732 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 733 | sysconfdir=$ac_optarg ;; |
| 734 | |
| 735 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 736 | ac_prev=target_alias ;; |
| 737 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 738 | target_alias=$ac_optarg ;; |
| 739 | |
| 740 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 741 | verbose=yes ;; |
| 742 | |
| 743 | -version | --version | --versio | --versi | --vers | -V) |
| 744 | ac_init_version=: ;; |
| 745 | |
| 746 | -with-* | --with-*) |
| 747 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 748 | # Reject names that are not valid shell variable names. |
| 749 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 750 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 751 | { (exit 1); exit 1; }; } |
| 752 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 753 | case $ac_option in |
| 754 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 755 | *) ac_optarg=yes ;; |
| 756 | esac |
| 757 | eval "with_$ac_package='$ac_optarg'" ;; |
| 758 | |
| 759 | -without-* | --without-*) |
| 760 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 761 | # Reject names that are not valid shell variable names. |
| 762 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 763 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 764 | { (exit 1); exit 1; }; } |
| 765 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 766 | eval "with_$ac_package=no" ;; |
| 767 | |
| 768 | --x) |
| 769 | # Obsolete; use --with-x. |
| 770 | with_x=yes ;; |
| 771 | |
| 772 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 773 | | --x-incl | --x-inc | --x-in | --x-i) |
| 774 | ac_prev=x_includes ;; |
| 775 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 776 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 777 | x_includes=$ac_optarg ;; |
| 778 | |
| 779 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 780 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 781 | ac_prev=x_libraries ;; |
| 782 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 783 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 784 | x_libraries=$ac_optarg ;; |
| 785 | |
| 786 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 787 | Try \`$0 --help' for more information." >&2 |
| 788 | { (exit 1); exit 1; }; } |
| 789 | ;; |
| 790 | |
| 791 | *=*) |
| 792 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 793 | # Reject names that are not valid shell variable names. |
| 794 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 795 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 796 | { (exit 1); exit 1; }; } |
| 797 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 798 | eval "$ac_envvar='$ac_optarg'" |
| 799 | export $ac_envvar ;; |
| 800 | |
| 801 | *) |
| 802 | # FIXME: should be removed in autoconf 3.0. |
| 803 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 804 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 805 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 806 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 807 | ;; |
| 808 | |
| 809 | esac |
| 810 | done |
| 811 | |
| 812 | if test -n "$ac_prev"; then |
| 813 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 814 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 815 | { (exit 1); exit 1; }; } |
| 816 | fi |
| 817 | |
| 818 | # Be sure to have absolute paths. |
| 819 | for ac_var in exec_prefix prefix |
| 820 | do |
| 821 | eval ac_val=$`echo $ac_var` |
| 822 | case $ac_val in |
| 823 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 824 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 825 | { (exit 1); exit 1; }; };; |
| 826 | esac |
| 827 | done |
| 828 | |
| 829 | # Be sure to have absolute paths. |
| 830 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 831 | localstatedir libdir includedir oldincludedir infodir mandir |
| 832 | do |
| 833 | eval ac_val=$`echo $ac_var` |
| 834 | case $ac_val in |
| 835 | [\\/$]* | ?:[\\/]* ) ;; |
| 836 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 837 | { (exit 1); exit 1; }; };; |
| 838 | esac |
| 839 | done |
| 840 | |
| 841 | # There might be people who depend on the old broken behavior: `$host' |
| 842 | # used to hold the argument of --host etc. |
| 843 | # FIXME: To remove some day. |
| 844 | build=$build_alias |
| 845 | host=$host_alias |
| 846 | target=$target_alias |
| 847 | |
| 848 | # FIXME: To remove some day. |
| 849 | if test "x$host_alias" != x; then |
| 850 | if test "x$build_alias" = x; then |
| 851 | cross_compiling=maybe |
| 852 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 853 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 854 | elif test "x$build_alias" != "x$host_alias"; then |
| 855 | cross_compiling=yes |
| 856 | fi |
| 857 | fi |
| 858 | |
| 859 | ac_tool_prefix= |
| 860 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 861 | |
| 862 | test "$silent" = yes && exec 6>/dev/null |
| 863 | |
| 864 | |
| 865 | # Find the source files, if location was not specified. |
| 866 | if test -z "$srcdir"; then |
| 867 | ac_srcdir_defaulted=yes |
| 868 | # Try the directory containing this script, then its parent. |
| 869 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 870 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 871 | X"$0" : 'X\(//\)[^/]' \| \ |
| 872 | X"$0" : 'X\(//\)$' \| \ |
| 873 | X"$0" : 'X\(/\)' \| \ |
| 874 | . : '\(.\)' 2>/dev/null || |
| 875 | echo X"$0" | |
| 876 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 877 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 878 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 879 | /^X\(\/\).*/{ s//\1/; q; } |
| 880 | s/.*/./; q'` |
| 881 | srcdir=$ac_confdir |
| 882 | if test ! -r $srcdir/$ac_unique_file; then |
| 883 | srcdir=.. |
| 884 | fi |
| 885 | else |
| 886 | ac_srcdir_defaulted=no |
| 887 | fi |
| 888 | if test ! -r $srcdir/$ac_unique_file; then |
| 889 | if test "$ac_srcdir_defaulted" = yes; then |
| 890 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 891 | { (exit 1); exit 1; }; } |
| 892 | else |
| 893 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 894 | { (exit 1); exit 1; }; } |
| 895 | fi |
| 896 | fi |
| 897 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 898 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 899 | { (exit 1); exit 1; }; } |
| 900 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 901 | ac_env_build_alias_set=${build_alias+set} |
| 902 | ac_env_build_alias_value=$build_alias |
| 903 | ac_cv_env_build_alias_set=${build_alias+set} |
| 904 | ac_cv_env_build_alias_value=$build_alias |
| 905 | ac_env_host_alias_set=${host_alias+set} |
| 906 | ac_env_host_alias_value=$host_alias |
| 907 | ac_cv_env_host_alias_set=${host_alias+set} |
| 908 | ac_cv_env_host_alias_value=$host_alias |
| 909 | ac_env_target_alias_set=${target_alias+set} |
| 910 | ac_env_target_alias_value=$target_alias |
| 911 | ac_cv_env_target_alias_set=${target_alias+set} |
| 912 | ac_cv_env_target_alias_value=$target_alias |
| 913 | ac_env_CC_set=${CC+set} |
| 914 | ac_env_CC_value=$CC |
| 915 | ac_cv_env_CC_set=${CC+set} |
| 916 | ac_cv_env_CC_value=$CC |
| 917 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 918 | ac_env_CFLAGS_value=$CFLAGS |
| 919 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 920 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 921 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 922 | ac_env_LDFLAGS_value=$LDFLAGS |
| 923 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 924 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 925 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 926 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 927 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 928 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 929 | ac_env_CPP_set=${CPP+set} |
| 930 | ac_env_CPP_value=$CPP |
| 931 | ac_cv_env_CPP_set=${CPP+set} |
| 932 | ac_cv_env_CPP_value=$CPP |
| 933 | |
| 934 | # |
| 935 | # Report the --help message. |
| 936 | # |
| 937 | if test "$ac_init_help" = "long"; then |
| 938 | # Omit some internal or obsolete options to make the list less imposing. |
| 939 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 940 | cat <<_ACEOF |
Glenn Randers-Pehrson | 7b34df3 | 2006-02-24 06:30:16 -0600 | [diff] [blame^] | 941 | \`configure' configures libpng 1.2.9beta3 to adapt to many kinds of systems. |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 942 | |
| 943 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 944 | |
| 945 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 946 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 947 | |
| 948 | Defaults for the options are specified in brackets. |
| 949 | |
| 950 | Configuration: |
| 951 | -h, --help display this help and exit |
| 952 | --help=short display options specific to this package |
| 953 | --help=recursive display the short help of all the included packages |
| 954 | -V, --version display version information and exit |
| 955 | -q, --quiet, --silent do not print \`checking...' messages |
| 956 | --cache-file=FILE cache test results in FILE [disabled] |
| 957 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 958 | -n, --no-create do not create output files |
| 959 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 960 | |
| 961 | _ACEOF |
| 962 | |
| 963 | cat <<_ACEOF |
| 964 | Installation directories: |
| 965 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 966 | [$ac_default_prefix] |
| 967 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 968 | [PREFIX] |
| 969 | |
| 970 | By default, \`make install' will install all the files in |
| 971 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 972 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 973 | for instance \`--prefix=\$HOME'. |
| 974 | |
| 975 | For better control, use the options below. |
| 976 | |
| 977 | Fine tuning of the installation directories: |
| 978 | --bindir=DIR user executables [EPREFIX/bin] |
| 979 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 980 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 981 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 982 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 983 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 984 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 985 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 986 | --includedir=DIR C header files [PREFIX/include] |
| 987 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 988 | --infodir=DIR info documentation [PREFIX/info] |
| 989 | --mandir=DIR man documentation [PREFIX/man] |
| 990 | _ACEOF |
| 991 | |
| 992 | cat <<\_ACEOF |
| 993 | |
| 994 | Program names: |
| 995 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 996 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 997 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 998 | |
| 999 | X features: |
| 1000 | --x-includes=DIR X include files are in DIR |
| 1001 | --x-libraries=DIR X library files are in DIR |
| 1002 | |
| 1003 | System types: |
| 1004 | --build=BUILD configure for building on BUILD [guessed] |
| 1005 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1006 | _ACEOF |
| 1007 | fi |
| 1008 | |
| 1009 | if test -n "$ac_init_help"; then |
| 1010 | case $ac_init_help in |
Glenn Randers-Pehrson | 7b34df3 | 2006-02-24 06:30:16 -0600 | [diff] [blame^] | 1011 | short | recursive ) echo "Configuration of libpng 1.2.9beta3:";; |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 1012 | esac |
| 1013 | cat <<\_ACEOF |
| 1014 | |
| 1015 | Optional Features: |
| 1016 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1017 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1018 | --disable-dependency-tracking Speeds up one-time builds |
| 1019 | --enable-dependency-tracking Do not reject slow dependency extractors |
| 1020 | --enable-shared=PKGS build shared libraries default=yes |
| 1021 | --enable-static=PKGS build static libraries default=yes |
| 1022 | --enable-fast-install=PKGS optimize for fast installation default=yes |
| 1023 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1024 | |
| 1025 | Optional Packages: |
| 1026 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1027 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1028 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1029 | --with-pic try to use only PIC/non-PIC objects default=use both |
| 1030 | --with-x use the X Window System |
| 1031 | --with-pkgconfigdir Use the specified pkgconfig dir (default is |
| 1032 | prefix/lib/pkgconfig) |
| 1033 | |
| 1034 | Some influential environment variables: |
| 1035 | CC C compiler command |
| 1036 | CFLAGS C compiler flags |
| 1037 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1038 | nonstandard directory <lib dir> |
| 1039 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1040 | headers in a nonstandard directory <include dir> |
| 1041 | CPP C preprocessor |
| 1042 | |
| 1043 | Use these variables to override the choices made by `configure' or to help |
| 1044 | it to find libraries and programs with nonstandard names/locations. |
| 1045 | |
Glenn Randers-Pehrson | 7b34df3 | 2006-02-24 06:30:16 -0600 | [diff] [blame^] | 1046 | Report bugs to <png-mng-implement@lists.sourceforge.net>. |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 1047 | _ACEOF |
| 1048 | fi |
| 1049 | |
| 1050 | if test "$ac_init_help" = "recursive"; then |
| 1051 | # If there are subdirs, report their specific --help. |
| 1052 | ac_popdir=`pwd` |
| 1053 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1054 | test -d $ac_dir || continue |
| 1055 | ac_builddir=. |
| 1056 | |
| 1057 | if test "$ac_dir" != .; then |
| 1058 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1059 | # A "../" for each directory in $ac_dir_suffix. |
| 1060 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1061 | else |
| 1062 | ac_dir_suffix= ac_top_builddir= |
| 1063 | fi |
| 1064 | |
| 1065 | case $srcdir in |
| 1066 | .) # No --srcdir option. We are building in place. |
| 1067 | ac_srcdir=. |
| 1068 | if test -z "$ac_top_builddir"; then |
| 1069 | ac_top_srcdir=. |
| 1070 | else |
| 1071 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1072 | fi ;; |
| 1073 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1074 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1075 | ac_top_srcdir=$srcdir ;; |
| 1076 | *) # Relative path. |
| 1077 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1078 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1079 | esac |
| 1080 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 1081 | # absolute. |
| 1082 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 1083 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 1084 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 1085 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 1086 | |
| 1087 | cd $ac_dir |
| 1088 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1089 | if test -f $ac_srcdir/configure.gnu; then |
| 1090 | echo |
| 1091 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1092 | elif test -f $ac_srcdir/configure; then |
| 1093 | echo |
| 1094 | $SHELL $ac_srcdir/configure --help=recursive |
| 1095 | elif test -f $ac_srcdir/configure.ac || |
| 1096 | test -f $ac_srcdir/configure.in; then |
| 1097 | echo |
| 1098 | $ac_configure --help |
| 1099 | else |
| 1100 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1101 | fi |
| 1102 | cd $ac_popdir |
| 1103 | done |
| 1104 | fi |
| 1105 | |
| 1106 | test -n "$ac_init_help" && exit 0 |
| 1107 | if $ac_init_version; then |
| 1108 | cat <<\_ACEOF |
Glenn Randers-Pehrson | 7b34df3 | 2006-02-24 06:30:16 -0600 | [diff] [blame^] | 1109 | libpng configure 1.2.9beta3 |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 1110 | generated by GNU Autoconf 2.57 |
| 1111 | |
| 1112 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 1113 | Free Software Foundation, Inc. |
| 1114 | This configure script is free software; the Free Software Foundation |
| 1115 | gives unlimited permission to copy, distribute and modify it. |
| 1116 | _ACEOF |
| 1117 | exit 0 |
| 1118 | fi |
| 1119 | exec 5>config.log |
| 1120 | cat >&5 <<_ACEOF |
| 1121 | This file contains any messages produced by compilers while |
| 1122 | running configure, to aid debugging if configure makes a mistake. |
| 1123 | |
Glenn Randers-Pehrson | 7b34df3 | 2006-02-24 06:30:16 -0600 | [diff] [blame^] | 1124 | It was created by libpng $as_me 1.2.9beta3, which was |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 1125 | generated by GNU Autoconf 2.57. Invocation command line was |
| 1126 | |
| 1127 | $ $0 $@ |
| 1128 | |
| 1129 | _ACEOF |
| 1130 | { |
| 1131 | cat <<_ASUNAME |
| 1132 | ## --------- ## |
| 1133 | ## Platform. ## |
| 1134 | ## --------- ## |
| 1135 | |
| 1136 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1137 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1138 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1139 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1140 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1141 | |
| 1142 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1143 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1144 | |
| 1145 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1146 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1147 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1148 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1149 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1150 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1151 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1152 | |
| 1153 | _ASUNAME |
| 1154 | |
| 1155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1156 | for as_dir in $PATH |
| 1157 | do |
| 1158 | IFS=$as_save_IFS |
| 1159 | test -z "$as_dir" && as_dir=. |
| 1160 | echo "PATH: $as_dir" |
| 1161 | done |
| 1162 | |
| 1163 | } >&5 |
| 1164 | |
| 1165 | cat >&5 <<_ACEOF |
| 1166 | |
| 1167 | |
| 1168 | ## ----------- ## |
| 1169 | ## Core tests. ## |
| 1170 | ## ----------- ## |
| 1171 | |
| 1172 | _ACEOF |
| 1173 | |
| 1174 | |
| 1175 | # Keep a trace of the command line. |
| 1176 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1177 | # Strip out --silent because we don't want to record it for future runs. |
| 1178 | # Also quote any args containing shell meta-characters. |
| 1179 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1180 | ac_configure_args= |
| 1181 | ac_configure_args0= |
| 1182 | ac_configure_args1= |
| 1183 | ac_sep= |
| 1184 | ac_must_keep_next=false |
| 1185 | for ac_pass in 1 2 |
| 1186 | do |
| 1187 | for ac_arg |
| 1188 | do |
| 1189 | case $ac_arg in |
| 1190 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1191 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1192 | | -silent | --silent | --silen | --sile | --sil) |
| 1193 | continue ;; |
| 1194 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1195 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1196 | esac |
| 1197 | case $ac_pass in |
| 1198 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1199 | 2) |
| 1200 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1201 | if test $ac_must_keep_next = true; then |
| 1202 | ac_must_keep_next=false # Got value, back to normal. |
| 1203 | else |
| 1204 | case $ac_arg in |
| 1205 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1206 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1207 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1208 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1209 | case "$ac_configure_args0 " in |
| 1210 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1211 | esac |
| 1212 | ;; |
| 1213 | -* ) ac_must_keep_next=true ;; |
| 1214 | esac |
| 1215 | fi |
| 1216 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1217 | # Get rid of the leading space. |
| 1218 | ac_sep=" " |
| 1219 | ;; |
| 1220 | esac |
| 1221 | done |
| 1222 | done |
| 1223 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1224 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1225 | |
| 1226 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1227 | # config.log. We remove comments because anyway the quotes in there |
| 1228 | # would cause problems or look ugly. |
| 1229 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1230 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1231 | trap 'exit_status=$? |
| 1232 | # Save into config.log some information that might help in debugging. |
| 1233 | { |
| 1234 | echo |
| 1235 | |
| 1236 | cat <<\_ASBOX |
| 1237 | ## ---------------- ## |
| 1238 | ## Cache variables. ## |
| 1239 | ## ---------------- ## |
| 1240 | _ASBOX |
| 1241 | echo |
| 1242 | # The following way of writing the cache mishandles newlines in values, |
| 1243 | { |
| 1244 | (set) 2>&1 | |
| 1245 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1246 | *ac_space=\ *) |
| 1247 | sed -n \ |
| 1248 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1249 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1250 | ;; |
| 1251 | *) |
| 1252 | sed -n \ |
| 1253 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1254 | ;; |
| 1255 | esac; |
| 1256 | } |
| 1257 | echo |
| 1258 | |
| 1259 | cat <<\_ASBOX |
| 1260 | ## ----------------- ## |
| 1261 | ## Output variables. ## |
| 1262 | ## ----------------- ## |
| 1263 | _ASBOX |
| 1264 | echo |
| 1265 | for ac_var in $ac_subst_vars |
| 1266 | do |
| 1267 | eval ac_val=$`echo $ac_var` |
| 1268 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1269 | done | sort |
| 1270 | echo |
| 1271 | |
| 1272 | if test -n "$ac_subst_files"; then |
| 1273 | cat <<\_ASBOX |
| 1274 | ## ------------- ## |
| 1275 | ## Output files. ## |
| 1276 | ## ------------- ## |
| 1277 | _ASBOX |
| 1278 | echo |
| 1279 | for ac_var in $ac_subst_files |
| 1280 | do |
| 1281 | eval ac_val=$`echo $ac_var` |
| 1282 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1283 | done | sort |
| 1284 | echo |
| 1285 | fi |
| 1286 | |
| 1287 | if test -s confdefs.h; then |
| 1288 | cat <<\_ASBOX |
| 1289 | ## ----------- ## |
| 1290 | ## confdefs.h. ## |
| 1291 | ## ----------- ## |
| 1292 | _ASBOX |
| 1293 | echo |
| 1294 | sed "/^$/d" confdefs.h | sort |
| 1295 | echo |
| 1296 | fi |
| 1297 | test "$ac_signal" != 0 && |
| 1298 | echo "$as_me: caught signal $ac_signal" |
| 1299 | echo "$as_me: exit $exit_status" |
| 1300 | } >&5 |
| 1301 | rm -f core core.* *.core && |
| 1302 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1303 | exit $exit_status |
| 1304 | ' 0 |
| 1305 | for ac_signal in 1 2 13 15; do |
| 1306 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1307 | done |
| 1308 | ac_signal=0 |
| 1309 | |
| 1310 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1311 | rm -rf conftest* confdefs.h |
| 1312 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1313 | echo >confdefs.h |
| 1314 | |
| 1315 | # Predefined preprocessor variables. |
| 1316 | |
| 1317 | cat >>confdefs.h <<_ACEOF |
| 1318 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1319 | _ACEOF |
| 1320 | |
| 1321 | |
| 1322 | cat >>confdefs.h <<_ACEOF |
| 1323 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1324 | _ACEOF |
| 1325 | |
| 1326 | |
| 1327 | cat >>confdefs.h <<_ACEOF |
| 1328 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1329 | _ACEOF |
| 1330 | |
| 1331 | |
| 1332 | cat >>confdefs.h <<_ACEOF |
| 1333 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1334 | _ACEOF |
| 1335 | |
| 1336 | |
| 1337 | cat >>confdefs.h <<_ACEOF |
| 1338 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1339 | _ACEOF |
| 1340 | |
| 1341 | |
| 1342 | # Let the site file select an alternate cache file if it wants to. |
| 1343 | # Prefer explicitly selected file to automatically selected ones. |
| 1344 | if test -z "$CONFIG_SITE"; then |
| 1345 | if test "x$prefix" != xNONE; then |
| 1346 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1347 | else |
| 1348 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1349 | fi |
| 1350 | fi |
| 1351 | for ac_site_file in $CONFIG_SITE; do |
| 1352 | if test -r "$ac_site_file"; then |
| 1353 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1354 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1355 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1356 | . "$ac_site_file" |
| 1357 | fi |
| 1358 | done |
| 1359 | |
| 1360 | if test -r "$cache_file"; then |
| 1361 | # Some versions of bash will fail to source /dev/null (special |
| 1362 | # files actually), so we avoid doing that. |
| 1363 | if test -f "$cache_file"; then |
| 1364 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1365 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1366 | case $cache_file in |
| 1367 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1368 | *) . ./$cache_file;; |
| 1369 | esac |
| 1370 | fi |
| 1371 | else |
| 1372 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1373 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1374 | >$cache_file |
| 1375 | fi |
| 1376 | |
| 1377 | # Check that the precious variables saved in the cache have kept the same |
| 1378 | # value. |
| 1379 | ac_cache_corrupted=false |
| 1380 | for ac_var in `(set) 2>&1 | |
| 1381 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1382 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1383 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1384 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1385 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1386 | case $ac_old_set,$ac_new_set in |
| 1387 | set,) |
| 1388 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1389 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1390 | ac_cache_corrupted=: ;; |
| 1391 | ,set) |
| 1392 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1393 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1394 | ac_cache_corrupted=: ;; |
| 1395 | ,);; |
| 1396 | *) |
| 1397 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1398 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1399 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1400 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1401 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1402 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1403 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1404 | ac_cache_corrupted=: |
| 1405 | fi;; |
| 1406 | esac |
| 1407 | # Pass precious variables to config.status. |
| 1408 | if test "$ac_new_set" = set; then |
| 1409 | case $ac_new_val in |
| 1410 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1411 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1412 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1413 | esac |
| 1414 | case " $ac_configure_args " in |
| 1415 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1416 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1417 | esac |
| 1418 | fi |
| 1419 | done |
| 1420 | if $ac_cache_corrupted; then |
| 1421 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1422 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1423 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1424 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1425 | { (exit 1); exit 1; }; } |
| 1426 | fi |
| 1427 | |
| 1428 | ac_ext=c |
| 1429 | ac_cpp='$CPP $CPPFLAGS' |
| 1430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1433 | |
| 1434 | |
| 1435 | |
| 1436 | |
| 1437 | |
| 1438 | |
| 1439 | |
| 1440 | |
| 1441 | |
| 1442 | |
| 1443 | |
| 1444 | |
| 1445 | |
| 1446 | |
| 1447 | |
| 1448 | |
| 1449 | |
| 1450 | |
| 1451 | |
| 1452 | |
| 1453 | |
| 1454 | |
| 1455 | |
| 1456 | |
| 1457 | |
| 1458 | |
| 1459 | |
| 1460 | am__api_version="1.7" |
| 1461 | ac_aux_dir= |
| 1462 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1463 | if test -f $ac_dir/install-sh; then |
| 1464 | ac_aux_dir=$ac_dir |
| 1465 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1466 | break |
| 1467 | elif test -f $ac_dir/install.sh; then |
| 1468 | ac_aux_dir=$ac_dir |
| 1469 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1470 | break |
| 1471 | elif test -f $ac_dir/shtool; then |
| 1472 | ac_aux_dir=$ac_dir |
| 1473 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1474 | break |
| 1475 | fi |
| 1476 | done |
| 1477 | if test -z "$ac_aux_dir"; then |
| 1478 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1479 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1480 | { (exit 1); exit 1; }; } |
| 1481 | fi |
| 1482 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1483 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1484 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1485 | |
| 1486 | # Find a good install program. We prefer a C program (faster), |
| 1487 | # so one script is as good as another. But avoid the broken or |
| 1488 | # incompatible versions: |
| 1489 | # SysV /etc/install, /usr/sbin/install |
| 1490 | # SunOS /usr/etc/install |
| 1491 | # IRIX /sbin/install |
| 1492 | # AIX /bin/install |
| 1493 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1494 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1495 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1496 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1497 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1498 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1499 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1500 | if test -z "$INSTALL"; then |
| 1501 | if test "${ac_cv_path_install+set}" = set; then |
| 1502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1503 | else |
| 1504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1505 | for as_dir in $PATH |
| 1506 | do |
| 1507 | IFS=$as_save_IFS |
| 1508 | test -z "$as_dir" && as_dir=. |
| 1509 | # Account for people who put trailing slashes in PATH elements. |
| 1510 | case $as_dir/ in |
| 1511 | ./ | .// | /cC/* | \ |
| 1512 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1513 | /usr/ucb/* ) ;; |
| 1514 | *) |
| 1515 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1516 | # Don't use installbsd from OSF since it installs stuff as root |
| 1517 | # by default. |
| 1518 | for ac_prog in ginstall scoinst install; do |
| 1519 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1520 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1521 | if test $ac_prog = install && |
| 1522 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1523 | # AIX install. It has an incompatible calling convention. |
| 1524 | : |
| 1525 | elif test $ac_prog = install && |
| 1526 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1527 | # program-specific install script used by HP pwplus--don't use. |
| 1528 | : |
| 1529 | else |
| 1530 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1531 | break 3 |
| 1532 | fi |
| 1533 | fi |
| 1534 | done |
| 1535 | done |
| 1536 | ;; |
| 1537 | esac |
| 1538 | done |
| 1539 | |
| 1540 | |
| 1541 | fi |
| 1542 | if test "${ac_cv_path_install+set}" = set; then |
| 1543 | INSTALL=$ac_cv_path_install |
| 1544 | else |
| 1545 | # As a last resort, use the slow shell script. We don't cache a |
| 1546 | # path for INSTALL within a source directory, because that will |
| 1547 | # break other packages using the cache if that directory is |
| 1548 | # removed, or if the path is relative. |
| 1549 | INSTALL=$ac_install_sh |
| 1550 | fi |
| 1551 | fi |
| 1552 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1553 | echo "${ECHO_T}$INSTALL" >&6 |
| 1554 | |
| 1555 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1556 | # It thinks the first close brace ends the variable substitution. |
| 1557 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1558 | |
| 1559 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1560 | |
| 1561 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1562 | |
| 1563 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1564 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1565 | # Just in case |
| 1566 | sleep 1 |
| 1567 | echo timestamp > conftest.file |
| 1568 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1569 | # arguments. Must try -L first in case configure is actually a |
| 1570 | # symlink; some systems play weird games with the mod time of symlinks |
| 1571 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1572 | # directory). |
| 1573 | if ( |
| 1574 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1575 | if test "$*" = "X"; then |
| 1576 | # -L didn't work. |
| 1577 | set X `ls -t $srcdir/configure conftest.file` |
| 1578 | fi |
| 1579 | rm -f conftest.file |
| 1580 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1581 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1582 | |
| 1583 | # If neither matched, then we have a broken ls. This can happen |
| 1584 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1585 | # broken ls alias from the environment. This has actually |
| 1586 | # happened. Such a system could not be considered "sane". |
| 1587 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1588 | alias in your environment" >&5 |
| 1589 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1590 | alias in your environment" >&2;} |
| 1591 | { (exit 1); exit 1; }; } |
| 1592 | fi |
| 1593 | |
| 1594 | test "$2" = conftest.file |
| 1595 | ) |
| 1596 | then |
| 1597 | # Ok. |
| 1598 | : |
| 1599 | else |
| 1600 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1601 | Check your system clock" >&5 |
| 1602 | echo "$as_me: error: newly created file is older than distributed files! |
| 1603 | Check your system clock" >&2;} |
| 1604 | { (exit 1); exit 1; }; } |
| 1605 | fi |
| 1606 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1607 | echo "${ECHO_T}yes" >&6 |
| 1608 | test "$program_prefix" != NONE && |
| 1609 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1610 | # Use a double $ so make ignores it. |
| 1611 | test "$program_suffix" != NONE && |
| 1612 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1613 | # Double any \ or $. echo might interpret backslashes. |
| 1614 | # By default was `s,x,x', remove it if useless. |
| 1615 | cat <<\_ACEOF >conftest.sed |
| 1616 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1617 | _ACEOF |
| 1618 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1619 | rm conftest.sed |
| 1620 | |
| 1621 | |
| 1622 | # expand $ac_aux_dir to an absolute path |
| 1623 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 1624 | |
| 1625 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1626 | # Use eval to expand $SHELL |
| 1627 | if eval "$MISSING --run true"; then |
| 1628 | am_missing_run="$MISSING --run " |
| 1629 | else |
| 1630 | am_missing_run= |
| 1631 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 1632 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 1633 | fi |
| 1634 | |
| 1635 | for ac_prog in gawk mawk nawk awk |
| 1636 | do |
| 1637 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1638 | set dummy $ac_prog; ac_word=$2 |
| 1639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1641 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1643 | else |
| 1644 | if test -n "$AWK"; then |
| 1645 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1646 | else |
| 1647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1648 | for as_dir in $PATH |
| 1649 | do |
| 1650 | IFS=$as_save_IFS |
| 1651 | test -z "$as_dir" && as_dir=. |
| 1652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1654 | ac_cv_prog_AWK="$ac_prog" |
| 1655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1656 | break 2 |
| 1657 | fi |
| 1658 | done |
| 1659 | done |
| 1660 | |
| 1661 | fi |
| 1662 | fi |
| 1663 | AWK=$ac_cv_prog_AWK |
| 1664 | if test -n "$AWK"; then |
| 1665 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1666 | echo "${ECHO_T}$AWK" >&6 |
| 1667 | else |
| 1668 | echo "$as_me:$LINENO: result: no" >&5 |
| 1669 | echo "${ECHO_T}no" >&6 |
| 1670 | fi |
| 1671 | |
| 1672 | test -n "$AWK" && break |
| 1673 | done |
| 1674 | |
| 1675 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1676 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1677 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1678 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1680 | else |
| 1681 | cat >conftest.make <<\_ACEOF |
| 1682 | all: |
| 1683 | @echo 'ac_maketemp="$(MAKE)"' |
| 1684 | _ACEOF |
| 1685 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1686 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1687 | if test -n "$ac_maketemp"; then |
| 1688 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1689 | else |
| 1690 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1691 | fi |
| 1692 | rm -f conftest.make |
| 1693 | fi |
| 1694 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1695 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1696 | echo "${ECHO_T}yes" >&6 |
| 1697 | SET_MAKE= |
| 1698 | else |
| 1699 | echo "$as_me:$LINENO: result: no" >&5 |
| 1700 | echo "${ECHO_T}no" >&6 |
| 1701 | SET_MAKE="MAKE=${MAKE-make}" |
| 1702 | fi |
| 1703 | |
| 1704 | # test to see if srcdir already configured |
| 1705 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 1706 | test -f $srcdir/config.status; then |
| 1707 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1708 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1709 | { (exit 1); exit 1; }; } |
| 1710 | fi |
| 1711 | |
| 1712 | # test whether we have cygpath |
| 1713 | if test -z "$CYGPATH_W"; then |
| 1714 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 1715 | CYGPATH_W='cygpath -w' |
| 1716 | else |
| 1717 | CYGPATH_W=echo |
| 1718 | fi |
| 1719 | fi |
| 1720 | |
| 1721 | |
| 1722 | # Define the identity of the package. |
| 1723 | PACKAGE=libpng |
Glenn Randers-Pehrson | 7b34df3 | 2006-02-24 06:30:16 -0600 | [diff] [blame^] | 1724 | VERSION=1.2.9beta3 |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 1725 | |
| 1726 | |
| 1727 | cat >>confdefs.h <<_ACEOF |
| 1728 | #define PACKAGE "$PACKAGE" |
| 1729 | _ACEOF |
| 1730 | |
| 1731 | |
| 1732 | cat >>confdefs.h <<_ACEOF |
| 1733 | #define VERSION "$VERSION" |
| 1734 | _ACEOF |
| 1735 | |
| 1736 | # Some tools Automake needs. |
| 1737 | |
| 1738 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 1739 | |
| 1740 | |
| 1741 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1742 | |
| 1743 | |
| 1744 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 1745 | |
| 1746 | |
| 1747 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1748 | |
| 1749 | |
| 1750 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1751 | |
| 1752 | |
| 1753 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1754 | |
| 1755 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1756 | |
| 1757 | # Installed binaries are usually stripped using `strip' when the user |
| 1758 | # run `make install-strip'. However `strip' might not be the right |
| 1759 | # tool to use in cross-compilation environments, therefore Automake |
| 1760 | # will honor the `STRIP' environment variable to overrule this program. |
| 1761 | if test "$cross_compiling" != no; then |
| 1762 | if test -n "$ac_tool_prefix"; then |
| 1763 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1764 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1767 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1769 | else |
| 1770 | if test -n "$STRIP"; then |
| 1771 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1772 | else |
| 1773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1774 | for as_dir in $PATH |
| 1775 | do |
| 1776 | IFS=$as_save_IFS |
| 1777 | test -z "$as_dir" && as_dir=. |
| 1778 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1779 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1780 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1782 | break 2 |
| 1783 | fi |
| 1784 | done |
| 1785 | done |
| 1786 | |
| 1787 | fi |
| 1788 | fi |
| 1789 | STRIP=$ac_cv_prog_STRIP |
| 1790 | if test -n "$STRIP"; then |
| 1791 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 1792 | echo "${ECHO_T}$STRIP" >&6 |
| 1793 | else |
| 1794 | echo "$as_me:$LINENO: result: no" >&5 |
| 1795 | echo "${ECHO_T}no" >&6 |
| 1796 | fi |
| 1797 | |
| 1798 | fi |
| 1799 | if test -z "$ac_cv_prog_STRIP"; then |
| 1800 | ac_ct_STRIP=$STRIP |
| 1801 | # Extract the first word of "strip", so it can be a program name with args. |
| 1802 | set dummy strip; ac_word=$2 |
| 1803 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1804 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1805 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1807 | else |
| 1808 | if test -n "$ac_ct_STRIP"; then |
| 1809 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1810 | else |
| 1811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1812 | for as_dir in $PATH |
| 1813 | do |
| 1814 | IFS=$as_save_IFS |
| 1815 | test -z "$as_dir" && as_dir=. |
| 1816 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1817 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1818 | ac_cv_prog_ac_ct_STRIP="strip" |
| 1819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1820 | break 2 |
| 1821 | fi |
| 1822 | done |
| 1823 | done |
| 1824 | |
| 1825 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1826 | fi |
| 1827 | fi |
| 1828 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1829 | if test -n "$ac_ct_STRIP"; then |
| 1830 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 1831 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1832 | else |
| 1833 | echo "$as_me:$LINENO: result: no" >&5 |
| 1834 | echo "${ECHO_T}no" >&6 |
| 1835 | fi |
| 1836 | |
| 1837 | STRIP=$ac_ct_STRIP |
| 1838 | else |
| 1839 | STRIP="$ac_cv_prog_STRIP" |
| 1840 | fi |
| 1841 | |
| 1842 | fi |
| 1843 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1844 | |
| 1845 | # We need awk for the "check" target. The system "awk" is bad on |
| 1846 | # some platforms. |
| 1847 | |
| 1848 | |
| 1849 | |
| 1850 | |
| 1851 | ac_config_headers="$ac_config_headers config.h" |
| 1852 | |
| 1853 | |
| 1854 | # Checks for programs. |
| 1855 | ac_ext=c |
| 1856 | ac_cpp='$CPP $CPPFLAGS' |
| 1857 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1858 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1859 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1860 | if test -n "$ac_tool_prefix"; then |
| 1861 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1862 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1865 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1867 | else |
| 1868 | if test -n "$CC"; then |
| 1869 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1870 | else |
| 1871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1872 | for as_dir in $PATH |
| 1873 | do |
| 1874 | IFS=$as_save_IFS |
| 1875 | test -z "$as_dir" && as_dir=. |
| 1876 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1878 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1880 | break 2 |
| 1881 | fi |
| 1882 | done |
| 1883 | done |
| 1884 | |
| 1885 | fi |
| 1886 | fi |
| 1887 | CC=$ac_cv_prog_CC |
| 1888 | if test -n "$CC"; then |
| 1889 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1890 | echo "${ECHO_T}$CC" >&6 |
| 1891 | else |
| 1892 | echo "$as_me:$LINENO: result: no" >&5 |
| 1893 | echo "${ECHO_T}no" >&6 |
| 1894 | fi |
| 1895 | |
| 1896 | fi |
| 1897 | if test -z "$ac_cv_prog_CC"; then |
| 1898 | ac_ct_CC=$CC |
| 1899 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1900 | set dummy gcc; ac_word=$2 |
| 1901 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1903 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1905 | else |
| 1906 | if test -n "$ac_ct_CC"; then |
| 1907 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1908 | else |
| 1909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1910 | for as_dir in $PATH |
| 1911 | do |
| 1912 | IFS=$as_save_IFS |
| 1913 | test -z "$as_dir" && as_dir=. |
| 1914 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1915 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1916 | ac_cv_prog_ac_ct_CC="gcc" |
| 1917 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1918 | break 2 |
| 1919 | fi |
| 1920 | done |
| 1921 | done |
| 1922 | |
| 1923 | fi |
| 1924 | fi |
| 1925 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1926 | if test -n "$ac_ct_CC"; then |
| 1927 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1928 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1929 | else |
| 1930 | echo "$as_me:$LINENO: result: no" >&5 |
| 1931 | echo "${ECHO_T}no" >&6 |
| 1932 | fi |
| 1933 | |
| 1934 | CC=$ac_ct_CC |
| 1935 | else |
| 1936 | CC="$ac_cv_prog_CC" |
| 1937 | fi |
| 1938 | |
| 1939 | if test -z "$CC"; then |
| 1940 | if test -n "$ac_tool_prefix"; then |
| 1941 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1942 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1943 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1945 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1947 | else |
| 1948 | if test -n "$CC"; then |
| 1949 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1950 | else |
| 1951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1952 | for as_dir in $PATH |
| 1953 | do |
| 1954 | IFS=$as_save_IFS |
| 1955 | test -z "$as_dir" && as_dir=. |
| 1956 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1957 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1958 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1960 | break 2 |
| 1961 | fi |
| 1962 | done |
| 1963 | done |
| 1964 | |
| 1965 | fi |
| 1966 | fi |
| 1967 | CC=$ac_cv_prog_CC |
| 1968 | if test -n "$CC"; then |
| 1969 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1970 | echo "${ECHO_T}$CC" >&6 |
| 1971 | else |
| 1972 | echo "$as_me:$LINENO: result: no" >&5 |
| 1973 | echo "${ECHO_T}no" >&6 |
| 1974 | fi |
| 1975 | |
| 1976 | fi |
| 1977 | if test -z "$ac_cv_prog_CC"; then |
| 1978 | ac_ct_CC=$CC |
| 1979 | # Extract the first word of "cc", so it can be a program name with args. |
| 1980 | set dummy cc; ac_word=$2 |
| 1981 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1982 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1983 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1985 | else |
| 1986 | if test -n "$ac_ct_CC"; then |
| 1987 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1988 | else |
| 1989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1990 | for as_dir in $PATH |
| 1991 | do |
| 1992 | IFS=$as_save_IFS |
| 1993 | test -z "$as_dir" && as_dir=. |
| 1994 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1995 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1996 | ac_cv_prog_ac_ct_CC="cc" |
| 1997 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1998 | break 2 |
| 1999 | fi |
| 2000 | done |
| 2001 | done |
| 2002 | |
| 2003 | fi |
| 2004 | fi |
| 2005 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2006 | if test -n "$ac_ct_CC"; then |
| 2007 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2008 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2009 | else |
| 2010 | echo "$as_me:$LINENO: result: no" >&5 |
| 2011 | echo "${ECHO_T}no" >&6 |
| 2012 | fi |
| 2013 | |
| 2014 | CC=$ac_ct_CC |
| 2015 | else |
| 2016 | CC="$ac_cv_prog_CC" |
| 2017 | fi |
| 2018 | |
| 2019 | fi |
| 2020 | if test -z "$CC"; then |
| 2021 | # Extract the first word of "cc", so it can be a program name with args. |
| 2022 | set dummy cc; ac_word=$2 |
| 2023 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2025 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2027 | else |
| 2028 | if test -n "$CC"; then |
| 2029 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2030 | else |
| 2031 | ac_prog_rejected=no |
| 2032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2033 | for as_dir in $PATH |
| 2034 | do |
| 2035 | IFS=$as_save_IFS |
| 2036 | test -z "$as_dir" && as_dir=. |
| 2037 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2038 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2039 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2040 | ac_prog_rejected=yes |
| 2041 | continue |
| 2042 | fi |
| 2043 | ac_cv_prog_CC="cc" |
| 2044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2045 | break 2 |
| 2046 | fi |
| 2047 | done |
| 2048 | done |
| 2049 | |
| 2050 | if test $ac_prog_rejected = yes; then |
| 2051 | # We found a bogon in the path, so make sure we never use it. |
| 2052 | set dummy $ac_cv_prog_CC |
| 2053 | shift |
| 2054 | if test $# != 0; then |
| 2055 | # We chose a different compiler from the bogus one. |
| 2056 | # However, it has the same basename, so the bogon will be chosen |
| 2057 | # first if we set CC to just the basename; use the full file name. |
| 2058 | shift |
| 2059 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2060 | fi |
| 2061 | fi |
| 2062 | fi |
| 2063 | fi |
| 2064 | CC=$ac_cv_prog_CC |
| 2065 | if test -n "$CC"; then |
| 2066 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2067 | echo "${ECHO_T}$CC" >&6 |
| 2068 | else |
| 2069 | echo "$as_me:$LINENO: result: no" >&5 |
| 2070 | echo "${ECHO_T}no" >&6 |
| 2071 | fi |
| 2072 | |
| 2073 | fi |
| 2074 | if test -z "$CC"; then |
| 2075 | if test -n "$ac_tool_prefix"; then |
| 2076 | for ac_prog in cl |
| 2077 | do |
| 2078 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2079 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2080 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2081 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2082 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2084 | else |
| 2085 | if test -n "$CC"; then |
| 2086 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2087 | else |
| 2088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2089 | for as_dir in $PATH |
| 2090 | do |
| 2091 | IFS=$as_save_IFS |
| 2092 | test -z "$as_dir" && as_dir=. |
| 2093 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2094 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2095 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2096 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2097 | break 2 |
| 2098 | fi |
| 2099 | done |
| 2100 | done |
| 2101 | |
| 2102 | fi |
| 2103 | fi |
| 2104 | CC=$ac_cv_prog_CC |
| 2105 | if test -n "$CC"; then |
| 2106 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2107 | echo "${ECHO_T}$CC" >&6 |
| 2108 | else |
| 2109 | echo "$as_me:$LINENO: result: no" >&5 |
| 2110 | echo "${ECHO_T}no" >&6 |
| 2111 | fi |
| 2112 | |
| 2113 | test -n "$CC" && break |
| 2114 | done |
| 2115 | fi |
| 2116 | if test -z "$CC"; then |
| 2117 | ac_ct_CC=$CC |
| 2118 | for ac_prog in cl |
| 2119 | do |
| 2120 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2121 | set dummy $ac_prog; ac_word=$2 |
| 2122 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2123 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2124 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2126 | else |
| 2127 | if test -n "$ac_ct_CC"; then |
| 2128 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2129 | else |
| 2130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2131 | for as_dir in $PATH |
| 2132 | do |
| 2133 | IFS=$as_save_IFS |
| 2134 | test -z "$as_dir" && as_dir=. |
| 2135 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2136 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2137 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2138 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2139 | break 2 |
| 2140 | fi |
| 2141 | done |
| 2142 | done |
| 2143 | |
| 2144 | fi |
| 2145 | fi |
| 2146 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2147 | if test -n "$ac_ct_CC"; then |
| 2148 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2149 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2150 | else |
| 2151 | echo "$as_me:$LINENO: result: no" >&5 |
| 2152 | echo "${ECHO_T}no" >&6 |
| 2153 | fi |
| 2154 | |
| 2155 | test -n "$ac_ct_CC" && break |
| 2156 | done |
| 2157 | |
| 2158 | CC=$ac_ct_CC |
| 2159 | fi |
| 2160 | |
| 2161 | fi |
| 2162 | |
| 2163 | |
| 2164 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2165 | See \`config.log' for more details." >&5 |
| 2166 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2167 | See \`config.log' for more details." >&2;} |
| 2168 | { (exit 1); exit 1; }; } |
| 2169 | |
| 2170 | # Provide some information about the compiler. |
| 2171 | echo "$as_me:$LINENO:" \ |
| 2172 | "checking for C compiler version" >&5 |
| 2173 | ac_compiler=`set X $ac_compile; echo $2` |
| 2174 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2175 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2176 | ac_status=$? |
| 2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2178 | (exit $ac_status); } |
| 2179 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2180 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2181 | ac_status=$? |
| 2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2183 | (exit $ac_status); } |
| 2184 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2185 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2186 | ac_status=$? |
| 2187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2188 | (exit $ac_status); } |
| 2189 | |
| 2190 | cat >conftest.$ac_ext <<_ACEOF |
| 2191 | #line $LINENO "configure" |
| 2192 | /* confdefs.h. */ |
| 2193 | _ACEOF |
| 2194 | cat confdefs.h >>conftest.$ac_ext |
| 2195 | cat >>conftest.$ac_ext <<_ACEOF |
| 2196 | /* end confdefs.h. */ |
| 2197 | |
| 2198 | int |
| 2199 | main () |
| 2200 | { |
| 2201 | |
| 2202 | ; |
| 2203 | return 0; |
| 2204 | } |
| 2205 | _ACEOF |
| 2206 | ac_clean_files_save=$ac_clean_files |
| 2207 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2208 | # Try to create an executable without -o first, disregard a.out. |
| 2209 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2210 | # of exeext. |
| 2211 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2212 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2213 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2214 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2215 | (eval $ac_link_default) 2>&5 |
| 2216 | ac_status=$? |
| 2217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2218 | (exit $ac_status); }; then |
| 2219 | # Find the output, starting from the most likely. This scheme is |
| 2220 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2221 | # resort. |
| 2222 | |
| 2223 | # Be careful to initialize this variable, since it used to be cached. |
| 2224 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2225 | ac_cv_exeext= |
| 2226 | # b.out is created by i960 compilers. |
| 2227 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2228 | do |
| 2229 | test -f "$ac_file" || continue |
| 2230 | case $ac_file in |
| 2231 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2232 | ;; |
| 2233 | conftest.$ac_ext ) |
| 2234 | # This is the source file. |
| 2235 | ;; |
| 2236 | [ab].out ) |
| 2237 | # We found the default executable, but exeext='' is most |
| 2238 | # certainly right. |
| 2239 | break;; |
| 2240 | *.* ) |
| 2241 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2242 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2243 | # but it would be cool to find out if it's true. Does anybody |
| 2244 | # maintain Libtool? --akim. |
| 2245 | export ac_cv_exeext |
| 2246 | break;; |
| 2247 | * ) |
| 2248 | break;; |
| 2249 | esac |
| 2250 | done |
| 2251 | else |
| 2252 | echo "$as_me: failed program was:" >&5 |
| 2253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2254 | |
| 2255 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2256 | See \`config.log' for more details." >&5 |
| 2257 | echo "$as_me: error: C compiler cannot create executables |
| 2258 | See \`config.log' for more details." >&2;} |
| 2259 | { (exit 77); exit 77; }; } |
| 2260 | fi |
| 2261 | |
| 2262 | ac_exeext=$ac_cv_exeext |
| 2263 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2264 | echo "${ECHO_T}$ac_file" >&6 |
| 2265 | |
| 2266 | # Check the compiler produces executables we can run. If not, either |
| 2267 | # the compiler is broken, or we cross compile. |
| 2268 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2269 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2270 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2271 | # If not cross compiling, check that we can run a simple program. |
| 2272 | if test "$cross_compiling" != yes; then |
| 2273 | if { ac_try='./$ac_file' |
| 2274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2275 | (eval $ac_try) 2>&5 |
| 2276 | ac_status=$? |
| 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2278 | (exit $ac_status); }; }; then |
| 2279 | cross_compiling=no |
| 2280 | else |
| 2281 | if test "$cross_compiling" = maybe; then |
| 2282 | cross_compiling=yes |
| 2283 | else |
| 2284 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2285 | If you meant to cross compile, use \`--host'. |
| 2286 | See \`config.log' for more details." >&5 |
| 2287 | echo "$as_me: error: cannot run C compiled programs. |
| 2288 | If you meant to cross compile, use \`--host'. |
| 2289 | See \`config.log' for more details." >&2;} |
| 2290 | { (exit 1); exit 1; }; } |
| 2291 | fi |
| 2292 | fi |
| 2293 | fi |
| 2294 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2295 | echo "${ECHO_T}yes" >&6 |
| 2296 | |
| 2297 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2298 | ac_clean_files=$ac_clean_files_save |
| 2299 | # Check the compiler produces executables we can run. If not, either |
| 2300 | # the compiler is broken, or we cross compile. |
| 2301 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2302 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2303 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2304 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2305 | |
| 2306 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2307 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2309 | (eval $ac_link) 2>&5 |
| 2310 | ac_status=$? |
| 2311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2312 | (exit $ac_status); }; then |
| 2313 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2314 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2315 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2316 | # `rm'. |
| 2317 | for ac_file in conftest.exe conftest conftest.*; do |
| 2318 | test -f "$ac_file" || continue |
| 2319 | case $ac_file in |
| 2320 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2321 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2322 | export ac_cv_exeext |
| 2323 | break;; |
| 2324 | * ) break;; |
| 2325 | esac |
| 2326 | done |
| 2327 | else |
| 2328 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2329 | See \`config.log' for more details." >&5 |
| 2330 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2331 | See \`config.log' for more details." >&2;} |
| 2332 | { (exit 1); exit 1; }; } |
| 2333 | fi |
| 2334 | |
| 2335 | rm -f conftest$ac_cv_exeext |
| 2336 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2337 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2338 | |
| 2339 | rm -f conftest.$ac_ext |
| 2340 | EXEEXT=$ac_cv_exeext |
| 2341 | ac_exeext=$EXEEXT |
| 2342 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2343 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2344 | if test "${ac_cv_objext+set}" = set; then |
| 2345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2346 | else |
| 2347 | cat >conftest.$ac_ext <<_ACEOF |
| 2348 | #line $LINENO "configure" |
| 2349 | /* confdefs.h. */ |
| 2350 | _ACEOF |
| 2351 | cat confdefs.h >>conftest.$ac_ext |
| 2352 | cat >>conftest.$ac_ext <<_ACEOF |
| 2353 | /* end confdefs.h. */ |
| 2354 | |
| 2355 | int |
| 2356 | main () |
| 2357 | { |
| 2358 | |
| 2359 | ; |
| 2360 | return 0; |
| 2361 | } |
| 2362 | _ACEOF |
| 2363 | rm -f conftest.o conftest.obj |
| 2364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2365 | (eval $ac_compile) 2>&5 |
| 2366 | ac_status=$? |
| 2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2368 | (exit $ac_status); }; then |
| 2369 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2370 | case $ac_file in |
| 2371 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2372 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2373 | break;; |
| 2374 | esac |
| 2375 | done |
| 2376 | else |
| 2377 | echo "$as_me: failed program was:" >&5 |
| 2378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2379 | |
| 2380 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2381 | See \`config.log' for more details." >&5 |
| 2382 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2383 | See \`config.log' for more details." >&2;} |
| 2384 | { (exit 1); exit 1; }; } |
| 2385 | fi |
| 2386 | |
| 2387 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2388 | fi |
| 2389 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2390 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2391 | OBJEXT=$ac_cv_objext |
| 2392 | ac_objext=$OBJEXT |
| 2393 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2394 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2395 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2397 | else |
| 2398 | cat >conftest.$ac_ext <<_ACEOF |
| 2399 | #line $LINENO "configure" |
| 2400 | /* confdefs.h. */ |
| 2401 | _ACEOF |
| 2402 | cat confdefs.h >>conftest.$ac_ext |
| 2403 | cat >>conftest.$ac_ext <<_ACEOF |
| 2404 | /* end confdefs.h. */ |
| 2405 | |
| 2406 | int |
| 2407 | main () |
| 2408 | { |
| 2409 | #ifndef __GNUC__ |
| 2410 | choke me |
| 2411 | #endif |
| 2412 | |
| 2413 | ; |
| 2414 | return 0; |
| 2415 | } |
| 2416 | _ACEOF |
| 2417 | rm -f conftest.$ac_objext |
| 2418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2419 | (eval $ac_compile) 2>&5 |
| 2420 | ac_status=$? |
| 2421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2422 | (exit $ac_status); } && |
| 2423 | { ac_try='test -s conftest.$ac_objext' |
| 2424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2425 | (eval $ac_try) 2>&5 |
| 2426 | ac_status=$? |
| 2427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2428 | (exit $ac_status); }; }; then |
| 2429 | ac_compiler_gnu=yes |
| 2430 | else |
| 2431 | echo "$as_me: failed program was:" >&5 |
| 2432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2433 | |
| 2434 | ac_compiler_gnu=no |
| 2435 | fi |
| 2436 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2437 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2438 | |
| 2439 | fi |
| 2440 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2441 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2442 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2443 | ac_test_CFLAGS=${CFLAGS+set} |
| 2444 | ac_save_CFLAGS=$CFLAGS |
| 2445 | CFLAGS="-g" |
| 2446 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2447 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2448 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2450 | else |
| 2451 | cat >conftest.$ac_ext <<_ACEOF |
| 2452 | #line $LINENO "configure" |
| 2453 | /* confdefs.h. */ |
| 2454 | _ACEOF |
| 2455 | cat confdefs.h >>conftest.$ac_ext |
| 2456 | cat >>conftest.$ac_ext <<_ACEOF |
| 2457 | /* end confdefs.h. */ |
| 2458 | |
| 2459 | int |
| 2460 | main () |
| 2461 | { |
| 2462 | |
| 2463 | ; |
| 2464 | return 0; |
| 2465 | } |
| 2466 | _ACEOF |
| 2467 | rm -f conftest.$ac_objext |
| 2468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2469 | (eval $ac_compile) 2>&5 |
| 2470 | ac_status=$? |
| 2471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2472 | (exit $ac_status); } && |
| 2473 | { ac_try='test -s conftest.$ac_objext' |
| 2474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2475 | (eval $ac_try) 2>&5 |
| 2476 | ac_status=$? |
| 2477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2478 | (exit $ac_status); }; }; then |
| 2479 | ac_cv_prog_cc_g=yes |
| 2480 | else |
| 2481 | echo "$as_me: failed program was:" >&5 |
| 2482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2483 | |
| 2484 | ac_cv_prog_cc_g=no |
| 2485 | fi |
| 2486 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2487 | fi |
| 2488 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2489 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2490 | if test "$ac_test_CFLAGS" = set; then |
| 2491 | CFLAGS=$ac_save_CFLAGS |
| 2492 | elif test $ac_cv_prog_cc_g = yes; then |
| 2493 | if test "$GCC" = yes; then |
| 2494 | CFLAGS="-g -O2" |
| 2495 | else |
| 2496 | CFLAGS="-g" |
| 2497 | fi |
| 2498 | else |
| 2499 | if test "$GCC" = yes; then |
| 2500 | CFLAGS="-O2" |
| 2501 | else |
| 2502 | CFLAGS= |
| 2503 | fi |
| 2504 | fi |
| 2505 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2506 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2507 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2509 | else |
| 2510 | ac_cv_prog_cc_stdc=no |
| 2511 | ac_save_CC=$CC |
| 2512 | cat >conftest.$ac_ext <<_ACEOF |
| 2513 | #line $LINENO "configure" |
| 2514 | /* confdefs.h. */ |
| 2515 | _ACEOF |
| 2516 | cat confdefs.h >>conftest.$ac_ext |
| 2517 | cat >>conftest.$ac_ext <<_ACEOF |
| 2518 | /* end confdefs.h. */ |
| 2519 | #include <stdarg.h> |
| 2520 | #include <stdio.h> |
| 2521 | #include <sys/types.h> |
| 2522 | #include <sys/stat.h> |
| 2523 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2524 | struct buf { int x; }; |
| 2525 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2526 | static char *e (p, i) |
| 2527 | char **p; |
| 2528 | int i; |
| 2529 | { |
| 2530 | return p[i]; |
| 2531 | } |
| 2532 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2533 | { |
| 2534 | char *s; |
| 2535 | va_list v; |
| 2536 | va_start (v,p); |
| 2537 | s = g (p, va_arg (v,int)); |
| 2538 | va_end (v); |
| 2539 | return s; |
| 2540 | } |
| 2541 | int test (int i, double x); |
| 2542 | struct s1 {int (*f) (int a);}; |
| 2543 | struct s2 {int (*f) (double a);}; |
| 2544 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2545 | int argc; |
| 2546 | char **argv; |
| 2547 | int |
| 2548 | main () |
| 2549 | { |
| 2550 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2551 | ; |
| 2552 | return 0; |
| 2553 | } |
| 2554 | _ACEOF |
| 2555 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2556 | # breaks some systems' header files. |
| 2557 | # AIX -qlanglvl=ansi |
| 2558 | # Ultrix and OSF/1 -std1 |
| 2559 | # HP-UX 10.20 and later -Ae |
| 2560 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2561 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2562 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2563 | do |
| 2564 | CC="$ac_save_CC $ac_arg" |
| 2565 | rm -f conftest.$ac_objext |
| 2566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2567 | (eval $ac_compile) 2>&5 |
| 2568 | ac_status=$? |
| 2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2570 | (exit $ac_status); } && |
| 2571 | { ac_try='test -s conftest.$ac_objext' |
| 2572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2573 | (eval $ac_try) 2>&5 |
| 2574 | ac_status=$? |
| 2575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2576 | (exit $ac_status); }; }; then |
| 2577 | ac_cv_prog_cc_stdc=$ac_arg |
| 2578 | break |
| 2579 | else |
| 2580 | echo "$as_me: failed program was:" >&5 |
| 2581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2582 | |
| 2583 | fi |
| 2584 | rm -f conftest.$ac_objext |
| 2585 | done |
| 2586 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2587 | CC=$ac_save_CC |
| 2588 | |
| 2589 | fi |
| 2590 | |
| 2591 | case "x$ac_cv_prog_cc_stdc" in |
| 2592 | x|xno) |
| 2593 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2594 | echo "${ECHO_T}none needed" >&6 ;; |
| 2595 | *) |
| 2596 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2597 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2598 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2599 | esac |
| 2600 | |
| 2601 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2602 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2603 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2604 | # the declaration of exit, since it's the most demanding environment. |
| 2605 | cat >conftest.$ac_ext <<_ACEOF |
| 2606 | #ifndef __cplusplus |
| 2607 | choke me |
| 2608 | #endif |
| 2609 | _ACEOF |
| 2610 | rm -f conftest.$ac_objext |
| 2611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2612 | (eval $ac_compile) 2>&5 |
| 2613 | ac_status=$? |
| 2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2615 | (exit $ac_status); } && |
| 2616 | { ac_try='test -s conftest.$ac_objext' |
| 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 | for ac_declaration in \ |
| 2623 | ''\ |
| 2624 | '#include <stdlib.h>' \ |
| 2625 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2626 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2627 | 'extern "C" void exit (int) throw ();' \ |
| 2628 | 'extern "C" void exit (int);' \ |
| 2629 | 'void exit (int);' |
| 2630 | do |
| 2631 | cat >conftest.$ac_ext <<_ACEOF |
| 2632 | #line $LINENO "configure" |
| 2633 | /* confdefs.h. */ |
| 2634 | _ACEOF |
| 2635 | cat confdefs.h >>conftest.$ac_ext |
| 2636 | cat >>conftest.$ac_ext <<_ACEOF |
| 2637 | /* end confdefs.h. */ |
| 2638 | #include <stdlib.h> |
| 2639 | $ac_declaration |
| 2640 | int |
| 2641 | main () |
| 2642 | { |
| 2643 | exit (42); |
| 2644 | ; |
| 2645 | return 0; |
| 2646 | } |
| 2647 | _ACEOF |
| 2648 | rm -f conftest.$ac_objext |
| 2649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2650 | (eval $ac_compile) 2>&5 |
| 2651 | ac_status=$? |
| 2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2653 | (exit $ac_status); } && |
| 2654 | { ac_try='test -s conftest.$ac_objext' |
| 2655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2656 | (eval $ac_try) 2>&5 |
| 2657 | ac_status=$? |
| 2658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2659 | (exit $ac_status); }; }; then |
| 2660 | : |
| 2661 | else |
| 2662 | echo "$as_me: failed program was:" >&5 |
| 2663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2664 | |
| 2665 | continue |
| 2666 | fi |
| 2667 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2668 | cat >conftest.$ac_ext <<_ACEOF |
| 2669 | #line $LINENO "configure" |
| 2670 | /* confdefs.h. */ |
| 2671 | _ACEOF |
| 2672 | cat confdefs.h >>conftest.$ac_ext |
| 2673 | cat >>conftest.$ac_ext <<_ACEOF |
| 2674 | /* end confdefs.h. */ |
| 2675 | $ac_declaration |
| 2676 | int |
| 2677 | main () |
| 2678 | { |
| 2679 | exit (42); |
| 2680 | ; |
| 2681 | return 0; |
| 2682 | } |
| 2683 | _ACEOF |
| 2684 | rm -f conftest.$ac_objext |
| 2685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2686 | (eval $ac_compile) 2>&5 |
| 2687 | ac_status=$? |
| 2688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2689 | (exit $ac_status); } && |
| 2690 | { ac_try='test -s conftest.$ac_objext' |
| 2691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2692 | (eval $ac_try) 2>&5 |
| 2693 | ac_status=$? |
| 2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2695 | (exit $ac_status); }; }; then |
| 2696 | break |
| 2697 | else |
| 2698 | echo "$as_me: failed program was:" >&5 |
| 2699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2700 | |
| 2701 | fi |
| 2702 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2703 | done |
| 2704 | rm -f conftest* |
| 2705 | if test -n "$ac_declaration"; then |
| 2706 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2707 | echo $ac_declaration >>confdefs.h |
| 2708 | echo '#endif' >>confdefs.h |
| 2709 | fi |
| 2710 | |
| 2711 | else |
| 2712 | echo "$as_me: failed program was:" >&5 |
| 2713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2714 | |
| 2715 | fi |
| 2716 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2717 | ac_ext=c |
| 2718 | ac_cpp='$CPP $CPPFLAGS' |
| 2719 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2720 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2721 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2722 | rm -f .deps 2>/dev/null |
| 2723 | mkdir .deps 2>/dev/null |
| 2724 | if test -d .deps; then |
| 2725 | DEPDIR=.deps |
| 2726 | else |
| 2727 | # MS-DOS does not allow filenames that begin with a dot. |
| 2728 | DEPDIR=_deps |
| 2729 | fi |
| 2730 | rmdir .deps 2>/dev/null |
| 2731 | |
| 2732 | |
| 2733 | ac_config_commands="$ac_config_commands depfiles" |
| 2734 | |
| 2735 | |
| 2736 | am_make=${MAKE-make} |
| 2737 | cat > confinc << 'END' |
| 2738 | doit: |
| 2739 | @echo done |
| 2740 | END |
| 2741 | # If we don't find an include directive, just comment out the code. |
| 2742 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2743 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 2744 | am__include="#" |
| 2745 | am__quote= |
| 2746 | _am_result=none |
| 2747 | # First try GNU make style include. |
| 2748 | echo "include confinc" > confmf |
| 2749 | # We grep out `Entering directory' and `Leaving directory' |
| 2750 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2751 | # In particular we don't look at `^make:' because GNU make might |
| 2752 | # be invoked under some other name (usually "gmake"), in which |
| 2753 | # case it prints its new name instead of `make'. |
| 2754 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 2755 | am__include=include |
| 2756 | am__quote= |
| 2757 | _am_result=GNU |
| 2758 | fi |
| 2759 | # Now try BSD make style include. |
| 2760 | if test "$am__include" = "#"; then |
| 2761 | echo '.include "confinc"' > confmf |
| 2762 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2763 | am__include=.include |
| 2764 | am__quote="\"" |
| 2765 | _am_result=BSD |
| 2766 | fi |
| 2767 | fi |
| 2768 | |
| 2769 | |
| 2770 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2771 | echo "${ECHO_T}$_am_result" >&6 |
| 2772 | rm -f confinc confmf |
| 2773 | |
| 2774 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2775 | if test "${enable_dependency_tracking+set}" = set; then |
| 2776 | enableval="$enable_dependency_tracking" |
| 2777 | |
| 2778 | fi; |
| 2779 | if test "x$enable_dependency_tracking" != xno; then |
| 2780 | am_depcomp="$ac_aux_dir/depcomp" |
| 2781 | AMDEPBACKSLASH='\' |
| 2782 | fi |
| 2783 | |
| 2784 | |
| 2785 | if test "x$enable_dependency_tracking" != xno; then |
| 2786 | AMDEP_TRUE= |
| 2787 | AMDEP_FALSE='#' |
| 2788 | else |
| 2789 | AMDEP_TRUE='#' |
| 2790 | AMDEP_FALSE= |
| 2791 | fi |
| 2792 | |
| 2793 | |
| 2794 | |
| 2795 | |
| 2796 | depcc="$CC" am_compiler_list= |
| 2797 | |
| 2798 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2799 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2800 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2802 | else |
| 2803 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2804 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2805 | # making bogus files that we don't know about and never remove. For |
| 2806 | # instance it was reported that on HP-UX the gcc test will end up |
| 2807 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2808 | # in D'. |
| 2809 | mkdir conftest.dir |
| 2810 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2811 | # using a relative directory. |
| 2812 | cp "$am_depcomp" conftest.dir |
| 2813 | cd conftest.dir |
| 2814 | |
| 2815 | am_cv_CC_dependencies_compiler_type=none |
| 2816 | if test "$am_compiler_list" = ""; then |
| 2817 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2818 | fi |
| 2819 | for depmode in $am_compiler_list; do |
| 2820 | # We need to recreate these files for each test, as the compiler may |
| 2821 | # overwrite some of them when testing with obscure command lines. |
| 2822 | # This happens at least with the AIX C compiler. |
| 2823 | echo '#include "conftest.h"' > conftest.c |
| 2824 | echo 'int i;' > conftest.h |
| 2825 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 2826 | |
| 2827 | case $depmode in |
| 2828 | nosideeffect) |
| 2829 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2830 | # only be used when explicitly requested |
| 2831 | if test "x$enable_dependency_tracking" = xyes; then |
| 2832 | continue |
| 2833 | else |
| 2834 | break |
| 2835 | fi |
| 2836 | ;; |
| 2837 | none) break ;; |
| 2838 | esac |
| 2839 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2840 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2841 | # handle `-M -o', and we need to detect this. |
| 2842 | if depmode=$depmode \ |
| 2843 | source=conftest.c object=conftest.o \ |
| 2844 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 2845 | $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 && |
| 2846 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 2847 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2848 | am_cv_CC_dependencies_compiler_type=$depmode |
| 2849 | break |
| 2850 | fi |
| 2851 | done |
| 2852 | |
| 2853 | cd .. |
| 2854 | rm -rf conftest.dir |
| 2855 | else |
| 2856 | am_cv_CC_dependencies_compiler_type=none |
| 2857 | fi |
| 2858 | |
| 2859 | fi |
| 2860 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2861 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 2862 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 2863 | |
| 2864 | |
| 2865 | |
| 2866 | if |
| 2867 | test "x$enable_dependency_tracking" != xno \ |
| 2868 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 2869 | am__fastdepCC_TRUE= |
| 2870 | am__fastdepCC_FALSE='#' |
| 2871 | else |
| 2872 | am__fastdepCC_TRUE='#' |
| 2873 | am__fastdepCC_FALSE= |
| 2874 | fi |
| 2875 | |
| 2876 | |
| 2877 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2878 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 2879 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 2880 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 2881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2882 | else |
| 2883 | cat >conftest.make <<\_ACEOF |
| 2884 | all: |
| 2885 | @echo 'ac_maketemp="$(MAKE)"' |
| 2886 | _ACEOF |
| 2887 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2888 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 2889 | if test -n "$ac_maketemp"; then |
| 2890 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 2891 | else |
| 2892 | eval ac_cv_prog_make_${ac_make}_set=no |
| 2893 | fi |
| 2894 | rm -f conftest.make |
| 2895 | fi |
| 2896 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 2897 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2898 | echo "${ECHO_T}yes" >&6 |
| 2899 | SET_MAKE= |
| 2900 | else |
| 2901 | echo "$as_me:$LINENO: result: no" >&5 |
| 2902 | echo "${ECHO_T}no" >&6 |
| 2903 | SET_MAKE="MAKE=${MAKE-make}" |
| 2904 | fi |
| 2905 | |
| 2906 | # Check whether --enable-shared or --disable-shared was given. |
| 2907 | if test "${enable_shared+set}" = set; then |
| 2908 | enableval="$enable_shared" |
| 2909 | p=${PACKAGE-default} |
| 2910 | case $enableval in |
| 2911 | yes) enable_shared=yes ;; |
| 2912 | no) enable_shared=no ;; |
| 2913 | *) |
| 2914 | enable_shared=no |
| 2915 | # Look at the argument we got. We use all the common list separators. |
| 2916 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 2917 | for pkg in $enableval; do |
| 2918 | if test "X$pkg" = "X$p"; then |
| 2919 | enable_shared=yes |
| 2920 | fi |
| 2921 | done |
| 2922 | IFS="$ac_save_ifs" |
| 2923 | ;; |
| 2924 | esac |
| 2925 | else |
| 2926 | enable_shared=yes |
| 2927 | fi; |
| 2928 | # Check whether --enable-static or --disable-static was given. |
| 2929 | if test "${enable_static+set}" = set; then |
| 2930 | enableval="$enable_static" |
| 2931 | p=${PACKAGE-default} |
| 2932 | case $enableval in |
| 2933 | yes) enable_static=yes ;; |
| 2934 | no) enable_static=no ;; |
| 2935 | *) |
| 2936 | enable_static=no |
| 2937 | # Look at the argument we got. We use all the common list separators. |
| 2938 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 2939 | for pkg in $enableval; do |
| 2940 | if test "X$pkg" = "X$p"; then |
| 2941 | enable_static=yes |
| 2942 | fi |
| 2943 | done |
| 2944 | IFS="$ac_save_ifs" |
| 2945 | ;; |
| 2946 | esac |
| 2947 | else |
| 2948 | enable_static=yes |
| 2949 | fi; |
| 2950 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 2951 | if test "${enable_fast_install+set}" = set; then |
| 2952 | enableval="$enable_fast_install" |
| 2953 | p=${PACKAGE-default} |
| 2954 | case $enableval in |
| 2955 | yes) enable_fast_install=yes ;; |
| 2956 | no) enable_fast_install=no ;; |
| 2957 | *) |
| 2958 | enable_fast_install=no |
| 2959 | # Look at the argument we got. We use all the common list separators. |
| 2960 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 2961 | for pkg in $enableval; do |
| 2962 | if test "X$pkg" = "X$p"; then |
| 2963 | enable_fast_install=yes |
| 2964 | fi |
| 2965 | done |
| 2966 | IFS="$ac_save_ifs" |
| 2967 | ;; |
| 2968 | esac |
| 2969 | else |
| 2970 | enable_fast_install=yes |
| 2971 | fi; |
| 2972 | # Make sure we can run config.sub. |
| 2973 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 2974 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 2975 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 2976 | { (exit 1); exit 1; }; } |
| 2977 | |
| 2978 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 2979 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 2980 | if test "${ac_cv_build+set}" = set; then |
| 2981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2982 | else |
| 2983 | ac_cv_build_alias=$build_alias |
| 2984 | test -z "$ac_cv_build_alias" && |
| 2985 | ac_cv_build_alias=`$ac_config_guess` |
| 2986 | test -z "$ac_cv_build_alias" && |
| 2987 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2988 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2989 | { (exit 1); exit 1; }; } |
| 2990 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 2991 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 2992 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 2993 | { (exit 1); exit 1; }; } |
| 2994 | |
| 2995 | fi |
| 2996 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2997 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 2998 | build=$ac_cv_build |
| 2999 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3000 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3001 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3002 | |
| 3003 | |
| 3004 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 3005 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 3006 | if test "${ac_cv_host+set}" = set; then |
| 3007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3008 | else |
| 3009 | ac_cv_host_alias=$host_alias |
| 3010 | test -z "$ac_cv_host_alias" && |
| 3011 | ac_cv_host_alias=$ac_cv_build_alias |
| 3012 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 3013 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 3014 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 3015 | { (exit 1); exit 1; }; } |
| 3016 | |
| 3017 | fi |
| 3018 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3019 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 3020 | host=$ac_cv_host |
| 3021 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3022 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3023 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3024 | |
| 3025 | |
| 3026 | # Find the correct PATH separator. Usually this is `:', but |
| 3027 | # DJGPP uses `;' like DOS. |
| 3028 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 3029 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 3030 | case X$UNAME in |
| 3031 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 3032 | *) lt_cv_sys_path_separator=':' ;; |
| 3033 | esac |
| 3034 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
| 3035 | fi |
| 3036 | |
| 3037 | |
| 3038 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3039 | if test "${with_gnu_ld+set}" = set; then |
| 3040 | withval="$with_gnu_ld" |
| 3041 | test "$withval" = no || with_gnu_ld=yes |
| 3042 | else |
| 3043 | with_gnu_ld=no |
| 3044 | fi; |
| 3045 | ac_prog=ld |
| 3046 | if test "$GCC" = yes; then |
| 3047 | # Check if gcc -print-prog-name=ld gives a path. |
| 3048 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 3049 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 3050 | case $host in |
| 3051 | *-*-mingw*) |
| 3052 | # gcc leaves a trailing carriage return which upsets mingw |
| 3053 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3054 | *) |
| 3055 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3056 | esac |
| 3057 | case $ac_prog in |
| 3058 | # Accept absolute paths. |
| 3059 | [\\/]* | [A-Za-z]:[\\/]*) |
| 3060 | re_direlt='/[^/][^/]*/\.\./' |
| 3061 | # Canonicalize the path of ld |
| 3062 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 3063 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3064 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 3065 | done |
| 3066 | test -z "$LD" && LD="$ac_prog" |
| 3067 | ;; |
| 3068 | "") |
| 3069 | # If it fails, then pretend we aren't using GCC. |
| 3070 | ac_prog=ld |
| 3071 | ;; |
| 3072 | *) |
| 3073 | # If it is relative, then search for the first ld in PATH. |
| 3074 | with_gnu_ld=unknown |
| 3075 | ;; |
| 3076 | esac |
| 3077 | elif test "$with_gnu_ld" = yes; then |
| 3078 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3079 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3080 | else |
| 3081 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3082 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3083 | fi |
| 3084 | if test "${lt_cv_path_LD+set}" = set; then |
| 3085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3086 | else |
| 3087 | if test -z "$LD"; then |
| 3088 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3089 | for ac_dir in $PATH; do |
| 3090 | test -z "$ac_dir" && ac_dir=. |
| 3091 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3092 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3093 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3094 | # but apparently some GNU ld's only accept -v. |
| 3095 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 3096 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 3097 | test "$with_gnu_ld" != no && break |
| 3098 | else |
| 3099 | test "$with_gnu_ld" != yes && break |
| 3100 | fi |
| 3101 | fi |
| 3102 | done |
| 3103 | IFS="$ac_save_ifs" |
| 3104 | else |
| 3105 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3106 | fi |
| 3107 | fi |
| 3108 | |
| 3109 | LD="$lt_cv_path_LD" |
| 3110 | if test -n "$LD"; then |
| 3111 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3112 | echo "${ECHO_T}$LD" >&6 |
| 3113 | else |
| 3114 | echo "$as_me:$LINENO: result: no" >&5 |
| 3115 | echo "${ECHO_T}no" >&6 |
| 3116 | fi |
| 3117 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3118 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3119 | { (exit 1); exit 1; }; } |
| 3120 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3121 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 3122 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 3123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3124 | else |
| 3125 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 3126 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 3127 | lt_cv_prog_gnu_ld=yes |
| 3128 | else |
| 3129 | lt_cv_prog_gnu_ld=no |
| 3130 | fi |
| 3131 | fi |
| 3132 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3133 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3134 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 3135 | |
| 3136 | |
| 3137 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3138 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3139 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3141 | else |
| 3142 | lt_cv_ld_reload_flag='-r' |
| 3143 | fi |
| 3144 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3145 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3146 | reload_flag=$lt_cv_ld_reload_flag |
| 3147 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
| 3148 | |
| 3149 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3150 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 3151 | if test "${lt_cv_path_NM+set}" = set; then |
| 3152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3153 | else |
| 3154 | if test -n "$NM"; then |
| 3155 | # Let the user override the test. |
| 3156 | lt_cv_path_NM="$NM" |
| 3157 | else |
| 3158 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3159 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 3160 | test -z "$ac_dir" && ac_dir=. |
| 3161 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 3162 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
| 3163 | # Check to see if the nm accepts a BSD-compat flag. |
| 3164 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3165 | # nm: unknown option "B" ignored |
| 3166 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3167 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 3168 | lt_cv_path_NM="$tmp_nm -B" |
| 3169 | break |
| 3170 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 3171 | lt_cv_path_NM="$tmp_nm -p" |
| 3172 | break |
| 3173 | else |
| 3174 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3175 | continue # so that we can try to find one that supports BSD flags |
| 3176 | fi |
| 3177 | fi |
| 3178 | done |
| 3179 | IFS="$ac_save_ifs" |
| 3180 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 3181 | fi |
| 3182 | fi |
| 3183 | |
| 3184 | NM="$lt_cv_path_NM" |
| 3185 | echo "$as_me:$LINENO: result: $NM" >&5 |
| 3186 | echo "${ECHO_T}$NM" >&6 |
| 3187 | |
| 3188 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3189 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3190 | if test "${lt_cv_path_SED+set}" = set; then |
| 3191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3192 | else |
| 3193 | # Loop through the user's path and test for sed and gsed. |
| 3194 | # Then use that list of sed's as ones to test for truncation. |
| 3195 | as_executable_p="test -f" |
| 3196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3197 | for as_dir in $PATH |
| 3198 | do |
| 3199 | IFS=$as_save_IFS |
| 3200 | test -z "$as_dir" && as_dir=. |
| 3201 | for ac_prog in sed gsed; do |
| 3202 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3203 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3204 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
| 3205 | fi |
| 3206 | done |
| 3207 | done |
| 3208 | done |
| 3209 | |
| 3210 | # Create a temporary directory, and hook for its removal unless debugging. |
| 3211 | $debug || |
| 3212 | { |
| 3213 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 3214 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 3215 | } |
| 3216 | |
| 3217 | # Create a (secure) tmp directory for tmp files. |
| 3218 | : ${TMPDIR=/tmp} |
| 3219 | { |
| 3220 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
| 3221 | test -n "$tmp" && test -d "$tmp" |
| 3222 | } || |
| 3223 | { |
| 3224 | tmp=$TMPDIR/sed$$-$RANDOM |
| 3225 | (umask 077 && mkdir $tmp) |
| 3226 | } || |
| 3227 | { |
| 3228 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 3229 | { (exit 1); exit 1; } |
| 3230 | } |
| 3231 | _max=0 |
| 3232 | _count=0 |
| 3233 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3234 | # along with /bin/sed that truncates output. |
| 3235 | for _sed in $_sed_list /usr/xpg4/bin/sed; do |
| 3236 | test ! -f ${_sed} && break |
| 3237 | cat /dev/null > "$tmp/sed.in" |
| 3238 | _count=0 |
| 3239 | echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
| 3240 | # Check for GNU sed and select it if it is found. |
| 3241 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
| 3242 | lt_cv_path_SED=${_sed} |
| 3243 | break |
| 3244 | fi |
| 3245 | while true; do |
| 3246 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
| 3247 | mv "$tmp/sed.tmp" "$tmp/sed.in" |
| 3248 | cp "$tmp/sed.in" "$tmp/sed.nl" |
| 3249 | echo >>"$tmp/sed.nl" |
| 3250 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
| 3251 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
| 3252 | # 40000 chars as input seems more than enough |
| 3253 | test $_count -gt 10 && break |
| 3254 | _count=`expr $_count + 1` |
| 3255 | if test $_count -gt $_max; then |
| 3256 | _max=$_count |
| 3257 | lt_cv_path_SED=$_sed |
| 3258 | fi |
| 3259 | done |
| 3260 | done |
| 3261 | rm -rf "$tmp" |
| 3262 | |
| 3263 | fi |
| 3264 | |
| 3265 | if test "X$SED" != "X"; then |
| 3266 | lt_cv_path_SED=$SED |
| 3267 | else |
| 3268 | SED=$lt_cv_path_SED |
| 3269 | fi |
| 3270 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3271 | echo "${ECHO_T}$SED" >&6 |
| 3272 | |
| 3273 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3274 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3275 | LN_S=$as_ln_s |
| 3276 | if test "$LN_S" = "ln -s"; then |
| 3277 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3278 | echo "${ECHO_T}yes" >&6 |
| 3279 | else |
| 3280 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3281 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3282 | fi |
| 3283 | |
| 3284 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3285 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 3286 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3288 | else |
| 3289 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3290 | lt_cv_file_magic_test_file= |
| 3291 | lt_cv_deplibs_check_method='unknown' |
| 3292 | # Need to set the preceding variable on all platforms that support |
| 3293 | # interlibrary dependencies. |
| 3294 | # 'none' -- dependencies not supported. |
| 3295 | # `unknown' -- same as none, but documents that we really don't know. |
| 3296 | # 'pass_all' -- all dependencies passed with no checks. |
| 3297 | # 'test_compile' -- check by making test program. |
| 3298 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 3299 | # which responds to the $file_magic_cmd with a given egrep regex. |
| 3300 | # If you have `file' or equivalent on your system and you're not sure |
| 3301 | # whether `pass_all' will *always* work, you probably want this one. |
| 3302 | |
| 3303 | case $host_os in |
| 3304 | aix4* | aix5*) |
| 3305 | lt_cv_deplibs_check_method=pass_all |
| 3306 | ;; |
| 3307 | |
| 3308 | beos*) |
| 3309 | lt_cv_deplibs_check_method=pass_all |
| 3310 | ;; |
| 3311 | |
| 3312 | bsdi4*) |
| 3313 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3314 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3315 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3316 | ;; |
| 3317 | |
| 3318 | cygwin* | mingw* | pw32*) |
| 3319 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3320 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3321 | ;; |
| 3322 | |
| 3323 | darwin* | rhapsody*) |
| 3324 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 3325 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3326 | case "$host_os" in |
| 3327 | rhapsody* | darwin1.[012]) |
| 3328 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
| 3329 | ;; |
| 3330 | *) # Darwin 1.3 on |
| 3331 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 3332 | ;; |
| 3333 | esac |
| 3334 | ;; |
| 3335 | |
| 3336 | freebsd*) |
| 3337 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3338 | case $host_cpu in |
| 3339 | i*86 ) |
| 3340 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3341 | # Let's accept both of them until this is cleared up. |
| 3342 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 3343 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3344 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3345 | ;; |
| 3346 | esac |
| 3347 | else |
| 3348 | lt_cv_deplibs_check_method=pass_all |
| 3349 | fi |
| 3350 | ;; |
| 3351 | |
| 3352 | gnu*) |
| 3353 | lt_cv_deplibs_check_method=pass_all |
| 3354 | ;; |
| 3355 | |
| 3356 | hpux10.20*|hpux11*) |
| 3357 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3358 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3359 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3360 | ;; |
| 3361 | |
| 3362 | irix5* | irix6* | nonstopux*) |
| 3363 | case $host_os in |
| 3364 | irix5* | nonstopux*) |
| 3365 | # this will be overridden with pass_all, but let us keep it just in case |
| 3366 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 3367 | ;; |
| 3368 | *) |
| 3369 | case $LD in |
| 3370 | *-32|*"-32 ") libmagic=32-bit;; |
| 3371 | *-n32|*"-n32 ") libmagic=N32;; |
| 3372 | *-64|*"-64 ") libmagic=64-bit;; |
| 3373 | *) libmagic=never-match;; |
| 3374 | esac |
| 3375 | # this will be overridden with pass_all, but let us keep it just in case |
| 3376 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 3377 | ;; |
| 3378 | esac |
| 3379 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 3380 | lt_cv_deplibs_check_method=pass_all |
| 3381 | ;; |
| 3382 | |
| 3383 | # This must be Linux ELF. |
| 3384 | linux-gnu*) |
| 3385 | case $host_cpu in |
| 3386 | alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*) |
| 3387 | lt_cv_deplibs_check_method=pass_all ;; |
| 3388 | *) |
| 3389 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 3390 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 3391 | esac |
| 3392 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 3393 | ;; |
| 3394 | |
| 3395 | netbsd*) |
| 3396 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3397 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 3398 | else |
| 3399 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 3400 | fi |
| 3401 | ;; |
| 3402 | |
| 3403 | newos6*) |
| 3404 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3405 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3406 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3407 | ;; |
| 3408 | |
| 3409 | openbsd*) |
| 3410 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3411 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3412 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3413 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 3414 | else |
| 3415 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3416 | fi |
| 3417 | ;; |
| 3418 | |
| 3419 | osf3* | osf4* | osf5*) |
| 3420 | # this will be overridden with pass_all, but let us keep it just in case |
| 3421 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 3422 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3423 | lt_cv_deplibs_check_method=pass_all |
| 3424 | ;; |
| 3425 | |
| 3426 | sco3.2v5*) |
| 3427 | lt_cv_deplibs_check_method=pass_all |
| 3428 | ;; |
| 3429 | |
| 3430 | solaris*) |
| 3431 | lt_cv_deplibs_check_method=pass_all |
| 3432 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3433 | ;; |
| 3434 | |
| 3435 | sysv5uw[78]* | sysv4*uw2*) |
| 3436 | lt_cv_deplibs_check_method=pass_all |
| 3437 | ;; |
| 3438 | |
| 3439 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3440 | case $host_vendor in |
| 3441 | motorola) |
| 3442 | 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]' |
| 3443 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3444 | ;; |
| 3445 | ncr) |
| 3446 | lt_cv_deplibs_check_method=pass_all |
| 3447 | ;; |
| 3448 | sequent) |
| 3449 | lt_cv_file_magic_cmd='/bin/file' |
| 3450 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3451 | ;; |
| 3452 | sni) |
| 3453 | lt_cv_file_magic_cmd='/bin/file' |
| 3454 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3455 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3456 | ;; |
| 3457 | siemens) |
| 3458 | lt_cv_deplibs_check_method=pass_all |
| 3459 | ;; |
| 3460 | esac |
| 3461 | ;; |
| 3462 | esac |
| 3463 | |
| 3464 | fi |
| 3465 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3466 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3467 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3468 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 3469 | |
| 3470 | |
| 3471 | |
| 3472 | |
| 3473 | |
| 3474 | |
| 3475 | |
| 3476 | |
| 3477 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 3478 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
| 3479 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
| 3480 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 3481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3482 | else |
| 3483 | |
| 3484 | # These are sane defaults that work on at least a few old systems. |
| 3485 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 3486 | |
| 3487 | # Character class describing NM global symbol codes. |
| 3488 | symcode='[BCDEGRST]' |
| 3489 | |
| 3490 | # Regexp to match symbols that can be accessed directly from C. |
| 3491 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 3492 | |
| 3493 | # Transform the above into a raw symbol and a C symbol. |
| 3494 | symxfrm='\1 \2\3 \3' |
| 3495 | |
| 3496 | # Transform an extracted symbol line into a proper C declaration |
| 3497 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
| 3498 | |
| 3499 | # Transform an extracted symbol line into symbol name and symbol address |
| 3500 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 3501 | |
| 3502 | # Define system-specific variables. |
| 3503 | case $host_os in |
| 3504 | aix*) |
| 3505 | symcode='[BCDT]' |
| 3506 | ;; |
| 3507 | cygwin* | mingw* | pw32*) |
| 3508 | symcode='[ABCDGISTW]' |
| 3509 | ;; |
| 3510 | hpux*) # Its linker distinguishes data from code symbols |
| 3511 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 3512 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 3513 | ;; |
| 3514 | irix* | nonstopux*) |
| 3515 | symcode='[BCDEGRST]' |
| 3516 | ;; |
| 3517 | osf*) |
| 3518 | symcode='[BCDEGQRST]' |
| 3519 | ;; |
| 3520 | solaris* | sysv5*) |
| 3521 | symcode='[BDT]' |
| 3522 | ;; |
| 3523 | sysv4) |
| 3524 | symcode='[DFNSTU]' |
| 3525 | ;; |
| 3526 | esac |
| 3527 | |
| 3528 | # Handle CRLF in mingw tool chain |
| 3529 | opt_cr= |
| 3530 | case $host_os in |
| 3531 | mingw*) |
| 3532 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 3533 | ;; |
| 3534 | esac |
| 3535 | |
| 3536 | # If we're using GNU nm, then use its standard symbol codes. |
| 3537 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 3538 | symcode='[ABCDGISTW]' |
| 3539 | fi |
| 3540 | |
| 3541 | # Try without a prefix undercore, then with it. |
| 3542 | for ac_symprfx in "" "_"; do |
| 3543 | |
| 3544 | # Write the raw and C identifiers. |
| 3545 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 3546 | |
| 3547 | # Check to see that the pipe works correctly. |
| 3548 | pipe_works=no |
| 3549 | rm -f conftest* |
| 3550 | cat > conftest.$ac_ext <<EOF |
| 3551 | #ifdef __cplusplus |
| 3552 | extern "C" { |
| 3553 | #endif |
| 3554 | char nm_test_var; |
| 3555 | void nm_test_func(){} |
| 3556 | #ifdef __cplusplus |
| 3557 | } |
| 3558 | #endif |
| 3559 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 3560 | EOF |
| 3561 | |
| 3562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3563 | (eval $ac_compile) 2>&5 |
| 3564 | ac_status=$? |
| 3565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3566 | (exit $ac_status); }; then |
| 3567 | # Now try to grab the symbols. |
| 3568 | nlist=conftest.nm |
| 3569 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 3570 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 3571 | ac_status=$? |
| 3572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3573 | (exit $ac_status); } && test -s "$nlist"; then |
| 3574 | # Try sorting and uniquifying the output. |
| 3575 | if sort "$nlist" | uniq > "$nlist"T; then |
| 3576 | mv -f "$nlist"T "$nlist" |
| 3577 | else |
| 3578 | rm -f "$nlist"T |
| 3579 | fi |
| 3580 | |
| 3581 | # Make sure that we snagged all the symbols we need. |
| 3582 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 3583 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 3584 | cat <<EOF > conftest.$ac_ext |
| 3585 | #ifdef __cplusplus |
| 3586 | extern "C" { |
| 3587 | #endif |
| 3588 | |
| 3589 | EOF |
| 3590 | # Now generate the symbol file. |
| 3591 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
| 3592 | |
| 3593 | cat <<EOF >> conftest.$ac_ext |
| 3594 | #if defined (__STDC__) && __STDC__ |
| 3595 | # define lt_ptr void * |
| 3596 | #else |
| 3597 | # define lt_ptr char * |
| 3598 | # define const |
| 3599 | #endif |
| 3600 | |
| 3601 | /* The mapping between symbol names and symbols. */ |
| 3602 | const struct { |
| 3603 | const char *name; |
| 3604 | lt_ptr address; |
| 3605 | } |
| 3606 | lt_preloaded_symbols[] = |
| 3607 | { |
| 3608 | EOF |
| 3609 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
| 3610 | cat <<\EOF >> conftest.$ac_ext |
| 3611 | {0, (lt_ptr) 0} |
| 3612 | }; |
| 3613 | |
| 3614 | #ifdef __cplusplus |
| 3615 | } |
| 3616 | #endif |
| 3617 | EOF |
| 3618 | # Now try linking the two files. |
| 3619 | mv conftest.$ac_objext conftstm.$ac_objext |
| 3620 | save_LIBS="$LIBS" |
| 3621 | save_CFLAGS="$CFLAGS" |
| 3622 | LIBS="conftstm.$ac_objext" |
| 3623 | CFLAGS="$CFLAGS$no_builtin_flag" |
| 3624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3625 | (eval $ac_link) 2>&5 |
| 3626 | ac_status=$? |
| 3627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3628 | (exit $ac_status); } && test -s conftest$ac_exeext; then |
| 3629 | pipe_works=yes |
| 3630 | fi |
| 3631 | LIBS="$save_LIBS" |
| 3632 | CFLAGS="$save_CFLAGS" |
| 3633 | else |
| 3634 | echo "cannot find nm_test_func in $nlist" >&5 |
| 3635 | fi |
| 3636 | else |
| 3637 | echo "cannot find nm_test_var in $nlist" >&5 |
| 3638 | fi |
| 3639 | else |
| 3640 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 3641 | fi |
| 3642 | else |
| 3643 | echo "$progname: failed program was:" >&5 |
| 3644 | cat conftest.$ac_ext >&5 |
| 3645 | fi |
| 3646 | rm -f conftest* conftst* |
| 3647 | |
| 3648 | # Do not use the global_symbol_pipe unless it works. |
| 3649 | if test "$pipe_works" = yes; then |
| 3650 | break |
| 3651 | else |
| 3652 | lt_cv_sys_global_symbol_pipe= |
| 3653 | fi |
| 3654 | done |
| 3655 | |
| 3656 | fi |
| 3657 | |
| 3658 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
| 3659 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 3660 | global_symbol_to_cdecl= |
| 3661 | global_symbol_to_c_name_address= |
| 3662 | else |
| 3663 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
| 3664 | global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
| 3665 | fi |
| 3666 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
| 3667 | then |
| 3668 | echo "$as_me:$LINENO: result: failed" >&5 |
| 3669 | echo "${ECHO_T}failed" >&6 |
| 3670 | else |
| 3671 | echo "$as_me:$LINENO: result: ok" >&5 |
| 3672 | echo "${ECHO_T}ok" >&6 |
| 3673 | fi |
| 3674 | |
| 3675 | ac_ext=c |
| 3676 | ac_cpp='$CPP $CPPFLAGS' |
| 3677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3680 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3681 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3682 | # On Suns, sometimes $CPP names a directory. |
| 3683 | if test -n "$CPP" && test -d "$CPP"; then |
| 3684 | CPP= |
| 3685 | fi |
| 3686 | if test -z "$CPP"; then |
| 3687 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3689 | else |
| 3690 | # Double quotes because CPP needs to be expanded |
| 3691 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3692 | do |
| 3693 | ac_preproc_ok=false |
| 3694 | for ac_c_preproc_warn_flag in '' yes |
| 3695 | do |
| 3696 | # Use a header file that comes with gcc, so configuring glibc |
| 3697 | # with a fresh cross-compiler works. |
| 3698 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3699 | # <limits.h> exists even on freestanding compilers. |
| 3700 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3701 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3702 | cat >conftest.$ac_ext <<_ACEOF |
| 3703 | #line $LINENO "configure" |
| 3704 | /* confdefs.h. */ |
| 3705 | _ACEOF |
| 3706 | cat confdefs.h >>conftest.$ac_ext |
| 3707 | cat >>conftest.$ac_ext <<_ACEOF |
| 3708 | /* end confdefs.h. */ |
| 3709 | #ifdef __STDC__ |
| 3710 | # include <limits.h> |
| 3711 | #else |
| 3712 | # include <assert.h> |
| 3713 | #endif |
| 3714 | Syntax error |
| 3715 | _ACEOF |
| 3716 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3717 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3718 | ac_status=$? |
| 3719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3720 | rm -f conftest.er1 |
| 3721 | cat conftest.err >&5 |
| 3722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3723 | (exit $ac_status); } >/dev/null; then |
| 3724 | if test -s conftest.err; then |
| 3725 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3726 | else |
| 3727 | ac_cpp_err= |
| 3728 | fi |
| 3729 | else |
| 3730 | ac_cpp_err=yes |
| 3731 | fi |
| 3732 | if test -z "$ac_cpp_err"; then |
| 3733 | : |
| 3734 | else |
| 3735 | echo "$as_me: failed program was:" >&5 |
| 3736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3737 | |
| 3738 | # Broken: fails on valid input. |
| 3739 | continue |
| 3740 | fi |
| 3741 | rm -f conftest.err conftest.$ac_ext |
| 3742 | |
| 3743 | # OK, works on sane cases. Now check whether non-existent headers |
| 3744 | # can be detected and how. |
| 3745 | cat >conftest.$ac_ext <<_ACEOF |
| 3746 | #line $LINENO "configure" |
| 3747 | /* confdefs.h. */ |
| 3748 | _ACEOF |
| 3749 | cat confdefs.h >>conftest.$ac_ext |
| 3750 | cat >>conftest.$ac_ext <<_ACEOF |
| 3751 | /* end confdefs.h. */ |
| 3752 | #include <ac_nonexistent.h> |
| 3753 | _ACEOF |
| 3754 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3755 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3756 | ac_status=$? |
| 3757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3758 | rm -f conftest.er1 |
| 3759 | cat conftest.err >&5 |
| 3760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3761 | (exit $ac_status); } >/dev/null; then |
| 3762 | if test -s conftest.err; then |
| 3763 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3764 | else |
| 3765 | ac_cpp_err= |
| 3766 | fi |
| 3767 | else |
| 3768 | ac_cpp_err=yes |
| 3769 | fi |
| 3770 | if test -z "$ac_cpp_err"; then |
| 3771 | # Broken: success on invalid input. |
| 3772 | continue |
| 3773 | else |
| 3774 | echo "$as_me: failed program was:" >&5 |
| 3775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3776 | |
| 3777 | # Passes both tests. |
| 3778 | ac_preproc_ok=: |
| 3779 | break |
| 3780 | fi |
| 3781 | rm -f conftest.err conftest.$ac_ext |
| 3782 | |
| 3783 | done |
| 3784 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3785 | rm -f conftest.err conftest.$ac_ext |
| 3786 | if $ac_preproc_ok; then |
| 3787 | break |
| 3788 | fi |
| 3789 | |
| 3790 | done |
| 3791 | ac_cv_prog_CPP=$CPP |
| 3792 | |
| 3793 | fi |
| 3794 | CPP=$ac_cv_prog_CPP |
| 3795 | else |
| 3796 | ac_cv_prog_CPP=$CPP |
| 3797 | fi |
| 3798 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3799 | echo "${ECHO_T}$CPP" >&6 |
| 3800 | ac_preproc_ok=false |
| 3801 | for ac_c_preproc_warn_flag in '' yes |
| 3802 | do |
| 3803 | # Use a header file that comes with gcc, so configuring glibc |
| 3804 | # with a fresh cross-compiler works. |
| 3805 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3806 | # <limits.h> exists even on freestanding compilers. |
| 3807 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3808 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3809 | cat >conftest.$ac_ext <<_ACEOF |
| 3810 | #line $LINENO "configure" |
| 3811 | /* confdefs.h. */ |
| 3812 | _ACEOF |
| 3813 | cat confdefs.h >>conftest.$ac_ext |
| 3814 | cat >>conftest.$ac_ext <<_ACEOF |
| 3815 | /* end confdefs.h. */ |
| 3816 | #ifdef __STDC__ |
| 3817 | # include <limits.h> |
| 3818 | #else |
| 3819 | # include <assert.h> |
| 3820 | #endif |
| 3821 | Syntax error |
| 3822 | _ACEOF |
| 3823 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3824 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3825 | ac_status=$? |
| 3826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3827 | rm -f conftest.er1 |
| 3828 | cat conftest.err >&5 |
| 3829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3830 | (exit $ac_status); } >/dev/null; then |
| 3831 | if test -s conftest.err; then |
| 3832 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3833 | else |
| 3834 | ac_cpp_err= |
| 3835 | fi |
| 3836 | else |
| 3837 | ac_cpp_err=yes |
| 3838 | fi |
| 3839 | if test -z "$ac_cpp_err"; then |
| 3840 | : |
| 3841 | else |
| 3842 | echo "$as_me: failed program was:" >&5 |
| 3843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3844 | |
| 3845 | # Broken: fails on valid input. |
| 3846 | continue |
| 3847 | fi |
| 3848 | rm -f conftest.err conftest.$ac_ext |
| 3849 | |
| 3850 | # OK, works on sane cases. Now check whether non-existent headers |
| 3851 | # can be detected and how. |
| 3852 | cat >conftest.$ac_ext <<_ACEOF |
| 3853 | #line $LINENO "configure" |
| 3854 | /* confdefs.h. */ |
| 3855 | _ACEOF |
| 3856 | cat confdefs.h >>conftest.$ac_ext |
| 3857 | cat >>conftest.$ac_ext <<_ACEOF |
| 3858 | /* end confdefs.h. */ |
| 3859 | #include <ac_nonexistent.h> |
| 3860 | _ACEOF |
| 3861 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3862 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3863 | ac_status=$? |
| 3864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3865 | rm -f conftest.er1 |
| 3866 | cat conftest.err >&5 |
| 3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3868 | (exit $ac_status); } >/dev/null; then |
| 3869 | if test -s conftest.err; then |
| 3870 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3871 | else |
| 3872 | ac_cpp_err= |
| 3873 | fi |
| 3874 | else |
| 3875 | ac_cpp_err=yes |
| 3876 | fi |
| 3877 | if test -z "$ac_cpp_err"; then |
| 3878 | # Broken: success on invalid input. |
| 3879 | continue |
| 3880 | else |
| 3881 | echo "$as_me: failed program was:" >&5 |
| 3882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3883 | |
| 3884 | # Passes both tests. |
| 3885 | ac_preproc_ok=: |
| 3886 | break |
| 3887 | fi |
| 3888 | rm -f conftest.err conftest.$ac_ext |
| 3889 | |
| 3890 | done |
| 3891 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3892 | rm -f conftest.err conftest.$ac_ext |
| 3893 | if $ac_preproc_ok; then |
| 3894 | : |
| 3895 | else |
| 3896 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3897 | See \`config.log' for more details." >&5 |
| 3898 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3899 | See \`config.log' for more details." >&2;} |
| 3900 | { (exit 1); exit 1; }; } |
| 3901 | fi |
| 3902 | |
| 3903 | ac_ext=c |
| 3904 | ac_cpp='$CPP $CPPFLAGS' |
| 3905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3908 | |
| 3909 | |
| 3910 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3911 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3912 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3914 | else |
| 3915 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3916 | then ac_cv_prog_egrep='grep -E' |
| 3917 | else ac_cv_prog_egrep='egrep' |
| 3918 | fi |
| 3919 | fi |
| 3920 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3921 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3922 | EGREP=$ac_cv_prog_egrep |
| 3923 | |
| 3924 | |
| 3925 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3926 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3927 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3929 | else |
| 3930 | cat >conftest.$ac_ext <<_ACEOF |
| 3931 | #line $LINENO "configure" |
| 3932 | /* confdefs.h. */ |
| 3933 | _ACEOF |
| 3934 | cat confdefs.h >>conftest.$ac_ext |
| 3935 | cat >>conftest.$ac_ext <<_ACEOF |
| 3936 | /* end confdefs.h. */ |
| 3937 | #include <stdlib.h> |
| 3938 | #include <stdarg.h> |
| 3939 | #include <string.h> |
| 3940 | #include <float.h> |
| 3941 | |
| 3942 | int |
| 3943 | main () |
| 3944 | { |
| 3945 | |
| 3946 | ; |
| 3947 | return 0; |
| 3948 | } |
| 3949 | _ACEOF |
| 3950 | rm -f conftest.$ac_objext |
| 3951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3952 | (eval $ac_compile) 2>&5 |
| 3953 | ac_status=$? |
| 3954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3955 | (exit $ac_status); } && |
| 3956 | { ac_try='test -s conftest.$ac_objext' |
| 3957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3958 | (eval $ac_try) 2>&5 |
| 3959 | ac_status=$? |
| 3960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3961 | (exit $ac_status); }; }; then |
| 3962 | ac_cv_header_stdc=yes |
| 3963 | else |
| 3964 | echo "$as_me: failed program was:" >&5 |
| 3965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3966 | |
| 3967 | ac_cv_header_stdc=no |
| 3968 | fi |
| 3969 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3970 | |
| 3971 | if test $ac_cv_header_stdc = yes; then |
| 3972 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3973 | cat >conftest.$ac_ext <<_ACEOF |
| 3974 | #line $LINENO "configure" |
| 3975 | /* confdefs.h. */ |
| 3976 | _ACEOF |
| 3977 | cat confdefs.h >>conftest.$ac_ext |
| 3978 | cat >>conftest.$ac_ext <<_ACEOF |
| 3979 | /* end confdefs.h. */ |
| 3980 | #include <string.h> |
| 3981 | |
| 3982 | _ACEOF |
| 3983 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3984 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3985 | : |
| 3986 | else |
| 3987 | ac_cv_header_stdc=no |
| 3988 | fi |
| 3989 | rm -f conftest* |
| 3990 | |
| 3991 | fi |
| 3992 | |
| 3993 | if test $ac_cv_header_stdc = yes; then |
| 3994 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3995 | cat >conftest.$ac_ext <<_ACEOF |
| 3996 | #line $LINENO "configure" |
| 3997 | /* confdefs.h. */ |
| 3998 | _ACEOF |
| 3999 | cat confdefs.h >>conftest.$ac_ext |
| 4000 | cat >>conftest.$ac_ext <<_ACEOF |
| 4001 | /* end confdefs.h. */ |
| 4002 | #include <stdlib.h> |
| 4003 | |
| 4004 | _ACEOF |
| 4005 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4006 | $EGREP "free" >/dev/null 2>&1; then |
| 4007 | : |
| 4008 | else |
| 4009 | ac_cv_header_stdc=no |
| 4010 | fi |
| 4011 | rm -f conftest* |
| 4012 | |
| 4013 | fi |
| 4014 | |
| 4015 | if test $ac_cv_header_stdc = yes; then |
| 4016 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4017 | if test "$cross_compiling" = yes; then |
| 4018 | : |
| 4019 | else |
| 4020 | cat >conftest.$ac_ext <<_ACEOF |
| 4021 | #line $LINENO "configure" |
| 4022 | /* confdefs.h. */ |
| 4023 | _ACEOF |
| 4024 | cat confdefs.h >>conftest.$ac_ext |
| 4025 | cat >>conftest.$ac_ext <<_ACEOF |
| 4026 | /* end confdefs.h. */ |
| 4027 | #include <ctype.h> |
| 4028 | #if ((' ' & 0x0FF) == 0x020) |
| 4029 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4030 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4031 | #else |
| 4032 | # define ISLOWER(c) \ |
| 4033 | (('a' <= (c) && (c) <= 'i') \ |
| 4034 | || ('j' <= (c) && (c) <= 'r') \ |
| 4035 | || ('s' <= (c) && (c) <= 'z')) |
| 4036 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4037 | #endif |
| 4038 | |
| 4039 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4040 | int |
| 4041 | main () |
| 4042 | { |
| 4043 | int i; |
| 4044 | for (i = 0; i < 256; i++) |
| 4045 | if (XOR (islower (i), ISLOWER (i)) |
| 4046 | || toupper (i) != TOUPPER (i)) |
| 4047 | exit(2); |
| 4048 | exit (0); |
| 4049 | } |
| 4050 | _ACEOF |
| 4051 | rm -f conftest$ac_exeext |
| 4052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4053 | (eval $ac_link) 2>&5 |
| 4054 | ac_status=$? |
| 4055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4056 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4058 | (eval $ac_try) 2>&5 |
| 4059 | ac_status=$? |
| 4060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4061 | (exit $ac_status); }; }; then |
| 4062 | : |
| 4063 | else |
| 4064 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4065 | echo "$as_me: failed program was:" >&5 |
| 4066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4067 | |
| 4068 | ( exit $ac_status ) |
| 4069 | ac_cv_header_stdc=no |
| 4070 | fi |
| 4071 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4072 | fi |
| 4073 | fi |
| 4074 | fi |
| 4075 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4076 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4077 | if test $ac_cv_header_stdc = yes; then |
| 4078 | |
| 4079 | cat >>confdefs.h <<\_ACEOF |
| 4080 | #define STDC_HEADERS 1 |
| 4081 | _ACEOF |
| 4082 | |
| 4083 | fi |
| 4084 | |
| 4085 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4086 | |
| 4087 | |
| 4088 | |
| 4089 | |
| 4090 | |
| 4091 | |
| 4092 | |
| 4093 | |
| 4094 | |
| 4095 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4096 | inttypes.h stdint.h unistd.h |
| 4097 | do |
| 4098 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4099 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4100 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4101 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4103 | else |
| 4104 | cat >conftest.$ac_ext <<_ACEOF |
| 4105 | #line $LINENO "configure" |
| 4106 | /* confdefs.h. */ |
| 4107 | _ACEOF |
| 4108 | cat confdefs.h >>conftest.$ac_ext |
| 4109 | cat >>conftest.$ac_ext <<_ACEOF |
| 4110 | /* end confdefs.h. */ |
| 4111 | $ac_includes_default |
| 4112 | |
| 4113 | #include <$ac_header> |
| 4114 | _ACEOF |
| 4115 | rm -f conftest.$ac_objext |
| 4116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4117 | (eval $ac_compile) 2>&5 |
| 4118 | ac_status=$? |
| 4119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4120 | (exit $ac_status); } && |
| 4121 | { ac_try='test -s conftest.$ac_objext' |
| 4122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4123 | (eval $ac_try) 2>&5 |
| 4124 | ac_status=$? |
| 4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4126 | (exit $ac_status); }; }; then |
| 4127 | eval "$as_ac_Header=yes" |
| 4128 | else |
| 4129 | echo "$as_me: failed program was:" >&5 |
| 4130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4131 | |
| 4132 | eval "$as_ac_Header=no" |
| 4133 | fi |
| 4134 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4135 | fi |
| 4136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4137 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4138 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4139 | cat >>confdefs.h <<_ACEOF |
| 4140 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4141 | _ACEOF |
| 4142 | |
| 4143 | fi |
| 4144 | |
| 4145 | done |
| 4146 | |
| 4147 | |
| 4148 | |
| 4149 | for ac_header in dlfcn.h |
| 4150 | do |
| 4151 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4152 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4153 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4154 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4155 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4157 | fi |
| 4158 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4159 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4160 | else |
| 4161 | # Is the header compilable? |
| 4162 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4163 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4164 | cat >conftest.$ac_ext <<_ACEOF |
| 4165 | #line $LINENO "configure" |
| 4166 | /* confdefs.h. */ |
| 4167 | _ACEOF |
| 4168 | cat confdefs.h >>conftest.$ac_ext |
| 4169 | cat >>conftest.$ac_ext <<_ACEOF |
| 4170 | /* end confdefs.h. */ |
| 4171 | $ac_includes_default |
| 4172 | #include <$ac_header> |
| 4173 | _ACEOF |
| 4174 | rm -f conftest.$ac_objext |
| 4175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4176 | (eval $ac_compile) 2>&5 |
| 4177 | ac_status=$? |
| 4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4179 | (exit $ac_status); } && |
| 4180 | { ac_try='test -s conftest.$ac_objext' |
| 4181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4182 | (eval $ac_try) 2>&5 |
| 4183 | ac_status=$? |
| 4184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4185 | (exit $ac_status); }; }; then |
| 4186 | ac_header_compiler=yes |
| 4187 | else |
| 4188 | echo "$as_me: failed program was:" >&5 |
| 4189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4190 | |
| 4191 | ac_header_compiler=no |
| 4192 | fi |
| 4193 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4194 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4195 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4196 | |
| 4197 | # Is the header present? |
| 4198 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4199 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4200 | cat >conftest.$ac_ext <<_ACEOF |
| 4201 | #line $LINENO "configure" |
| 4202 | /* confdefs.h. */ |
| 4203 | _ACEOF |
| 4204 | cat confdefs.h >>conftest.$ac_ext |
| 4205 | cat >>conftest.$ac_ext <<_ACEOF |
| 4206 | /* end confdefs.h. */ |
| 4207 | #include <$ac_header> |
| 4208 | _ACEOF |
| 4209 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4210 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4211 | ac_status=$? |
| 4212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4213 | rm -f conftest.er1 |
| 4214 | cat conftest.err >&5 |
| 4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4216 | (exit $ac_status); } >/dev/null; then |
| 4217 | if test -s conftest.err; then |
| 4218 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4219 | else |
| 4220 | ac_cpp_err= |
| 4221 | fi |
| 4222 | else |
| 4223 | ac_cpp_err=yes |
| 4224 | fi |
| 4225 | if test -z "$ac_cpp_err"; then |
| 4226 | ac_header_preproc=yes |
| 4227 | else |
| 4228 | echo "$as_me: failed program was:" >&5 |
| 4229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4230 | |
| 4231 | ac_header_preproc=no |
| 4232 | fi |
| 4233 | rm -f conftest.err conftest.$ac_ext |
| 4234 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4235 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4236 | |
| 4237 | # So? What about this header? |
| 4238 | case $ac_header_compiler:$ac_header_preproc in |
| 4239 | yes:no ) |
| 4240 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4241 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4243 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4244 | ( |
| 4245 | cat <<\_ASBOX |
| 4246 | ## ------------------------------------ ## |
| 4247 | ## Report this to bug-autoconf@gnu.org. ## |
| 4248 | ## ------------------------------------ ## |
| 4249 | _ASBOX |
| 4250 | ) | |
| 4251 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4252 | ;; |
| 4253 | no:yes ) |
| 4254 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4255 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4256 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4257 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4258 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4259 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4260 | ( |
| 4261 | cat <<\_ASBOX |
| 4262 | ## ------------------------------------ ## |
| 4263 | ## Report this to bug-autoconf@gnu.org. ## |
| 4264 | ## ------------------------------------ ## |
| 4265 | _ASBOX |
| 4266 | ) | |
| 4267 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4268 | ;; |
| 4269 | esac |
| 4270 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4271 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4272 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4274 | else |
| 4275 | eval "$as_ac_Header=$ac_header_preproc" |
| 4276 | fi |
| 4277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4278 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4279 | |
| 4280 | fi |
| 4281 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4282 | cat >>confdefs.h <<_ACEOF |
| 4283 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4284 | _ACEOF |
| 4285 | |
| 4286 | fi |
| 4287 | |
| 4288 | done |
| 4289 | |
| 4290 | |
| 4291 | |
| 4292 | |
| 4293 | |
| 4294 | |
| 4295 | # Only perform the check for file, if the check method requires it |
| 4296 | case $deplibs_check_method in |
| 4297 | file_magic*) |
| 4298 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 4299 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 4300 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 4301 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 4302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4303 | else |
| 4304 | case $MAGIC_CMD in |
| 4305 | /*) |
| 4306 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 4307 | ;; |
| 4308 | ?:/*) |
| 4309 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 4310 | ;; |
| 4311 | *) |
| 4312 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 4313 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4314 | ac_dummy="/usr/bin:$PATH" |
| 4315 | for ac_dir in $ac_dummy; do |
| 4316 | test -z "$ac_dir" && ac_dir=. |
| 4317 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 4318 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 4319 | if test -n "$file_magic_test_file"; then |
| 4320 | case $deplibs_check_method in |
| 4321 | "file_magic "*) |
| 4322 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 4323 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4324 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 4325 | egrep "$file_magic_regex" > /dev/null; then |
| 4326 | : |
| 4327 | else |
| 4328 | cat <<EOF 1>&2 |
| 4329 | |
| 4330 | *** Warning: the command libtool uses to detect shared libraries, |
| 4331 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4332 | *** The result is that libtool may fail to recognize shared libraries |
| 4333 | *** as such. This will affect the creation of libtool libraries that |
| 4334 | *** depend on shared libraries, but programs linked with such libtool |
| 4335 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4336 | *** may want to report the problem to your system manager and/or to |
| 4337 | *** bug-libtool@gnu.org |
| 4338 | |
| 4339 | EOF |
| 4340 | fi ;; |
| 4341 | esac |
| 4342 | fi |
| 4343 | break |
| 4344 | fi |
| 4345 | done |
| 4346 | IFS="$ac_save_ifs" |
| 4347 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4348 | ;; |
| 4349 | esac |
| 4350 | fi |
| 4351 | |
| 4352 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4353 | if test -n "$MAGIC_CMD"; then |
| 4354 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4355 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4356 | else |
| 4357 | echo "$as_me:$LINENO: result: no" >&5 |
| 4358 | echo "${ECHO_T}no" >&6 |
| 4359 | fi |
| 4360 | |
| 4361 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 4362 | if test -n "$ac_tool_prefix"; then |
| 4363 | echo "$as_me:$LINENO: checking for file" >&5 |
| 4364 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 4365 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 4366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4367 | else |
| 4368 | case $MAGIC_CMD in |
| 4369 | /*) |
| 4370 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 4371 | ;; |
| 4372 | ?:/*) |
| 4373 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 4374 | ;; |
| 4375 | *) |
| 4376 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 4377 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4378 | ac_dummy="/usr/bin:$PATH" |
| 4379 | for ac_dir in $ac_dummy; do |
| 4380 | test -z "$ac_dir" && ac_dir=. |
| 4381 | if test -f $ac_dir/file; then |
| 4382 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 4383 | if test -n "$file_magic_test_file"; then |
| 4384 | case $deplibs_check_method in |
| 4385 | "file_magic "*) |
| 4386 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 4387 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4388 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 4389 | egrep "$file_magic_regex" > /dev/null; then |
| 4390 | : |
| 4391 | else |
| 4392 | cat <<EOF 1>&2 |
| 4393 | |
| 4394 | *** Warning: the command libtool uses to detect shared libraries, |
| 4395 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4396 | *** The result is that libtool may fail to recognize shared libraries |
| 4397 | *** as such. This will affect the creation of libtool libraries that |
| 4398 | *** depend on shared libraries, but programs linked with such libtool |
| 4399 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4400 | *** may want to report the problem to your system manager and/or to |
| 4401 | *** bug-libtool@gnu.org |
| 4402 | |
| 4403 | EOF |
| 4404 | fi ;; |
| 4405 | esac |
| 4406 | fi |
| 4407 | break |
| 4408 | fi |
| 4409 | done |
| 4410 | IFS="$ac_save_ifs" |
| 4411 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4412 | ;; |
| 4413 | esac |
| 4414 | fi |
| 4415 | |
| 4416 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4417 | if test -n "$MAGIC_CMD"; then |
| 4418 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4419 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4420 | else |
| 4421 | echo "$as_me:$LINENO: result: no" >&5 |
| 4422 | echo "${ECHO_T}no" >&6 |
| 4423 | fi |
| 4424 | |
| 4425 | else |
| 4426 | MAGIC_CMD=: |
| 4427 | fi |
| 4428 | fi |
| 4429 | |
| 4430 | fi |
| 4431 | ;; |
| 4432 | esac |
| 4433 | |
| 4434 | if test -n "$ac_tool_prefix"; then |
| 4435 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4436 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4439 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4441 | else |
| 4442 | if test -n "$RANLIB"; then |
| 4443 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4444 | else |
| 4445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4446 | for as_dir in $PATH |
| 4447 | do |
| 4448 | IFS=$as_save_IFS |
| 4449 | test -z "$as_dir" && as_dir=. |
| 4450 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4452 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4454 | break 2 |
| 4455 | fi |
| 4456 | done |
| 4457 | done |
| 4458 | |
| 4459 | fi |
| 4460 | fi |
| 4461 | RANLIB=$ac_cv_prog_RANLIB |
| 4462 | if test -n "$RANLIB"; then |
| 4463 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4464 | echo "${ECHO_T}$RANLIB" >&6 |
| 4465 | else |
| 4466 | echo "$as_me:$LINENO: result: no" >&5 |
| 4467 | echo "${ECHO_T}no" >&6 |
| 4468 | fi |
| 4469 | |
| 4470 | fi |
| 4471 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4472 | ac_ct_RANLIB=$RANLIB |
| 4473 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4474 | set dummy ranlib; ac_word=$2 |
| 4475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4477 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4479 | else |
| 4480 | if test -n "$ac_ct_RANLIB"; then |
| 4481 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4482 | else |
| 4483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4484 | for as_dir in $PATH |
| 4485 | do |
| 4486 | IFS=$as_save_IFS |
| 4487 | test -z "$as_dir" && as_dir=. |
| 4488 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4489 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4490 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4492 | break 2 |
| 4493 | fi |
| 4494 | done |
| 4495 | done |
| 4496 | |
| 4497 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4498 | fi |
| 4499 | fi |
| 4500 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4501 | if test -n "$ac_ct_RANLIB"; then |
| 4502 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4503 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4504 | else |
| 4505 | echo "$as_me:$LINENO: result: no" >&5 |
| 4506 | echo "${ECHO_T}no" >&6 |
| 4507 | fi |
| 4508 | |
| 4509 | RANLIB=$ac_ct_RANLIB |
| 4510 | else |
| 4511 | RANLIB="$ac_cv_prog_RANLIB" |
| 4512 | fi |
| 4513 | |
| 4514 | if test -n "$ac_tool_prefix"; then |
| 4515 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4516 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4517 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4519 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 4520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4521 | else |
| 4522 | if test -n "$STRIP"; then |
| 4523 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4524 | else |
| 4525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4526 | for as_dir in $PATH |
| 4527 | do |
| 4528 | IFS=$as_save_IFS |
| 4529 | test -z "$as_dir" && as_dir=. |
| 4530 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4531 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4532 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4534 | break 2 |
| 4535 | fi |
| 4536 | done |
| 4537 | done |
| 4538 | |
| 4539 | fi |
| 4540 | fi |
| 4541 | STRIP=$ac_cv_prog_STRIP |
| 4542 | if test -n "$STRIP"; then |
| 4543 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 4544 | echo "${ECHO_T}$STRIP" >&6 |
| 4545 | else |
| 4546 | echo "$as_me:$LINENO: result: no" >&5 |
| 4547 | echo "${ECHO_T}no" >&6 |
| 4548 | fi |
| 4549 | |
| 4550 | fi |
| 4551 | if test -z "$ac_cv_prog_STRIP"; then |
| 4552 | ac_ct_STRIP=$STRIP |
| 4553 | # Extract the first word of "strip", so it can be a program name with args. |
| 4554 | set dummy strip; ac_word=$2 |
| 4555 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4557 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 4558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4559 | else |
| 4560 | if test -n "$ac_ct_STRIP"; then |
| 4561 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4562 | else |
| 4563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4564 | for as_dir in $PATH |
| 4565 | do |
| 4566 | IFS=$as_save_IFS |
| 4567 | test -z "$as_dir" && as_dir=. |
| 4568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4569 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4570 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4572 | break 2 |
| 4573 | fi |
| 4574 | done |
| 4575 | done |
| 4576 | |
| 4577 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 4578 | fi |
| 4579 | fi |
| 4580 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4581 | if test -n "$ac_ct_STRIP"; then |
| 4582 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4583 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4584 | else |
| 4585 | echo "$as_me:$LINENO: result: no" >&5 |
| 4586 | echo "${ECHO_T}no" >&6 |
| 4587 | fi |
| 4588 | |
| 4589 | STRIP=$ac_ct_STRIP |
| 4590 | else |
| 4591 | STRIP="$ac_cv_prog_STRIP" |
| 4592 | fi |
| 4593 | |
| 4594 | |
| 4595 | enable_dlopen=no |
| 4596 | enable_win32_dll=no |
| 4597 | |
| 4598 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4599 | if test "${enable_libtool_lock+set}" = set; then |
| 4600 | enableval="$enable_libtool_lock" |
| 4601 | |
| 4602 | fi; |
| 4603 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 4604 | |
| 4605 | # Some flags need to be propagated to the compiler or linker for good |
| 4606 | # libtool support. |
| 4607 | case $host in |
| 4608 | *-*-irix6*) |
| 4609 | # Find out which ABI we are using. |
| 4610 | echo '#line 4610 "configure"' > conftest.$ac_ext |
| 4611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4612 | (eval $ac_compile) 2>&5 |
| 4613 | ac_status=$? |
| 4614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4615 | (exit $ac_status); }; then |
| 4616 | case `/usr/bin/file conftest.$ac_objext` in |
| 4617 | *32-bit*) |
| 4618 | LD="${LD-ld} -32" |
| 4619 | ;; |
| 4620 | *N32*) |
| 4621 | LD="${LD-ld} -n32" |
| 4622 | ;; |
| 4623 | *64-bit*) |
| 4624 | LD="${LD-ld} -64" |
| 4625 | ;; |
| 4626 | esac |
| 4627 | fi |
| 4628 | rm -rf conftest* |
| 4629 | ;; |
| 4630 | |
| 4631 | *-*-sco3.2v5*) |
| 4632 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4633 | SAVE_CFLAGS="$CFLAGS" |
| 4634 | CFLAGS="$CFLAGS -belf" |
| 4635 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4636 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4637 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4639 | else |
| 4640 | |
| 4641 | |
| 4642 | ac_ext=c |
| 4643 | ac_cpp='$CPP $CPPFLAGS' |
| 4644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4647 | |
| 4648 | cat >conftest.$ac_ext <<_ACEOF |
| 4649 | #line $LINENO "configure" |
| 4650 | /* confdefs.h. */ |
| 4651 | _ACEOF |
| 4652 | cat confdefs.h >>conftest.$ac_ext |
| 4653 | cat >>conftest.$ac_ext <<_ACEOF |
| 4654 | /* end confdefs.h. */ |
| 4655 | |
| 4656 | int |
| 4657 | main () |
| 4658 | { |
| 4659 | |
| 4660 | ; |
| 4661 | return 0; |
| 4662 | } |
| 4663 | _ACEOF |
| 4664 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4666 | (eval $ac_link) 2>&5 |
| 4667 | ac_status=$? |
| 4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4669 | (exit $ac_status); } && |
| 4670 | { ac_try='test -s conftest$ac_exeext' |
| 4671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4672 | (eval $ac_try) 2>&5 |
| 4673 | ac_status=$? |
| 4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4675 | (exit $ac_status); }; }; then |
| 4676 | lt_cv_cc_needs_belf=yes |
| 4677 | else |
| 4678 | echo "$as_me: failed program was:" >&5 |
| 4679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4680 | |
| 4681 | lt_cv_cc_needs_belf=no |
| 4682 | fi |
| 4683 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4684 | ac_ext=c |
| 4685 | ac_cpp='$CPP $CPPFLAGS' |
| 4686 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4687 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4688 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4689 | |
| 4690 | fi |
| 4691 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4692 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 4693 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4694 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4695 | CFLAGS="$SAVE_CFLAGS" |
| 4696 | fi |
| 4697 | ;; |
| 4698 | |
| 4699 | |
| 4700 | esac |
| 4701 | |
| 4702 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 4703 | # metacharacters that are still active within double-quoted strings. |
| 4704 | Xsed='sed -e s/^X//' |
| 4705 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 4706 | |
| 4707 | # Same as above, but do not quote variable references. |
| 4708 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 4709 | |
| 4710 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4711 | # double_quote_subst'ed string. |
| 4712 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4713 | |
| 4714 | # Constants: |
| 4715 | rm="rm -f" |
| 4716 | |
| 4717 | # Global variables: |
| 4718 | default_ofile=libtool |
| 4719 | can_build_shared=yes |
| 4720 | |
| 4721 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 4722 | # which needs '.lib'). |
| 4723 | libext=a |
| 4724 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4725 | ofile="$default_ofile" |
| 4726 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 4727 | need_locks="$enable_libtool_lock" |
| 4728 | |
| 4729 | old_CC="$CC" |
| 4730 | old_CFLAGS="$CFLAGS" |
| 4731 | |
| 4732 | # Set sane defaults for various variables |
| 4733 | test -z "$AR" && AR=ar |
| 4734 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 4735 | test -z "$AS" && AS=as |
| 4736 | test -z "$CC" && CC=cc |
| 4737 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 4738 | test -z "$LD" && LD=ld |
| 4739 | test -z "$LN_S" && LN_S="ln -s" |
| 4740 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 4741 | test -z "$NM" && NM=nm |
| 4742 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4743 | test -z "$RANLIB" && RANLIB=: |
| 4744 | test -z "$STRIP" && STRIP=: |
| 4745 | test -z "$ac_objext" && ac_objext=o |
| 4746 | |
| 4747 | if test x"$host" != x"$build"; then |
| 4748 | ac_tool_prefix=${host_alias}- |
| 4749 | else |
| 4750 | ac_tool_prefix= |
| 4751 | fi |
| 4752 | |
| 4753 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| 4754 | case $host_os in |
| 4755 | linux-gnu*) ;; |
| 4756 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| 4757 | esac |
| 4758 | |
| 4759 | case $host_os in |
| 4760 | aix3*) |
| 4761 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 4762 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 4763 | # vanish in a puff of smoke. |
| 4764 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 4765 | COLLECT_NAMES= |
| 4766 | export COLLECT_NAMES |
| 4767 | fi |
| 4768 | ;; |
| 4769 | esac |
| 4770 | |
| 4771 | # Determine commands to create old-style static archives. |
| 4772 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 4773 | old_postinstall_cmds='chmod 644 $oldlib' |
| 4774 | old_postuninstall_cmds= |
| 4775 | |
| 4776 | if test -n "$RANLIB"; then |
| 4777 | case $host_os in |
| 4778 | openbsd*) |
| 4779 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 4780 | ;; |
| 4781 | *) |
| 4782 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 4783 | ;; |
| 4784 | esac |
| 4785 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 4786 | fi |
| 4787 | |
| 4788 | # Allow CC to be a program name with arguments. |
| 4789 | set dummy $CC |
| 4790 | compiler="$2" |
| 4791 | |
| 4792 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 4793 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 4794 | rm -f .libs 2>/dev/null |
| 4795 | mkdir .libs 2>/dev/null |
| 4796 | if test -d .libs; then |
| 4797 | objdir=.libs |
| 4798 | else |
| 4799 | # MS-DOS does not allow filenames that begin with a dot. |
| 4800 | objdir=_libs |
| 4801 | fi |
| 4802 | rmdir .libs 2>/dev/null |
| 4803 | echo "$as_me:$LINENO: result: $objdir" >&5 |
| 4804 | echo "${ECHO_T}$objdir" >&6 |
| 4805 | |
| 4806 | |
| 4807 | |
| 4808 | # Check whether --with-pic or --without-pic was given. |
| 4809 | if test "${with_pic+set}" = set; then |
| 4810 | withval="$with_pic" |
| 4811 | pic_mode="$withval" |
| 4812 | else |
| 4813 | pic_mode=default |
| 4814 | fi; |
| 4815 | test -z "$pic_mode" && pic_mode=default |
| 4816 | |
| 4817 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
| 4818 | # in isolation, and that seeing it set (from the cache) indicates that |
| 4819 | # the associated values are set (in the cache) correctly too. |
| 4820 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 4821 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 4822 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
| 4823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4824 | else |
| 4825 | lt_cv_prog_cc_pic= |
| 4826 | lt_cv_prog_cc_shlib= |
| 4827 | lt_cv_prog_cc_wl= |
| 4828 | lt_cv_prog_cc_static= |
| 4829 | lt_cv_prog_cc_no_builtin= |
| 4830 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
| 4831 | |
| 4832 | if test "$GCC" = yes; then |
| 4833 | lt_cv_prog_cc_wl='-Wl,' |
| 4834 | lt_cv_prog_cc_static='-static' |
| 4835 | |
| 4836 | case $host_os in |
| 4837 | aix*) |
| 4838 | # Below there is a dirty hack to force normal static linking with -ldl |
| 4839 | # The problem is because libdl dynamically linked with both libc and |
| 4840 | # libC (AIX C++ library), which obviously doesn't included in libraries |
| 4841 | # list by gcc. This cause undefined symbols with -static flags. |
| 4842 | # This hack allows C programs to be linked with "-static -ldl", but |
| 4843 | # not sure about C++ programs. |
| 4844 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
| 4845 | ;; |
| 4846 | amigaos*) |
| 4847 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 4848 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 4849 | # like `-m68040'. |
| 4850 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
| 4851 | ;; |
| 4852 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 4853 | # PIC is the default for these OSes. |
| 4854 | ;; |
| 4855 | darwin* | rhapsody*) |
| 4856 | # PIC is the default on this platform |
| 4857 | # Common symbols not allowed in MH_DYLIB files |
| 4858 | lt_cv_prog_cc_pic='-fno-common' |
| 4859 | ;; |
| 4860 | cygwin* | mingw* | pw32* | os2*) |
| 4861 | # This hack is so that the source file can tell whether it is being |
| 4862 | # built for inclusion in a dll (and should export symbols for example). |
| 4863 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 4864 | ;; |
| 4865 | sysv4*MP*) |
| 4866 | if test -d /usr/nec; then |
| 4867 | lt_cv_prog_cc_pic=-Kconform_pic |
| 4868 | fi |
| 4869 | ;; |
| 4870 | *) |
| 4871 | lt_cv_prog_cc_pic='-fPIC' |
| 4872 | ;; |
| 4873 | esac |
| 4874 | else |
| 4875 | # PORTME Check for PIC flags for the system compiler. |
| 4876 | case $host_os in |
| 4877 | aix3* | aix4* | aix5*) |
| 4878 | lt_cv_prog_cc_wl='-Wl,' |
| 4879 | # All AIX code is PIC. |
| 4880 | if test "$host_cpu" = ia64; then |
| 4881 | # AIX 5 now supports IA64 processor |
| 4882 | lt_cv_prog_cc_static='-Bstatic' |
| 4883 | else |
| 4884 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
| 4885 | fi |
| 4886 | ;; |
| 4887 | |
| 4888 | hpux9* | hpux10* | hpux11*) |
| 4889 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
| 4890 | lt_cv_prog_cc_wl='-Wl,' |
| 4891 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
| 4892 | lt_cv_prog_cc_pic='+Z' |
| 4893 | ;; |
| 4894 | |
| 4895 | irix5* | irix6* | nonstopux*) |
| 4896 | lt_cv_prog_cc_wl='-Wl,' |
| 4897 | lt_cv_prog_cc_static='-non_shared' |
| 4898 | # PIC (with -KPIC) is the default. |
| 4899 | ;; |
| 4900 | |
| 4901 | cygwin* | mingw* | pw32* | os2*) |
| 4902 | # This hack is so that the source file can tell whether it is being |
| 4903 | # built for inclusion in a dll (and should export symbols for example). |
| 4904 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 4905 | ;; |
| 4906 | |
| 4907 | newsos6) |
| 4908 | lt_cv_prog_cc_pic='-KPIC' |
| 4909 | lt_cv_prog_cc_static='-Bstatic' |
| 4910 | ;; |
| 4911 | |
| 4912 | osf3* | osf4* | osf5*) |
| 4913 | # All OSF/1 code is PIC. |
| 4914 | lt_cv_prog_cc_wl='-Wl,' |
| 4915 | lt_cv_prog_cc_static='-non_shared' |
| 4916 | ;; |
| 4917 | |
| 4918 | sco3.2v5*) |
| 4919 | lt_cv_prog_cc_pic='-Kpic' |
| 4920 | lt_cv_prog_cc_static='-dn' |
| 4921 | lt_cv_prog_cc_shlib='-belf' |
| 4922 | ;; |
| 4923 | |
| 4924 | solaris*) |
| 4925 | lt_cv_prog_cc_pic='-KPIC' |
| 4926 | lt_cv_prog_cc_static='-Bstatic' |
| 4927 | lt_cv_prog_cc_wl='-Wl,' |
| 4928 | ;; |
| 4929 | |
| 4930 | sunos4*) |
| 4931 | lt_cv_prog_cc_pic='-PIC' |
| 4932 | lt_cv_prog_cc_static='-Bstatic' |
| 4933 | lt_cv_prog_cc_wl='-Qoption ld ' |
| 4934 | ;; |
| 4935 | |
| 4936 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4937 | lt_cv_prog_cc_pic='-KPIC' |
| 4938 | lt_cv_prog_cc_static='-Bstatic' |
| 4939 | lt_cv_prog_cc_wl='-Wl,' |
| 4940 | ;; |
| 4941 | |
| 4942 | uts4*) |
| 4943 | lt_cv_prog_cc_pic='-pic' |
| 4944 | lt_cv_prog_cc_static='-Bstatic' |
| 4945 | ;; |
| 4946 | |
| 4947 | sysv4*MP*) |
| 4948 | if test -d /usr/nec ;then |
| 4949 | lt_cv_prog_cc_pic='-Kconform_pic' |
| 4950 | lt_cv_prog_cc_static='-Bstatic' |
| 4951 | fi |
| 4952 | ;; |
| 4953 | |
| 4954 | *) |
| 4955 | lt_cv_prog_cc_can_build_shared=no |
| 4956 | ;; |
| 4957 | esac |
| 4958 | fi |
| 4959 | |
| 4960 | fi |
| 4961 | |
| 4962 | if test -z "$lt_cv_prog_cc_pic"; then |
| 4963 | echo "$as_me:$LINENO: result: none" >&5 |
| 4964 | echo "${ECHO_T}none" >&6 |
| 4965 | else |
| 4966 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
| 4967 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
| 4968 | |
| 4969 | # Check to make sure the pic_flag actually works. |
| 4970 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
| 4971 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
| 4972 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
| 4973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4974 | else |
| 4975 | save_CFLAGS="$CFLAGS" |
| 4976 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
| 4977 | cat >conftest.$ac_ext <<_ACEOF |
| 4978 | #line $LINENO "configure" |
| 4979 | /* confdefs.h. */ |
| 4980 | _ACEOF |
| 4981 | cat confdefs.h >>conftest.$ac_ext |
| 4982 | cat >>conftest.$ac_ext <<_ACEOF |
| 4983 | /* end confdefs.h. */ |
| 4984 | |
| 4985 | int |
| 4986 | main () |
| 4987 | { |
| 4988 | |
| 4989 | ; |
| 4990 | return 0; |
| 4991 | } |
| 4992 | _ACEOF |
| 4993 | rm -f conftest.$ac_objext |
| 4994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4995 | (eval $ac_compile) 2>&5 |
| 4996 | ac_status=$? |
| 4997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4998 | (exit $ac_status); } && |
| 4999 | { ac_try='test -s conftest.$ac_objext' |
| 5000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5001 | (eval $ac_try) 2>&5 |
| 5002 | ac_status=$? |
| 5003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5004 | (exit $ac_status); }; }; then |
| 5005 | case $host_os in |
| 5006 | hpux9* | hpux10* | hpux11*) |
| 5007 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
| 5008 | # they create non-PIC objects. So, if there were any warnings, we |
| 5009 | # assume that PIC is not supported. |
| 5010 | if test -s conftest.err; then |
| 5011 | lt_cv_prog_cc_pic_works=no |
| 5012 | else |
| 5013 | lt_cv_prog_cc_pic_works=yes |
| 5014 | fi |
| 5015 | ;; |
| 5016 | *) |
| 5017 | lt_cv_prog_cc_pic_works=yes |
| 5018 | ;; |
| 5019 | esac |
| 5020 | |
| 5021 | else |
| 5022 | echo "$as_me: failed program was:" >&5 |
| 5023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5024 | |
| 5025 | lt_cv_prog_cc_pic_works=no |
| 5026 | |
| 5027 | fi |
| 5028 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5029 | CFLAGS="$save_CFLAGS" |
| 5030 | |
| 5031 | fi |
| 5032 | |
| 5033 | |
| 5034 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
| 5035 | lt_cv_prog_cc_pic= |
| 5036 | lt_cv_prog_cc_can_build_shared=no |
| 5037 | else |
| 5038 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
| 5039 | fi |
| 5040 | |
| 5041 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
| 5042 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
| 5043 | fi |
| 5044 | |
| 5045 | # Check for any special shared library compilation flags. |
| 5046 | if test -n "$lt_cv_prog_cc_shlib"; then |
| 5047 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
| 5048 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
| 5049 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
| 5050 | else |
| 5051 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 5052 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 5053 | lt_cv_prog_cc_can_build_shared=no |
| 5054 | fi |
| 5055 | fi |
| 5056 | |
| 5057 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
| 5058 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
| 5059 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
| 5060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5061 | else |
| 5062 | lt_cv_prog_cc_static_works=no |
| 5063 | save_LDFLAGS="$LDFLAGS" |
| 5064 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
| 5065 | cat >conftest.$ac_ext <<_ACEOF |
| 5066 | #line $LINENO "configure" |
| 5067 | /* confdefs.h. */ |
| 5068 | _ACEOF |
| 5069 | cat confdefs.h >>conftest.$ac_ext |
| 5070 | cat >>conftest.$ac_ext <<_ACEOF |
| 5071 | /* end confdefs.h. */ |
| 5072 | |
| 5073 | int |
| 5074 | main () |
| 5075 | { |
| 5076 | |
| 5077 | ; |
| 5078 | return 0; |
| 5079 | } |
| 5080 | _ACEOF |
| 5081 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5083 | (eval $ac_link) 2>&5 |
| 5084 | ac_status=$? |
| 5085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5086 | (exit $ac_status); } && |
| 5087 | { ac_try='test -s conftest$ac_exeext' |
| 5088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5089 | (eval $ac_try) 2>&5 |
| 5090 | ac_status=$? |
| 5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5092 | (exit $ac_status); }; }; then |
| 5093 | lt_cv_prog_cc_static_works=yes |
| 5094 | else |
| 5095 | echo "$as_me: failed program was:" >&5 |
| 5096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5097 | |
| 5098 | fi |
| 5099 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5100 | LDFLAGS="$save_LDFLAGS" |
| 5101 | |
| 5102 | fi |
| 5103 | |
| 5104 | |
| 5105 | # Belt *and* braces to stop my trousers falling down: |
| 5106 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
| 5107 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
| 5108 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
| 5109 | |
| 5110 | pic_flag="$lt_cv_prog_cc_pic" |
| 5111 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
| 5112 | wl="$lt_cv_prog_cc_wl" |
| 5113 | link_static_flag="$lt_cv_prog_cc_static" |
| 5114 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
| 5115 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
| 5116 | |
| 5117 | |
| 5118 | # Check to see if options -o and -c are simultaneously supported by compiler |
| 5119 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 5120 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 5121 | if test "${lt_cv_compiler_c_o+set}" = set; then |
| 5122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5123 | else |
| 5124 | |
| 5125 | $rm -r conftest 2>/dev/null |
| 5126 | mkdir conftest |
| 5127 | cd conftest |
| 5128 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5129 | mkdir out |
| 5130 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 5131 | # that will create temporary files in the current directory regardless of |
| 5132 | # the output directory. Thus, making CWD read-only will cause this test |
| 5133 | # to fail, enabling locking or at least warning the user not to do parallel |
| 5134 | # builds. |
| 5135 | chmod -w . |
| 5136 | save_CFLAGS="$CFLAGS" |
| 5137 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 5138 | compiler_c_o=no |
| 5139 | if { (eval echo configure:5139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
| 5140 | # The compiler can only warn and ignore the option if not recognized |
| 5141 | # So say no if there are warnings |
| 5142 | if test -s out/conftest.err; then |
| 5143 | lt_cv_compiler_c_o=no |
| 5144 | else |
| 5145 | lt_cv_compiler_c_o=yes |
| 5146 | fi |
| 5147 | else |
| 5148 | # Append any errors to the config.log. |
| 5149 | cat out/conftest.err 1>&5 |
| 5150 | lt_cv_compiler_c_o=no |
| 5151 | fi |
| 5152 | CFLAGS="$save_CFLAGS" |
| 5153 | chmod u+w . |
| 5154 | $rm conftest* out/* |
| 5155 | rmdir out |
| 5156 | cd .. |
| 5157 | rmdir conftest |
| 5158 | $rm -r conftest 2>/dev/null |
| 5159 | |
| 5160 | fi |
| 5161 | |
| 5162 | compiler_c_o=$lt_cv_compiler_c_o |
| 5163 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
| 5164 | echo "${ECHO_T}$compiler_c_o" >&6 |
| 5165 | |
| 5166 | if test x"$compiler_c_o" = x"yes"; then |
| 5167 | # Check to see if we can write to a .lo |
| 5168 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
| 5169 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
| 5170 | if test "${lt_cv_compiler_o_lo+set}" = set; then |
| 5171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5172 | else |
| 5173 | |
| 5174 | lt_cv_compiler_o_lo=no |
| 5175 | save_CFLAGS="$CFLAGS" |
| 5176 | CFLAGS="$CFLAGS -c -o conftest.lo" |
| 5177 | save_objext="$ac_objext" |
| 5178 | ac_objext=lo |
| 5179 | cat >conftest.$ac_ext <<_ACEOF |
| 5180 | #line $LINENO "configure" |
| 5181 | /* confdefs.h. */ |
| 5182 | _ACEOF |
| 5183 | cat confdefs.h >>conftest.$ac_ext |
| 5184 | cat >>conftest.$ac_ext <<_ACEOF |
| 5185 | /* end confdefs.h. */ |
| 5186 | |
| 5187 | int |
| 5188 | main () |
| 5189 | { |
| 5190 | int some_variable = 0; |
| 5191 | ; |
| 5192 | return 0; |
| 5193 | } |
| 5194 | _ACEOF |
| 5195 | rm -f conftest.$ac_objext |
| 5196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5197 | (eval $ac_compile) 2>&5 |
| 5198 | ac_status=$? |
| 5199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5200 | (exit $ac_status); } && |
| 5201 | { ac_try='test -s conftest.$ac_objext' |
| 5202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5203 | (eval $ac_try) 2>&5 |
| 5204 | ac_status=$? |
| 5205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5206 | (exit $ac_status); }; }; then |
| 5207 | # The compiler can only warn and ignore the option if not recognized |
| 5208 | # So say no if there are warnings |
| 5209 | if test -s conftest.err; then |
| 5210 | lt_cv_compiler_o_lo=no |
| 5211 | else |
| 5212 | lt_cv_compiler_o_lo=yes |
| 5213 | fi |
| 5214 | |
| 5215 | else |
| 5216 | echo "$as_me: failed program was:" >&5 |
| 5217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5218 | |
| 5219 | fi |
| 5220 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5221 | ac_objext="$save_objext" |
| 5222 | CFLAGS="$save_CFLAGS" |
| 5223 | |
| 5224 | fi |
| 5225 | |
| 5226 | compiler_o_lo=$lt_cv_compiler_o_lo |
| 5227 | echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
| 5228 | echo "${ECHO_T}$compiler_o_lo" >&6 |
| 5229 | else |
| 5230 | compiler_o_lo=no |
| 5231 | fi |
| 5232 | |
| 5233 | # Check to see if we can do hard links to lock some files if needed |
| 5234 | hard_links="nottested" |
| 5235 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
| 5236 | # do not overwrite the value of need_locks provided by the user |
| 5237 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 5238 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 5239 | hard_links=yes |
| 5240 | $rm conftest* |
| 5241 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5242 | touch conftest.a |
| 5243 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 5244 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5245 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 5246 | echo "${ECHO_T}$hard_links" >&6 |
| 5247 | if test "$hard_links" = no; then |
| 5248 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 5249 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 5250 | need_locks=warn |
| 5251 | fi |
| 5252 | else |
| 5253 | need_locks=no |
| 5254 | fi |
| 5255 | |
| 5256 | if test "$GCC" = yes; then |
| 5257 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
| 5258 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5259 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 5260 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5261 | save_CFLAGS="$CFLAGS" |
| 5262 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 5263 | compiler_rtti_exceptions=no |
| 5264 | cat >conftest.$ac_ext <<_ACEOF |
| 5265 | #line $LINENO "configure" |
| 5266 | /* confdefs.h. */ |
| 5267 | _ACEOF |
| 5268 | cat confdefs.h >>conftest.$ac_ext |
| 5269 | cat >>conftest.$ac_ext <<_ACEOF |
| 5270 | /* end confdefs.h. */ |
| 5271 | |
| 5272 | int |
| 5273 | main () |
| 5274 | { |
| 5275 | int some_variable = 0; |
| 5276 | ; |
| 5277 | return 0; |
| 5278 | } |
| 5279 | _ACEOF |
| 5280 | rm -f conftest.$ac_objext |
| 5281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5282 | (eval $ac_compile) 2>&5 |
| 5283 | ac_status=$? |
| 5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5285 | (exit $ac_status); } && |
| 5286 | { ac_try='test -s conftest.$ac_objext' |
| 5287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5288 | (eval $ac_try) 2>&5 |
| 5289 | ac_status=$? |
| 5290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5291 | (exit $ac_status); }; }; then |
| 5292 | # The compiler can only warn and ignore the option if not recognized |
| 5293 | # So say no if there are warnings |
| 5294 | if test -s conftest.err; then |
| 5295 | compiler_rtti_exceptions=no |
| 5296 | else |
| 5297 | compiler_rtti_exceptions=yes |
| 5298 | fi |
| 5299 | |
| 5300 | else |
| 5301 | echo "$as_me: failed program was:" >&5 |
| 5302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5303 | |
| 5304 | fi |
| 5305 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5306 | CFLAGS="$save_CFLAGS" |
| 5307 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
| 5308 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
| 5309 | |
| 5310 | if test "$compiler_rtti_exceptions" = "yes"; then |
| 5311 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
| 5312 | else |
| 5313 | no_builtin_flag=' -fno-builtin' |
| 5314 | fi |
| 5315 | fi |
| 5316 | |
| 5317 | # See if the linker supports building shared libraries. |
| 5318 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
| 5319 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 5320 | |
| 5321 | allow_undefined_flag= |
| 5322 | no_undefined_flag= |
| 5323 | need_lib_prefix=unknown |
| 5324 | need_version=unknown |
| 5325 | # when you set need_version to no, make sure it does not cause -set_version |
| 5326 | # flags to be left without arguments |
| 5327 | archive_cmds= |
| 5328 | archive_expsym_cmds= |
| 5329 | old_archive_from_new_cmds= |
| 5330 | old_archive_from_expsyms_cmds= |
| 5331 | export_dynamic_flag_spec= |
| 5332 | whole_archive_flag_spec= |
| 5333 | thread_safe_flag_spec= |
| 5334 | hardcode_into_libs=no |
| 5335 | hardcode_libdir_flag_spec= |
| 5336 | hardcode_libdir_separator= |
| 5337 | hardcode_direct=no |
| 5338 | hardcode_minus_L=no |
| 5339 | hardcode_shlibpath_var=unsupported |
| 5340 | runpath_var= |
| 5341 | link_all_deplibs=unknown |
| 5342 | always_export_symbols=no |
| 5343 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 5344 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 5345 | # included in the symbol list |
| 5346 | include_expsyms= |
| 5347 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 5348 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 5349 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 5350 | # as well as any symbol that contains `d'. |
| 5351 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 5352 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 5353 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 5354 | # the symbol is explicitly referenced. Since portable code cannot |
| 5355 | # rely on this symbol name, it's probably fine to never include it in |
| 5356 | # preloaded symbol tables. |
| 5357 | extract_expsyms_cmds= |
| 5358 | |
| 5359 | case $host_os in |
| 5360 | cygwin* | mingw* | pw32*) |
| 5361 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 5362 | # When not using gcc, we currently assume that we are using |
| 5363 | # Microsoft Visual C++. |
| 5364 | if test "$GCC" != yes; then |
| 5365 | with_gnu_ld=no |
| 5366 | fi |
| 5367 | ;; |
| 5368 | openbsd*) |
| 5369 | with_gnu_ld=no |
| 5370 | ;; |
| 5371 | esac |
| 5372 | |
| 5373 | ld_shlibs=yes |
| 5374 | if test "$with_gnu_ld" = yes; then |
| 5375 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 5376 | wlarc='${wl}' |
| 5377 | |
| 5378 | # See if GNU ld supports shared libraries. |
| 5379 | case $host_os in |
| 5380 | aix3* | aix4* | aix5*) |
| 5381 | # On AIX, the GNU linker is very broken |
| 5382 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
| 5383 | ld_shlibs=no |
| 5384 | cat <<EOF 1>&2 |
| 5385 | |
| 5386 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 5387 | *** to be unable to reliably create shared libraries on AIX. |
| 5388 | *** Therefore, libtool is disabling shared libraries support. If you |
| 5389 | *** really care for shared libraries, you may want to modify your PATH |
| 5390 | *** so that a non-GNU linker is found, and then restart. |
| 5391 | |
| 5392 | EOF |
| 5393 | ;; |
| 5394 | |
| 5395 | amigaos*) |
| 5396 | 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)' |
| 5397 | hardcode_libdir_flag_spec='-L$libdir' |
| 5398 | hardcode_minus_L=yes |
| 5399 | |
| 5400 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 5401 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 5402 | # to version 4, is to share data among multiple programs linked |
| 5403 | # with the same dynamic library. Since this doesn't match the |
| 5404 | # behavior of shared libraries on other platforms, we can use |
| 5405 | # them. |
| 5406 | ld_shlibs=no |
| 5407 | ;; |
| 5408 | |
| 5409 | beos*) |
| 5410 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5411 | allow_undefined_flag=unsupported |
| 5412 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 5413 | # support --undefined. This deserves some investigation. FIXME |
| 5414 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5415 | else |
| 5416 | ld_shlibs=no |
| 5417 | fi |
| 5418 | ;; |
| 5419 | |
| 5420 | cygwin* | mingw* | pw32*) |
| 5421 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5422 | # no search path for DLLs. |
| 5423 | hardcode_libdir_flag_spec='-L$libdir' |
| 5424 | allow_undefined_flag=unsupported |
| 5425 | always_export_symbols=yes |
| 5426 | |
| 5427 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 5428 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 5429 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 5430 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 5431 | else $CC -o impgen impgen.c ; fi)~ |
| 5432 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| 5433 | |
| 5434 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| 5435 | |
| 5436 | # cygwin and mingw dlls have different entry points and sets of symbols |
| 5437 | # to exclude. |
| 5438 | # FIXME: what about values for MSVC? |
| 5439 | dll_entry=__cygwin_dll_entry@12 |
| 5440 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 5441 | case $host_os in |
| 5442 | mingw*) |
| 5443 | # mingw values |
| 5444 | dll_entry=_DllMainCRTStartup@12 |
| 5445 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 5446 | ;; |
| 5447 | esac |
| 5448 | |
| 5449 | # mingw and cygwin differ, and it's simplest to just exclude the union |
| 5450 | # of the two symbol sets. |
| 5451 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 5452 | |
| 5453 | # recent cygwin and mingw systems supply a stub DllMain which the user |
| 5454 | # can override, but on older systems we have to supply one (in ltdll.c) |
| 5455 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 5456 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 5457 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
| 5458 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 5459 | else |
| 5460 | ltdll_obj= |
| 5461 | ltdll_cmds= |
| 5462 | fi |
| 5463 | |
| 5464 | # Extract the symbol export list from an `--export-all' def file, |
| 5465 | # then regenerate the def file from the symbol export list, so that |
| 5466 | # the compiled dll only exports the symbol export list. |
| 5467 | # Be careful not to strip the DATA tag left be newer dlltools. |
| 5468 | export_symbols_cmds="$ltdll_cmds"' |
| 5469 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 5470 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 5471 | |
| 5472 | # If the export-symbols file already is a .def file (1st line |
| 5473 | # is EXPORTS), use it as is. |
| 5474 | # If DATA tags from a recent dlltool are present, honour them! |
| 5475 | archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
| 5476 | cp $export_symbols $output_objdir/$soname-def; |
| 5477 | else |
| 5478 | echo EXPORTS > $output_objdir/$soname-def; |
| 5479 | _lt_hint=1; |
| 5480 | cat $export_symbols | while read symbol; do |
| 5481 | set dummy \$symbol; |
| 5482 | case \$# in |
| 5483 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| 5484 | 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
| 5485 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 5486 | esac; |
| 5487 | _lt_hint=`expr 1 + \$_lt_hint`; |
| 5488 | done; |
| 5489 | fi~ |
| 5490 | '"$ltdll_cmds"' |
| 5491 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 5492 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
| 5493 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 5494 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
| 5495 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 5496 | ;; |
| 5497 | |
| 5498 | netbsd*) |
| 5499 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5500 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 5501 | wlarc= |
| 5502 | else |
| 5503 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5504 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5505 | fi |
| 5506 | ;; |
| 5507 | |
| 5508 | solaris* | sysv5*) |
| 5509 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 5510 | ld_shlibs=no |
| 5511 | cat <<EOF 1>&2 |
| 5512 | |
| 5513 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 5514 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 5515 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 5516 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 5517 | *** your PATH or compiler configuration so that the native linker is |
| 5518 | *** used, and then restart. |
| 5519 | |
| 5520 | EOF |
| 5521 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5522 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5523 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5524 | else |
| 5525 | ld_shlibs=no |
| 5526 | fi |
| 5527 | ;; |
| 5528 | |
| 5529 | sunos4*) |
| 5530 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5531 | wlarc= |
| 5532 | hardcode_direct=yes |
| 5533 | hardcode_shlibpath_var=no |
| 5534 | ;; |
| 5535 | |
| 5536 | *) |
| 5537 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5538 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5539 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5540 | else |
| 5541 | ld_shlibs=no |
| 5542 | fi |
| 5543 | ;; |
| 5544 | esac |
| 5545 | |
| 5546 | if test "$ld_shlibs" = yes; then |
| 5547 | runpath_var=LD_RUN_PATH |
| 5548 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 5549 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 5550 | case $host_os in |
| 5551 | cygwin* | mingw* | pw32*) |
| 5552 | # dlltool doesn't understand --whole-archive et. al. |
| 5553 | whole_archive_flag_spec= |
| 5554 | ;; |
| 5555 | *) |
| 5556 | # ancient GNU ld didn't support --whole-archive et. al. |
| 5557 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 5558 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 5559 | else |
| 5560 | whole_archive_flag_spec= |
| 5561 | fi |
| 5562 | ;; |
| 5563 | esac |
| 5564 | fi |
| 5565 | else |
| 5566 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 5567 | case $host_os in |
| 5568 | aix3*) |
| 5569 | allow_undefined_flag=unsupported |
| 5570 | always_export_symbols=yes |
| 5571 | 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' |
| 5572 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 5573 | # are no directories specified by -L. |
| 5574 | hardcode_minus_L=yes |
| 5575 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 5576 | # Neither direct hardcoding nor static linking is supported with a |
| 5577 | # broken collect2. |
| 5578 | hardcode_direct=unsupported |
| 5579 | fi |
| 5580 | ;; |
| 5581 | |
| 5582 | aix4* | aix5*) |
| 5583 | if test "$host_cpu" = ia64; then |
| 5584 | # On IA64, the linker does run time linking by default, so we don't |
| 5585 | # have to do anything special. |
| 5586 | aix_use_runtimelinking=no |
| 5587 | exp_sym_flag='-Bexport' |
| 5588 | no_entry_flag="" |
| 5589 | else |
| 5590 | aix_use_runtimelinking=no |
| 5591 | |
| 5592 | # Test if we are trying to use run time linking or normal |
| 5593 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 5594 | # need to do runtime linking. |
| 5595 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 5596 | for ld_flag in $LDFLAGS; do |
| 5597 | case $ld_flag in |
| 5598 | *-brtl*) |
| 5599 | aix_use_runtimelinking=yes |
| 5600 | break |
| 5601 | ;; |
| 5602 | esac |
| 5603 | done |
| 5604 | esac |
| 5605 | |
| 5606 | exp_sym_flag='-bexport' |
| 5607 | no_entry_flag='-bnoentry' |
| 5608 | fi |
| 5609 | |
| 5610 | # When large executables or shared objects are built, AIX ld can |
| 5611 | # have problems creating the table of contents. If linking a library |
| 5612 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 5613 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 5614 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 5615 | |
| 5616 | hardcode_direct=yes |
| 5617 | archive_cmds='' |
| 5618 | hardcode_libdir_separator=':' |
| 5619 | if test "$GCC" = yes; then |
| 5620 | case $host_os in aix4.[012]|aix4.[012].*) |
| 5621 | collect2name=`${CC} -print-prog-name=collect2` |
| 5622 | if test -f "$collect2name" && \ |
| 5623 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 5624 | then |
| 5625 | # We have reworked collect2 |
| 5626 | hardcode_direct=yes |
| 5627 | else |
| 5628 | # We have old collect2 |
| 5629 | hardcode_direct=unsupported |
| 5630 | # It fails to find uninstalled libraries when the uninstalled |
| 5631 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 5632 | # to unsupported forces relinking |
| 5633 | hardcode_minus_L=yes |
| 5634 | hardcode_libdir_flag_spec='-L$libdir' |
| 5635 | hardcode_libdir_separator= |
| 5636 | fi |
| 5637 | esac |
| 5638 | |
| 5639 | shared_flag='-shared' |
| 5640 | else |
| 5641 | # not using gcc |
| 5642 | if test "$host_cpu" = ia64; then |
| 5643 | shared_flag='${wl}-G' |
| 5644 | else |
| 5645 | if test "$aix_use_runtimelinking" = yes; then |
| 5646 | shared_flag='${wl}-G' |
| 5647 | else |
| 5648 | shared_flag='${wl}-bM:SRE' |
| 5649 | fi |
| 5650 | fi |
| 5651 | fi |
| 5652 | |
| 5653 | # It seems that -bexpall can do strange things, so it is better to |
| 5654 | # generate a list of symbols to export. |
| 5655 | always_export_symbols=yes |
| 5656 | if test "$aix_use_runtimelinking" = yes; then |
| 5657 | # Warning - without using the other runtime loading flags (-brtl), |
| 5658 | # -berok will link without error, but may produce a broken library. |
| 5659 | allow_undefined_flag='-berok' |
| 5660 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5661 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 5662 | else |
| 5663 | if test "$host_cpu" = ia64; then |
| 5664 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 5665 | allow_undefined_flag="-z nodefs" |
| 5666 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 5667 | else |
| 5668 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5669 | # Warning - without using the other run time loading flags, |
| 5670 | # -berok will link without error, but may produce a broken library. |
| 5671 | allow_undefined_flag='${wl}-berok' |
| 5672 | # This is a bit strange, but is similar to how AIX traditionally builds |
| 5673 | # it's shared libraries. |
| 5674 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
| 5675 | fi |
| 5676 | fi |
| 5677 | ;; |
| 5678 | |
| 5679 | amigaos*) |
| 5680 | 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)' |
| 5681 | hardcode_libdir_flag_spec='-L$libdir' |
| 5682 | hardcode_minus_L=yes |
| 5683 | # see comment about different semantics on the GNU ld section |
| 5684 | ld_shlibs=no |
| 5685 | ;; |
| 5686 | |
| 5687 | cygwin* | mingw* | pw32*) |
| 5688 | # When not using gcc, we currently assume that we are using |
| 5689 | # Microsoft Visual C++. |
| 5690 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5691 | # no search path for DLLs. |
| 5692 | hardcode_libdir_flag_spec=' ' |
| 5693 | allow_undefined_flag=unsupported |
| 5694 | # Tell ltmain to make .lib files, not .a files. |
| 5695 | libext=lib |
| 5696 | # FIXME: Setting linknames here is a bad hack. |
| 5697 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5698 | # The linker will automatically build a .lib file if we build a DLL. |
| 5699 | old_archive_from_new_cmds='true' |
| 5700 | # FIXME: Should let the user specify the lib program. |
| 5701 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 5702 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 5703 | ;; |
| 5704 | |
| 5705 | darwin* | rhapsody*) |
| 5706 | case "$host_os" in |
| 5707 | rhapsody* | darwin1.[012]) |
| 5708 | allow_undefined_flag='-undefined suppress' |
| 5709 | ;; |
| 5710 | *) # Darwin 1.3 on |
| 5711 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 5712 | ;; |
| 5713 | esac |
| 5714 | # FIXME: Relying on posixy $() will cause problems for |
| 5715 | # cross-compilation, but unfortunately the echo tests do not |
| 5716 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 5717 | # `"' quotes if we put them in here... so don't! |
| 5718 | archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' |
| 5719 | # We need to add '_' to the symbols in $export_symbols first |
| 5720 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
| 5721 | hardcode_direct=yes |
| 5722 | hardcode_shlibpath_var=no |
| 5723 | whole_archive_flag_spec='-all_load $convenience' |
| 5724 | ;; |
| 5725 | |
| 5726 | freebsd1*) |
| 5727 | ld_shlibs=no |
| 5728 | ;; |
| 5729 | |
| 5730 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 5731 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 5732 | # does not break anything, and helps significantly (at the cost of a little |
| 5733 | # extra space). |
| 5734 | freebsd2.2*) |
| 5735 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 5736 | hardcode_libdir_flag_spec='-R$libdir' |
| 5737 | hardcode_direct=yes |
| 5738 | hardcode_shlibpath_var=no |
| 5739 | ;; |
| 5740 | |
| 5741 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 5742 | freebsd2*) |
| 5743 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5744 | hardcode_direct=yes |
| 5745 | hardcode_minus_L=yes |
| 5746 | hardcode_shlibpath_var=no |
| 5747 | ;; |
| 5748 | |
| 5749 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 5750 | freebsd*) |
| 5751 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 5752 | hardcode_libdir_flag_spec='-R$libdir' |
| 5753 | hardcode_direct=yes |
| 5754 | hardcode_shlibpath_var=no |
| 5755 | ;; |
| 5756 | |
| 5757 | hpux9* | hpux10* | hpux11*) |
| 5758 | case $host_os in |
| 5759 | hpux9*) 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' ;; |
| 5760 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
| 5761 | esac |
| 5762 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 5763 | hardcode_libdir_separator=: |
| 5764 | hardcode_direct=yes |
| 5765 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
| 5766 | # location of the library. |
| 5767 | export_dynamic_flag_spec='${wl}-E' |
| 5768 | ;; |
| 5769 | |
| 5770 | irix5* | irix6* | nonstopux*) |
| 5771 | if test "$GCC" = yes; then |
| 5772 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5773 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5774 | else |
| 5775 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5776 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5777 | fi |
| 5778 | hardcode_libdir_separator=: |
| 5779 | link_all_deplibs=yes |
| 5780 | ;; |
| 5781 | |
| 5782 | netbsd*) |
| 5783 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5784 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 5785 | else |
| 5786 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 5787 | fi |
| 5788 | hardcode_libdir_flag_spec='-R$libdir' |
| 5789 | hardcode_direct=yes |
| 5790 | hardcode_shlibpath_var=no |
| 5791 | ;; |
| 5792 | |
| 5793 | newsos6) |
| 5794 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5795 | hardcode_direct=yes |
| 5796 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5797 | hardcode_libdir_separator=: |
| 5798 | hardcode_shlibpath_var=no |
| 5799 | ;; |
| 5800 | |
| 5801 | openbsd*) |
| 5802 | hardcode_direct=yes |
| 5803 | hardcode_shlibpath_var=no |
| 5804 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5805 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5806 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5807 | export_dynamic_flag_spec='${wl}-E' |
| 5808 | else |
| 5809 | case "$host_os" in |
| 5810 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 5811 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5812 | hardcode_libdir_flag_spec='-R$libdir' |
| 5813 | ;; |
| 5814 | *) |
| 5815 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5816 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5817 | ;; |
| 5818 | esac |
| 5819 | fi |
| 5820 | ;; |
| 5821 | |
| 5822 | os2*) |
| 5823 | hardcode_libdir_flag_spec='-L$libdir' |
| 5824 | hardcode_minus_L=yes |
| 5825 | allow_undefined_flag=unsupported |
| 5826 | 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' |
| 5827 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 5828 | ;; |
| 5829 | |
| 5830 | osf3*) |
| 5831 | if test "$GCC" = yes; then |
| 5832 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5833 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5834 | else |
| 5835 | allow_undefined_flag=' -expect_unresolved \*' |
| 5836 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5837 | fi |
| 5838 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5839 | hardcode_libdir_separator=: |
| 5840 | ;; |
| 5841 | |
| 5842 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 5843 | if test "$GCC" = yes; then |
| 5844 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5845 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5846 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5847 | else |
| 5848 | allow_undefined_flag=' -expect_unresolved \*' |
| 5849 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5850 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 5851 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 5852 | |
| 5853 | #Both c and cxx compiler support -rpath directly |
| 5854 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5855 | fi |
| 5856 | hardcode_libdir_separator=: |
| 5857 | ;; |
| 5858 | |
| 5859 | sco3.2v5*) |
| 5860 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5861 | hardcode_shlibpath_var=no |
| 5862 | runpath_var=LD_RUN_PATH |
| 5863 | hardcode_runpath_var=yes |
| 5864 | export_dynamic_flag_spec='${wl}-Bexport' |
| 5865 | ;; |
| 5866 | |
| 5867 | solaris*) |
| 5868 | # gcc --version < 3.0 without binutils cannot create self contained |
| 5869 | # shared libraries reliably, requiring libgcc.a to resolve some of |
| 5870 | # the object symbols generated in some cases. Libraries that use |
| 5871 | # assert need libgcc.a to resolve __eprintf, for example. Linking |
| 5872 | # a copy of libgcc.a into every shared library to guarantee resolving |
| 5873 | # such symbols causes other problems: According to Tim Van Holder |
| 5874 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
| 5875 | # (to the application) exception stack for one thing. |
| 5876 | no_undefined_flag=' -z defs' |
| 5877 | if test "$GCC" = yes; then |
| 5878 | case `$CC --version 2>/dev/null` in |
| 5879 | [12].*) |
| 5880 | cat <<EOF 1>&2 |
| 5881 | |
| 5882 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
| 5883 | *** create self contained shared libraries on Solaris systems, without |
| 5884 | *** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
| 5885 | *** -no-undefined support, which will at least allow you to build shared |
| 5886 | *** libraries. However, you may find that when you link such libraries |
| 5887 | *** into an application without using GCC, you have to manually add |
| 5888 | *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
| 5889 | *** upgrade to a newer version of GCC. Another option is to rebuild your |
| 5890 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
| 5891 | |
| 5892 | EOF |
| 5893 | no_undefined_flag= |
| 5894 | ;; |
| 5895 | esac |
| 5896 | fi |
| 5897 | # $CC -shared without GNU ld will not create a library from C++ |
| 5898 | # object files and a static libstdc++, better avoid it by now |
| 5899 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5900 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5901 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5902 | hardcode_libdir_flag_spec='-R$libdir' |
| 5903 | hardcode_shlibpath_var=no |
| 5904 | case $host_os in |
| 5905 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 5906 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 5907 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 5908 | esac |
| 5909 | link_all_deplibs=yes |
| 5910 | ;; |
| 5911 | |
| 5912 | sunos4*) |
| 5913 | if test "x$host_vendor" = xsequent; then |
| 5914 | # Use $CC to link under sequent, because it throws in some extra .o |
| 5915 | # files that make .init and .fini sections work. |
| 5916 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5917 | else |
| 5918 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 5919 | fi |
| 5920 | hardcode_libdir_flag_spec='-L$libdir' |
| 5921 | hardcode_direct=yes |
| 5922 | hardcode_minus_L=yes |
| 5923 | hardcode_shlibpath_var=no |
| 5924 | ;; |
| 5925 | |
| 5926 | sysv4) |
| 5927 | case $host_vendor in |
| 5928 | sni) |
| 5929 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5930 | hardcode_direct=yes # is this really true??? |
| 5931 | ;; |
| 5932 | siemens) |
| 5933 | ## LD is ld it makes a PLAMLIB |
| 5934 | ## CC just makes a GrossModule. |
| 5935 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5936 | reload_cmds='$CC -r -o $output$reload_objs' |
| 5937 | hardcode_direct=no |
| 5938 | ;; |
| 5939 | motorola) |
| 5940 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5941 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 5942 | ;; |
| 5943 | esac |
| 5944 | runpath_var='LD_RUN_PATH' |
| 5945 | hardcode_shlibpath_var=no |
| 5946 | ;; |
| 5947 | |
| 5948 | sysv4.3*) |
| 5949 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5950 | hardcode_shlibpath_var=no |
| 5951 | export_dynamic_flag_spec='-Bexport' |
| 5952 | ;; |
| 5953 | |
| 5954 | sysv5*) |
| 5955 | no_undefined_flag=' -z text' |
| 5956 | # $CC -shared without GNU ld will not create a library from C++ |
| 5957 | # object files and a static libstdc++, better avoid it by now |
| 5958 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5959 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5960 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5961 | hardcode_libdir_flag_spec= |
| 5962 | hardcode_shlibpath_var=no |
| 5963 | runpath_var='LD_RUN_PATH' |
| 5964 | ;; |
| 5965 | |
| 5966 | uts4*) |
| 5967 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5968 | hardcode_libdir_flag_spec='-L$libdir' |
| 5969 | hardcode_shlibpath_var=no |
| 5970 | ;; |
| 5971 | |
| 5972 | dgux*) |
| 5973 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5974 | hardcode_libdir_flag_spec='-L$libdir' |
| 5975 | hardcode_shlibpath_var=no |
| 5976 | ;; |
| 5977 | |
| 5978 | sysv4*MP*) |
| 5979 | if test -d /usr/nec; then |
| 5980 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5981 | hardcode_shlibpath_var=no |
| 5982 | runpath_var=LD_RUN_PATH |
| 5983 | hardcode_runpath_var=yes |
| 5984 | ld_shlibs=yes |
| 5985 | fi |
| 5986 | ;; |
| 5987 | |
| 5988 | sysv4.2uw2*) |
| 5989 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5990 | hardcode_direct=yes |
| 5991 | hardcode_minus_L=no |
| 5992 | hardcode_shlibpath_var=no |
| 5993 | hardcode_runpath_var=yes |
| 5994 | runpath_var=LD_RUN_PATH |
| 5995 | ;; |
| 5996 | |
| 5997 | sysv5uw7* | unixware7*) |
| 5998 | no_undefined_flag='${wl}-z ${wl}text' |
| 5999 | if test "$GCC" = yes; then |
| 6000 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6001 | else |
| 6002 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6003 | fi |
| 6004 | runpath_var='LD_RUN_PATH' |
| 6005 | hardcode_shlibpath_var=no |
| 6006 | ;; |
| 6007 | |
| 6008 | *) |
| 6009 | ld_shlibs=no |
| 6010 | ;; |
| 6011 | esac |
| 6012 | fi |
| 6013 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 6014 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 6015 | test "$ld_shlibs" = no && can_build_shared=no |
| 6016 | |
| 6017 | # Check hardcoding attributes. |
| 6018 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 6019 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 6020 | hardcode_action= |
| 6021 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 6022 | test -n "$runpath_var"; then |
| 6023 | |
| 6024 | # We can hardcode non-existant directories. |
| 6025 | if test "$hardcode_direct" != no && |
| 6026 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 6027 | # have to relink, otherwise we might link with an installed library |
| 6028 | # when we should be linking with a yet-to-be-installed one |
| 6029 | ## test "$hardcode_shlibpath_var" != no && |
| 6030 | test "$hardcode_minus_L" != no; then |
| 6031 | # Linking always hardcodes the temporary library directory. |
| 6032 | hardcode_action=relink |
| 6033 | else |
| 6034 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 6035 | hardcode_action=immediate |
| 6036 | fi |
| 6037 | else |
| 6038 | # We cannot hardcode anything, or else we can only hardcode existing |
| 6039 | # directories. |
| 6040 | hardcode_action=unsupported |
| 6041 | fi |
| 6042 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 6043 | echo "${ECHO_T}$hardcode_action" >&6 |
| 6044 | |
| 6045 | striplib= |
| 6046 | old_striplib= |
| 6047 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 6048 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 6049 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 6050 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 6051 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 6052 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6053 | echo "${ECHO_T}yes" >&6 |
| 6054 | else |
| 6055 | echo "$as_me:$LINENO: result: no" >&5 |
| 6056 | echo "${ECHO_T}no" >&6 |
| 6057 | fi |
| 6058 | |
| 6059 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6060 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 6061 | |
| 6062 | # PORTME Fill in your ld.so characteristics |
| 6063 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 6064 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 6065 | library_names_spec= |
| 6066 | libname_spec='lib$name' |
| 6067 | soname_spec= |
| 6068 | postinstall_cmds= |
| 6069 | postuninstall_cmds= |
| 6070 | finish_cmds= |
| 6071 | finish_eval= |
| 6072 | shlibpath_var= |
| 6073 | shlibpath_overrides_runpath=unknown |
| 6074 | version_type=none |
| 6075 | dynamic_linker="$host_os ld.so" |
| 6076 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 6077 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 6078 | |
| 6079 | case $host_os in |
| 6080 | aix3*) |
| 6081 | version_type=linux |
| 6082 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 6083 | shlibpath_var=LIBPATH |
| 6084 | |
| 6085 | # AIX has no versioning support, so we append a major version to the name. |
| 6086 | soname_spec='${libname}${release}.so$major' |
| 6087 | ;; |
| 6088 | |
| 6089 | aix4* | aix5*) |
| 6090 | version_type=linux |
| 6091 | need_lib_prefix=no |
| 6092 | need_version=no |
| 6093 | hardcode_into_libs=yes |
| 6094 | if test "$host_cpu" = ia64; then |
| 6095 | # AIX 5 supports IA64 |
| 6096 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 6097 | shlibpath_var=LD_LIBRARY_PATH |
| 6098 | else |
| 6099 | # With GCC up to 2.95.x, collect2 would create an import file |
| 6100 | # for dependence libraries. The import file would start with |
| 6101 | # the line `#! .'. This would cause the generated library to |
| 6102 | # depend on `.', always an invalid library. This was fixed in |
| 6103 | # development snapshots of GCC prior to 3.0. |
| 6104 | case $host_os in |
| 6105 | aix4 | aix4.[01] | aix4.[01].*) |
| 6106 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 6107 | echo ' yes ' |
| 6108 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 6109 | : |
| 6110 | else |
| 6111 | can_build_shared=no |
| 6112 | fi |
| 6113 | ;; |
| 6114 | esac |
| 6115 | # AIX (on Power*) has no versioning support, so currently we can |
| 6116 | # not hardcode correct soname into executable. Probably we can |
| 6117 | # add versioning support to collect2, so additional links can |
| 6118 | # be useful in future. |
| 6119 | if test "$aix_use_runtimelinking" = yes; then |
| 6120 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 6121 | # instead of lib<name>.a to let people know that these are not |
| 6122 | # typical AIX shared libraries. |
| 6123 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6124 | else |
| 6125 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 6126 | # and later when we are not doing run time linking. |
| 6127 | library_names_spec='${libname}${release}.a $libname.a' |
| 6128 | soname_spec='${libname}${release}.so$major' |
| 6129 | fi |
| 6130 | shlibpath_var=LIBPATH |
| 6131 | fi |
| 6132 | hardcode_into_libs=yes |
| 6133 | ;; |
| 6134 | |
| 6135 | amigaos*) |
| 6136 | library_names_spec='$libname.ixlibrary $libname.a' |
| 6137 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 6138 | 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' |
| 6139 | ;; |
| 6140 | |
| 6141 | beos*) |
| 6142 | library_names_spec='${libname}.so' |
| 6143 | dynamic_linker="$host_os ld.so" |
| 6144 | shlibpath_var=LIBRARY_PATH |
| 6145 | ;; |
| 6146 | |
| 6147 | bsdi4*) |
| 6148 | version_type=linux |
| 6149 | need_version=no |
| 6150 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6151 | soname_spec='${libname}${release}.so$major' |
| 6152 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 6153 | shlibpath_var=LD_LIBRARY_PATH |
| 6154 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 6155 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 6156 | export_dynamic_flag_spec=-rdynamic |
| 6157 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 6158 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 6159 | # libtool to hard-code these into programs |
| 6160 | ;; |
| 6161 | |
| 6162 | cygwin* | mingw* | pw32*) |
| 6163 | version_type=windows |
| 6164 | need_version=no |
| 6165 | need_lib_prefix=no |
| 6166 | case $GCC,$host_os in |
| 6167 | yes,cygwin*) |
| 6168 | library_names_spec='$libname.dll.a' |
| 6169 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 6170 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 6171 | dldir=$destdir/`dirname \$dlpath`~ |
| 6172 | test -d \$dldir || mkdir -p \$dldir~ |
| 6173 | $install_prog .libs/$dlname \$dldir/$dlname' |
| 6174 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 6175 | dlpath=$dir/\$dldll~ |
| 6176 | $rm \$dlpath' |
| 6177 | ;; |
| 6178 | yes,mingw*) |
| 6179 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 6180 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` |
| 6181 | ;; |
| 6182 | yes,pw32*) |
| 6183 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 6184 | ;; |
| 6185 | *) |
| 6186 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 6187 | ;; |
| 6188 | esac |
| 6189 | dynamic_linker='Win32 ld.exe' |
| 6190 | # FIXME: first we should search . and the directory the executable is in |
| 6191 | shlibpath_var=PATH |
| 6192 | ;; |
| 6193 | |
| 6194 | darwin* | rhapsody*) |
| 6195 | dynamic_linker="$host_os dyld" |
| 6196 | version_type=darwin |
| 6197 | need_lib_prefix=no |
| 6198 | need_version=no |
| 6199 | # FIXME: Relying on posixy $() will cause problems for |
| 6200 | # cross-compilation, but unfortunately the echo tests do not |
| 6201 | # yet detect zsh echo's removal of \ escapes. |
| 6202 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
| 6203 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 6204 | shlibpath_overrides_runpath=yes |
| 6205 | shlibpath_var=DYLD_LIBRARY_PATH |
| 6206 | ;; |
| 6207 | |
| 6208 | freebsd1*) |
| 6209 | dynamic_linker=no |
| 6210 | ;; |
| 6211 | |
| 6212 | freebsd*-gnu*) |
| 6213 | version_type=linux |
| 6214 | need_lib_prefix=no |
| 6215 | need_version=no |
| 6216 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6217 | soname_spec='${libname}${release}.so$major' |
| 6218 | shlibpath_var=LD_LIBRARY_PATH |
| 6219 | shlibpath_overrides_runpath=no |
| 6220 | hardcode_into_libs=yes |
| 6221 | dynamic_linker='GNU/FreeBSD ld.so' |
| 6222 | ;; |
| 6223 | |
| 6224 | freebsd*) |
| 6225 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 6226 | version_type=freebsd-$objformat |
| 6227 | case $version_type in |
| 6228 | freebsd-elf*) |
| 6229 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 6230 | need_version=no |
| 6231 | need_lib_prefix=no |
| 6232 | ;; |
| 6233 | freebsd-*) |
| 6234 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 6235 | need_version=yes |
| 6236 | ;; |
| 6237 | esac |
| 6238 | shlibpath_var=LD_LIBRARY_PATH |
| 6239 | case $host_os in |
| 6240 | freebsd2*) |
| 6241 | shlibpath_overrides_runpath=yes |
| 6242 | ;; |
| 6243 | *) |
| 6244 | shlibpath_overrides_runpath=no |
| 6245 | hardcode_into_libs=yes |
| 6246 | ;; |
| 6247 | esac |
| 6248 | ;; |
| 6249 | |
| 6250 | gnu*) |
| 6251 | version_type=linux |
| 6252 | need_lib_prefix=no |
| 6253 | need_version=no |
| 6254 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 6255 | soname_spec='${libname}${release}.so$major' |
| 6256 | shlibpath_var=LD_LIBRARY_PATH |
| 6257 | hardcode_into_libs=yes |
| 6258 | ;; |
| 6259 | |
| 6260 | hpux9* | hpux10* | hpux11*) |
| 6261 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 6262 | # link against other versions. |
| 6263 | dynamic_linker="$host_os dld.sl" |
| 6264 | version_type=sunos |
| 6265 | need_lib_prefix=no |
| 6266 | need_version=no |
| 6267 | shlibpath_var=SHLIB_PATH |
| 6268 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 6269 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 6270 | soname_spec='${libname}${release}.sl$major' |
| 6271 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 6272 | postinstall_cmds='chmod 555 $lib' |
| 6273 | ;; |
| 6274 | |
| 6275 | irix5* | irix6* | nonstopux*) |
| 6276 | case $host_os in |
| 6277 | nonstopux*) version_type=nonstopux ;; |
| 6278 | *) version_type=irix ;; |
| 6279 | esac |
| 6280 | need_lib_prefix=no |
| 6281 | need_version=no |
| 6282 | soname_spec='${libname}${release}.so$major' |
| 6283 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 6284 | case $host_os in |
| 6285 | irix5* | nonstopux*) |
| 6286 | libsuff= shlibsuff= |
| 6287 | ;; |
| 6288 | *) |
| 6289 | case $LD in # libtool.m4 will add one of these switches to LD |
| 6290 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 6291 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 6292 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 6293 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 6294 | esac |
| 6295 | ;; |
| 6296 | esac |
| 6297 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 6298 | shlibpath_overrides_runpath=no |
| 6299 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 6300 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 6301 | ;; |
| 6302 | |
| 6303 | # No shared lib support for Linux oldld, aout, or coff. |
| 6304 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
| 6305 | dynamic_linker=no |
| 6306 | ;; |
| 6307 | |
| 6308 | # This must be Linux ELF. |
| 6309 | linux-gnu*) |
| 6310 | version_type=linux |
| 6311 | need_lib_prefix=no |
| 6312 | need_version=no |
| 6313 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6314 | soname_spec='${libname}${release}.so$major' |
| 6315 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 6316 | shlibpath_var=LD_LIBRARY_PATH |
| 6317 | shlibpath_overrides_runpath=no |
| 6318 | # This implies no fast_install, which is unacceptable. |
| 6319 | # Some rework will be needed to allow for fast_install |
| 6320 | # before this can be enabled. |
| 6321 | hardcode_into_libs=yes |
| 6322 | |
| 6323 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 6324 | # powerpc, because MkLinux only supported shared libraries with the |
| 6325 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 6326 | # most powerpc-linux boxes support dynamic linking these days and |
| 6327 | # people can always --disable-shared, the test was removed, and we |
| 6328 | # assume the GNU/Linux dynamic linker is in use. |
| 6329 | dynamic_linker='GNU/Linux ld.so' |
| 6330 | ;; |
| 6331 | |
| 6332 | netbsd*) |
| 6333 | version_type=sunos |
| 6334 | need_lib_prefix=no |
| 6335 | need_version=no |
| 6336 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6337 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6338 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6339 | dynamic_linker='NetBSD (a.out) ld.so' |
| 6340 | else |
| 6341 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 6342 | soname_spec='${libname}${release}.so$major' |
| 6343 | dynamic_linker='NetBSD ld.elf_so' |
| 6344 | fi |
| 6345 | shlibpath_var=LD_LIBRARY_PATH |
| 6346 | shlibpath_overrides_runpath=yes |
| 6347 | hardcode_into_libs=yes |
| 6348 | ;; |
| 6349 | |
| 6350 | newsos6) |
| 6351 | version_type=linux |
| 6352 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6353 | shlibpath_var=LD_LIBRARY_PATH |
| 6354 | shlibpath_overrides_runpath=yes |
| 6355 | ;; |
| 6356 | |
| 6357 | openbsd*) |
| 6358 | version_type=sunos |
| 6359 | need_lib_prefix=no |
| 6360 | need_version=no |
| 6361 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6362 | case "$host_os" in |
| 6363 | openbsd2.[89] | openbsd2.[89].*) |
| 6364 | shlibpath_overrides_runpath=no |
| 6365 | ;; |
| 6366 | *) |
| 6367 | shlibpath_overrides_runpath=yes |
| 6368 | ;; |
| 6369 | esac |
| 6370 | else |
| 6371 | shlibpath_overrides_runpath=yes |
| 6372 | fi |
| 6373 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6374 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6375 | shlibpath_var=LD_LIBRARY_PATH |
| 6376 | ;; |
| 6377 | |
| 6378 | os2*) |
| 6379 | libname_spec='$name' |
| 6380 | need_lib_prefix=no |
| 6381 | library_names_spec='$libname.dll $libname.a' |
| 6382 | dynamic_linker='OS/2 ld.exe' |
| 6383 | shlibpath_var=LIBPATH |
| 6384 | ;; |
| 6385 | |
| 6386 | osf3* | osf4* | osf5*) |
| 6387 | version_type=osf |
| 6388 | need_version=no |
| 6389 | need_lib_prefix=no |
| 6390 | soname_spec='${libname}${release}.so$major' |
| 6391 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6392 | shlibpath_var=LD_LIBRARY_PATH |
| 6393 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 6394 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 6395 | hardcode_into_libs=yes |
| 6396 | ;; |
| 6397 | |
| 6398 | sco3.2v5*) |
| 6399 | version_type=osf |
| 6400 | soname_spec='${libname}${release}.so$major' |
| 6401 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6402 | shlibpath_var=LD_LIBRARY_PATH |
| 6403 | ;; |
| 6404 | |
| 6405 | solaris*) |
| 6406 | version_type=linux |
| 6407 | need_lib_prefix=no |
| 6408 | need_version=no |
| 6409 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6410 | soname_spec='${libname}${release}.so$major' |
| 6411 | shlibpath_var=LD_LIBRARY_PATH |
| 6412 | shlibpath_overrides_runpath=yes |
| 6413 | hardcode_into_libs=yes |
| 6414 | # ldd complains unless libraries are executable |
| 6415 | postinstall_cmds='chmod +x $lib' |
| 6416 | ;; |
| 6417 | |
| 6418 | sunos4*) |
| 6419 | version_type=sunos |
| 6420 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6421 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 6422 | shlibpath_var=LD_LIBRARY_PATH |
| 6423 | shlibpath_overrides_runpath=yes |
| 6424 | if test "$with_gnu_ld" = yes; then |
| 6425 | need_lib_prefix=no |
| 6426 | fi |
| 6427 | need_version=yes |
| 6428 | ;; |
| 6429 | |
| 6430 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 6431 | version_type=linux |
| 6432 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6433 | soname_spec='${libname}${release}.so$major' |
| 6434 | shlibpath_var=LD_LIBRARY_PATH |
| 6435 | case $host_vendor in |
| 6436 | sni) |
| 6437 | shlibpath_overrides_runpath=no |
| 6438 | need_lib_prefix=no |
| 6439 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 6440 | runpath_var=LD_RUN_PATH |
| 6441 | ;; |
| 6442 | siemens) |
| 6443 | need_lib_prefix=no |
| 6444 | ;; |
| 6445 | motorola) |
| 6446 | need_lib_prefix=no |
| 6447 | need_version=no |
| 6448 | shlibpath_overrides_runpath=no |
| 6449 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 6450 | ;; |
| 6451 | esac |
| 6452 | ;; |
| 6453 | |
| 6454 | uts4*) |
| 6455 | version_type=linux |
| 6456 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6457 | soname_spec='${libname}${release}.so$major' |
| 6458 | shlibpath_var=LD_LIBRARY_PATH |
| 6459 | ;; |
| 6460 | |
| 6461 | dgux*) |
| 6462 | version_type=linux |
| 6463 | need_lib_prefix=no |
| 6464 | need_version=no |
| 6465 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6466 | soname_spec='${libname}${release}.so$major' |
| 6467 | shlibpath_var=LD_LIBRARY_PATH |
| 6468 | ;; |
| 6469 | |
| 6470 | sysv4*MP*) |
| 6471 | if test -d /usr/nec ;then |
| 6472 | version_type=linux |
| 6473 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 6474 | soname_spec='$libname.so.$major' |
| 6475 | shlibpath_var=LD_LIBRARY_PATH |
| 6476 | fi |
| 6477 | ;; |
| 6478 | |
| 6479 | *) |
| 6480 | dynamic_linker=no |
| 6481 | ;; |
| 6482 | esac |
| 6483 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 6484 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 6485 | test "$dynamic_linker" = no && can_build_shared=no |
| 6486 | |
| 6487 | # Report the final consequences. |
| 6488 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 6489 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 6490 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 6491 | echo "${ECHO_T}$can_build_shared" >&6 |
| 6492 | |
| 6493 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 6494 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 6495 | test "$can_build_shared" = "no" && enable_shared=no |
| 6496 | |
| 6497 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 6498 | # are all built from PIC. |
| 6499 | case "$host_os" in |
| 6500 | aix3*) |
| 6501 | test "$enable_shared" = yes && enable_static=no |
| 6502 | if test -n "$RANLIB"; then |
| 6503 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 6504 | postinstall_cmds='$RANLIB $lib' |
| 6505 | fi |
| 6506 | ;; |
| 6507 | |
| 6508 | aix4*) |
| 6509 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 6510 | test "$enable_shared" = yes && enable_static=no |
| 6511 | fi |
| 6512 | ;; |
| 6513 | esac |
| 6514 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 6515 | echo "${ECHO_T}$enable_shared" >&6 |
| 6516 | |
| 6517 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 6518 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 6519 | # Make sure either enable_shared or enable_static is yes. |
| 6520 | test "$enable_shared" = yes || enable_static=yes |
| 6521 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 6522 | echo "${ECHO_T}$enable_static" >&6 |
| 6523 | |
| 6524 | if test "$hardcode_action" = relink; then |
| 6525 | # Fast installation is not supported |
| 6526 | enable_fast_install=no |
| 6527 | elif test "$shlibpath_overrides_runpath" = yes || |
| 6528 | test "$enable_shared" = no; then |
| 6529 | # Fast installation is not necessary |
| 6530 | enable_fast_install=needless |
| 6531 | fi |
| 6532 | |
| 6533 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 6534 | if test "$GCC" = yes; then |
| 6535 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 6536 | fi |
| 6537 | |
| 6538 | if test "x$enable_dlopen" != xyes; then |
| 6539 | enable_dlopen=unknown |
| 6540 | enable_dlopen_self=unknown |
| 6541 | enable_dlopen_self_static=unknown |
| 6542 | else |
| 6543 | lt_cv_dlopen=no |
| 6544 | lt_cv_dlopen_libs= |
| 6545 | |
| 6546 | case $host_os in |
| 6547 | beos*) |
| 6548 | lt_cv_dlopen="load_add_on" |
| 6549 | lt_cv_dlopen_libs= |
| 6550 | lt_cv_dlopen_self=yes |
| 6551 | ;; |
| 6552 | |
| 6553 | cygwin* | mingw* | pw32*) |
| 6554 | lt_cv_dlopen="LoadLibrary" |
| 6555 | lt_cv_dlopen_libs= |
| 6556 | ;; |
| 6557 | |
| 6558 | *) |
| 6559 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 6560 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 6561 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 6562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6563 | else |
| 6564 | cat >conftest.$ac_ext <<_ACEOF |
| 6565 | #line $LINENO "configure" |
| 6566 | /* confdefs.h. */ |
| 6567 | _ACEOF |
| 6568 | cat confdefs.h >>conftest.$ac_ext |
| 6569 | cat >>conftest.$ac_ext <<_ACEOF |
| 6570 | /* end confdefs.h. */ |
| 6571 | /* System header to define __stub macros and hopefully few prototypes, |
| 6572 | which can conflict with char shl_load (); below. |
| 6573 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6574 | <limits.h> exists even on freestanding compilers. */ |
| 6575 | #ifdef __STDC__ |
| 6576 | # include <limits.h> |
| 6577 | #else |
| 6578 | # include <assert.h> |
| 6579 | #endif |
| 6580 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6581 | #ifdef __cplusplus |
| 6582 | extern "C" |
| 6583 | { |
| 6584 | #endif |
| 6585 | /* We use char because int might match the return type of a gcc2 |
| 6586 | builtin and then its argument prototype would still apply. */ |
| 6587 | char shl_load (); |
| 6588 | /* The GNU C library defines this for functions which it implements |
| 6589 | to always fail with ENOSYS. Some functions are actually named |
| 6590 | something starting with __ and the normal name is an alias. */ |
| 6591 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 6592 | choke me |
| 6593 | #else |
| 6594 | char (*f) () = shl_load; |
| 6595 | #endif |
| 6596 | #ifdef __cplusplus |
| 6597 | } |
| 6598 | #endif |
| 6599 | |
| 6600 | int |
| 6601 | main () |
| 6602 | { |
| 6603 | return f != shl_load; |
| 6604 | ; |
| 6605 | return 0; |
| 6606 | } |
| 6607 | _ACEOF |
| 6608 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6610 | (eval $ac_link) 2>&5 |
| 6611 | ac_status=$? |
| 6612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6613 | (exit $ac_status); } && |
| 6614 | { ac_try='test -s conftest$ac_exeext' |
| 6615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6616 | (eval $ac_try) 2>&5 |
| 6617 | ac_status=$? |
| 6618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6619 | (exit $ac_status); }; }; then |
| 6620 | ac_cv_func_shl_load=yes |
| 6621 | else |
| 6622 | echo "$as_me: failed program was:" >&5 |
| 6623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6624 | |
| 6625 | ac_cv_func_shl_load=no |
| 6626 | fi |
| 6627 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6628 | fi |
| 6629 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 6630 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 6631 | if test $ac_cv_func_shl_load = yes; then |
| 6632 | lt_cv_dlopen="shl_load" |
| 6633 | else |
| 6634 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 6635 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 6636 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 6637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6638 | else |
| 6639 | ac_check_lib_save_LIBS=$LIBS |
| 6640 | LIBS="-ldld $LIBS" |
| 6641 | cat >conftest.$ac_ext <<_ACEOF |
| 6642 | #line $LINENO "configure" |
| 6643 | /* confdefs.h. */ |
| 6644 | _ACEOF |
| 6645 | cat confdefs.h >>conftest.$ac_ext |
| 6646 | cat >>conftest.$ac_ext <<_ACEOF |
| 6647 | /* end confdefs.h. */ |
| 6648 | |
| 6649 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6650 | #ifdef __cplusplus |
| 6651 | extern "C" |
| 6652 | #endif |
| 6653 | /* We use char because int might match the return type of a gcc2 |
| 6654 | builtin and then its argument prototype would still apply. */ |
| 6655 | char shl_load (); |
| 6656 | int |
| 6657 | main () |
| 6658 | { |
| 6659 | shl_load (); |
| 6660 | ; |
| 6661 | return 0; |
| 6662 | } |
| 6663 | _ACEOF |
| 6664 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6666 | (eval $ac_link) 2>&5 |
| 6667 | ac_status=$? |
| 6668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6669 | (exit $ac_status); } && |
| 6670 | { ac_try='test -s conftest$ac_exeext' |
| 6671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6672 | (eval $ac_try) 2>&5 |
| 6673 | ac_status=$? |
| 6674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6675 | (exit $ac_status); }; }; then |
| 6676 | ac_cv_lib_dld_shl_load=yes |
| 6677 | else |
| 6678 | echo "$as_me: failed program was:" >&5 |
| 6679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6680 | |
| 6681 | ac_cv_lib_dld_shl_load=no |
| 6682 | fi |
| 6683 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6684 | LIBS=$ac_check_lib_save_LIBS |
| 6685 | fi |
| 6686 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 6687 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 6688 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 6689 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 6690 | else |
| 6691 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 6692 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 6693 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 6694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6695 | else |
| 6696 | cat >conftest.$ac_ext <<_ACEOF |
| 6697 | #line $LINENO "configure" |
| 6698 | /* confdefs.h. */ |
| 6699 | _ACEOF |
| 6700 | cat confdefs.h >>conftest.$ac_ext |
| 6701 | cat >>conftest.$ac_ext <<_ACEOF |
| 6702 | /* end confdefs.h. */ |
| 6703 | /* System header to define __stub macros and hopefully few prototypes, |
| 6704 | which can conflict with char dlopen (); below. |
| 6705 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6706 | <limits.h> exists even on freestanding compilers. */ |
| 6707 | #ifdef __STDC__ |
| 6708 | # include <limits.h> |
| 6709 | #else |
| 6710 | # include <assert.h> |
| 6711 | #endif |
| 6712 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6713 | #ifdef __cplusplus |
| 6714 | extern "C" |
| 6715 | { |
| 6716 | #endif |
| 6717 | /* We use char because int might match the return type of a gcc2 |
| 6718 | builtin and then its argument prototype would still apply. */ |
| 6719 | char dlopen (); |
| 6720 | /* The GNU C library defines this for functions which it implements |
| 6721 | to always fail with ENOSYS. Some functions are actually named |
| 6722 | something starting with __ and the normal name is an alias. */ |
| 6723 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 6724 | choke me |
| 6725 | #else |
| 6726 | char (*f) () = dlopen; |
| 6727 | #endif |
| 6728 | #ifdef __cplusplus |
| 6729 | } |
| 6730 | #endif |
| 6731 | |
| 6732 | int |
| 6733 | main () |
| 6734 | { |
| 6735 | return f != dlopen; |
| 6736 | ; |
| 6737 | return 0; |
| 6738 | } |
| 6739 | _ACEOF |
| 6740 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6742 | (eval $ac_link) 2>&5 |
| 6743 | ac_status=$? |
| 6744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6745 | (exit $ac_status); } && |
| 6746 | { ac_try='test -s conftest$ac_exeext' |
| 6747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6748 | (eval $ac_try) 2>&5 |
| 6749 | ac_status=$? |
| 6750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6751 | (exit $ac_status); }; }; then |
| 6752 | ac_cv_func_dlopen=yes |
| 6753 | else |
| 6754 | echo "$as_me: failed program was:" >&5 |
| 6755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6756 | |
| 6757 | ac_cv_func_dlopen=no |
| 6758 | fi |
| 6759 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6760 | fi |
| 6761 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 6762 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 6763 | if test $ac_cv_func_dlopen = yes; then |
| 6764 | lt_cv_dlopen="dlopen" |
| 6765 | else |
| 6766 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 6767 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 6768 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 6769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6770 | else |
| 6771 | ac_check_lib_save_LIBS=$LIBS |
| 6772 | LIBS="-ldl $LIBS" |
| 6773 | cat >conftest.$ac_ext <<_ACEOF |
| 6774 | #line $LINENO "configure" |
| 6775 | /* confdefs.h. */ |
| 6776 | _ACEOF |
| 6777 | cat confdefs.h >>conftest.$ac_ext |
| 6778 | cat >>conftest.$ac_ext <<_ACEOF |
| 6779 | /* end confdefs.h. */ |
| 6780 | |
| 6781 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6782 | #ifdef __cplusplus |
| 6783 | extern "C" |
| 6784 | #endif |
| 6785 | /* We use char because int might match the return type of a gcc2 |
| 6786 | builtin and then its argument prototype would still apply. */ |
| 6787 | char dlopen (); |
| 6788 | int |
| 6789 | main () |
| 6790 | { |
| 6791 | dlopen (); |
| 6792 | ; |
| 6793 | return 0; |
| 6794 | } |
| 6795 | _ACEOF |
| 6796 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6798 | (eval $ac_link) 2>&5 |
| 6799 | ac_status=$? |
| 6800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6801 | (exit $ac_status); } && |
| 6802 | { ac_try='test -s conftest$ac_exeext' |
| 6803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6804 | (eval $ac_try) 2>&5 |
| 6805 | ac_status=$? |
| 6806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6807 | (exit $ac_status); }; }; then |
| 6808 | ac_cv_lib_dl_dlopen=yes |
| 6809 | else |
| 6810 | echo "$as_me: failed program was:" >&5 |
| 6811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6812 | |
| 6813 | ac_cv_lib_dl_dlopen=no |
| 6814 | fi |
| 6815 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6816 | LIBS=$ac_check_lib_save_LIBS |
| 6817 | fi |
| 6818 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 6819 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 6820 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 6821 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 6822 | else |
| 6823 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 6824 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 6825 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 6826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6827 | else |
| 6828 | ac_check_lib_save_LIBS=$LIBS |
| 6829 | LIBS="-lsvld $LIBS" |
| 6830 | cat >conftest.$ac_ext <<_ACEOF |
| 6831 | #line $LINENO "configure" |
| 6832 | /* confdefs.h. */ |
| 6833 | _ACEOF |
| 6834 | cat confdefs.h >>conftest.$ac_ext |
| 6835 | cat >>conftest.$ac_ext <<_ACEOF |
| 6836 | /* end confdefs.h. */ |
| 6837 | |
| 6838 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6839 | #ifdef __cplusplus |
| 6840 | extern "C" |
| 6841 | #endif |
| 6842 | /* We use char because int might match the return type of a gcc2 |
| 6843 | builtin and then its argument prototype would still apply. */ |
| 6844 | char dlopen (); |
| 6845 | int |
| 6846 | main () |
| 6847 | { |
| 6848 | dlopen (); |
| 6849 | ; |
| 6850 | return 0; |
| 6851 | } |
| 6852 | _ACEOF |
| 6853 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6855 | (eval $ac_link) 2>&5 |
| 6856 | ac_status=$? |
| 6857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6858 | (exit $ac_status); } && |
| 6859 | { ac_try='test -s conftest$ac_exeext' |
| 6860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6861 | (eval $ac_try) 2>&5 |
| 6862 | ac_status=$? |
| 6863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6864 | (exit $ac_status); }; }; then |
| 6865 | ac_cv_lib_svld_dlopen=yes |
| 6866 | else |
| 6867 | echo "$as_me: failed program was:" >&5 |
| 6868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6869 | |
| 6870 | ac_cv_lib_svld_dlopen=no |
| 6871 | fi |
| 6872 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6873 | LIBS=$ac_check_lib_save_LIBS |
| 6874 | fi |
| 6875 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 6876 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 6877 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 6878 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 6879 | else |
| 6880 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 6881 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 6882 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 6883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6884 | else |
| 6885 | ac_check_lib_save_LIBS=$LIBS |
| 6886 | LIBS="-ldld $LIBS" |
| 6887 | cat >conftest.$ac_ext <<_ACEOF |
| 6888 | #line $LINENO "configure" |
| 6889 | /* confdefs.h. */ |
| 6890 | _ACEOF |
| 6891 | cat confdefs.h >>conftest.$ac_ext |
| 6892 | cat >>conftest.$ac_ext <<_ACEOF |
| 6893 | /* end confdefs.h. */ |
| 6894 | |
| 6895 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6896 | #ifdef __cplusplus |
| 6897 | extern "C" |
| 6898 | #endif |
| 6899 | /* We use char because int might match the return type of a gcc2 |
| 6900 | builtin and then its argument prototype would still apply. */ |
| 6901 | char dld_link (); |
| 6902 | int |
| 6903 | main () |
| 6904 | { |
| 6905 | dld_link (); |
| 6906 | ; |
| 6907 | return 0; |
| 6908 | } |
| 6909 | _ACEOF |
| 6910 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6912 | (eval $ac_link) 2>&5 |
| 6913 | ac_status=$? |
| 6914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6915 | (exit $ac_status); } && |
| 6916 | { ac_try='test -s conftest$ac_exeext' |
| 6917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6918 | (eval $ac_try) 2>&5 |
| 6919 | ac_status=$? |
| 6920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6921 | (exit $ac_status); }; }; then |
| 6922 | ac_cv_lib_dld_dld_link=yes |
| 6923 | else |
| 6924 | echo "$as_me: failed program was:" >&5 |
| 6925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6926 | |
| 6927 | ac_cv_lib_dld_dld_link=no |
| 6928 | fi |
| 6929 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6930 | LIBS=$ac_check_lib_save_LIBS |
| 6931 | fi |
| 6932 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 6933 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 6934 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 6935 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 6936 | fi |
| 6937 | |
| 6938 | |
| 6939 | fi |
| 6940 | |
| 6941 | |
| 6942 | fi |
| 6943 | |
| 6944 | |
| 6945 | fi |
| 6946 | |
| 6947 | |
| 6948 | fi |
| 6949 | |
| 6950 | |
| 6951 | fi |
| 6952 | |
| 6953 | ;; |
| 6954 | esac |
| 6955 | |
| 6956 | if test "x$lt_cv_dlopen" != xno; then |
| 6957 | enable_dlopen=yes |
| 6958 | else |
| 6959 | enable_dlopen=no |
| 6960 | fi |
| 6961 | |
| 6962 | case $lt_cv_dlopen in |
| 6963 | dlopen) |
| 6964 | save_CPPFLAGS="$CPPFLAGS" |
| 6965 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 6966 | |
| 6967 | save_LDFLAGS="$LDFLAGS" |
| 6968 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 6969 | |
| 6970 | save_LIBS="$LIBS" |
| 6971 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 6972 | |
| 6973 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 6974 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 6975 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 6976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6977 | else |
| 6978 | if test "$cross_compiling" = yes; then : |
| 6979 | lt_cv_dlopen_self=cross |
| 6980 | else |
| 6981 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 6982 | lt_status=$lt_dlunknown |
| 6983 | cat > conftest.$ac_ext <<EOF |
| 6984 | #line 6984 "configure" |
| 6985 | #include "confdefs.h" |
| 6986 | |
| 6987 | #if HAVE_DLFCN_H |
| 6988 | #include <dlfcn.h> |
| 6989 | #endif |
| 6990 | |
| 6991 | #include <stdio.h> |
| 6992 | |
| 6993 | #ifdef RTLD_GLOBAL |
| 6994 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 6995 | #else |
| 6996 | # ifdef DL_GLOBAL |
| 6997 | # define LT_DLGLOBAL DL_GLOBAL |
| 6998 | # else |
| 6999 | # define LT_DLGLOBAL 0 |
| 7000 | # endif |
| 7001 | #endif |
| 7002 | |
| 7003 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 7004 | find out it does not work in some platform. */ |
| 7005 | #ifndef LT_DLLAZY_OR_NOW |
| 7006 | # ifdef RTLD_LAZY |
| 7007 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 7008 | # else |
| 7009 | # ifdef DL_LAZY |
| 7010 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 7011 | # else |
| 7012 | # ifdef RTLD_NOW |
| 7013 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 7014 | # else |
| 7015 | # ifdef DL_NOW |
| 7016 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 7017 | # else |
| 7018 | # define LT_DLLAZY_OR_NOW 0 |
| 7019 | # endif |
| 7020 | # endif |
| 7021 | # endif |
| 7022 | # endif |
| 7023 | #endif |
| 7024 | |
| 7025 | #ifdef __cplusplus |
| 7026 | extern "C" void exit (int); |
| 7027 | #endif |
| 7028 | |
| 7029 | void fnord() { int i=42;} |
| 7030 | int main () |
| 7031 | { |
| 7032 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 7033 | int status = $lt_dlunknown; |
| 7034 | |
| 7035 | if (self) |
| 7036 | { |
| 7037 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 7038 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 7039 | /* dlclose (self); */ |
| 7040 | } |
| 7041 | |
| 7042 | exit (status); |
| 7043 | } |
| 7044 | EOF |
| 7045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7046 | (eval $ac_link) 2>&5 |
| 7047 | ac_status=$? |
| 7048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7049 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 7050 | (./conftest; exit; ) 2>/dev/null |
| 7051 | lt_status=$? |
| 7052 | case x$lt_status in |
| 7053 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 7054 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 7055 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 7056 | esac |
| 7057 | else : |
| 7058 | # compilation failed |
| 7059 | lt_cv_dlopen_self=no |
| 7060 | fi |
| 7061 | fi |
| 7062 | rm -fr conftest* |
| 7063 | |
| 7064 | |
| 7065 | fi |
| 7066 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 7067 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 7068 | |
| 7069 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 7070 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 7071 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 7072 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 7073 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 7074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7075 | else |
| 7076 | if test "$cross_compiling" = yes; then : |
| 7077 | lt_cv_dlopen_self_static=cross |
| 7078 | else |
| 7079 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 7080 | lt_status=$lt_dlunknown |
| 7081 | cat > conftest.$ac_ext <<EOF |
| 7082 | #line 7082 "configure" |
| 7083 | #include "confdefs.h" |
| 7084 | |
| 7085 | #if HAVE_DLFCN_H |
| 7086 | #include <dlfcn.h> |
| 7087 | #endif |
| 7088 | |
| 7089 | #include <stdio.h> |
| 7090 | |
| 7091 | #ifdef RTLD_GLOBAL |
| 7092 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 7093 | #else |
| 7094 | # ifdef DL_GLOBAL |
| 7095 | # define LT_DLGLOBAL DL_GLOBAL |
| 7096 | # else |
| 7097 | # define LT_DLGLOBAL 0 |
| 7098 | # endif |
| 7099 | #endif |
| 7100 | |
| 7101 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 7102 | find out it does not work in some platform. */ |
| 7103 | #ifndef LT_DLLAZY_OR_NOW |
| 7104 | # ifdef RTLD_LAZY |
| 7105 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 7106 | # else |
| 7107 | # ifdef DL_LAZY |
| 7108 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 7109 | # else |
| 7110 | # ifdef RTLD_NOW |
| 7111 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 7112 | # else |
| 7113 | # ifdef DL_NOW |
| 7114 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 7115 | # else |
| 7116 | # define LT_DLLAZY_OR_NOW 0 |
| 7117 | # endif |
| 7118 | # endif |
| 7119 | # endif |
| 7120 | # endif |
| 7121 | #endif |
| 7122 | |
| 7123 | #ifdef __cplusplus |
| 7124 | extern "C" void exit (int); |
| 7125 | #endif |
| 7126 | |
| 7127 | void fnord() { int i=42;} |
| 7128 | int main () |
| 7129 | { |
| 7130 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 7131 | int status = $lt_dlunknown; |
| 7132 | |
| 7133 | if (self) |
| 7134 | { |
| 7135 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 7136 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 7137 | /* dlclose (self); */ |
| 7138 | } |
| 7139 | |
| 7140 | exit (status); |
| 7141 | } |
| 7142 | EOF |
| 7143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7144 | (eval $ac_link) 2>&5 |
| 7145 | ac_status=$? |
| 7146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7147 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 7148 | (./conftest; exit; ) 2>/dev/null |
| 7149 | lt_status=$? |
| 7150 | case x$lt_status in |
| 7151 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 7152 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 7153 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 7154 | esac |
| 7155 | else : |
| 7156 | # compilation failed |
| 7157 | lt_cv_dlopen_self_static=no |
| 7158 | fi |
| 7159 | fi |
| 7160 | rm -fr conftest* |
| 7161 | |
| 7162 | |
| 7163 | fi |
| 7164 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 7165 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 7166 | fi |
| 7167 | |
| 7168 | CPPFLAGS="$save_CPPFLAGS" |
| 7169 | LDFLAGS="$save_LDFLAGS" |
| 7170 | LIBS="$save_LIBS" |
| 7171 | ;; |
| 7172 | esac |
| 7173 | |
| 7174 | case $lt_cv_dlopen_self in |
| 7175 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 7176 | *) enable_dlopen_self=unknown ;; |
| 7177 | esac |
| 7178 | |
| 7179 | case $lt_cv_dlopen_self_static in |
| 7180 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 7181 | *) enable_dlopen_self_static=unknown ;; |
| 7182 | esac |
| 7183 | fi |
| 7184 | |
| 7185 | |
| 7186 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7187 | case $archive_cmds in |
| 7188 | *'~'*) |
| 7189 | # FIXME: we may have to deal with multi-command sequences. |
| 7190 | ;; |
| 7191 | '$CC '*) |
| 7192 | # Test whether the compiler implicitly links with -lc since on some |
| 7193 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7194 | # to ld, don't add -lc before -lgcc. |
| 7195 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7196 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 7197 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
| 7198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7199 | else |
| 7200 | $rm conftest* |
| 7201 | echo 'static int dummy;' > conftest.$ac_ext |
| 7202 | |
| 7203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7204 | (eval $ac_compile) 2>&5 |
| 7205 | ac_status=$? |
| 7206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7207 | (exit $ac_status); }; then |
| 7208 | soname=conftest |
| 7209 | lib=conftest |
| 7210 | libobjs=conftest.$ac_objext |
| 7211 | deplibs= |
| 7212 | wl=$lt_cv_prog_cc_wl |
| 7213 | compiler_flags=-v |
| 7214 | linker_flags=-v |
| 7215 | verstring= |
| 7216 | output_objdir=. |
| 7217 | libname=conftest |
| 7218 | save_allow_undefined_flag=$allow_undefined_flag |
| 7219 | allow_undefined_flag= |
| 7220 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7221 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 7222 | ac_status=$? |
| 7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7224 | (exit $ac_status); } |
| 7225 | then |
| 7226 | lt_cv_archive_cmds_need_lc=no |
| 7227 | else |
| 7228 | lt_cv_archive_cmds_need_lc=yes |
| 7229 | fi |
| 7230 | allow_undefined_flag=$save_allow_undefined_flag |
| 7231 | else |
| 7232 | cat conftest.err 1>&5 |
| 7233 | fi |
| 7234 | fi |
| 7235 | |
| 7236 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 7237 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
| 7238 | ;; |
| 7239 | esac |
| 7240 | fi |
| 7241 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
| 7242 | |
| 7243 | # The second clause should only fire when bootstrapping the |
| 7244 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 7245 | # with your package, and you will get complaints that there are |
| 7246 | # no rules to generate ltmain.sh. |
| 7247 | if test -f "$ltmain"; then |
| 7248 | : |
| 7249 | else |
| 7250 | # If there is no Makefile yet, we rely on a make rule to execute |
| 7251 | # `config.status --recheck' to rerun these tests and create the |
| 7252 | # libtool script then. |
| 7253 | test -f Makefile && make "$ltmain" |
| 7254 | fi |
| 7255 | |
| 7256 | if test -f "$ltmain"; then |
| 7257 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
| 7258 | $rm -f "${ofile}T" |
| 7259 | |
| 7260 | echo creating $ofile |
| 7261 | |
| 7262 | # Now quote all the things that may contain metacharacters while being |
| 7263 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 7264 | # variables and quote the copies for generation of the libtool script. |
| 7265 | for var in echo old_CC old_CFLAGS SED \ |
| 7266 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
| 7267 | reload_flag reload_cmds wl \ |
| 7268 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
| 7269 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
| 7270 | library_names_spec soname_spec \ |
| 7271 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
| 7272 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
| 7273 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
| 7274 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
| 7275 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
| 7276 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
| 7277 | global_symbol_to_c_name_address \ |
| 7278 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
| 7279 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 7280 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
| 7281 | |
| 7282 | case $var in |
| 7283 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
| 7284 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 7285 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
| 7286 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
| 7287 | postinstall_cmds | postuninstall_cmds | \ |
| 7288 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 7289 | # Double-quote double-evaled strings. |
| 7290 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 7291 | ;; |
| 7292 | *) |
| 7293 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 7294 | ;; |
| 7295 | esac |
| 7296 | done |
| 7297 | |
| 7298 | cat <<__EOF__ > "${ofile}T" |
| 7299 | #! $SHELL |
| 7300 | |
| 7301 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 7302 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 7303 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 7304 | # |
| 7305 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
| 7306 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 7307 | # |
| 7308 | # This program is free software; you can redistribute it and/or modify |
| 7309 | # it under the terms of the GNU General Public License as published by |
| 7310 | # the Free Software Foundation; either version 2 of the License, or |
| 7311 | # (at your option) any later version. |
| 7312 | # |
| 7313 | # This program is distributed in the hope that it will be useful, but |
| 7314 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7315 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 7316 | # General Public License for more details. |
| 7317 | # |
| 7318 | # You should have received a copy of the GNU General Public License |
| 7319 | # along with this program; if not, write to the Free Software |
| 7320 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7321 | # |
| 7322 | # As a special exception to the GNU General Public License, if you |
| 7323 | # distribute this file as part of a program that contains a |
| 7324 | # configuration script generated by Autoconf, you may include it under |
| 7325 | # the same distribution terms that you use for the rest of that program. |
| 7326 | |
| 7327 | # A sed that does not truncate output. |
| 7328 | SED=$lt_SED |
| 7329 | |
| 7330 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 7331 | Xsed="${SED} -e s/^X//" |
| 7332 | |
| 7333 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 7334 | # if CDPATH is set. |
| 7335 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 7336 | |
| 7337 | # ### BEGIN LIBTOOL CONFIG |
| 7338 | |
| 7339 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7340 | |
| 7341 | # Shell to use when invoking shell scripts. |
| 7342 | SHELL=$lt_SHELL |
| 7343 | |
| 7344 | # Whether or not to build shared libraries. |
| 7345 | build_libtool_libs=$enable_shared |
| 7346 | |
| 7347 | # Whether or not to build static libraries. |
| 7348 | build_old_libs=$enable_static |
| 7349 | |
| 7350 | # Whether or not to add -lc for building shared libraries. |
| 7351 | build_libtool_need_lc=$need_lc |
| 7352 | |
| 7353 | # Whether or not to optimize for fast installation. |
| 7354 | fast_install=$enable_fast_install |
| 7355 | |
| 7356 | # The host system. |
| 7357 | host_alias=$host_alias |
| 7358 | host=$host |
| 7359 | |
| 7360 | # An echo program that does not interpret backslashes. |
| 7361 | echo=$lt_echo |
| 7362 | |
| 7363 | # The archiver. |
| 7364 | AR=$lt_AR |
| 7365 | AR_FLAGS=$lt_AR_FLAGS |
| 7366 | |
| 7367 | # The default C compiler. |
| 7368 | CC=$lt_CC |
| 7369 | |
| 7370 | # Is the compiler the GNU C compiler? |
| 7371 | with_gcc=$GCC |
| 7372 | |
| 7373 | # The linker used to build libraries. |
| 7374 | LD=$lt_LD |
| 7375 | |
| 7376 | # Whether we need hard or soft links. |
| 7377 | LN_S=$lt_LN_S |
| 7378 | |
| 7379 | # A BSD-compatible nm program. |
| 7380 | NM=$lt_NM |
| 7381 | |
| 7382 | # A symbol stripping program |
| 7383 | STRIP=$STRIP |
| 7384 | |
| 7385 | # Used to examine libraries when file_magic_cmd begins "file" |
| 7386 | MAGIC_CMD=$MAGIC_CMD |
| 7387 | |
| 7388 | # Used on cygwin: DLL creation program. |
| 7389 | DLLTOOL="$DLLTOOL" |
| 7390 | |
| 7391 | # Used on cygwin: object dumper. |
| 7392 | OBJDUMP="$OBJDUMP" |
| 7393 | |
| 7394 | # Used on cygwin: assembler. |
| 7395 | AS="$AS" |
| 7396 | |
| 7397 | # The name of the directory that contains temporary libtool files. |
| 7398 | objdir=$objdir |
| 7399 | |
| 7400 | # How to create reloadable object files. |
| 7401 | reload_flag=$lt_reload_flag |
| 7402 | reload_cmds=$lt_reload_cmds |
| 7403 | |
| 7404 | # How to pass a linker flag through the compiler. |
| 7405 | wl=$lt_wl |
| 7406 | |
| 7407 | # Object file suffix (normally "o"). |
| 7408 | objext="$ac_objext" |
| 7409 | |
| 7410 | # Old archive suffix (normally "a"). |
| 7411 | libext="$libext" |
| 7412 | |
| 7413 | # Executable file suffix (normally ""). |
| 7414 | exeext="$exeext" |
| 7415 | |
| 7416 | # Additional compiler flags for building library objects. |
| 7417 | pic_flag=$lt_pic_flag |
| 7418 | pic_mode=$pic_mode |
| 7419 | |
| 7420 | # Does compiler simultaneously support -c and -o options? |
| 7421 | compiler_c_o=$lt_compiler_c_o |
| 7422 | |
| 7423 | # Can we write directly to a .lo ? |
| 7424 | compiler_o_lo=$lt_compiler_o_lo |
| 7425 | |
| 7426 | # Must we lock files when doing compilation ? |
| 7427 | need_locks=$lt_need_locks |
| 7428 | |
| 7429 | # Do we need the lib prefix for modules? |
| 7430 | need_lib_prefix=$need_lib_prefix |
| 7431 | |
| 7432 | # Do we need a version for libraries? |
| 7433 | need_version=$need_version |
| 7434 | |
| 7435 | # Whether dlopen is supported. |
| 7436 | dlopen_support=$enable_dlopen |
| 7437 | |
| 7438 | # Whether dlopen of programs is supported. |
| 7439 | dlopen_self=$enable_dlopen_self |
| 7440 | |
| 7441 | # Whether dlopen of statically linked programs is supported. |
| 7442 | dlopen_self_static=$enable_dlopen_self_static |
| 7443 | |
| 7444 | # Compiler flag to prevent dynamic linking. |
| 7445 | link_static_flag=$lt_link_static_flag |
| 7446 | |
| 7447 | # Compiler flag to turn off builtin functions. |
| 7448 | no_builtin_flag=$lt_no_builtin_flag |
| 7449 | |
| 7450 | # Compiler flag to allow reflexive dlopens. |
| 7451 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 7452 | |
| 7453 | # Compiler flag to generate shared objects directly from archives. |
| 7454 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 7455 | |
| 7456 | # Compiler flag to generate thread-safe objects. |
| 7457 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 7458 | |
| 7459 | # Library versioning type. |
| 7460 | version_type=$version_type |
| 7461 | |
| 7462 | # Format of library name prefix. |
| 7463 | libname_spec=$lt_libname_spec |
| 7464 | |
| 7465 | # List of archive names. First name is the real one, the rest are links. |
| 7466 | # The last name is the one that the linker finds with -lNAME. |
| 7467 | library_names_spec=$lt_library_names_spec |
| 7468 | |
| 7469 | # The coded name of the library, if different from the real name. |
| 7470 | soname_spec=$lt_soname_spec |
| 7471 | |
| 7472 | # Commands used to build and install an old-style archive. |
| 7473 | RANLIB=$lt_RANLIB |
| 7474 | old_archive_cmds=$lt_old_archive_cmds |
| 7475 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 7476 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 7477 | |
| 7478 | # Create an old-style archive from a shared archive. |
| 7479 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 7480 | |
| 7481 | # Create a temporary old-style archive to link instead of a shared archive. |
| 7482 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 7483 | |
| 7484 | # Commands used to build and install a shared archive. |
| 7485 | archive_cmds=$lt_archive_cmds |
| 7486 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 7487 | postinstall_cmds=$lt_postinstall_cmds |
| 7488 | postuninstall_cmds=$lt_postuninstall_cmds |
| 7489 | |
| 7490 | # Commands to strip libraries. |
| 7491 | old_striplib=$lt_old_striplib |
| 7492 | striplib=$lt_striplib |
| 7493 | |
| 7494 | # Method to check whether dependent libraries are shared objects. |
| 7495 | deplibs_check_method=$lt_deplibs_check_method |
| 7496 | |
| 7497 | # Command to use when deplibs_check_method == file_magic. |
| 7498 | file_magic_cmd=$lt_file_magic_cmd |
| 7499 | |
| 7500 | # Flag that allows shared libraries with undefined symbols to be built. |
| 7501 | allow_undefined_flag=$lt_allow_undefined_flag |
| 7502 | |
| 7503 | # Flag that forces no undefined symbols. |
| 7504 | no_undefined_flag=$lt_no_undefined_flag |
| 7505 | |
| 7506 | # Commands used to finish a libtool library installation in a directory. |
| 7507 | finish_cmds=$lt_finish_cmds |
| 7508 | |
| 7509 | # Same as above, but a single script fragment to be evaled but not shown. |
| 7510 | finish_eval=$lt_finish_eval |
| 7511 | |
| 7512 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 7513 | global_symbol_pipe=$lt_global_symbol_pipe |
| 7514 | |
| 7515 | # Transform the output of nm in a proper C declaration |
| 7516 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
| 7517 | |
| 7518 | # Transform the output of nm in a C name address pair |
| 7519 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
| 7520 | |
| 7521 | # This is the shared library runtime path variable. |
| 7522 | runpath_var=$runpath_var |
| 7523 | |
| 7524 | # This is the shared library path variable. |
| 7525 | shlibpath_var=$shlibpath_var |
| 7526 | |
| 7527 | # Is shlibpath searched before the hard-coded library search path? |
| 7528 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 7529 | |
| 7530 | # How to hardcode a shared library path into an executable. |
| 7531 | hardcode_action=$hardcode_action |
| 7532 | |
| 7533 | # Whether we should hardcode library paths into libraries. |
| 7534 | hardcode_into_libs=$hardcode_into_libs |
| 7535 | |
| 7536 | # Flag to hardcode \$libdir into a binary during linking. |
| 7537 | # This must work even if \$libdir does not exist. |
| 7538 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 7539 | |
| 7540 | # Whether we need a single -rpath flag with a separated argument. |
| 7541 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 7542 | |
| 7543 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 7544 | # resulting binary. |
| 7545 | hardcode_direct=$hardcode_direct |
| 7546 | |
| 7547 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 7548 | # resulting binary. |
| 7549 | hardcode_minus_L=$hardcode_minus_L |
| 7550 | |
| 7551 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 7552 | # the resulting binary. |
| 7553 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 7554 | |
| 7555 | # Variables whose values should be saved in libtool wrapper scripts and |
| 7556 | # restored at relink time. |
| 7557 | variables_saved_for_relink="$variables_saved_for_relink" |
| 7558 | |
| 7559 | # Whether libtool must link a program against all its dependency libraries. |
| 7560 | link_all_deplibs=$link_all_deplibs |
| 7561 | |
| 7562 | # Compile-time system search path for libraries |
| 7563 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 7564 | |
| 7565 | # Run-time system search path for libraries |
| 7566 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 7567 | |
| 7568 | # Fix the shell variable \$srcfile for the compiler. |
| 7569 | fix_srcfile_path="$fix_srcfile_path" |
| 7570 | |
| 7571 | # Set to yes if exported symbols are required. |
| 7572 | always_export_symbols=$always_export_symbols |
| 7573 | |
| 7574 | # The commands to list exported symbols. |
| 7575 | export_symbols_cmds=$lt_export_symbols_cmds |
| 7576 | |
| 7577 | # The commands to extract the exported symbol list from a shared archive. |
| 7578 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 7579 | |
| 7580 | # Symbols that should not be listed in the preloaded symbols. |
| 7581 | exclude_expsyms=$lt_exclude_expsyms |
| 7582 | |
| 7583 | # Symbols that must always be exported. |
| 7584 | include_expsyms=$lt_include_expsyms |
| 7585 | |
| 7586 | # ### END LIBTOOL CONFIG |
| 7587 | |
| 7588 | __EOF__ |
| 7589 | |
| 7590 | case $host_os in |
| 7591 | aix3*) |
| 7592 | cat <<\EOF >> "${ofile}T" |
| 7593 | |
| 7594 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7595 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7596 | # vanish in a puff of smoke. |
| 7597 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7598 | COLLECT_NAMES= |
| 7599 | export COLLECT_NAMES |
| 7600 | fi |
| 7601 | EOF |
| 7602 | ;; |
| 7603 | esac |
| 7604 | |
| 7605 | case $host_os in |
| 7606 | cygwin* | mingw* | pw32* | os2*) |
| 7607 | cat <<'EOF' >> "${ofile}T" |
| 7608 | # This is a source program that is used to create dlls on Windows |
| 7609 | # Don't remove nor modify the starting and closing comments |
| 7610 | # /* ltdll.c starts here */ |
| 7611 | # #define WIN32_LEAN_AND_MEAN |
| 7612 | # #include <windows.h> |
| 7613 | # #undef WIN32_LEAN_AND_MEAN |
| 7614 | # #include <stdio.h> |
| 7615 | # |
| 7616 | # #ifndef __CYGWIN__ |
| 7617 | # # ifdef __CYGWIN32__ |
| 7618 | # # define __CYGWIN__ __CYGWIN32__ |
| 7619 | # # endif |
| 7620 | # #endif |
| 7621 | # |
| 7622 | # #ifdef __cplusplus |
| 7623 | # extern "C" { |
| 7624 | # #endif |
| 7625 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 7626 | # #ifdef __cplusplus |
| 7627 | # } |
| 7628 | # #endif |
| 7629 | # |
| 7630 | # #ifdef __CYGWIN__ |
| 7631 | # #include <cygwin/cygwin_dll.h> |
| 7632 | # DECLARE_CYGWIN_DLL( DllMain ); |
| 7633 | # #endif |
| 7634 | # HINSTANCE __hDllInstance_base; |
| 7635 | # |
| 7636 | # BOOL APIENTRY |
| 7637 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 7638 | # { |
| 7639 | # __hDllInstance_base = hInst; |
| 7640 | # return TRUE; |
| 7641 | # } |
| 7642 | # /* ltdll.c ends here */ |
| 7643 | # This is a source program that is used to create import libraries |
| 7644 | # on Windows for dlls which lack them. Don't remove nor modify the |
| 7645 | # starting and closing comments |
| 7646 | # /* impgen.c starts here */ |
| 7647 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
| 7648 | # |
| 7649 | # This file is part of GNU libtool. |
| 7650 | # |
| 7651 | # This program is free software; you can redistribute it and/or modify |
| 7652 | # it under the terms of the GNU General Public License as published by |
| 7653 | # the Free Software Foundation; either version 2 of the License, or |
| 7654 | # (at your option) any later version. |
| 7655 | # |
| 7656 | # This program is distributed in the hope that it will be useful, |
| 7657 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7658 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 7659 | # GNU General Public License for more details. |
| 7660 | # |
| 7661 | # You should have received a copy of the GNU General Public License |
| 7662 | # along with this program; if not, write to the Free Software |
| 7663 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7664 | # */ |
| 7665 | # |
| 7666 | # #include <stdio.h> /* for printf() */ |
| 7667 | # #include <unistd.h> /* for open(), lseek(), read() */ |
| 7668 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
| 7669 | # #include <string.h> /* for strdup() */ |
| 7670 | # |
| 7671 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
| 7672 | # #ifndef O_BINARY |
| 7673 | # #define O_BINARY 0 |
| 7674 | # #endif |
| 7675 | # |
| 7676 | # static unsigned int |
| 7677 | # pe_get16 (fd, offset) |
| 7678 | # int fd; |
| 7679 | # int offset; |
| 7680 | # { |
| 7681 | # unsigned char b[2]; |
| 7682 | # lseek (fd, offset, SEEK_SET); |
| 7683 | # read (fd, b, 2); |
| 7684 | # return b[0] + (b[1]<<8); |
| 7685 | # } |
| 7686 | # |
| 7687 | # static unsigned int |
| 7688 | # pe_get32 (fd, offset) |
| 7689 | # int fd; |
| 7690 | # int offset; |
| 7691 | # { |
| 7692 | # unsigned char b[4]; |
| 7693 | # lseek (fd, offset, SEEK_SET); |
| 7694 | # read (fd, b, 4); |
| 7695 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7696 | # } |
| 7697 | # |
| 7698 | # static unsigned int |
| 7699 | # pe_as32 (ptr) |
| 7700 | # void *ptr; |
| 7701 | # { |
| 7702 | # unsigned char *b = ptr; |
| 7703 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7704 | # } |
| 7705 | # |
| 7706 | # int |
| 7707 | # main (argc, argv) |
| 7708 | # int argc; |
| 7709 | # char *argv[]; |
| 7710 | # { |
| 7711 | # int dll; |
| 7712 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
| 7713 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
| 7714 | # unsigned long name_rvas, nexp; |
| 7715 | # unsigned char *expdata, *erva; |
| 7716 | # char *filename, *dll_name; |
| 7717 | # |
| 7718 | # filename = argv[1]; |
| 7719 | # |
| 7720 | # dll = open(filename, O_RDONLY|O_BINARY); |
| 7721 | # if (dll < 1) |
| 7722 | # return 1; |
| 7723 | # |
| 7724 | # dll_name = filename; |
| 7725 | # |
| 7726 | # for (i=0; filename[i]; i++) |
| 7727 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
| 7728 | # dll_name = filename + i +1; |
| 7729 | # |
| 7730 | # pe_header_offset = pe_get32 (dll, 0x3c); |
| 7731 | # opthdr_ofs = pe_header_offset + 4 + 20; |
| 7732 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
| 7733 | # |
| 7734 | # if (num_entries < 1) /* no exports */ |
| 7735 | # return 1; |
| 7736 | # |
| 7737 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
| 7738 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
| 7739 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
| 7740 | # secptr = (pe_header_offset + 4 + 20 + |
| 7741 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
| 7742 | # |
| 7743 | # expptr = 0; |
| 7744 | # for (i = 0; i < nsections; i++) |
| 7745 | # { |
| 7746 | # char sname[8]; |
| 7747 | # unsigned long secptr1 = secptr + 40 * i; |
| 7748 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
| 7749 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
| 7750 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
| 7751 | # lseek(dll, secptr1, SEEK_SET); |
| 7752 | # read(dll, sname, 8); |
| 7753 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
| 7754 | # { |
| 7755 | # expptr = fptr + (export_rva - vaddr); |
| 7756 | # if (export_rva + export_size > vaddr + vsize) |
| 7757 | # export_size = vsize - (export_rva - vaddr); |
| 7758 | # break; |
| 7759 | # } |
| 7760 | # } |
| 7761 | # |
| 7762 | # expdata = (unsigned char*)malloc(export_size); |
| 7763 | # lseek (dll, expptr, SEEK_SET); |
| 7764 | # read (dll, expdata, export_size); |
| 7765 | # erva = expdata - export_rva; |
| 7766 | # |
| 7767 | # nexp = pe_as32 (expdata+24); |
| 7768 | # name_rvas = pe_as32 (expdata+32); |
| 7769 | # |
| 7770 | # printf ("EXPORTS\n"); |
| 7771 | # for (i = 0; i<nexp; i++) |
| 7772 | # { |
| 7773 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
| 7774 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
| 7775 | # } |
| 7776 | # |
| 7777 | # return 0; |
| 7778 | # } |
| 7779 | # /* impgen.c ends here */ |
| 7780 | |
| 7781 | EOF |
| 7782 | ;; |
| 7783 | esac |
| 7784 | |
| 7785 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 7786 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 7787 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 7788 | # is reportedly fixed, but why not run on old versions too? |
| 7789 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
| 7790 | |
| 7791 | mv -f "${ofile}T" "$ofile" || \ |
| 7792 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
| 7793 | chmod +x "$ofile" |
| 7794 | fi |
| 7795 | |
| 7796 | |
| 7797 | |
| 7798 | |
| 7799 | |
| 7800 | # This can be used to rebuild libtool when needed |
| 7801 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 7802 | |
| 7803 | # Always use our own libtool. |
| 7804 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7805 | |
| 7806 | # Prevent multiple expansion |
| 7807 | |
| 7808 | |
| 7809 | |
| 7810 | # Checks for header files. |
| 7811 | echo "$as_me:$LINENO: checking for X" >&5 |
| 7812 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 7813 | |
| 7814 | |
| 7815 | # Check whether --with-x or --without-x was given. |
| 7816 | if test "${with_x+set}" = set; then |
| 7817 | withval="$with_x" |
| 7818 | |
| 7819 | fi; |
| 7820 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 7821 | if test "x$with_x" = xno; then |
| 7822 | # The user explicitly disabled X. |
| 7823 | have_x=disabled |
| 7824 | else |
| 7825 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 7826 | # Both variables are already set. |
| 7827 | have_x=yes |
| 7828 | else |
| 7829 | if test "${ac_cv_have_x+set}" = set; then |
| 7830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7831 | else |
| 7832 | # One or both of the vars are not set, and there is no cached value. |
| 7833 | ac_x_includes=no ac_x_libraries=no |
| 7834 | rm -fr conftest.dir |
| 7835 | if mkdir conftest.dir; then |
| 7836 | cd conftest.dir |
| 7837 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 7838 | cat >Imakefile <<'_ACEOF' |
| 7839 | acfindx: |
| 7840 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 7841 | _ACEOF |
| 7842 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 7843 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 7844 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 7845 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 7846 | for ac_extension in a so sl; do |
| 7847 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 7848 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 7849 | ac_im_usrlibdir=$ac_im_libdir; break |
| 7850 | fi |
| 7851 | done |
| 7852 | # Screen out bogus values from the imake configuration. They are |
| 7853 | # bogus both because they are the default anyway, and because |
| 7854 | # using them would break gcc on systems where it needs fixed includes. |
| 7855 | case $ac_im_incroot in |
| 7856 | /usr/include) ;; |
| 7857 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 7858 | esac |
| 7859 | case $ac_im_usrlibdir in |
| 7860 | /usr/lib | /lib) ;; |
| 7861 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 7862 | esac |
| 7863 | fi |
| 7864 | cd .. |
| 7865 | rm -fr conftest.dir |
| 7866 | fi |
| 7867 | |
| 7868 | # Standard set of common directories for X headers. |
| 7869 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 7870 | ac_x_header_dirs=' |
| 7871 | /usr/X11/include |
| 7872 | /usr/X11R6/include |
| 7873 | /usr/X11R5/include |
| 7874 | /usr/X11R4/include |
| 7875 | |
| 7876 | /usr/include/X11 |
| 7877 | /usr/include/X11R6 |
| 7878 | /usr/include/X11R5 |
| 7879 | /usr/include/X11R4 |
| 7880 | |
| 7881 | /usr/local/X11/include |
| 7882 | /usr/local/X11R6/include |
| 7883 | /usr/local/X11R5/include |
| 7884 | /usr/local/X11R4/include |
| 7885 | |
| 7886 | /usr/local/include/X11 |
| 7887 | /usr/local/include/X11R6 |
| 7888 | /usr/local/include/X11R5 |
| 7889 | /usr/local/include/X11R4 |
| 7890 | |
| 7891 | /usr/X386/include |
| 7892 | /usr/x386/include |
| 7893 | /usr/XFree86/include/X11 |
| 7894 | |
| 7895 | /usr/include |
| 7896 | /usr/local/include |
| 7897 | /usr/unsupported/include |
| 7898 | /usr/athena/include |
| 7899 | /usr/local/x11r5/include |
| 7900 | /usr/lpp/Xamples/include |
| 7901 | |
| 7902 | /usr/openwin/include |
| 7903 | /usr/openwin/share/include' |
| 7904 | |
| 7905 | if test "$ac_x_includes" = no; then |
| 7906 | # Guess where to find include files, by looking for Intrinsic.h. |
| 7907 | # First, try using that file with no special directory specified. |
| 7908 | cat >conftest.$ac_ext <<_ACEOF |
| 7909 | #line $LINENO "configure" |
| 7910 | /* confdefs.h. */ |
| 7911 | _ACEOF |
| 7912 | cat confdefs.h >>conftest.$ac_ext |
| 7913 | cat >>conftest.$ac_ext <<_ACEOF |
| 7914 | /* end confdefs.h. */ |
| 7915 | #include <X11/Intrinsic.h> |
| 7916 | _ACEOF |
| 7917 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7918 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7919 | ac_status=$? |
| 7920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7921 | rm -f conftest.er1 |
| 7922 | cat conftest.err >&5 |
| 7923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7924 | (exit $ac_status); } >/dev/null; then |
| 7925 | if test -s conftest.err; then |
| 7926 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7927 | else |
| 7928 | ac_cpp_err= |
| 7929 | fi |
| 7930 | else |
| 7931 | ac_cpp_err=yes |
| 7932 | fi |
| 7933 | if test -z "$ac_cpp_err"; then |
| 7934 | # We can compile using X headers with no special include directory. |
| 7935 | ac_x_includes= |
| 7936 | else |
| 7937 | echo "$as_me: failed program was:" >&5 |
| 7938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7939 | |
| 7940 | for ac_dir in $ac_x_header_dirs; do |
| 7941 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 7942 | ac_x_includes=$ac_dir |
| 7943 | break |
| 7944 | fi |
| 7945 | done |
| 7946 | fi |
| 7947 | rm -f conftest.err conftest.$ac_ext |
| 7948 | fi # $ac_x_includes = no |
| 7949 | |
| 7950 | if test "$ac_x_libraries" = no; then |
| 7951 | # Check for the libraries. |
| 7952 | # See if we find them without any special options. |
| 7953 | # Don't add to $LIBS permanently. |
| 7954 | ac_save_LIBS=$LIBS |
| 7955 | LIBS="-lXt $LIBS" |
| 7956 | cat >conftest.$ac_ext <<_ACEOF |
| 7957 | #line $LINENO "configure" |
| 7958 | /* confdefs.h. */ |
| 7959 | _ACEOF |
| 7960 | cat confdefs.h >>conftest.$ac_ext |
| 7961 | cat >>conftest.$ac_ext <<_ACEOF |
| 7962 | /* end confdefs.h. */ |
| 7963 | #include <X11/Intrinsic.h> |
| 7964 | int |
| 7965 | main () |
| 7966 | { |
| 7967 | XtMalloc (0) |
| 7968 | ; |
| 7969 | return 0; |
| 7970 | } |
| 7971 | _ACEOF |
| 7972 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7974 | (eval $ac_link) 2>&5 |
| 7975 | ac_status=$? |
| 7976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7977 | (exit $ac_status); } && |
| 7978 | { ac_try='test -s conftest$ac_exeext' |
| 7979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7980 | (eval $ac_try) 2>&5 |
| 7981 | ac_status=$? |
| 7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7983 | (exit $ac_status); }; }; then |
| 7984 | LIBS=$ac_save_LIBS |
| 7985 | # We can link X programs with no special library path. |
| 7986 | ac_x_libraries= |
| 7987 | else |
| 7988 | echo "$as_me: failed program was:" >&5 |
| 7989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7990 | |
| 7991 | LIBS=$ac_save_LIBS |
| 7992 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 7993 | do |
| 7994 | # Don't even attempt the hair of trying to link an X program! |
| 7995 | for ac_extension in a so sl; do |
| 7996 | if test -r $ac_dir/libXt.$ac_extension; then |
| 7997 | ac_x_libraries=$ac_dir |
| 7998 | break 2 |
| 7999 | fi |
| 8000 | done |
| 8001 | done |
| 8002 | fi |
| 8003 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8004 | fi # $ac_x_libraries = no |
| 8005 | |
| 8006 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
| 8007 | # Didn't find X anywhere. Cache the known absence of X. |
| 8008 | ac_cv_have_x="have_x=no" |
| 8009 | else |
| 8010 | # Record where we found X for the cache. |
| 8011 | ac_cv_have_x="have_x=yes \ |
| 8012 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 8013 | fi |
| 8014 | fi |
| 8015 | |
| 8016 | fi |
| 8017 | eval "$ac_cv_have_x" |
| 8018 | fi # $with_x != no |
| 8019 | |
| 8020 | if test "$have_x" != yes; then |
| 8021 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 8022 | echo "${ECHO_T}$have_x" >&6 |
| 8023 | no_x=yes |
| 8024 | else |
| 8025 | # If each of the values was on the command line, it overrides each guess. |
| 8026 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 8027 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 8028 | # Update the cache value to reflect the command line values. |
| 8029 | ac_cv_have_x="have_x=yes \ |
| 8030 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 8031 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 8032 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
| 8033 | fi |
| 8034 | |
| 8035 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 8036 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 8037 | if test "${ac_cv_header_stdc+set}" = set; then |
| 8038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8039 | else |
| 8040 | cat >conftest.$ac_ext <<_ACEOF |
| 8041 | #line $LINENO "configure" |
| 8042 | /* confdefs.h. */ |
| 8043 | _ACEOF |
| 8044 | cat confdefs.h >>conftest.$ac_ext |
| 8045 | cat >>conftest.$ac_ext <<_ACEOF |
| 8046 | /* end confdefs.h. */ |
| 8047 | #include <stdlib.h> |
| 8048 | #include <stdarg.h> |
| 8049 | #include <string.h> |
| 8050 | #include <float.h> |
| 8051 | |
| 8052 | int |
| 8053 | main () |
| 8054 | { |
| 8055 | |
| 8056 | ; |
| 8057 | return 0; |
| 8058 | } |
| 8059 | _ACEOF |
| 8060 | rm -f conftest.$ac_objext |
| 8061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8062 | (eval $ac_compile) 2>&5 |
| 8063 | ac_status=$? |
| 8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8065 | (exit $ac_status); } && |
| 8066 | { ac_try='test -s conftest.$ac_objext' |
| 8067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8068 | (eval $ac_try) 2>&5 |
| 8069 | ac_status=$? |
| 8070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8071 | (exit $ac_status); }; }; then |
| 8072 | ac_cv_header_stdc=yes |
| 8073 | else |
| 8074 | echo "$as_me: failed program was:" >&5 |
| 8075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8076 | |
| 8077 | ac_cv_header_stdc=no |
| 8078 | fi |
| 8079 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8080 | |
| 8081 | if test $ac_cv_header_stdc = yes; then |
| 8082 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 8083 | cat >conftest.$ac_ext <<_ACEOF |
| 8084 | #line $LINENO "configure" |
| 8085 | /* confdefs.h. */ |
| 8086 | _ACEOF |
| 8087 | cat confdefs.h >>conftest.$ac_ext |
| 8088 | cat >>conftest.$ac_ext <<_ACEOF |
| 8089 | /* end confdefs.h. */ |
| 8090 | #include <string.h> |
| 8091 | |
| 8092 | _ACEOF |
| 8093 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8094 | $EGREP "memchr" >/dev/null 2>&1; then |
| 8095 | : |
| 8096 | else |
| 8097 | ac_cv_header_stdc=no |
| 8098 | fi |
| 8099 | rm -f conftest* |
| 8100 | |
| 8101 | fi |
| 8102 | |
| 8103 | if test $ac_cv_header_stdc = yes; then |
| 8104 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 8105 | cat >conftest.$ac_ext <<_ACEOF |
| 8106 | #line $LINENO "configure" |
| 8107 | /* confdefs.h. */ |
| 8108 | _ACEOF |
| 8109 | cat confdefs.h >>conftest.$ac_ext |
| 8110 | cat >>conftest.$ac_ext <<_ACEOF |
| 8111 | /* end confdefs.h. */ |
| 8112 | #include <stdlib.h> |
| 8113 | |
| 8114 | _ACEOF |
| 8115 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8116 | $EGREP "free" >/dev/null 2>&1; then |
| 8117 | : |
| 8118 | else |
| 8119 | ac_cv_header_stdc=no |
| 8120 | fi |
| 8121 | rm -f conftest* |
| 8122 | |
| 8123 | fi |
| 8124 | |
| 8125 | if test $ac_cv_header_stdc = yes; then |
| 8126 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 8127 | if test "$cross_compiling" = yes; then |
| 8128 | : |
| 8129 | else |
| 8130 | cat >conftest.$ac_ext <<_ACEOF |
| 8131 | #line $LINENO "configure" |
| 8132 | /* confdefs.h. */ |
| 8133 | _ACEOF |
| 8134 | cat confdefs.h >>conftest.$ac_ext |
| 8135 | cat >>conftest.$ac_ext <<_ACEOF |
| 8136 | /* end confdefs.h. */ |
| 8137 | #include <ctype.h> |
| 8138 | #if ((' ' & 0x0FF) == 0x020) |
| 8139 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 8140 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 8141 | #else |
| 8142 | # define ISLOWER(c) \ |
| 8143 | (('a' <= (c) && (c) <= 'i') \ |
| 8144 | || ('j' <= (c) && (c) <= 'r') \ |
| 8145 | || ('s' <= (c) && (c) <= 'z')) |
| 8146 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 8147 | #endif |
| 8148 | |
| 8149 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 8150 | int |
| 8151 | main () |
| 8152 | { |
| 8153 | int i; |
| 8154 | for (i = 0; i < 256; i++) |
| 8155 | if (XOR (islower (i), ISLOWER (i)) |
| 8156 | || toupper (i) != TOUPPER (i)) |
| 8157 | exit(2); |
| 8158 | exit (0); |
| 8159 | } |
| 8160 | _ACEOF |
| 8161 | rm -f conftest$ac_exeext |
| 8162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8163 | (eval $ac_link) 2>&5 |
| 8164 | ac_status=$? |
| 8165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8166 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8168 | (eval $ac_try) 2>&5 |
| 8169 | ac_status=$? |
| 8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8171 | (exit $ac_status); }; }; then |
| 8172 | : |
| 8173 | else |
| 8174 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8175 | echo "$as_me: failed program was:" >&5 |
| 8176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8177 | |
| 8178 | ( exit $ac_status ) |
| 8179 | ac_cv_header_stdc=no |
| 8180 | fi |
| 8181 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8182 | fi |
| 8183 | fi |
| 8184 | fi |
| 8185 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 8186 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 8187 | if test $ac_cv_header_stdc = yes; then |
| 8188 | |
| 8189 | cat >>confdefs.h <<\_ACEOF |
| 8190 | #define STDC_HEADERS 1 |
| 8191 | _ACEOF |
| 8192 | |
| 8193 | fi |
| 8194 | |
| 8195 | |
| 8196 | |
| 8197 | |
| 8198 | |
| 8199 | |
| 8200 | |
| 8201 | for ac_header in fcntl.h malloc.h stdlib.h string.h strings.h unistd.h |
| 8202 | do |
| 8203 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8205 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8207 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8209 | fi |
| 8210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8212 | else |
| 8213 | # Is the header compilable? |
| 8214 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8215 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8216 | cat >conftest.$ac_ext <<_ACEOF |
| 8217 | #line $LINENO "configure" |
| 8218 | /* confdefs.h. */ |
| 8219 | _ACEOF |
| 8220 | cat confdefs.h >>conftest.$ac_ext |
| 8221 | cat >>conftest.$ac_ext <<_ACEOF |
| 8222 | /* end confdefs.h. */ |
| 8223 | $ac_includes_default |
| 8224 | #include <$ac_header> |
| 8225 | _ACEOF |
| 8226 | rm -f conftest.$ac_objext |
| 8227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8228 | (eval $ac_compile) 2>&5 |
| 8229 | ac_status=$? |
| 8230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8231 | (exit $ac_status); } && |
| 8232 | { ac_try='test -s conftest.$ac_objext' |
| 8233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8234 | (eval $ac_try) 2>&5 |
| 8235 | ac_status=$? |
| 8236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8237 | (exit $ac_status); }; }; then |
| 8238 | ac_header_compiler=yes |
| 8239 | else |
| 8240 | echo "$as_me: failed program was:" >&5 |
| 8241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8242 | |
| 8243 | ac_header_compiler=no |
| 8244 | fi |
| 8245 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8246 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8247 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8248 | |
| 8249 | # Is the header present? |
| 8250 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8251 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8252 | cat >conftest.$ac_ext <<_ACEOF |
| 8253 | #line $LINENO "configure" |
| 8254 | /* confdefs.h. */ |
| 8255 | _ACEOF |
| 8256 | cat confdefs.h >>conftest.$ac_ext |
| 8257 | cat >>conftest.$ac_ext <<_ACEOF |
| 8258 | /* end confdefs.h. */ |
| 8259 | #include <$ac_header> |
| 8260 | _ACEOF |
| 8261 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8262 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8263 | ac_status=$? |
| 8264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8265 | rm -f conftest.er1 |
| 8266 | cat conftest.err >&5 |
| 8267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8268 | (exit $ac_status); } >/dev/null; then |
| 8269 | if test -s conftest.err; then |
| 8270 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8271 | else |
| 8272 | ac_cpp_err= |
| 8273 | fi |
| 8274 | else |
| 8275 | ac_cpp_err=yes |
| 8276 | fi |
| 8277 | if test -z "$ac_cpp_err"; then |
| 8278 | ac_header_preproc=yes |
| 8279 | else |
| 8280 | echo "$as_me: failed program was:" >&5 |
| 8281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8282 | |
| 8283 | ac_header_preproc=no |
| 8284 | fi |
| 8285 | rm -f conftest.err conftest.$ac_ext |
| 8286 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8287 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8288 | |
| 8289 | # So? What about this header? |
| 8290 | case $ac_header_compiler:$ac_header_preproc in |
| 8291 | yes:no ) |
| 8292 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8293 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8294 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8295 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8296 | ( |
| 8297 | cat <<\_ASBOX |
| 8298 | ## ------------------------------------ ## |
| 8299 | ## Report this to bug-autoconf@gnu.org. ## |
| 8300 | ## ------------------------------------ ## |
| 8301 | _ASBOX |
| 8302 | ) | |
| 8303 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8304 | ;; |
| 8305 | no:yes ) |
| 8306 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8307 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8308 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8309 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8310 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8311 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8312 | ( |
| 8313 | cat <<\_ASBOX |
| 8314 | ## ------------------------------------ ## |
| 8315 | ## Report this to bug-autoconf@gnu.org. ## |
| 8316 | ## ------------------------------------ ## |
| 8317 | _ASBOX |
| 8318 | ) | |
| 8319 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8320 | ;; |
| 8321 | esac |
| 8322 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8323 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8324 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8326 | else |
| 8327 | eval "$as_ac_Header=$ac_header_preproc" |
| 8328 | fi |
| 8329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8330 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8331 | |
| 8332 | fi |
| 8333 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8334 | cat >>confdefs.h <<_ACEOF |
| 8335 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8336 | _ACEOF |
| 8337 | |
| 8338 | fi |
| 8339 | |
| 8340 | done |
| 8341 | |
| 8342 | |
| 8343 | # Checks for typedefs, structures, and compiler characteristics. |
| 8344 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8345 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 8346 | if test "${ac_cv_c_const+set}" = set; then |
| 8347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8348 | else |
| 8349 | cat >conftest.$ac_ext <<_ACEOF |
| 8350 | #line $LINENO "configure" |
| 8351 | /* confdefs.h. */ |
| 8352 | _ACEOF |
| 8353 | cat confdefs.h >>conftest.$ac_ext |
| 8354 | cat >>conftest.$ac_ext <<_ACEOF |
| 8355 | /* end confdefs.h. */ |
| 8356 | |
| 8357 | int |
| 8358 | main () |
| 8359 | { |
| 8360 | /* FIXME: Include the comments suggested by Paul. */ |
| 8361 | #ifndef __cplusplus |
| 8362 | /* Ultrix mips cc rejects this. */ |
| 8363 | typedef int charset[2]; |
| 8364 | const charset x; |
| 8365 | /* SunOS 4.1.1 cc rejects this. */ |
| 8366 | char const *const *ccp; |
| 8367 | char **p; |
| 8368 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8369 | struct point {int x, y;}; |
| 8370 | static struct point const zero = {0,0}; |
| 8371 | /* AIX XL C 1.02.0.0 rejects this. |
| 8372 | It does not let you subtract one const X* pointer from another in |
| 8373 | an arm of an if-expression whose if-part is not a constant |
| 8374 | expression */ |
| 8375 | const char *g = "string"; |
| 8376 | ccp = &g + (g ? g-g : 0); |
| 8377 | /* HPUX 7.0 cc rejects these. */ |
| 8378 | ++ccp; |
| 8379 | p = (char**) ccp; |
| 8380 | ccp = (char const *const *) p; |
| 8381 | { /* SCO 3.2v4 cc rejects this. */ |
| 8382 | char *t; |
| 8383 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8384 | |
| 8385 | *t++ = 0; |
| 8386 | } |
| 8387 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8388 | int x[] = {25, 17}; |
| 8389 | const int *foo = &x[0]; |
| 8390 | ++foo; |
| 8391 | } |
| 8392 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8393 | typedef const int *iptr; |
| 8394 | iptr p = 0; |
| 8395 | ++p; |
| 8396 | } |
| 8397 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8398 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8399 | struct s { int j; const int *ap[3]; }; |
| 8400 | struct s *b; b->j = 5; |
| 8401 | } |
| 8402 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8403 | const int foo = 10; |
| 8404 | } |
| 8405 | #endif |
| 8406 | |
| 8407 | ; |
| 8408 | return 0; |
| 8409 | } |
| 8410 | _ACEOF |
| 8411 | rm -f conftest.$ac_objext |
| 8412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8413 | (eval $ac_compile) 2>&5 |
| 8414 | ac_status=$? |
| 8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8416 | (exit $ac_status); } && |
| 8417 | { ac_try='test -s conftest.$ac_objext' |
| 8418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8419 | (eval $ac_try) 2>&5 |
| 8420 | ac_status=$? |
| 8421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8422 | (exit $ac_status); }; }; then |
| 8423 | ac_cv_c_const=yes |
| 8424 | else |
| 8425 | echo "$as_me: failed program was:" >&5 |
| 8426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8427 | |
| 8428 | ac_cv_c_const=no |
| 8429 | fi |
| 8430 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8431 | fi |
| 8432 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8433 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 8434 | if test $ac_cv_c_const = no; then |
| 8435 | |
| 8436 | cat >>confdefs.h <<\_ACEOF |
| 8437 | #define const |
| 8438 | _ACEOF |
| 8439 | |
| 8440 | fi |
| 8441 | |
| 8442 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 8443 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 8444 | if test "${ac_cv_type_size_t+set}" = set; then |
| 8445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8446 | else |
| 8447 | cat >conftest.$ac_ext <<_ACEOF |
| 8448 | #line $LINENO "configure" |
| 8449 | /* confdefs.h. */ |
| 8450 | _ACEOF |
| 8451 | cat confdefs.h >>conftest.$ac_ext |
| 8452 | cat >>conftest.$ac_ext <<_ACEOF |
| 8453 | /* end confdefs.h. */ |
| 8454 | $ac_includes_default |
| 8455 | int |
| 8456 | main () |
| 8457 | { |
| 8458 | if ((size_t *) 0) |
| 8459 | return 0; |
| 8460 | if (sizeof (size_t)) |
| 8461 | return 0; |
| 8462 | ; |
| 8463 | return 0; |
| 8464 | } |
| 8465 | _ACEOF |
| 8466 | rm -f conftest.$ac_objext |
| 8467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8468 | (eval $ac_compile) 2>&5 |
| 8469 | ac_status=$? |
| 8470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8471 | (exit $ac_status); } && |
| 8472 | { ac_try='test -s conftest.$ac_objext' |
| 8473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8474 | (eval $ac_try) 2>&5 |
| 8475 | ac_status=$? |
| 8476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8477 | (exit $ac_status); }; }; then |
| 8478 | ac_cv_type_size_t=yes |
| 8479 | else |
| 8480 | echo "$as_me: failed program was:" >&5 |
| 8481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8482 | |
| 8483 | ac_cv_type_size_t=no |
| 8484 | fi |
| 8485 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8486 | fi |
| 8487 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 8488 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 8489 | if test $ac_cv_type_size_t = yes; then |
| 8490 | : |
| 8491 | else |
| 8492 | |
| 8493 | cat >>confdefs.h <<_ACEOF |
| 8494 | #define size_t unsigned |
| 8495 | _ACEOF |
| 8496 | |
| 8497 | fi |
| 8498 | |
| 8499 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 8500 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 8501 | if test "${ac_cv_struct_tm+set}" = set; then |
| 8502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8503 | else |
| 8504 | cat >conftest.$ac_ext <<_ACEOF |
| 8505 | #line $LINENO "configure" |
| 8506 | /* confdefs.h. */ |
| 8507 | _ACEOF |
| 8508 | cat confdefs.h >>conftest.$ac_ext |
| 8509 | cat >>conftest.$ac_ext <<_ACEOF |
| 8510 | /* end confdefs.h. */ |
| 8511 | #include <sys/types.h> |
| 8512 | #include <time.h> |
| 8513 | |
| 8514 | int |
| 8515 | main () |
| 8516 | { |
| 8517 | struct tm *tp; tp->tm_sec; |
| 8518 | ; |
| 8519 | return 0; |
| 8520 | } |
| 8521 | _ACEOF |
| 8522 | rm -f conftest.$ac_objext |
| 8523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8524 | (eval $ac_compile) 2>&5 |
| 8525 | ac_status=$? |
| 8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8527 | (exit $ac_status); } && |
| 8528 | { ac_try='test -s conftest.$ac_objext' |
| 8529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8530 | (eval $ac_try) 2>&5 |
| 8531 | ac_status=$? |
| 8532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8533 | (exit $ac_status); }; }; then |
| 8534 | ac_cv_struct_tm=time.h |
| 8535 | else |
| 8536 | echo "$as_me: failed program was:" >&5 |
| 8537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8538 | |
| 8539 | ac_cv_struct_tm=sys/time.h |
| 8540 | fi |
| 8541 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8542 | fi |
| 8543 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 8544 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 8545 | if test $ac_cv_struct_tm = sys/time.h; then |
| 8546 | |
| 8547 | cat >>confdefs.h <<\_ACEOF |
| 8548 | #define TM_IN_SYS_TIME 1 |
| 8549 | _ACEOF |
| 8550 | |
| 8551 | fi |
| 8552 | |
| 8553 | |
| 8554 | # Checks for library functions. |
| 8555 | |
| 8556 | for ac_header in stdlib.h |
| 8557 | do |
| 8558 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8559 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8560 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8561 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8562 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8564 | fi |
| 8565 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8566 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8567 | else |
| 8568 | # Is the header compilable? |
| 8569 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8570 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8571 | cat >conftest.$ac_ext <<_ACEOF |
| 8572 | #line $LINENO "configure" |
| 8573 | /* confdefs.h. */ |
| 8574 | _ACEOF |
| 8575 | cat confdefs.h >>conftest.$ac_ext |
| 8576 | cat >>conftest.$ac_ext <<_ACEOF |
| 8577 | /* end confdefs.h. */ |
| 8578 | $ac_includes_default |
| 8579 | #include <$ac_header> |
| 8580 | _ACEOF |
| 8581 | rm -f conftest.$ac_objext |
| 8582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8583 | (eval $ac_compile) 2>&5 |
| 8584 | ac_status=$? |
| 8585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8586 | (exit $ac_status); } && |
| 8587 | { ac_try='test -s conftest.$ac_objext' |
| 8588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8589 | (eval $ac_try) 2>&5 |
| 8590 | ac_status=$? |
| 8591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8592 | (exit $ac_status); }; }; then |
| 8593 | ac_header_compiler=yes |
| 8594 | else |
| 8595 | echo "$as_me: failed program was:" >&5 |
| 8596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8597 | |
| 8598 | ac_header_compiler=no |
| 8599 | fi |
| 8600 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8601 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8602 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8603 | |
| 8604 | # Is the header present? |
| 8605 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8606 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8607 | cat >conftest.$ac_ext <<_ACEOF |
| 8608 | #line $LINENO "configure" |
| 8609 | /* confdefs.h. */ |
| 8610 | _ACEOF |
| 8611 | cat confdefs.h >>conftest.$ac_ext |
| 8612 | cat >>conftest.$ac_ext <<_ACEOF |
| 8613 | /* end confdefs.h. */ |
| 8614 | #include <$ac_header> |
| 8615 | _ACEOF |
| 8616 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8617 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8618 | ac_status=$? |
| 8619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8620 | rm -f conftest.er1 |
| 8621 | cat conftest.err >&5 |
| 8622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8623 | (exit $ac_status); } >/dev/null; then |
| 8624 | if test -s conftest.err; then |
| 8625 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8626 | else |
| 8627 | ac_cpp_err= |
| 8628 | fi |
| 8629 | else |
| 8630 | ac_cpp_err=yes |
| 8631 | fi |
| 8632 | if test -z "$ac_cpp_err"; then |
| 8633 | ac_header_preproc=yes |
| 8634 | else |
| 8635 | echo "$as_me: failed program was:" >&5 |
| 8636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8637 | |
| 8638 | ac_header_preproc=no |
| 8639 | fi |
| 8640 | rm -f conftest.err conftest.$ac_ext |
| 8641 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8642 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8643 | |
| 8644 | # So? What about this header? |
| 8645 | case $ac_header_compiler:$ac_header_preproc in |
| 8646 | yes:no ) |
| 8647 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8648 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8649 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8650 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8651 | ( |
| 8652 | cat <<\_ASBOX |
| 8653 | ## ------------------------------------ ## |
| 8654 | ## Report this to bug-autoconf@gnu.org. ## |
| 8655 | ## ------------------------------------ ## |
| 8656 | _ASBOX |
| 8657 | ) | |
| 8658 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8659 | ;; |
| 8660 | no:yes ) |
| 8661 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8662 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8663 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8664 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8665 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8666 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8667 | ( |
| 8668 | cat <<\_ASBOX |
| 8669 | ## ------------------------------------ ## |
| 8670 | ## Report this to bug-autoconf@gnu.org. ## |
| 8671 | ## ------------------------------------ ## |
| 8672 | _ASBOX |
| 8673 | ) | |
| 8674 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8675 | ;; |
| 8676 | esac |
| 8677 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8678 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8679 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8681 | else |
| 8682 | eval "$as_ac_Header=$ac_header_preproc" |
| 8683 | fi |
| 8684 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8685 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8686 | |
| 8687 | fi |
| 8688 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8689 | cat >>confdefs.h <<_ACEOF |
| 8690 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8691 | _ACEOF |
| 8692 | |
| 8693 | fi |
| 8694 | |
| 8695 | done |
| 8696 | |
| 8697 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
| 8698 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
| 8699 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
| 8700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8701 | else |
| 8702 | if test "$cross_compiling" = yes; then |
| 8703 | ac_cv_func_malloc_0_nonnull=no |
| 8704 | else |
| 8705 | cat >conftest.$ac_ext <<_ACEOF |
| 8706 | #line $LINENO "configure" |
| 8707 | /* confdefs.h. */ |
| 8708 | _ACEOF |
| 8709 | cat confdefs.h >>conftest.$ac_ext |
| 8710 | cat >>conftest.$ac_ext <<_ACEOF |
| 8711 | /* end confdefs.h. */ |
| 8712 | #if STDC_HEADERS || HAVE_STDLIB_H |
| 8713 | # include <stdlib.h> |
| 8714 | #else |
| 8715 | char *malloc (); |
| 8716 | #endif |
| 8717 | |
| 8718 | int |
| 8719 | main () |
| 8720 | { |
| 8721 | exit (malloc (0) ? 0 : 1); |
| 8722 | ; |
| 8723 | return 0; |
| 8724 | } |
| 8725 | _ACEOF |
| 8726 | rm -f conftest$ac_exeext |
| 8727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8728 | (eval $ac_link) 2>&5 |
| 8729 | ac_status=$? |
| 8730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8731 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8733 | (eval $ac_try) 2>&5 |
| 8734 | ac_status=$? |
| 8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8736 | (exit $ac_status); }; }; then |
| 8737 | ac_cv_func_malloc_0_nonnull=yes |
| 8738 | else |
| 8739 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8740 | echo "$as_me: failed program was:" >&5 |
| 8741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8742 | |
| 8743 | ( exit $ac_status ) |
| 8744 | ac_cv_func_malloc_0_nonnull=no |
| 8745 | fi |
| 8746 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8747 | fi |
| 8748 | fi |
| 8749 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
| 8750 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
| 8751 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
| 8752 | |
| 8753 | cat >>confdefs.h <<\_ACEOF |
| 8754 | #define HAVE_MALLOC 1 |
| 8755 | _ACEOF |
| 8756 | |
| 8757 | else |
| 8758 | cat >>confdefs.h <<\_ACEOF |
| 8759 | #define HAVE_MALLOC 0 |
| 8760 | _ACEOF |
| 8761 | |
| 8762 | LIBOBJS="$LIBOBJS malloc.$ac_objext" |
| 8763 | |
| 8764 | cat >>confdefs.h <<\_ACEOF |
| 8765 | #define malloc rpl_malloc |
| 8766 | _ACEOF |
| 8767 | |
| 8768 | fi |
| 8769 | |
| 8770 | |
| 8771 | |
| 8772 | echo "$as_me:$LINENO: checking for working strtod" >&5 |
| 8773 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 |
| 8774 | if test "${ac_cv_func_strtod+set}" = set; then |
| 8775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8776 | else |
| 8777 | if test "$cross_compiling" = yes; then |
| 8778 | ac_cv_func_strtod=no |
| 8779 | else |
| 8780 | cat >conftest.$ac_ext <<_ACEOF |
| 8781 | #line $LINENO "configure" |
| 8782 | /* confdefs.h. */ |
| 8783 | _ACEOF |
| 8784 | cat confdefs.h >>conftest.$ac_ext |
| 8785 | cat >>conftest.$ac_ext <<_ACEOF |
| 8786 | /* end confdefs.h. */ |
| 8787 | |
| 8788 | double strtod (); |
| 8789 | int |
| 8790 | main() |
| 8791 | { |
| 8792 | { |
| 8793 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
| 8794 | char *string = " +69"; |
| 8795 | char *term; |
| 8796 | double value; |
| 8797 | value = strtod (string, &term); |
| 8798 | if (value != 69 || term != (string + 4)) |
| 8799 | exit (1); |
| 8800 | } |
| 8801 | |
| 8802 | { |
| 8803 | /* Under Solaris 2.4, strtod returns the wrong value for the |
| 8804 | terminating character under some conditions. */ |
| 8805 | char *string = "NaN"; |
| 8806 | char *term; |
| 8807 | strtod (string, &term); |
| 8808 | if (term != string && *(term - 1) == 0) |
| 8809 | exit (1); |
| 8810 | } |
| 8811 | exit (0); |
| 8812 | } |
| 8813 | |
| 8814 | _ACEOF |
| 8815 | rm -f conftest$ac_exeext |
| 8816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8817 | (eval $ac_link) 2>&5 |
| 8818 | ac_status=$? |
| 8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8820 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8822 | (eval $ac_try) 2>&5 |
| 8823 | ac_status=$? |
| 8824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8825 | (exit $ac_status); }; }; then |
| 8826 | ac_cv_func_strtod=yes |
| 8827 | else |
| 8828 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8829 | echo "$as_me: failed program was:" >&5 |
| 8830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8831 | |
| 8832 | ( exit $ac_status ) |
| 8833 | ac_cv_func_strtod=no |
| 8834 | fi |
| 8835 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8836 | fi |
| 8837 | fi |
| 8838 | echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
| 8839 | echo "${ECHO_T}$ac_cv_func_strtod" >&6 |
| 8840 | if test $ac_cv_func_strtod = no; then |
| 8841 | LIBOBJS="$LIBOBJS strtod.$ac_objext" |
| 8842 | echo "$as_me:$LINENO: checking for pow" >&5 |
| 8843 | echo $ECHO_N "checking for pow... $ECHO_C" >&6 |
| 8844 | if test "${ac_cv_func_pow+set}" = set; then |
| 8845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8846 | else |
| 8847 | cat >conftest.$ac_ext <<_ACEOF |
| 8848 | #line $LINENO "configure" |
| 8849 | /* confdefs.h. */ |
| 8850 | _ACEOF |
| 8851 | cat confdefs.h >>conftest.$ac_ext |
| 8852 | cat >>conftest.$ac_ext <<_ACEOF |
| 8853 | /* end confdefs.h. */ |
| 8854 | /* System header to define __stub macros and hopefully few prototypes, |
| 8855 | which can conflict with char pow (); below. |
| 8856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8857 | <limits.h> exists even on freestanding compilers. */ |
| 8858 | #ifdef __STDC__ |
| 8859 | # include <limits.h> |
| 8860 | #else |
| 8861 | # include <assert.h> |
| 8862 | #endif |
| 8863 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8864 | #ifdef __cplusplus |
| 8865 | extern "C" |
| 8866 | { |
| 8867 | #endif |
| 8868 | /* We use char because int might match the return type of a gcc2 |
| 8869 | builtin and then its argument prototype would still apply. */ |
| 8870 | char pow (); |
| 8871 | /* The GNU C library defines this for functions which it implements |
| 8872 | to always fail with ENOSYS. Some functions are actually named |
| 8873 | something starting with __ and the normal name is an alias. */ |
| 8874 | #if defined (__stub_pow) || defined (__stub___pow) |
| 8875 | choke me |
| 8876 | #else |
| 8877 | char (*f) () = pow; |
| 8878 | #endif |
| 8879 | #ifdef __cplusplus |
| 8880 | } |
| 8881 | #endif |
| 8882 | |
| 8883 | int |
| 8884 | main () |
| 8885 | { |
| 8886 | return f != pow; |
| 8887 | ; |
| 8888 | return 0; |
| 8889 | } |
| 8890 | _ACEOF |
| 8891 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8893 | (eval $ac_link) 2>&5 |
| 8894 | ac_status=$? |
| 8895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8896 | (exit $ac_status); } && |
| 8897 | { ac_try='test -s conftest$ac_exeext' |
| 8898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8899 | (eval $ac_try) 2>&5 |
| 8900 | ac_status=$? |
| 8901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8902 | (exit $ac_status); }; }; then |
| 8903 | ac_cv_func_pow=yes |
| 8904 | else |
| 8905 | echo "$as_me: failed program was:" >&5 |
| 8906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8907 | |
| 8908 | ac_cv_func_pow=no |
| 8909 | fi |
| 8910 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8911 | fi |
| 8912 | echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
| 8913 | echo "${ECHO_T}$ac_cv_func_pow" >&6 |
| 8914 | |
| 8915 | if test $ac_cv_func_pow = no; then |
| 8916 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
| 8917 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 |
| 8918 | if test "${ac_cv_lib_m_pow+set}" = set; then |
| 8919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8920 | else |
| 8921 | ac_check_lib_save_LIBS=$LIBS |
| 8922 | LIBS="-lm $LIBS" |
| 8923 | cat >conftest.$ac_ext <<_ACEOF |
| 8924 | #line $LINENO "configure" |
| 8925 | /* confdefs.h. */ |
| 8926 | _ACEOF |
| 8927 | cat confdefs.h >>conftest.$ac_ext |
| 8928 | cat >>conftest.$ac_ext <<_ACEOF |
| 8929 | /* end confdefs.h. */ |
| 8930 | |
| 8931 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8932 | #ifdef __cplusplus |
| 8933 | extern "C" |
| 8934 | #endif |
| 8935 | /* We use char because int might match the return type of a gcc2 |
| 8936 | builtin and then its argument prototype would still apply. */ |
| 8937 | char pow (); |
| 8938 | int |
| 8939 | main () |
| 8940 | { |
| 8941 | pow (); |
| 8942 | ; |
| 8943 | return 0; |
| 8944 | } |
| 8945 | _ACEOF |
| 8946 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8948 | (eval $ac_link) 2>&5 |
| 8949 | ac_status=$? |
| 8950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8951 | (exit $ac_status); } && |
| 8952 | { ac_try='test -s conftest$ac_exeext' |
| 8953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8954 | (eval $ac_try) 2>&5 |
| 8955 | ac_status=$? |
| 8956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8957 | (exit $ac_status); }; }; then |
| 8958 | ac_cv_lib_m_pow=yes |
| 8959 | else |
| 8960 | echo "$as_me: failed program was:" >&5 |
| 8961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8962 | |
| 8963 | ac_cv_lib_m_pow=no |
| 8964 | fi |
| 8965 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8966 | LIBS=$ac_check_lib_save_LIBS |
| 8967 | fi |
| 8968 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
| 8969 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 |
| 8970 | if test $ac_cv_lib_m_pow = yes; then |
| 8971 | POW_LIB=-lm |
| 8972 | else |
| 8973 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
| 8974 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
| 8975 | fi |
| 8976 | |
| 8977 | fi |
| 8978 | |
| 8979 | fi |
| 8980 | |
| 8981 | |
| 8982 | |
| 8983 | |
| 8984 | |
| 8985 | for ac_func in memset pow strrchr |
| 8986 | do |
| 8987 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8988 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8989 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8990 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8992 | else |
| 8993 | cat >conftest.$ac_ext <<_ACEOF |
| 8994 | #line $LINENO "configure" |
| 8995 | /* confdefs.h. */ |
| 8996 | _ACEOF |
| 8997 | cat confdefs.h >>conftest.$ac_ext |
| 8998 | cat >>conftest.$ac_ext <<_ACEOF |
| 8999 | /* end confdefs.h. */ |
| 9000 | /* System header to define __stub macros and hopefully few prototypes, |
| 9001 | which can conflict with char $ac_func (); below. |
| 9002 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9003 | <limits.h> exists even on freestanding compilers. */ |
| 9004 | #ifdef __STDC__ |
| 9005 | # include <limits.h> |
| 9006 | #else |
| 9007 | # include <assert.h> |
| 9008 | #endif |
| 9009 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9010 | #ifdef __cplusplus |
| 9011 | extern "C" |
| 9012 | { |
| 9013 | #endif |
| 9014 | /* We use char because int might match the return type of a gcc2 |
| 9015 | builtin and then its argument prototype would still apply. */ |
| 9016 | char $ac_func (); |
| 9017 | /* The GNU C library defines this for functions which it implements |
| 9018 | to always fail with ENOSYS. Some functions are actually named |
| 9019 | something starting with __ and the normal name is an alias. */ |
| 9020 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9021 | choke me |
| 9022 | #else |
| 9023 | char (*f) () = $ac_func; |
| 9024 | #endif |
| 9025 | #ifdef __cplusplus |
| 9026 | } |
| 9027 | #endif |
| 9028 | |
| 9029 | int |
| 9030 | main () |
| 9031 | { |
| 9032 | return f != $ac_func; |
| 9033 | ; |
| 9034 | return 0; |
| 9035 | } |
| 9036 | _ACEOF |
| 9037 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9039 | (eval $ac_link) 2>&5 |
| 9040 | ac_status=$? |
| 9041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9042 | (exit $ac_status); } && |
| 9043 | { ac_try='test -s conftest$ac_exeext' |
| 9044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9045 | (eval $ac_try) 2>&5 |
| 9046 | ac_status=$? |
| 9047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9048 | (exit $ac_status); }; }; then |
| 9049 | eval "$as_ac_var=yes" |
| 9050 | else |
| 9051 | echo "$as_me: failed program was:" >&5 |
| 9052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9053 | |
| 9054 | eval "$as_ac_var=no" |
| 9055 | fi |
| 9056 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9057 | fi |
| 9058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9059 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9060 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9061 | cat >>confdefs.h <<_ACEOF |
| 9062 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9063 | _ACEOF |
| 9064 | |
| 9065 | fi |
| 9066 | done |
| 9067 | |
| 9068 | echo "$as_me:$LINENO: checking for sqrt" >&5 |
| 9069 | echo $ECHO_N "checking for sqrt... $ECHO_C" >&6 |
| 9070 | if test "${ac_cv_func_sqrt+set}" = set; then |
| 9071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9072 | else |
| 9073 | cat >conftest.$ac_ext <<_ACEOF |
| 9074 | #line $LINENO "configure" |
| 9075 | /* confdefs.h. */ |
| 9076 | _ACEOF |
| 9077 | cat confdefs.h >>conftest.$ac_ext |
| 9078 | cat >>conftest.$ac_ext <<_ACEOF |
| 9079 | /* end confdefs.h. */ |
| 9080 | /* System header to define __stub macros and hopefully few prototypes, |
| 9081 | which can conflict with char sqrt (); below. |
| 9082 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9083 | <limits.h> exists even on freestanding compilers. */ |
| 9084 | #ifdef __STDC__ |
| 9085 | # include <limits.h> |
| 9086 | #else |
| 9087 | # include <assert.h> |
| 9088 | #endif |
| 9089 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9090 | #ifdef __cplusplus |
| 9091 | extern "C" |
| 9092 | { |
| 9093 | #endif |
| 9094 | /* We use char because int might match the return type of a gcc2 |
| 9095 | builtin and then its argument prototype would still apply. */ |
| 9096 | char sqrt (); |
| 9097 | /* The GNU C library defines this for functions which it implements |
| 9098 | to always fail with ENOSYS. Some functions are actually named |
| 9099 | something starting with __ and the normal name is an alias. */ |
| 9100 | #if defined (__stub_sqrt) || defined (__stub___sqrt) |
| 9101 | choke me |
| 9102 | #else |
| 9103 | char (*f) () = sqrt; |
| 9104 | #endif |
| 9105 | #ifdef __cplusplus |
| 9106 | } |
| 9107 | #endif |
| 9108 | |
| 9109 | int |
| 9110 | main () |
| 9111 | { |
| 9112 | return f != sqrt; |
| 9113 | ; |
| 9114 | return 0; |
| 9115 | } |
| 9116 | _ACEOF |
| 9117 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9119 | (eval $ac_link) 2>&5 |
| 9120 | ac_status=$? |
| 9121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9122 | (exit $ac_status); } && |
| 9123 | { ac_try='test -s conftest$ac_exeext' |
| 9124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9125 | (eval $ac_try) 2>&5 |
| 9126 | ac_status=$? |
| 9127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9128 | (exit $ac_status); }; }; then |
| 9129 | ac_cv_func_sqrt=yes |
| 9130 | else |
| 9131 | echo "$as_me: failed program was:" >&5 |
| 9132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9133 | |
| 9134 | ac_cv_func_sqrt=no |
| 9135 | fi |
| 9136 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9137 | fi |
| 9138 | echo "$as_me:$LINENO: result: $ac_cv_func_sqrt" >&5 |
| 9139 | echo "${ECHO_T}$ac_cv_func_sqrt" >&6 |
| 9140 | if test $ac_cv_func_sqrt = yes; then |
| 9141 | : |
| 9142 | else |
| 9143 | |
| 9144 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
| 9145 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
| 9146 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
| 9147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9148 | else |
| 9149 | ac_check_lib_save_LIBS=$LIBS |
| 9150 | LIBS="-lm $LIBS" |
| 9151 | cat >conftest.$ac_ext <<_ACEOF |
| 9152 | #line $LINENO "configure" |
| 9153 | /* confdefs.h. */ |
| 9154 | _ACEOF |
| 9155 | cat confdefs.h >>conftest.$ac_ext |
| 9156 | cat >>conftest.$ac_ext <<_ACEOF |
| 9157 | /* end confdefs.h. */ |
| 9158 | |
| 9159 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9160 | #ifdef __cplusplus |
| 9161 | extern "C" |
| 9162 | #endif |
| 9163 | /* We use char because int might match the return type of a gcc2 |
| 9164 | builtin and then its argument prototype would still apply. */ |
| 9165 | char sqrt (); |
| 9166 | int |
| 9167 | main () |
| 9168 | { |
| 9169 | sqrt (); |
| 9170 | ; |
| 9171 | return 0; |
| 9172 | } |
| 9173 | _ACEOF |
| 9174 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9176 | (eval $ac_link) 2>&5 |
| 9177 | ac_status=$? |
| 9178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9179 | (exit $ac_status); } && |
| 9180 | { ac_try='test -s conftest$ac_exeext' |
| 9181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9182 | (eval $ac_try) 2>&5 |
| 9183 | ac_status=$? |
| 9184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9185 | (exit $ac_status); }; }; then |
| 9186 | ac_cv_lib_m_sqrt=yes |
| 9187 | else |
| 9188 | echo "$as_me: failed program was:" >&5 |
| 9189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9190 | |
| 9191 | ac_cv_lib_m_sqrt=no |
| 9192 | fi |
| 9193 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9194 | LIBS=$ac_check_lib_save_LIBS |
| 9195 | fi |
| 9196 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
| 9197 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
| 9198 | if test $ac_cv_lib_m_sqrt = yes; then |
| 9199 | cat >>confdefs.h <<_ACEOF |
| 9200 | #define HAVE_LIBM 1 |
| 9201 | _ACEOF |
| 9202 | |
| 9203 | LIBS="-lm $LIBS" |
| 9204 | |
| 9205 | else |
| 9206 | cannot find sqrt |
| 9207 | fi |
| 9208 | |
| 9209 | fi |
| 9210 | |
| 9211 | |
| 9212 | echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5 |
| 9213 | echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6 |
| 9214 | if test "${ac_cv_lib_z_zlibVersion+set}" = set; then |
| 9215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9216 | else |
| 9217 | ac_check_lib_save_LIBS=$LIBS |
| 9218 | LIBS="-lz $LIBS" |
| 9219 | cat >conftest.$ac_ext <<_ACEOF |
| 9220 | #line $LINENO "configure" |
| 9221 | /* confdefs.h. */ |
| 9222 | _ACEOF |
| 9223 | cat confdefs.h >>conftest.$ac_ext |
| 9224 | cat >>conftest.$ac_ext <<_ACEOF |
| 9225 | /* end confdefs.h. */ |
| 9226 | |
| 9227 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9228 | #ifdef __cplusplus |
| 9229 | extern "C" |
| 9230 | #endif |
| 9231 | /* We use char because int might match the return type of a gcc2 |
| 9232 | builtin and then its argument prototype would still apply. */ |
| 9233 | char zlibVersion (); |
| 9234 | int |
| 9235 | main () |
| 9236 | { |
| 9237 | zlibVersion (); |
| 9238 | ; |
| 9239 | return 0; |
| 9240 | } |
| 9241 | _ACEOF |
| 9242 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9244 | (eval $ac_link) 2>&5 |
| 9245 | ac_status=$? |
| 9246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9247 | (exit $ac_status); } && |
| 9248 | { ac_try='test -s conftest$ac_exeext' |
| 9249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9250 | (eval $ac_try) 2>&5 |
| 9251 | ac_status=$? |
| 9252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9253 | (exit $ac_status); }; }; then |
| 9254 | ac_cv_lib_z_zlibVersion=yes |
| 9255 | else |
| 9256 | echo "$as_me: failed program was:" >&5 |
| 9257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9258 | |
| 9259 | ac_cv_lib_z_zlibVersion=no |
| 9260 | fi |
| 9261 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9262 | LIBS=$ac_check_lib_save_LIBS |
| 9263 | fi |
| 9264 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5 |
| 9265 | echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6 |
| 9266 | if test $ac_cv_lib_z_zlibVersion = yes; then |
| 9267 | cat >>confdefs.h <<_ACEOF |
| 9268 | #define HAVE_LIBZ 1 |
| 9269 | _ACEOF |
| 9270 | |
| 9271 | LIBS="-lz $LIBS" |
| 9272 | |
| 9273 | else |
| 9274 | { { echo "$as_me:$LINENO: error: ZLib not installed" >&5 |
| 9275 | echo "$as_me: error: ZLib not installed" >&2;} |
| 9276 | { (exit 1); exit 1; }; } |
| 9277 | fi |
| 9278 | |
| 9279 | |
| 9280 | |
| 9281 | # Check whether --with-pkgconfigdir or --without-pkgconfigdir was given. |
| 9282 | if test "${with_pkgconfigdir+set}" = set; then |
| 9283 | withval="$with_pkgconfigdir" |
| 9284 | PKGCONFIGDIR=${withval} |
| 9285 | else |
| 9286 | PKGCONFIGDIR='${prefix}/lib/pkgconfig' |
| 9287 | fi; |
| 9288 | |
| 9289 | echo "$as_me:$LINENO: checking pkgconfig directory" >&5 |
| 9290 | echo $ECHO_N "checking pkgconfig directory... $ECHO_C" >&6 |
| 9291 | echo "$as_me:$LINENO: result: $PKGCONFIGDIR" >&5 |
| 9292 | echo "${ECHO_T}$PKGCONFIGDIR" >&6 |
| 9293 | |
| 9294 | |
| 9295 | LIBPNG12_VERSION_INFO=0:0:0 |
| 9296 | |
| 9297 | LIBPNG3_VERSION_INFO=3:0:0 |
| 9298 | |
| 9299 | |
| 9300 | ac_config_files="$ac_config_files Makefile" |
| 9301 | |
| 9302 | cat >confcache <<\_ACEOF |
| 9303 | # This file is a shell script that caches the results of configure |
| 9304 | # tests run on this system so they can be shared between configure |
| 9305 | # scripts and configure runs, see configure's option --config-cache. |
| 9306 | # It is not useful on other systems. If it contains results you don't |
| 9307 | # want to keep, you may remove or edit it. |
| 9308 | # |
| 9309 | # config.status only pays attention to the cache file if you give it |
| 9310 | # the --recheck option to rerun configure. |
| 9311 | # |
| 9312 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 9313 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 9314 | # following values. |
| 9315 | |
| 9316 | _ACEOF |
| 9317 | |
| 9318 | # The following way of writing the cache mishandles newlines in values, |
| 9319 | # but we know of no workaround that is simple, portable, and efficient. |
| 9320 | # So, don't put newlines in cache variables' values. |
| 9321 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 9322 | # and sets the high bit in the cache file unless we assign to the vars. |
| 9323 | { |
| 9324 | (set) 2>&1 | |
| 9325 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 9326 | *ac_space=\ *) |
| 9327 | # `set' does not quote correctly, so add quotes (double-quote |
| 9328 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 9329 | sed -n \ |
| 9330 | "s/'/'\\\\''/g; |
| 9331 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 9332 | ;; |
| 9333 | *) |
| 9334 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 9335 | sed -n \ |
| 9336 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 9337 | ;; |
| 9338 | esac; |
| 9339 | } | |
| 9340 | sed ' |
| 9341 | t clear |
| 9342 | : clear |
| 9343 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 9344 | t end |
| 9345 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 9346 | : end' >>confcache |
| 9347 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 9348 | if test -w $cache_file; then |
| 9349 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 9350 | cat confcache >$cache_file |
| 9351 | else |
| 9352 | echo "not updating unwritable cache $cache_file" |
| 9353 | fi |
| 9354 | fi |
| 9355 | rm -f confcache |
| 9356 | |
| 9357 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 9358 | # Let make expand exec_prefix. |
| 9359 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 9360 | |
| 9361 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 9362 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 9363 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 9364 | # (actually we leave an empty line to preserve line numbers). |
| 9365 | if test "x$srcdir" = x.; then |
| 9366 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 9367 | s/:*\$(srcdir):*/:/; |
| 9368 | s/:*\${srcdir}:*/:/; |
| 9369 | s/:*@srcdir@:*/:/; |
| 9370 | s/^\([^=]*=[ ]*\):*/\1/; |
| 9371 | s/:*$//; |
| 9372 | s/^[^=]*=[ ]*$//; |
| 9373 | }' |
| 9374 | fi |
| 9375 | |
| 9376 | DEFS=-DHAVE_CONFIG_H |
| 9377 | |
| 9378 | ac_libobjs= |
| 9379 | ac_ltlibobjs= |
| 9380 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 9381 | # 1. Remove the extension, and $U if already installed. |
| 9382 | ac_i=`echo "$ac_i" | |
| 9383 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 9384 | # 2. Add them. |
| 9385 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 9386 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 9387 | done |
| 9388 | LIBOBJS=$ac_libobjs |
| 9389 | |
| 9390 | LTLIBOBJS=$ac_ltlibobjs |
| 9391 | |
| 9392 | |
| 9393 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 9394 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 9395 | Usually this means the macro was only invoked conditionally." >&5 |
| 9396 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 9397 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9398 | { (exit 1); exit 1; }; } |
| 9399 | fi |
| 9400 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 9401 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 9402 | Usually this means the macro was only invoked conditionally." >&5 |
| 9403 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 9404 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9405 | { (exit 1); exit 1; }; } |
| 9406 | fi |
| 9407 | |
| 9408 | : ${CONFIG_STATUS=./config.status} |
| 9409 | ac_clean_files_save=$ac_clean_files |
| 9410 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 9411 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 9412 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 9413 | cat >$CONFIG_STATUS <<_ACEOF |
| 9414 | #! $SHELL |
| 9415 | # Generated by $as_me. |
| 9416 | # Run this file to recreate the current configuration. |
| 9417 | # Compiler output produced by configure, useful for debugging |
| 9418 | # configure, is in config.log if it exists. |
| 9419 | |
| 9420 | debug=false |
| 9421 | ac_cs_recheck=false |
| 9422 | ac_cs_silent=false |
| 9423 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 9424 | _ACEOF |
| 9425 | |
| 9426 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9427 | ## --------------------- ## |
| 9428 | ## M4sh Initialization. ## |
| 9429 | ## --------------------- ## |
| 9430 | |
| 9431 | # Be Bourne compatible |
| 9432 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 9433 | emulate sh |
| 9434 | NULLCMD=: |
| 9435 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 9436 | # is contrary to our usage. Disable this feature. |
| 9437 | alias -g '${1+"$@"}'='"$@"' |
| 9438 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 9439 | set -o posix |
| 9440 | fi |
| 9441 | |
| 9442 | # Support unset when possible. |
| 9443 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 9444 | as_unset=unset |
| 9445 | else |
| 9446 | as_unset=false |
| 9447 | fi |
| 9448 | |
| 9449 | |
| 9450 | # Work around bugs in pre-3.0 UWIN ksh. |
| 9451 | $as_unset ENV MAIL MAILPATH |
| 9452 | PS1='$ ' |
| 9453 | PS2='> ' |
| 9454 | PS4='+ ' |
| 9455 | |
| 9456 | # NLS nuisances. |
| 9457 | for as_var in \ |
| 9458 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 9459 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 9460 | LC_TELEPHONE LC_TIME |
| 9461 | do |
| 9462 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 9463 | eval $as_var=C; export $as_var |
| 9464 | else |
| 9465 | $as_unset $as_var |
| 9466 | fi |
| 9467 | done |
| 9468 | |
| 9469 | # Required to use basename. |
| 9470 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9471 | as_expr=expr |
| 9472 | else |
| 9473 | as_expr=false |
| 9474 | fi |
| 9475 | |
| 9476 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 9477 | as_basename=basename |
| 9478 | else |
| 9479 | as_basename=false |
| 9480 | fi |
| 9481 | |
| 9482 | |
| 9483 | # Name of the executable. |
| 9484 | as_me=`$as_basename "$0" || |
| 9485 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 9486 | X"$0" : 'X\(//\)$' \| \ |
| 9487 | X"$0" : 'X\(/\)$' \| \ |
| 9488 | . : '\(.\)' 2>/dev/null || |
| 9489 | echo X/"$0" | |
| 9490 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 9491 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 9492 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 9493 | s/.*/./; q'` |
| 9494 | |
| 9495 | |
| 9496 | # PATH needs CR, and LINENO needs CR and PATH. |
| 9497 | # Avoid depending upon Character Ranges. |
| 9498 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 9499 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 9500 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 9501 | as_cr_digits='0123456789' |
| 9502 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 9503 | |
| 9504 | # The user is always right. |
| 9505 | if test "${PATH_SEPARATOR+set}" != set; then |
| 9506 | echo "#! /bin/sh" >conf$$.sh |
| 9507 | echo "exit 0" >>conf$$.sh |
| 9508 | chmod +x conf$$.sh |
| 9509 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 9510 | PATH_SEPARATOR=';' |
| 9511 | else |
| 9512 | PATH_SEPARATOR=: |
| 9513 | fi |
| 9514 | rm -f conf$$.sh |
| 9515 | fi |
| 9516 | |
| 9517 | |
| 9518 | as_lineno_1=$LINENO |
| 9519 | as_lineno_2=$LINENO |
| 9520 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9521 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9522 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 9523 | # Find who we are. Look in the path if we contain no path at all |
| 9524 | # relative or not. |
| 9525 | case $0 in |
| 9526 | *[\\/]* ) as_myself=$0 ;; |
| 9527 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9528 | for as_dir in $PATH |
| 9529 | do |
| 9530 | IFS=$as_save_IFS |
| 9531 | test -z "$as_dir" && as_dir=. |
| 9532 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 9533 | done |
| 9534 | |
| 9535 | ;; |
| 9536 | esac |
| 9537 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 9538 | # in which case we are not to be found in the path. |
| 9539 | if test "x$as_myself" = x; then |
| 9540 | as_myself=$0 |
| 9541 | fi |
| 9542 | if test ! -f "$as_myself"; then |
| 9543 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 9544 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 9545 | { (exit 1); exit 1; }; } |
| 9546 | fi |
| 9547 | case $CONFIG_SHELL in |
| 9548 | '') |
| 9549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9550 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 9551 | do |
| 9552 | IFS=$as_save_IFS |
| 9553 | test -z "$as_dir" && as_dir=. |
| 9554 | for as_base in sh bash ksh sh5; do |
| 9555 | case $as_dir in |
| 9556 | /*) |
| 9557 | if ("$as_dir/$as_base" -c ' |
| 9558 | as_lineno_1=$LINENO |
| 9559 | as_lineno_2=$LINENO |
| 9560 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9561 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9562 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 9563 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 9564 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 9565 | CONFIG_SHELL=$as_dir/$as_base |
| 9566 | export CONFIG_SHELL |
| 9567 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 9568 | fi;; |
| 9569 | esac |
| 9570 | done |
| 9571 | done |
| 9572 | ;; |
| 9573 | esac |
| 9574 | |
| 9575 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 9576 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 9577 | # line-number line before each line; the second 'sed' does the real |
| 9578 | # work. The second script uses 'N' to pair each line-number line |
| 9579 | # with the numbered line, and appends trailing '-' during |
| 9580 | # substitution so that $LINENO is not a special case at line end. |
| 9581 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 9582 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 9583 | sed '=' <$as_myself | |
| 9584 | sed ' |
| 9585 | N |
| 9586 | s,$,-, |
| 9587 | : loop |
| 9588 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 9589 | t loop |
| 9590 | s,-$,, |
| 9591 | s,^['$as_cr_digits']*\n,, |
| 9592 | ' >$as_me.lineno && |
| 9593 | chmod +x $as_me.lineno || |
| 9594 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 9595 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 9596 | { (exit 1); exit 1; }; } |
| 9597 | |
| 9598 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 9599 | # (the dirname of $[0] is not the place where we might find the |
| 9600 | # original and so on. Autoconf is especially sensible to this). |
| 9601 | . ./$as_me.lineno |
| 9602 | # Exit status is that of the last command. |
| 9603 | exit |
| 9604 | } |
| 9605 | |
| 9606 | |
| 9607 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 9608 | *c*,-n*) ECHO_N= ECHO_C=' |
| 9609 | ' ECHO_T=' ' ;; |
| 9610 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 9611 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 9612 | esac |
| 9613 | |
| 9614 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9615 | as_expr=expr |
| 9616 | else |
| 9617 | as_expr=false |
| 9618 | fi |
| 9619 | |
| 9620 | rm -f conf$$ conf$$.exe conf$$.file |
| 9621 | echo >conf$$.file |
| 9622 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 9623 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 9624 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 9625 | if test -f conf$$.exe; then |
| 9626 | # Don't use ln at all; we don't have any links |
| 9627 | as_ln_s='cp -p' |
| 9628 | else |
| 9629 | as_ln_s='ln -s' |
| 9630 | fi |
| 9631 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 9632 | as_ln_s=ln |
| 9633 | else |
| 9634 | as_ln_s='cp -p' |
| 9635 | fi |
| 9636 | rm -f conf$$ conf$$.exe conf$$.file |
| 9637 | |
| 9638 | if mkdir -p . 2>/dev/null; then |
| 9639 | as_mkdir_p=: |
| 9640 | else |
| 9641 | as_mkdir_p=false |
| 9642 | fi |
| 9643 | |
| 9644 | as_executable_p="test -f" |
| 9645 | |
| 9646 | # Sed expression to map a string onto a valid CPP name. |
| 9647 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 9648 | |
| 9649 | # Sed expression to map a string onto a valid variable name. |
| 9650 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 9651 | |
| 9652 | |
| 9653 | # IFS |
| 9654 | # We need space, tab and new line, in precisely that order. |
| 9655 | as_nl=' |
| 9656 | ' |
| 9657 | IFS=" $as_nl" |
| 9658 | |
| 9659 | # CDPATH. |
| 9660 | $as_unset CDPATH |
| 9661 | |
| 9662 | exec 6>&1 |
| 9663 | |
| 9664 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 9665 | # report actual input values of CONFIG_FILES etc. instead of their |
| 9666 | # values after options handling. Logging --version etc. is OK. |
| 9667 | exec 5>>config.log |
| 9668 | { |
| 9669 | echo |
| 9670 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 9671 | ## Running $as_me. ## |
| 9672 | _ASBOX |
| 9673 | } >&5 |
| 9674 | cat >&5 <<_CSEOF |
| 9675 | |
Glenn Randers-Pehrson | 7b34df3 | 2006-02-24 06:30:16 -0600 | [diff] [blame^] | 9676 | This file was extended by libpng $as_me 1.2.9beta3, which was |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 9677 | generated by GNU Autoconf 2.57. Invocation command line was |
| 9678 | |
| 9679 | CONFIG_FILES = $CONFIG_FILES |
| 9680 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 9681 | CONFIG_LINKS = $CONFIG_LINKS |
| 9682 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 9683 | $ $0 $@ |
| 9684 | |
| 9685 | _CSEOF |
| 9686 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 9687 | echo >&5 |
| 9688 | _ACEOF |
| 9689 | |
| 9690 | # Files that config.status was made for. |
| 9691 | if test -n "$ac_config_files"; then |
| 9692 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 9693 | fi |
| 9694 | |
| 9695 | if test -n "$ac_config_headers"; then |
| 9696 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 9697 | fi |
| 9698 | |
| 9699 | if test -n "$ac_config_links"; then |
| 9700 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 9701 | fi |
| 9702 | |
| 9703 | if test -n "$ac_config_commands"; then |
| 9704 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 9705 | fi |
| 9706 | |
| 9707 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9708 | |
| 9709 | ac_cs_usage="\ |
| 9710 | \`$as_me' instantiates files from templates according to the |
| 9711 | current configuration. |
| 9712 | |
| 9713 | Usage: $0 [OPTIONS] [FILE]... |
| 9714 | |
| 9715 | -h, --help print this help, then exit |
| 9716 | -V, --version print version number, then exit |
| 9717 | -q, --quiet do not print progress messages |
| 9718 | -d, --debug don't remove temporary files |
| 9719 | --recheck update $as_me by reconfiguring in the same conditions |
| 9720 | --file=FILE[:TEMPLATE] |
| 9721 | instantiate the configuration file FILE |
| 9722 | --header=FILE[:TEMPLATE] |
| 9723 | instantiate the configuration header FILE |
| 9724 | |
| 9725 | Configuration files: |
| 9726 | $config_files |
| 9727 | |
| 9728 | Configuration headers: |
| 9729 | $config_headers |
| 9730 | |
| 9731 | Configuration commands: |
| 9732 | $config_commands |
| 9733 | |
| 9734 | Report bugs to <bug-autoconf@gnu.org>." |
| 9735 | _ACEOF |
| 9736 | |
| 9737 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9738 | ac_cs_version="\\ |
Glenn Randers-Pehrson | 7b34df3 | 2006-02-24 06:30:16 -0600 | [diff] [blame^] | 9739 | libpng config.status 1.2.9beta3 |
Glenn Randers-Pehrson | 917648e | 2004-12-02 18:14:51 -0600 | [diff] [blame] | 9740 | configured by $0, generated by GNU Autoconf 2.57, |
| 9741 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 9742 | |
| 9743 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 9744 | Free Software Foundation, Inc. |
| 9745 | This config.status script is free software; the Free Software Foundation |
| 9746 | gives unlimited permission to copy, distribute and modify it." |
| 9747 | srcdir=$srcdir |
| 9748 | INSTALL="$INSTALL" |
| 9749 | _ACEOF |
| 9750 | |
| 9751 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9752 | # If no file are specified by the user, then we need to provide default |
| 9753 | # value. By we need to know if files were specified by the user. |
| 9754 | ac_need_defaults=: |
| 9755 | while test $# != 0 |
| 9756 | do |
| 9757 | case $1 in |
| 9758 | --*=*) |
| 9759 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 9760 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 9761 | ac_shift=: |
| 9762 | ;; |
| 9763 | -*) |
| 9764 | ac_option=$1 |
| 9765 | ac_optarg=$2 |
| 9766 | ac_shift=shift |
| 9767 | ;; |
| 9768 | *) # This is not an option, so the user has probably given explicit |
| 9769 | # arguments. |
| 9770 | ac_option=$1 |
| 9771 | ac_need_defaults=false;; |
| 9772 | esac |
| 9773 | |
| 9774 | case $ac_option in |
| 9775 | # Handling of the options. |
| 9776 | _ACEOF |
| 9777 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9778 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 9779 | ac_cs_recheck=: ;; |
| 9780 | --version | --vers* | -V ) |
| 9781 | echo "$ac_cs_version"; exit 0 ;; |
| 9782 | --he | --h) |
| 9783 | # Conflict between --help and --header |
| 9784 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 9785 | Try \`$0 --help' for more information." >&5 |
| 9786 | echo "$as_me: error: ambiguous option: $1 |
| 9787 | Try \`$0 --help' for more information." >&2;} |
| 9788 | { (exit 1); exit 1; }; };; |
| 9789 | --help | --hel | -h ) |
| 9790 | echo "$ac_cs_usage"; exit 0 ;; |
| 9791 | --debug | --d* | -d ) |
| 9792 | debug=: ;; |
| 9793 | --file | --fil | --fi | --f ) |
| 9794 | $ac_shift |
| 9795 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 9796 | ac_need_defaults=false;; |
| 9797 | --header | --heade | --head | --hea ) |
| 9798 | $ac_shift |
| 9799 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 9800 | ac_need_defaults=false;; |
| 9801 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 9802 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 9803 | ac_cs_silent=: ;; |
| 9804 | |
| 9805 | # This is an error. |
| 9806 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 9807 | Try \`$0 --help' for more information." >&5 |
| 9808 | echo "$as_me: error: unrecognized option: $1 |
| 9809 | Try \`$0 --help' for more information." >&2;} |
| 9810 | { (exit 1); exit 1; }; } ;; |
| 9811 | |
| 9812 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 9813 | |
| 9814 | esac |
| 9815 | shift |
| 9816 | done |
| 9817 | |
| 9818 | ac_configure_extra_args= |
| 9819 | |
| 9820 | if $ac_cs_silent; then |
| 9821 | exec 6>/dev/null |
| 9822 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 9823 | fi |
| 9824 | |
| 9825 | _ACEOF |
| 9826 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9827 | if \$ac_cs_recheck; then |
| 9828 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 9829 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 9830 | fi |
| 9831 | |
| 9832 | _ACEOF |
| 9833 | |
| 9834 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9835 | # |
| 9836 | # INIT-COMMANDS section. |
| 9837 | # |
| 9838 | |
| 9839 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 9840 | |
| 9841 | _ACEOF |
| 9842 | |
| 9843 | |
| 9844 | |
| 9845 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9846 | for ac_config_target in $ac_config_targets |
| 9847 | do |
| 9848 | case "$ac_config_target" in |
| 9849 | # Handling of arguments. |
| 9850 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 9851 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 9852 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 9853 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 9854 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9855 | { (exit 1); exit 1; }; };; |
| 9856 | esac |
| 9857 | done |
| 9858 | |
| 9859 | # If the user did not use the arguments to specify the items to instantiate, |
| 9860 | # then the envvar interface is used. Set only those that are not. |
| 9861 | # We use the long form for the default assignment because of an extremely |
| 9862 | # bizarre bug on SunOS 4.1.3. |
| 9863 | if $ac_need_defaults; then |
| 9864 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 9865 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 9866 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 9867 | fi |
| 9868 | |
| 9869 | # Have a temporary directory for convenience. Make it in the build tree |
| 9870 | # simply because there is no reason to put it here, and in addition, |
| 9871 | # creating and moving files from /tmp can sometimes cause problems. |
| 9872 | # Create a temporary directory, and hook for its removal unless debugging. |
| 9873 | $debug || |
| 9874 | { |
| 9875 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 9876 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 9877 | } |
| 9878 | |
| 9879 | # Create a (secure) tmp directory for tmp files. |
| 9880 | |
| 9881 | { |
| 9882 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 9883 | test -n "$tmp" && test -d "$tmp" |
| 9884 | } || |
| 9885 | { |
| 9886 | tmp=./confstat$$-$RANDOM |
| 9887 | (umask 077 && mkdir $tmp) |
| 9888 | } || |
| 9889 | { |
| 9890 | echo "$me: cannot create a temporary directory in ." >&2 |
| 9891 | { (exit 1); exit 1; } |
| 9892 | } |
| 9893 | |
| 9894 | _ACEOF |
| 9895 | |
| 9896 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9897 | |
| 9898 | # |
| 9899 | # CONFIG_FILES section. |
| 9900 | # |
| 9901 | |
| 9902 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 9903 | # This happens for instance when ./config.status config.h |
| 9904 | if test -n "\$CONFIG_FILES"; then |
| 9905 | # Protect against being on the right side of a sed subst in config.status. |
| 9906 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 9907 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 9908 | s,@SHELL@,$SHELL,;t t |
| 9909 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 9910 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 9911 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 9912 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 9913 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 9914 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 9915 | s,@exec_prefix@,$exec_prefix,;t t |
| 9916 | s,@prefix@,$prefix,;t t |
| 9917 | s,@program_transform_name@,$program_transform_name,;t t |
| 9918 | s,@bindir@,$bindir,;t t |
| 9919 | s,@sbindir@,$sbindir,;t t |
| 9920 | s,@libexecdir@,$libexecdir,;t t |
| 9921 | s,@datadir@,$datadir,;t t |
| 9922 | s,@sysconfdir@,$sysconfdir,;t t |
| 9923 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 9924 | s,@localstatedir@,$localstatedir,;t t |
| 9925 | s,@libdir@,$libdir,;t t |
| 9926 | s,@includedir@,$includedir,;t t |
| 9927 | s,@oldincludedir@,$oldincludedir,;t t |
| 9928 | s,@infodir@,$infodir,;t t |
| 9929 | s,@mandir@,$mandir,;t t |
| 9930 | s,@build_alias@,$build_alias,;t t |
| 9931 | s,@host_alias@,$host_alias,;t t |
| 9932 | s,@target_alias@,$target_alias,;t t |
| 9933 | s,@DEFS@,$DEFS,;t t |
| 9934 | s,@ECHO_C@,$ECHO_C,;t t |
| 9935 | s,@ECHO_N@,$ECHO_N,;t t |
| 9936 | s,@ECHO_T@,$ECHO_T,;t t |
| 9937 | s,@LIBS@,$LIBS,;t t |
| 9938 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 9939 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 9940 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 9941 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
| 9942 | s,@PACKAGE@,$PACKAGE,;t t |
| 9943 | s,@VERSION@,$VERSION,;t t |
| 9944 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 9945 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 9946 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 9947 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 9948 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 9949 | s,@AMTAR@,$AMTAR,;t t |
| 9950 | s,@install_sh@,$install_sh,;t t |
| 9951 | s,@STRIP@,$STRIP,;t t |
| 9952 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 9953 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 9954 | s,@AWK@,$AWK,;t t |
| 9955 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 9956 | s,@CC@,$CC,;t t |
| 9957 | s,@CFLAGS@,$CFLAGS,;t t |
| 9958 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 9959 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 9960 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 9961 | s,@EXEEXT@,$EXEEXT,;t t |
| 9962 | s,@OBJEXT@,$OBJEXT,;t t |
| 9963 | s,@DEPDIR@,$DEPDIR,;t t |
| 9964 | s,@am__include@,$am__include,;t t |
| 9965 | s,@am__quote@,$am__quote,;t t |
| 9966 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 9967 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 9968 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 9969 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 9970 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
| 9971 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
| 9972 | s,@build@,$build,;t t |
| 9973 | s,@build_cpu@,$build_cpu,;t t |
| 9974 | s,@build_vendor@,$build_vendor,;t t |
| 9975 | s,@build_os@,$build_os,;t t |
| 9976 | s,@host@,$host,;t t |
| 9977 | s,@host_cpu@,$host_cpu,;t t |
| 9978 | s,@host_vendor@,$host_vendor,;t t |
| 9979 | s,@host_os@,$host_os,;t t |
| 9980 | s,@LN_S@,$LN_S,;t t |
| 9981 | s,@ECHO@,$ECHO,;t t |
| 9982 | s,@RANLIB@,$RANLIB,;t t |
| 9983 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 9984 | s,@CPP@,$CPP,;t t |
| 9985 | s,@EGREP@,$EGREP,;t t |
| 9986 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 9987 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 9988 | s,@POW_LIB@,$POW_LIB,;t t |
| 9989 | s,@PKGCONFIGDIR@,$PKGCONFIGDIR,;t t |
| 9990 | s,@LIBPNG12_VERSION_INFO@,$LIBPNG12_VERSION_INFO,;t t |
| 9991 | s,@LIBPNG3_VERSION_INFO@,$LIBPNG3_VERSION_INFO,;t t |
| 9992 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 9993 | CEOF |
| 9994 | |
| 9995 | _ACEOF |
| 9996 | |
| 9997 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9998 | # Split the substitutions into bite-sized pieces for seds with |
| 9999 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 10000 | ac_max_sed_lines=48 |
| 10001 | ac_sed_frag=1 # Number of current file. |
| 10002 | ac_beg=1 # First line for current file. |
| 10003 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 10004 | ac_more_lines=: |
| 10005 | ac_sed_cmds= |
| 10006 | while $ac_more_lines; do |
| 10007 | if test $ac_beg -gt 1; then |
| 10008 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10009 | else |
| 10010 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10011 | fi |
| 10012 | if test ! -s $tmp/subs.frag; then |
| 10013 | ac_more_lines=false |
| 10014 | else |
| 10015 | # The purpose of the label and of the branching condition is to |
| 10016 | # speed up the sed processing (if there are no `@' at all, there |
| 10017 | # is no need to browse any of the substitutions). |
| 10018 | # These are the two extra sed commands mentioned above. |
| 10019 | (echo ':t |
| 10020 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 10021 | if test -z "$ac_sed_cmds"; then |
| 10022 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10023 | else |
| 10024 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10025 | fi |
| 10026 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 10027 | ac_beg=$ac_end |
| 10028 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 10029 | fi |
| 10030 | done |
| 10031 | if test -z "$ac_sed_cmds"; then |
| 10032 | ac_sed_cmds=cat |
| 10033 | fi |
| 10034 | fi # test -n "$CONFIG_FILES" |
| 10035 | |
| 10036 | _ACEOF |
| 10037 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10038 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 10039 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10040 | case $ac_file in |
| 10041 | - | *:- | *:-:* ) # input from stdin |
| 10042 | cat >$tmp/stdin |
| 10043 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10044 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10045 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10046 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10047 | * ) ac_file_in=$ac_file.in ;; |
| 10048 | esac |
| 10049 | |
| 10050 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 10051 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10052 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10053 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10054 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10055 | X"$ac_file" : 'X\(/\)' \| \ |
| 10056 | . : '\(.\)' 2>/dev/null || |
| 10057 | echo X"$ac_file" | |
| 10058 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10059 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10060 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10061 | /^X\(\/\).*/{ s//\1/; q; } |
| 10062 | s/.*/./; q'` |
| 10063 | { if $as_mkdir_p; then |
| 10064 | mkdir -p "$ac_dir" |
| 10065 | else |
| 10066 | as_dir="$ac_dir" |
| 10067 | as_dirs= |
| 10068 | while test ! -d "$as_dir"; do |
| 10069 | as_dirs="$as_dir $as_dirs" |
| 10070 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10071 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10072 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10073 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10074 | X"$as_dir" : 'X\(/\)' \| \ |
| 10075 | . : '\(.\)' 2>/dev/null || |
| 10076 | echo X"$as_dir" | |
| 10077 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10078 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10079 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10080 | /^X\(\/\).*/{ s//\1/; q; } |
| 10081 | s/.*/./; q'` |
| 10082 | done |
| 10083 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10084 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10085 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10086 | { (exit 1); exit 1; }; }; } |
| 10087 | |
| 10088 | ac_builddir=. |
| 10089 | |
| 10090 | if test "$ac_dir" != .; then |
| 10091 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 10092 | # A "../" for each directory in $ac_dir_suffix. |
| 10093 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10094 | else |
| 10095 | ac_dir_suffix= ac_top_builddir= |
| 10096 | fi |
| 10097 | |
| 10098 | case $srcdir in |
| 10099 | .) # No --srcdir option. We are building in place. |
| 10100 | ac_srcdir=. |
| 10101 | if test -z "$ac_top_builddir"; then |
| 10102 | ac_top_srcdir=. |
| 10103 | else |
| 10104 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10105 | fi ;; |
| 10106 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10107 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10108 | ac_top_srcdir=$srcdir ;; |
| 10109 | *) # Relative path. |
| 10110 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10111 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10112 | esac |
| 10113 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 10114 | # absolute. |
| 10115 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 10116 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 10117 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 10118 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 10119 | |
| 10120 | |
| 10121 | case $INSTALL in |
| 10122 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 10123 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 10124 | esac |
| 10125 | |
| 10126 | if test x"$ac_file" != x-; then |
| 10127 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 10128 | echo "$as_me: creating $ac_file" >&6;} |
| 10129 | rm -f "$ac_file" |
| 10130 | fi |
| 10131 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10132 | # use $as_me), people would be surprised to read: |
| 10133 | # /* config.h. Generated by config.status. */ |
| 10134 | if test x"$ac_file" = x-; then |
| 10135 | configure_input= |
| 10136 | else |
| 10137 | configure_input="$ac_file. " |
| 10138 | fi |
| 10139 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 10140 | sed 's,.*/,,'` by configure." |
| 10141 | |
| 10142 | # First look for the input files in the build tree, otherwise in the |
| 10143 | # src tree. |
| 10144 | ac_file_inputs=`IFS=: |
| 10145 | for f in $ac_file_in; do |
| 10146 | case $f in |
| 10147 | -) echo $tmp/stdin ;; |
| 10148 | [\\/$]*) |
| 10149 | # Absolute (can't be DOS-style, as IFS=:) |
| 10150 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10151 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10152 | { (exit 1); exit 1; }; } |
| 10153 | echo $f;; |
| 10154 | *) # Relative |
| 10155 | if test -f "$f"; then |
| 10156 | # Build tree |
| 10157 | echo $f |
| 10158 | elif test -f "$srcdir/$f"; then |
| 10159 | # Source tree |
| 10160 | echo $srcdir/$f |
| 10161 | else |
| 10162 | # /dev/null tree |
| 10163 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10164 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10165 | { (exit 1); exit 1; }; } |
| 10166 | fi;; |
| 10167 | esac |
| 10168 | done` || { (exit 1); exit 1; } |
| 10169 | _ACEOF |
| 10170 | cat >>$CONFIG_STATUS <<_ACEOF |
| 10171 | sed "$ac_vpsub |
| 10172 | $extrasub |
| 10173 | _ACEOF |
| 10174 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10175 | :t |
| 10176 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 10177 | s,@configure_input@,$configure_input,;t t |
| 10178 | s,@srcdir@,$ac_srcdir,;t t |
| 10179 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 10180 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 10181 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 10182 | s,@builddir@,$ac_builddir,;t t |
| 10183 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 10184 | s,@top_builddir@,$ac_top_builddir,;t t |
| 10185 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 10186 | s,@INSTALL@,$ac_INSTALL,;t t |
| 10187 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 10188 | rm -f $tmp/stdin |
| 10189 | if test x"$ac_file" != x-; then |
| 10190 | mv $tmp/out $ac_file |
| 10191 | else |
| 10192 | cat $tmp/out |
| 10193 | rm -f $tmp/out |
| 10194 | fi |
| 10195 | |
| 10196 | done |
| 10197 | _ACEOF |
| 10198 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10199 | |
| 10200 | # |
| 10201 | # CONFIG_HEADER section. |
| 10202 | # |
| 10203 | |
| 10204 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 10205 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 10206 | # |
| 10207 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 10208 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 10209 | ac_dB='[ ].*$,\1#\2' |
| 10210 | ac_dC=' ' |
| 10211 | ac_dD=',;t' |
| 10212 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 10213 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 10214 | ac_uB='$,\1#\2define\3' |
| 10215 | ac_uC=' ' |
| 10216 | ac_uD=',;t' |
| 10217 | |
| 10218 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 10219 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10220 | case $ac_file in |
| 10221 | - | *:- | *:-:* ) # input from stdin |
| 10222 | cat >$tmp/stdin |
| 10223 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10224 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10225 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10226 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10227 | * ) ac_file_in=$ac_file.in ;; |
| 10228 | esac |
| 10229 | |
| 10230 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 10231 | echo "$as_me: creating $ac_file" >&6;} |
| 10232 | |
| 10233 | # First look for the input files in the build tree, otherwise in the |
| 10234 | # src tree. |
| 10235 | ac_file_inputs=`IFS=: |
| 10236 | for f in $ac_file_in; do |
| 10237 | case $f in |
| 10238 | -) echo $tmp/stdin ;; |
| 10239 | [\\/$]*) |
| 10240 | # Absolute (can't be DOS-style, as IFS=:) |
| 10241 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10242 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10243 | { (exit 1); exit 1; }; } |
| 10244 | echo $f;; |
| 10245 | *) # Relative |
| 10246 | if test -f "$f"; then |
| 10247 | # Build tree |
| 10248 | echo $f |
| 10249 | elif test -f "$srcdir/$f"; then |
| 10250 | # Source tree |
| 10251 | echo $srcdir/$f |
| 10252 | else |
| 10253 | # /dev/null tree |
| 10254 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10255 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10256 | { (exit 1); exit 1; }; } |
| 10257 | fi;; |
| 10258 | esac |
| 10259 | done` || { (exit 1); exit 1; } |
| 10260 | # Remove the trailing spaces. |
| 10261 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 10262 | |
| 10263 | _ACEOF |
| 10264 | |
| 10265 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 10266 | # `conftest.undefs', that substitutes the proper values into |
| 10267 | # config.h.in to produce config.h. The first handles `#define' |
| 10268 | # templates, and the second `#undef' templates. |
| 10269 | # And first: Protect against being on the right side of a sed subst in |
| 10270 | # config.status. Protect against being in an unquoted here document |
| 10271 | # in config.status. |
| 10272 | rm -f conftest.defines conftest.undefs |
| 10273 | # Using a here document instead of a string reduces the quoting nightmare. |
| 10274 | # Putting comments in sed scripts is not portable. |
| 10275 | # |
| 10276 | # `end' is used to avoid that the second main sed command (meant for |
| 10277 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 10278 | # See the Autoconf documentation for `clear'. |
| 10279 | cat >confdef2sed.sed <<\_ACEOF |
| 10280 | s/[\\&,]/\\&/g |
| 10281 | s,[\\$`],\\&,g |
| 10282 | t clear |
| 10283 | : clear |
| 10284 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 10285 | t end |
| 10286 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 10287 | : end |
| 10288 | _ACEOF |
| 10289 | # If some macros were called several times there might be several times |
| 10290 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 10291 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 10292 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 10293 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 10294 | rm -f confdef2sed.sed |
| 10295 | |
| 10296 | # This sed command replaces #undef with comments. This is necessary, for |
| 10297 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 10298 | # on some systems where configure will not decide to define it. |
| 10299 | cat >>conftest.undefs <<\_ACEOF |
| 10300 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 10301 | _ACEOF |
| 10302 | |
| 10303 | # Break up conftest.defines because some shells have a limit on the size |
| 10304 | # of here documents, and old seds have small limits too (100 cmds). |
| 10305 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 10306 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 10307 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 10308 | echo ' :' >>$CONFIG_STATUS |
| 10309 | rm -f conftest.tail |
| 10310 | while grep . conftest.defines >/dev/null |
| 10311 | do |
| 10312 | # Write a limited-size here document to $tmp/defines.sed. |
| 10313 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 10314 | # Speed up: don't consider the non `#define' lines. |
| 10315 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 10316 | # Work around the forget-to-reset-the-flag bug. |
| 10317 | echo 't clr' >>$CONFIG_STATUS |
| 10318 | echo ': clr' >>$CONFIG_STATUS |
| 10319 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 10320 | echo 'CEOF |
| 10321 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 10322 | rm -f $tmp/in |
| 10323 | mv $tmp/out $tmp/in |
| 10324 | ' >>$CONFIG_STATUS |
| 10325 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 10326 | rm -f conftest.defines |
| 10327 | mv conftest.tail conftest.defines |
| 10328 | done |
| 10329 | rm -f conftest.defines |
| 10330 | echo ' fi # grep' >>$CONFIG_STATUS |
| 10331 | echo >>$CONFIG_STATUS |
| 10332 | |
| 10333 | # Break up conftest.undefs because some shells have a limit on the size |
| 10334 | # of here documents, and old seds have small limits too (100 cmds). |
| 10335 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 10336 | rm -f conftest.tail |
| 10337 | while grep . conftest.undefs >/dev/null |
| 10338 | do |
| 10339 | # Write a limited-size here document to $tmp/undefs.sed. |
| 10340 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 10341 | # Speed up: don't consider the non `#undef' |
| 10342 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 10343 | # Work around the forget-to-reset-the-flag bug. |
| 10344 | echo 't clr' >>$CONFIG_STATUS |
| 10345 | echo ': clr' >>$CONFIG_STATUS |
| 10346 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 10347 | echo 'CEOF |
| 10348 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 10349 | rm -f $tmp/in |
| 10350 | mv $tmp/out $tmp/in |
| 10351 | ' >>$CONFIG_STATUS |
| 10352 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 10353 | rm -f conftest.undefs |
| 10354 | mv conftest.tail conftest.undefs |
| 10355 | done |
| 10356 | rm -f conftest.undefs |
| 10357 | |
| 10358 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10359 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10360 | # use $as_me), people would be surprised to read: |
| 10361 | # /* config.h. Generated by config.status. */ |
| 10362 | if test x"$ac_file" = x-; then |
| 10363 | echo "/* Generated by configure. */" >$tmp/config.h |
| 10364 | else |
| 10365 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 10366 | fi |
| 10367 | cat $tmp/in >>$tmp/config.h |
| 10368 | rm -f $tmp/in |
| 10369 | if test x"$ac_file" != x-; then |
| 10370 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 10371 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 10372 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 10373 | else |
| 10374 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10375 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10376 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10377 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10378 | X"$ac_file" : 'X\(/\)' \| \ |
| 10379 | . : '\(.\)' 2>/dev/null || |
| 10380 | echo X"$ac_file" | |
| 10381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10382 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10383 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10384 | /^X\(\/\).*/{ s//\1/; q; } |
| 10385 | s/.*/./; q'` |
| 10386 | { if $as_mkdir_p; then |
| 10387 | mkdir -p "$ac_dir" |
| 10388 | else |
| 10389 | as_dir="$ac_dir" |
| 10390 | as_dirs= |
| 10391 | while test ! -d "$as_dir"; do |
| 10392 | as_dirs="$as_dir $as_dirs" |
| 10393 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10394 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10395 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10396 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10397 | X"$as_dir" : 'X\(/\)' \| \ |
| 10398 | . : '\(.\)' 2>/dev/null || |
| 10399 | echo X"$as_dir" | |
| 10400 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10401 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10402 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10403 | /^X\(\/\).*/{ s//\1/; q; } |
| 10404 | s/.*/./; q'` |
| 10405 | done |
| 10406 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10407 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10408 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10409 | { (exit 1); exit 1; }; }; } |
| 10410 | |
| 10411 | rm -f $ac_file |
| 10412 | mv $tmp/config.h $ac_file |
| 10413 | fi |
| 10414 | else |
| 10415 | cat $tmp/config.h |
| 10416 | rm -f $tmp/config.h |
| 10417 | fi |
| 10418 | _am_stamp_count=`expr ${_am_stamp_count-0} + 1` |
| 10419 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
| 10420 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10421 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 10422 | X$ac_file : 'X\(//\)$' \| \ |
| 10423 | X$ac_file : 'X\(/\)' \| \ |
| 10424 | . : '\(.\)' 2>/dev/null || |
| 10425 | echo X$ac_file | |
| 10426 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10427 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10428 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10429 | /^X\(\/\).*/{ s//\1/; q; } |
| 10430 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 10431 | done |
| 10432 | _ACEOF |
| 10433 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10434 | |
| 10435 | # |
| 10436 | # CONFIG_COMMANDS section. |
| 10437 | # |
| 10438 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 10439 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 10440 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10441 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 10442 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10443 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 10444 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 10445 | X"$ac_dest" : 'X\(/\)' \| \ |
| 10446 | . : '\(.\)' 2>/dev/null || |
| 10447 | echo X"$ac_dest" | |
| 10448 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10449 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10450 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10451 | /^X\(\/\).*/{ s//\1/; q; } |
| 10452 | s/.*/./; q'` |
| 10453 | ac_builddir=. |
| 10454 | |
| 10455 | if test "$ac_dir" != .; then |
| 10456 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 10457 | # A "../" for each directory in $ac_dir_suffix. |
| 10458 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10459 | else |
| 10460 | ac_dir_suffix= ac_top_builddir= |
| 10461 | fi |
| 10462 | |
| 10463 | case $srcdir in |
| 10464 | .) # No --srcdir option. We are building in place. |
| 10465 | ac_srcdir=. |
| 10466 | if test -z "$ac_top_builddir"; then |
| 10467 | ac_top_srcdir=. |
| 10468 | else |
| 10469 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10470 | fi ;; |
| 10471 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10472 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10473 | ac_top_srcdir=$srcdir ;; |
| 10474 | *) # Relative path. |
| 10475 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10476 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10477 | esac |
| 10478 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 10479 | # absolute. |
| 10480 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 10481 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 10482 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 10483 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 10484 | |
| 10485 | |
| 10486 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 10487 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 10488 | case $ac_dest in |
| 10489 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 10490 | # Strip MF so we end up with the name of the file. |
| 10491 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 10492 | # Check whether this is an Automake generated Makefile or not. |
| 10493 | # We used to match only the files named `Makefile.in', but |
| 10494 | # some people rename them; so instead we look at the file content. |
| 10495 | # Grep'ing the first line is not enough: some people post-process |
| 10496 | # each Makefile.in and add a new line on top of each file to say so. |
| 10497 | # So let's grep whole file. |
| 10498 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 10499 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 10500 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10501 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 10502 | X"$mf" : 'X\(//\)$' \| \ |
| 10503 | X"$mf" : 'X\(/\)' \| \ |
| 10504 | . : '\(.\)' 2>/dev/null || |
| 10505 | echo X"$mf" | |
| 10506 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10507 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10508 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10509 | /^X\(\/\).*/{ s//\1/; q; } |
| 10510 | s/.*/./; q'` |
| 10511 | else |
| 10512 | continue |
| 10513 | fi |
| 10514 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 10515 | # Extract the definition of DEP_FILES from the Makefile without |
| 10516 | # running `make'. |
| 10517 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 10518 | test -z "$DEPDIR" && continue |
| 10519 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 10520 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 10521 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 10522 | # We invoke sed twice because it is the simplest approach to |
| 10523 | # changing $(DEPDIR) to its actual value in the expansion. |
| 10524 | for file in `sed -n -e ' |
| 10525 | /^DEP_FILES = .*\\\\$/ { |
| 10526 | s/^DEP_FILES = // |
| 10527 | :loop |
| 10528 | s/\\\\$// |
| 10529 | p |
| 10530 | n |
| 10531 | /\\\\$/ b loop |
| 10532 | p |
| 10533 | } |
| 10534 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 10535 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 10536 | # Make sure the directory exists. |
| 10537 | test -f "$dirpart/$file" && continue |
| 10538 | fdir=`(dirname "$file") 2>/dev/null || |
| 10539 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10540 | X"$file" : 'X\(//\)[^/]' \| \ |
| 10541 | X"$file" : 'X\(//\)$' \| \ |
| 10542 | X"$file" : 'X\(/\)' \| \ |
| 10543 | . : '\(.\)' 2>/dev/null || |
| 10544 | echo X"$file" | |
| 10545 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10546 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10547 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10548 | /^X\(\/\).*/{ s//\1/; q; } |
| 10549 | s/.*/./; q'` |
| 10550 | { if $as_mkdir_p; then |
| 10551 | mkdir -p $dirpart/$fdir |
| 10552 | else |
| 10553 | as_dir=$dirpart/$fdir |
| 10554 | as_dirs= |
| 10555 | while test ! -d "$as_dir"; do |
| 10556 | as_dirs="$as_dir $as_dirs" |
| 10557 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10558 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10559 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10560 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10561 | X"$as_dir" : 'X\(/\)' \| \ |
| 10562 | . : '\(.\)' 2>/dev/null || |
| 10563 | echo X"$as_dir" | |
| 10564 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10565 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10566 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10567 | /^X\(\/\).*/{ s//\1/; q; } |
| 10568 | s/.*/./; q'` |
| 10569 | done |
| 10570 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10571 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 10572 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 10573 | { (exit 1); exit 1; }; }; } |
| 10574 | |
| 10575 | # echo "creating $dirpart/$file" |
| 10576 | echo '# dummy' > "$dirpart/$file" |
| 10577 | done |
| 10578 | done |
| 10579 | ;; |
| 10580 | esac |
| 10581 | done |
| 10582 | _ACEOF |
| 10583 | |
| 10584 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10585 | |
| 10586 | { (exit 0); exit 0; } |
| 10587 | _ACEOF |
| 10588 | chmod +x $CONFIG_STATUS |
| 10589 | ac_clean_files=$ac_clean_files_save |
| 10590 | |
| 10591 | |
| 10592 | # configure is writing to config.log, and then calls config.status. |
| 10593 | # config.status does its own redirection, appending to config.log. |
| 10594 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 10595 | # by configure, so config.status won't be able to write to it; its |
| 10596 | # output is simply discarded. So we exec the FD to /dev/null, |
| 10597 | # effectively closing config.log, so it can be properly (re)opened and |
| 10598 | # appended to by config.status. When coming back to configure, we |
| 10599 | # need to make the FD available again. |
| 10600 | if test "$no_create" != yes; then |
| 10601 | ac_cs_success=: |
| 10602 | ac_config_status_args= |
| 10603 | test "$silent" = yes && |
| 10604 | ac_config_status_args="$ac_config_status_args --quiet" |
| 10605 | exec 5>/dev/null |
| 10606 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 10607 | exec 5>>config.log |
| 10608 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10609 | # would make configure fail if this is the last instruction. |
| 10610 | $ac_cs_success || { (exit 1); exit 1; } |
| 10611 | fi |
Glenn Randers-Pehrson | 520a764 | 2000-03-21 05:13:06 -0600 | [diff] [blame] | 10612 | |